Skip to content

T10: finish deferred rewrite of openclaw-client-registration.test.js - #567

Merged
philcunliffe merged 1 commit into
integration/openclaw-two-lane-capturefrom
task/openclaw-two-lane-capture/T10
Aug 1, 2026
Merged

T10: finish deferred rewrite of openclaw-client-registration.test.js#567
philcunliffe merged 1 commit into
integration/openclaw-two-lane-capturefrom
task/openclaw-two-lane-capture/T10

Conversation

@philcunliffe

Copy link
Copy Markdown
Contributor

Implements task T10 of openclaw-two-lane-capture.

T4 and T5 already retargeted most of test/plugins/openclaw-client-registration.test.js while landing (attach() write tests, the json_path attach_probe descriptor shape), explicitly deferring the rest to T10. This closes what remained:

  • Corrects the "honest no-op" detach test's stale R7 comment: since T5 restored the manifest's json_path attach_probe, the no-op that test observes on a fresh temp HOME is now detachClientFromDisk's absent-settings-file guard, not a no-probe guard.
  • Adds a companion detach test that stages a real openclaw.json via the actual createOpenclawAttach() effect, then drives hyp detach end to end through the real manifest descriptor, and asserts the ownership-based detachJsonPathProviders (T2) fires: changed:true, the removed baseUrl, both provider entries gone, everything else in the file untouched.

The registration-order test and the generic hyp attach resolution test were left unchanged per the task description.

Test plan

  • npm test (3319 passed, 1 pre-existing skip)
  • node --test test/plugins/openclaw-client-registration.test.js (8/8 pass)
  • npm run typecheck - one pre-existing failure in hypaware-core/plugins-workspace/openclaw/src/backfill.js:192 (sweep_cron on JsonValue), unrelated to this change and present before it (verified via git stash); out of T10's scope (test/plugins/openclaw-client-registration.test.js only)

Task-Id: T10

T4 and T5 already retargeted the two attach() no-op tests and the
descriptor's attach_probe assertion to keep the suite green while they
landed; this closes the two pieces both left for T10:

- The "honest no-op" detach test's comment still credited the retired
  R7 no-attach_probe guard. Since T5 restored the manifest's json_path
  attach_probe, the no-op this test actually observes on a fresh temp
  HOME is detachClientFromDisk's absent-settings-file guard instead.
  Corrected the comment to say so.
- Added a companion case that stages a real openclaw.json via the
  actual createOpenclawAttach() effect, then drives the same hyp
  detach CLI entry point (buildClientDescriptorMap's real manifest
  descriptor -> detachClientFromDisk's json_path branch) and asserts
  the ownership-based detachJsonPathProviders (T2) actually fires:
  changed:true, the removed baseUrl, and both provider entries gone
  from the file while everything else in it is untouched.

Task-Id: T10
@philcunliffe
philcunliffe merged commit d178d5a into integration/openclaw-two-lane-capture Aug 1, 2026
5 of 9 checks passed
@philcunliffe
philcunliffe deleted the task/openclaw-two-lane-capture/T10 branch August 1, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant