Skip to content

fix: allow Doctor repair with canonical service home overrides - #160056

Merged
steipete merged 6 commits into
mainfrom
upd/upd-doctor-maintenance-refusal
Sep 29, 2026
Merged

steipete merged 6 commits into
mainfrom
upd/upd-doctor-maintenance-refusal

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #159926
Closes #159927

What Problem This Solves

Fixes openclaw doctor --fix refusing maintenance when the installed service's OPENCLAW_HOME resolves to the OS account home, blocking the required legacy credential-store migration even from a canonical shell.

User Impact

The credential-store migration now has its Doctor path back for canonical home overrides. Doctor imports and verifies the legacy credentials, archives the original bytes, and leaves runtime consuming canonical storage. Its existing maintenance ownership, active-writer checks, and migration owner remain unchanged.

An OPENCLAW_HOME that genuinely resolves elsewhere remains isolated: native service management still reports service management skipped: non-default state dir or config path, with guidance to use the OS account home and canonical state/config paths. Operators keeping relocated state must stop its owning Gateway/supervisor and use Doctor's existing offline maintenance path against that state; this fix does not let it adopt the account's native service. A canonical runtime override also cannot hide a relocated HOME or USERPROFILE.

Why This Change Was Made

The identity predicate rejected every nonempty OPENCLAW_HOME before comparing resolved paths. Doctor validates the installed service environment as well as its caller, so the service's saved override could cause the reported refusal while the shell's selectors were canonical. Compare the process home and effective OpenClaw home independently with the OS account home, retaining state/config/profile checks and filesystem normalization.

The regression reproduces the exact refusal with a canonical caller and a service-defined canonical home override. The reporter's actual unit environment was not supplied, so that host's precise mismatch remains unverified. Thanks to @oscarsixsecllc for the paired reports.

Evidence

  • Blacksmith Testbox tbx_01m3js2ps29x0s6h25rvpqxh2s (lease run): regression failed before the fix with the reported maintenance refusal. It exercises real maintenance ownership and credential repair with a synthetic native service.
  • pnpm test src/config/paths.test.ts src/infra/gateway-supervision.test.ts src/commands/doctor-maintenance.service-identity.test.ts --maxWorkers=1: three passes, 67 tests each; 21.69–21.75 seconds wall per run. The new regression file took about 3.8 seconds of test time and 6.9 seconds wall; the path and supervision files took about 12.2 seconds and 0.7 seconds wall respectively. CI timing is not used as proof.
  • Regression verifies the canonical Anthropic credential after legacy claude-cli import, byte-preserving archival, no native service mutations for a stopped service, and refusal while another owner holds state. Existing path tests also reject a canonical runtime override masking a copied process home.
  • node scripts/check-changed.mjs -- <six changed paths> passed on the Testbox, including core types, all 25 selected test type graphs, lint, and repository guards. git diff --check passed.
  • Fresh direct-route Codex autoreview: no accepted/actionable P1 findings. Production LOC +7/-11 (net -4), tests +126/-1, docs +3/-1.
  • The 1,319-file consumer run was stopped at the slow-test gate and is incomplete; it is not claimed green. Follow-up (test-performance lane, gate waived): server.chat.canonical-publication, server.xai-fallback, and server.config-patch took 30.637/30.558/31.281 seconds with cold Gateway startup and real retry work; those suites are unchanged.
  • The published-driver × candidate cell and complete native CLI reproduction are incomplete. A published 2026.9.6 probe fell back to unavailable-service inspection and completed repair, so it does not establish the failing native chain. The fix uses the existing identity check and migration owner without new updater markers; compatibility with an already-installed driver is not claimed proven by the focused tests.

No PR CI jobs were dispatched or rerun for proof.

CI startup repair

Head c48a8f4bb280e3491e83995780471d2cc403d978 carries the existing preload-owner fix and regression coverage from #160024 (b9cd492ac60f, credited to Vincent Koc). The failed job tested merge commit c855070740f0e0e2386751d99cbe77b2011fc09b, which included a newer Vitest preload. Captured child stderr was MODULE_NOT_FOUND: Cannot find module 'vitest/runtime': the inherited preload resolved the package relative to temporary JavaScript fixture entrypoints. The branch-only verifier suite passed 27/27; applying that CI preload reproduced the exact four failures. This was a test-preload startup failure, and the accepted home-identity code remains unchanged.

The adapter now runs only in recognized Vitest workers. Ordinary descendant forks, threads, and eval commands preserve their flags and IPC without loading Vitest; package-local Vitest workers retain their adapter and fatal dependency-resolution diagnostics. No unrelated changes from the upstream tooling commit were ported.

Blacksmith Testbox tbx_01m3kakb2s85aqbed4pbj66gkb (lease run) verified the committed tree d92bde9980e3be5868c3eb9a5c9522f42c7e12ad:

  • The preload regressions failed against the CI preload, then the four selected suites passed three times: 142 tests per run, 26.19/23.05/23.07 seconds wall.
  • The original 15-file CI shard passed: 400 tests, seven existing skips, zero failures; 223.36 seconds wall. No test exceeded 30 seconds in that replay.
  • node scripts/check-changed.mjs -- test/vitest/vitest.jsdom-preload.mts test/jsdom-compat.test.ts test/scripts/vitest-jsdom-preload.test.ts passed; fresh direct-route P1 autoreview was scoped-clean.
  • Standalone pnpm test <file> --maxWorkers=1 costs: test/jsdom-compat.test.ts 2.40 seconds wall / 360 ms test time; test/scripts/vitest-jsdom-preload.test.ts 1.80 seconds wall / 202 ms test time. New-head CI timing is not used as proof.

Auto-merge settings were left unchanged.

CI classification and diagnostic expectation repair

Run 36391577910 was compared on Linux using its exact merge snapshot 80da61e948db0aef86e3f7d59ce7adb6b008bac6 and untouched main parent 267da052ea2674f4d122e09f7178e0c6b1a63e3d:

  • Inherited type error: both snapshots report TS2459 in package-update-activation-journal.test.ts:7 and package-update-activation-lifetime.test.ts:11: sqlite-reliability-process.js declares assertReliabilityForcedExit locally but does not export it. The affected files are identical across the snapshots. Main fixes the export in da2efd83b8a689572803d31c740fd700d0f0a907.
  • Inherited custody assertion: both snapshots fail the same four historical-custody cases (missing, unknown phase, unknown version, relative source). Stored-generation validation throws the incompatibility diagnostic before path comparison; the test still expected release() to return false. Main fixes the assertion in fa90c83d1ab83cb73a10d2bb24cc08af20fd2683, retaining the custody-preservation assertions.
  • PR-owned Windows expectation: the merge fails repair pins relative installation selectors before failed-update triage, while the main parent passes 24/24. Only the recorded 200-character guidance differs. The shared expectation now reflects the accepted canonical OPENCLAW_HOME guidance; the deep-equality and selector assertions remain intact. Repair delta: production 0, test support +1/-1; no added tests or runtime cost.

Blacksmith Testbox tbx_01m3kmecdqjc6h6emjbz0vf7hf (lease run): the Windows suite passed 24/24 three times after correction (102.89/72.80/91.69 seconds wall; Vitest 63.90/43.25/53.31 seconds). All six consuming suites passed 136/136 (209.41 seconds Vitest, 238.99 seconds wrapper). node scripts/check-changed.mjs -- src/cli/update-cli/update-cli-failure-recovery.test-support.ts passed, including the CLI update type graph and lint. Fresh direct-route Codex P1 autoreview was scoped-clean. The known convergence-authority and CI/tooling failures remain with their existing owners.

The final focused regression also passed with a verified one-line-only diff from the exact merge snapshot (1 selected test passed, 23 filtered; 27.12 seconds wall, 4.17 seconds Vitest). The full triple runs differed additionally in two erased type-only declarations; no additional runtime changes were present. An initial final-proof attempt stopped before tests because its guard compared the synthetic Testbox sync commit with the source SHA; checking the independently pinned merge checkout resolved that tooling mismatch.

Compare process and runtime homes independently with the OS account home so a canonical OPENCLAW_HOME in service metadata does not block Doctor credential migration. Preserve relocated-home isolation, active-writer checks, and the existing migration owner.
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation commands Command implementations size: S labels Sep 28, 2026
@steipete
steipete marked this pull request as ready for review September 28, 2026 03:06
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 29, 2026, 12:30 AM ET / 04:30 UTC (Revision 5).

ClawSweeper review

What this changes

The branch accepts canonical OpenClaw home overrides for service management, updates the recovery guidance, and adds Doctor credential-migration regression coverage.

Regression provenance

Possible regression — suspected (failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 7 items remain

Keep this PR open. Current main still rejects the canonical service-home override implicated in the Doctor refusal, and the reporter corrected their earlier diagnosis in favor of this cause. The repair is useful, but alias reassignment remains an unresolved native-service authority concern, and the installed-updater recovery path is unproven.

Priority: P1
Reviewed head: eac4a1d1aabe29e0917b273f88272805d5e85fd5
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused migration regression is useful, but native authority and installed-upgrade proof remain unresolved.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: The new Doctor test exercises real maintenance and credential import with synthetic state, but replaces the Gateway service and observes no native final effect or rejection after alias reassignment. The PR body also says the published v2026.9.6 updater-to-candidate cell is incomplete. No stored-data model contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: The new Doctor test exercises real maintenance and credential import with synthetic state, but replaces the Gateway service and observes no native final effect or rejection after alias reassignment. The PR body also says the published v2026.9.6 updater-to-candidate cell is incomplete. No stored-data model contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 13 items Introduced authority change: The introduced patch replaces unconditional rejection of an explicit OPENCLAW_HOME with realpath-based comparisons, admitting a filesystem alias of the account home.
Current main still needs the repair: Current main returns false for any normalized nonempty OPENCLAW_HOME before comparing installation paths.
Runtime state selection: The effective runtime home takes OPENCLAW_HOME, while the OS home uses HOME or USERPROFILE; default state resolution follows the effective home.
Findings 1 actionable finding [P1] Bind accepted home identity through native service dispatch
Security Needs attention Mutable alias can outlive service authorization: An admitted home alias can be retargeted during awaited service work; current custody checks do not establish rejection of the changed state before native I/O.

How this fits together

Doctor compares the caller’s environment with the installed Gateway service before taking maintenance ownership and repairing legacy credentials. Service identity checks also govern later native stop, start, and restoration operations.

flowchart LR
A[Doctor repair request] --> B[Caller and service homes]
B --> C{Account home identity?}
C -->|Yes| D[Maintenance ownership]
D --> E[Credential import]
E --> F[Native Gateway restoration]
C -->|No| G[Service refusal]
Loading

Decision needed

Question Recommendation
Should native service management accept a filesystem alias in OPENCLAW_HOME, or require the literal OS account-home path? Require the account-home path: Accept an explicit canonical override but reject alias indirection for native service actions.

Why: The branch explicitly documents alias support, which changes which state selection may reach the account’s native service after asynchronous work.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: The new Doctor test exercises real maintenance and credential import with synthetic state, but replaces the Gateway service and observes no native final effect or rejection after alias reassignment. The PR body also says the published v2026.9.6 updater-to-candidate cell is incomplete. No stored-data model contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Bind accepted home identity through native service dispatch (P1) - The new realpath comparison admits an OPENCLAW_HOME symlink to the account home. Service mutation checks identity before awaited lock and inspection work, but later custody checks do not recheck that home. If the alias is retargeted, relocated state can reach an action on the account’s native service. Reject alias indirection or bind the selected home through the final effect.
  • Resolve security concern: Mutable alias can outlive service authorization - An admitted home alias can be retargeted during awaited service work; current custody checks do not establish rejection of the changed state before native I/O.
  • Resolve merge risk (P1) - A filesystem alias admitted as the account home can be reassigned while service work awaits, with no demonstrated rejection before an action on the account’s native service.
  • Resolve merge risk (P1) - The published v2026.9.6 updater driving this candidate through Doctor credential repair and service restoration remains unproven.
  • Complete next step (P2) - Resolve alias authority and demonstrate final native rejection of reassigned state plus published-updater Doctor repair.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Bind accepted home identity through native service dispatch — src/config/paths.ts:116-119
  • [medium] Mutable alias can outlive service authorization — src/config/paths.ts:118
Agent review details

Security

Needs attention: The diff adds no supply-chain change, but its mutable-alias admission can outlive native service authorization.

PR surface

Source -4, Tests +125, Docs +2. Total +123 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 2 7 11 -4
Tests 4 127 2 +125
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 137 14 +123

Review metrics

Metric Value Why it matters
New regression cost 2 cases; about 3.8 s test time and 6.9 s wall The reported test time fits the repository’s under-five-second target for a file.

Root-cause cluster

Relationship: canonical
Canonical: #160056
Summary: This PR is the candidate repair for the corrected Doctor refusal; the migration report also sought fallback visibility beyond this patch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Restrict native alias admission (recommended)
    Keep literal canonical overrides, revise the alias guidance, and prove allowed and denied native effects plus the published upgrade path.
  2. Bind alias authority through dispatch
    Preserve alias support only with final-effect rejection of retargeted state and evidence from the installed updater.

Technical review

Best possible solution:

Let Doctor repair a literal canonical home override through its existing migration owner, bind native service control to current account-home state, and offer a visible Fix action for blocked upgrades.

Do we have a high-confidence way to reproduce the issue?

Yes for the source mechanism: current main rejects a nonempty canonical OPENCLAW_HOME, and the PR reports a before-fix synthetic Doctor refusal. The reporter’s native unit and installed-updater path were not reproduced.

Is this the best way to solve the issue?

Not yet. The canonical override addresses the refusal, but accepting mutable aliases without binding their authority through native dispatch is unsafe; a literal account-home override is the narrower repair.

Full review comments:

  • [P1] Bind accepted home identity through native service dispatch — src/config/paths.ts:116-119
    The new realpath comparison admits an OPENCLAW_HOME symlink to the account home. Service mutation checks identity before awaited lock and inspection work, but later custody checks do not recheck that home. If the alias is retargeted, relocated state can reach an action on the account’s native service. Reject alias indirection or bind the selected home through the final effect.
    Confidence: 0.85

Overall correctness: patch is incorrect
Overall confidence: 0.87

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0e6c5a8d891f.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The affected Doctor path can block recovery of a configured provider after update.
  • merge-risk: 🚨 compatibility: Previously isolated explicit-home aliases would gain access to account-level service management.
  • merge-risk: 🚨 security-boundary: The new alias admission can outlive its path check before native service I/O.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: The new Doctor test exercises real maintenance and credential import with synthetic state, but replaces the Gateway service and observes no native final effect or rejection after alias reassignment. The PR body also says the published v2026.9.6 updater-to-candidate cell is incomplete. No stored-data model contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Mutable alias can outlive service authorization — src/config/paths.ts:118
    An admitted home alias can be retargeted during awaited service work; current custody checks do not establish rejection of the changed state before native I/O.
    Confidence: 0.85

What I checked:

  • Introduced authority change: The introduced patch replaces unconditional rejection of an explicit OPENCLAW_HOME with realpath-based comparisons, admitting a filesystem alias of the account home. (src/config/paths.ts:116, eac4a1d1aabe)
  • Current main still needs the repair: Current main returns false for any normalized nonempty OPENCLAW_HOME before comparing installation paths. (src/config/paths.ts:114, 0e6c5a8d891f)
  • Runtime state selection: The effective runtime home takes OPENCLAW_HOME, while the OS home uses HOME or USERPROFILE; default state resolution follows the effective home. (packages/normalization-core/src/home-dir.ts:45, eac4a1d1aabe)
  • Native service path boundary: Daemon service files derive their home from process HOME or USERPROFILE independently of OPENCLAW_HOME. (src/daemon/paths.ts:9, eac4a1d1aabe)
  • Identity check precedes awaited work: The service wrapper checks install identity before acquiring its asynchronous operation lock; its later assertCurrent callback does not repeat home equivalence. (src/daemon/service.ts:308, eac4a1d1aabe)
  • Final native effect: The Linux lifecycle performs a systemctl action after further asynchronous inspection and custody checks. (src/daemon/systemd-lifecycle.ts:99, eac4a1d1aabe)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Sebastien Tardif: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Masato Hoshino: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve alias admission and show allowed and reassigned-alias outcomes at the final native service effect.
  • Show the published v2026.9.6 updater driving this candidate through Doctor credential repair.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-28T03:07:47.230Z sha 0dd485a :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T07:35:43.155Z sha c48a8f4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T10:06:57.514Z sha cbfb6e5 :: needs real behavior proof before merge. :: [P1] Keep home authority valid through native service dispatch
  • reviewed 2026-09-28T14:45:48.034Z sha 06d16e7 :: needs real behavior proof before merge. :: [P1] Revalidate home identity at native service dispatch

Carry the preload-owner fix and regression coverage from b9cd492
(#160024). The failing CI merge inherited a newer preload that tried to
resolve vitest/runtime relative to temporary JavaScript fixture entrypoints.
It crashed before those children could register their IPC handlers.

Apply the adapter only to recognized Vitest workers, preserving their
package-local runtime while leaving ordinary forks, threads, and evals
alone. Keep the accepted canonical-home repair unchanged.

Validated the four original failures and the preload regressions before
repair, three focused passes, the original CI shard, changed checks, and
fresh P1 review on a Linux Testbox.

Co-authored-by: Vincent Koc <[email protected]>
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Sep 28, 2026
@steipete
steipete merged commit 68834d2 into main Sep 29, 2026
202 checks passed
@steipete
steipete deleted the upd/upd-doctor-maintenance-refusal branch September 29, 2026 04:44
steipete added a commit that referenced this pull request Sep 30, 2026
The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after #160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.
steipete added a commit that referenced this pull request Sep 30, 2026
The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after #160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.

(cherry picked from commit 4e52570)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…law#160056)

* fix: allow Doctor repair with canonical service home overrides

Compare process and runtime homes independently with the OS account home so a canonical OPENCLAW_HOME in service metadata does not block Doctor credential migration. Preserve relocated-home isolation, active-writer checks, and the existing migration owner.

* test: keep inherited Vitest preloads out of verifier children

Carry the preload-owner fix and regression coverage from fe5c642
(openclaw#160024). The failing CI merge inherited a newer preload that tried to
resolve vitest/runtime relative to temporary JavaScript fixture entrypoints.
It crashed before those children could register their IPC handlers.

Apply the adapter only to recognized Vitest workers, preserving their
package-local runtime while leaving ordinary forks, threads, and evals
alone. Keep the accepted canonical-home repair unchanged.

Validated the four original failures and the preload regressions before
repair, three focused passes, the original CI shard, changed checks, and
fresh P1 review on a Linux Testbox.

Co-authored-by: Vincent Koc <[email protected]>

* test(update): align canonical home recovery guidance

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…aw#161079)

The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after openclaw#160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.
RomneyDa added a commit that referenced this pull request Oct 14, 2026
* fix: allow Doctor to repair offline app-owned state

* test(doctor): model native manager identity in app-owned repair

* test(doctor): retain state-only CLI repair fixture authority

(cherry picked from commit 44d880a)
Backport adaptation: kept the release line's active-state-writer refusal case from #160056 as an extra row in the new service-identity matrix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

1 participant