Repository navigation
fix: check a recorded data-at-risk mark before repair or the next update acts on it - #201668
Conversation
…ts in handoff recovery
…e, including already-current runs
…n the refused run
…a-at-risk-marks # Conflicts: # test/scripts/docker-e2e-plan.test.ts
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
…t mark, resolve all marks, harden release ownership
Raw terminal evidence (Docker cells)Lines copied from the cell outputs, unchanged except for truncation of long lines. Package cells use the Package red, base
|
…ined rollback files, refusal after Doctor fails finalization
…hing shows it running
Raw terminal evidence: Git release-mode repair under real systemdsystemd is PID 1 in the container, with a lingering Red, base
|
…heck leftovers first, handoff entry guard, durable rollback evidence
…s unchecked; true wording after Doctor
|
Merged via squash.
|
|
Final-head cell result (recorded after merge; the cell ran before it). Package green cell on the exact final head
|
…ate acts on it (openclaw#201668) * fix(update): verify recorded data-at-risk marks before repair acts on them * fix(update): verify any unverified data-at-risk mark and honor receipts in handoff recovery * fix(update): recognize a Git release-mode service as its checkout's own * fix(update): check a recorded data-at-risk mark before the next update, including already-current runs * fix(update): lead data-at-risk refusals with triage and record them on the refused run * fix(update): keep data-at-risk refusals within the recorded warning limit * test(e2e): finish the seeded data-at-risk run with a terminal phase * fix(update): name the agent route in killed-update recovery refusals * fix(update): drop an unused import * test(update): expect the agent route in killed-update refusals * fix(update): verify the newest mark before restoration without comparing run ids * fix(update): address review: keep the Gateway down on any inconsistent mark, resolve all marks, harden release ownership * fix(update): break the admission-root import cycle and type the e2e schema read * fix(update): address rating findings: agent rollback leftovers, helper restart, blocking findings first, shared Git metadata * test(e2e): prove the next plain update resolves a mark with the Gateway running * fix(update): address rating round 2: refuse marks before Doctor, registry-based rollback check, handoff fallback, async history read * test(update): pick the repair run, not a settlement row, in the data-at-risk cell * fix(update): resolve live-writer marks after Doctor holds the state * fix(doctor): say a skipped stale-Gateway stop left the PID running * fix(update): address rating round 3: leftovers before deferrals, retained rollback files, refusal after Doctor fails finalization * docs(update): note retained rollback files and refusals after Doctor * fix(doctor): say a stale Gateway stop could not be confirmed when nothing shows it running * fix(update): address landing review: revert release-mode ownership, check leftovers first, handoff entry guard, durable rollback evidence * test(update): follow main's Git release link layout in the launcher refusal test * fix(update): treat uninspectable leftovers and unreadable databases as unchecked; true wording after Doctor
…e Node (#203152) * fix(update): drain a Gateway that runtime recovery reran under another Node A service whose Node is unsupported or lacks a recommended security patch reruns the Gateway under a compatible Node as a child of the launcher, so the service's main PID never equals the PID the resident reports. Maintenance drain refused every such update with 'Gateway process changed during maintenance drain'. Accept the resident when every Gateway port listener is that process and its parent is the service's main process, matching restart port ownership. Refs #202954 * docs(update): runtime recovery reruns the Gateway only when its Node fails admission Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a27f0c3) Release-companions: #204017 is a separate Linux release-install Doctor fallback when lsof/ss cannot attribute listeners; it is not required for this attributed-listener runtime-recovery case. #203486 pnpm recovery, #201668 data-risk repair, and #202591 snapshot cleanup only overlap documentation; #203236 is independent auto-update retry policy. The neighboring native drain suite remains unchanged. Co-authored-by: RomneyDa <[email protected]>
…ate acts on it (#201668) * fix(update): verify recorded data-at-risk marks before repair acts on them * fix(update): verify any unverified data-at-risk mark and honor receipts in handoff recovery * fix(update): recognize a Git release-mode service as its checkout's own * fix(update): check a recorded data-at-risk mark before the next update, including already-current runs * fix(update): lead data-at-risk refusals with triage and record them on the refused run * fix(update): keep data-at-risk refusals within the recorded warning limit * test(e2e): finish the seeded data-at-risk run with a terminal phase * fix(update): name the agent route in killed-update recovery refusals * fix(update): drop an unused import * test(update): expect the agent route in killed-update refusals * fix(update): verify the newest mark before restoration without comparing run ids * fix(update): address review: keep the Gateway down on any inconsistent mark, resolve all marks, harden release ownership * fix(update): break the admission-root import cycle and type the e2e schema read * fix(update): address rating findings: agent rollback leftovers, helper restart, blocking findings first, shared Git metadata * test(e2e): prove the next plain update resolves a mark with the Gateway running * fix(update): address rating round 2: refuse marks before Doctor, registry-based rollback check, handoff fallback, async history read * test(update): pick the repair run, not a settlement row, in the data-at-risk cell * fix(update): resolve live-writer marks after Doctor holds the state * fix(doctor): say a skipped stale-Gateway stop left the PID running * fix(update): address rating round 3: leftovers before deferrals, retained rollback files, refusal after Doctor fails finalization * docs(update): note retained rollback files and refusals after Doctor * fix(doctor): say a stale Gateway stop could not be confirmed when nothing shows it running * fix(update): address landing review: revert release-mode ownership, check leftovers first, handoff entry guard, durable rollback evidence * test(update): follow main's Git release link layout in the launcher refusal test * fix(update): treat uninspectable leftovers and unreadable databases as unchecked; true wording after Doctor Release adaptation: Retain the stable installed-recovery harness. Do not add main's installed Docker service cell, later retired by #203808, or Git release-launcher wording/test because stable uses the in-place Git updater. Keep the state-verification, next-update, repair and interrupted-handoff paths and their compatible regressions. Companion audit: #203486 is present-equivalent at 3081077 (preserved). #201978 is selected next in this lane. #203808 and #203966 involve the inapplicable installed service-cell layout; #203497 and #203194 change main's package/Git activation layout and are not applicable; #204017 depends on that release-install layout. #204077, #204043, #203555 and #203520 are independent authority, cleanup, helper-fixture and config-validation changes. #204151, #203917, #203849 and #203406 are separate guidance, cleanup or status changes, not required by the data-risk verifier. #203569 fixes a separate cron receipt fixture in the same Doctor suite; the touched stale-stop cases do not depend on it. (cherry picked from commit a28f211) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f8d4bc138ed2512c413cf96f66fe0eefb3b28d65)
…s on a schema change or a busy database (#201463) * fix(update): report an inconclusive schema read as data at risk only after a candidate opened state * fix(update): keep a shipped updater's hold unless the reread confirms the baseline * test(update): assert the recovered verdict carries no data-at-risk mark * fix(update): keep recorded risk and the in-place Git runner on the conservative inspection route * fix(update): fall back only to a release of the serving build before a recovered restart * test(update): finalize an unmatched in-place checkout hold unchanged * test(update): share the release build fixture and record the test-line allocation * refactor(update): narrow to the installed updater's Git release inspection (cherry picked from commit 2183caf) Release adaptation: Keep only the package update warning when neither Doctor nor the no-restart check could open state. Unknown evidence, recorded risk and changed-schema paths retain conservative behavior. Do not import the Git release switch. Companion audit: PR #201463 is the source. #201668 handles revalidation of recorded risk, not needed for this warning; #201600 and later Git release activation follow-ups are out of scope. Deferred Doctor selector retention is independently ordered at row 17. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
When an update step fails after it may have touched state, the updater records a "data at risk" mark on that run, for example
rollback-state-unverified. Most of these marks come from a failed read or a timeout, not from real damage. The published 2026.10.33 and 2026.11.5 updaters keep writing them, and nothing ever checked a mark:openclaw update repairthen refused to start the Gateway for that run every time, naming onlyopenclaw gateway status --deep.openclaw updateignored the mark completely. When the installation was already current, it exited 0 without a word.User Impact
User impact: a recorded data-at-risk mark is now checked against the state on disk, without the user having to run anything first.
openclaw updateprints one line, resolves the mark and continues. That includes automatic updates and updates that find the installation already current.openclaw update repairdoes the same and also starts a Gateway the marked update stopped.openclaw triagefirst and the manual command last.openclaw triagebefore the manual command.Why This Change Was Made
src/infra/update-data-at-risk.ts) answers "is the state on disk consistent with the installed version?"..migrated-<run>files from the marked run's database rollback (state may be only partly restored), or unreadable state (unverifiable).active-mutationmark (Doctor writers that may still be alive) is not resolved from schemas alone. Before Doctor it is deferred to Doctor. After the run's own Doctor maintenance has held exclusive state and agent ownership, no earlier writer can still hold the state, and the schema check decides.finalize:data-at-risk-verified:<marked run>on the run that checked. Readers insrc/infra/update-run-data-at-risk.tstreat "marked, later verified" as resolved. No new field, schema or protocol. Published updaters store the mark as thefinalize:data-at-riskstep, which the current reader already decodes, so their marks are handled the same way.openclaw triageopens.openclaw gateway stop --force, because a non-interactive shell refuses the bare command. That covers the repair, status and maintenance-error messages and their docs; fix: let updates finish when plugins change no config and openclaw.json is read-only #201331 changed one more line inupdate-recovery-guidance.ts.Genuine refusals kept, and their negative controls
inconsistent-repair). The next update warns and continues, and its target schema check still refuses a target that cannot open that state..migrated-<run>files): owner test. Another run's leftover does not count.active-mutation: never resolved by a schema check alone. It is checked only after the run's own Doctor maintenance has held exclusive state ownership.Update behavior for published updaters
The installed updater runs first and cannot be patched:
finalize:data-at-riskstep.Steps still left to a person
openclaw update(or an automatic one, if the user re-enables it) resolves the mark; starting the Gateway takes repair. Agent route:openclaw triage. Follow-up: verify the mark inside the failing update's own recovery before it decides the restart.openclaw triage, and the finding is recorded on the run.active-mutationwhile the earlier Doctor writers are still alive. Doctor's maintenance admission waits for them and refuses while they hold the state. Once they exit, one repair or update resolves the mark.openclaw triage. Retrying once the registry is readable resolves it.openclaw update repairin Git release mode. It refuses as onmainand leaves the service untouched; the message namesopenclaw triage. A plainopenclaw updatestill resolves the mark, as thegreen-repeatcell shows.Follow-ups
Verdict inside Doctor restoration admission. After a mark was deferred to Doctor, Doctor restores a Gateway it parked before the post-Doctor recheck runs. Moving the check into Doctor's restoration admission closes that gap. Owner: Doctor maintenance restoration.
Unresolved-mark lookup independent of the 100-row history window.
Git release-mode repair ownership belongs with fix: finish a half-switched Git update instead of reporting it current #201538 (
fix/update-git-release-running-build-from-evidence). Two pieces are needed:openclaw-launcher.mjsservices whose release is a linked worktree of this checkout.The landing review's two findings that fix: finish a half-switched Git update instead of reporting it current #201538 must address are recorded with the diff in the release-mode worker's notes: the stale-build stop, and sibling
git worktreecheckouts that share a common Git directory.P1-4 design (managed handoff exit 79)
update-command-failure-recovery.ts). Under the handoff, the helper stopped the service, not the updater, sopreManagedServiceStop.stoppedis false in the child. The updater then reportsserviceRestartSafe:false, and the helper exits 79 and leaves the Gateway down.OPENCLAW_UPDATE_RUN_HANDOFF=1could take the helper's recordedservice-stopas its own stop evidence. It would then run the same restart and verification and reportservice: "healthy"withserviceRestartSafe: true. The helper already restores nothing in that case and exits non-79.Evidence
Behavior checked, on the exact head unless noted. Base for red is
origin/mainf4b42cc9ae7, orf5b717d232fwhere stated.src/infra/update-data-at-risk.test.ts:BEGIN IMMEDIATEwriter, and the in-process copy path (prepareSqliteReadOnlyLocation) is never called.active-mutationis never resolved.update-repair-service.test.ts, real ledger and finalization):update-command-run.test.ts):update-recovery-guidance.test.ts): exact text for running, stopped, rolled-back, failed-rollback and unobserved Gateways. Red on basef5b717d232f(11 cases fail), green on head.update-command-killed-run-refusals.process.test.ts): every refusal names the agent route before the manual command.update-command-database-rollbackcases and oneupdate-repair-cancellationcase timed out at 120 s in a 15-file local batch at load ~30. Run alone on the same machine:git/git-editedcases took 69 s/54 s on head against 71 s/59 s on base, and printed no data-at-risk verification.update-repair-cancellationpassed 7/7 on head.787cf1befff. The commits after it are merges ofmain(release tooling, UI, and the pnpm and Git-checkout update fixes fix: keep the openclaw command and Gateway working after updating a pnpm install #201735 and fix: stop openclaw update from bricking a pnpm-linked Git checkout when switching to the package #201701) and touch no mark, verification or repair path.End-to-end: package install (installed tarball, real managed Gateway under a systemd shim)
scripts/e2e/upgrade-survivor-docker.shwithOPENCLAW_UPGRADE_SURVIVOR_INSTALLED_RECOVERY_CUT=data-at-risk. It installs the packed tarball, starts a managed Gateway, kills realopenclaw updateruns at fixed points, and writes the mark a failed rollback read leaves onto the killed run, in the row shape published updaters persist. Everything after that point goes through the installed CLI.f4b42cc9ae7787cf1befffafter-mark-update: next plain update after a false mark (Gateway stopped by the killed run)... verification found the state schemas match installed OpenClaw ... so that mark is resolved., records the receipt, installs the next version, and the Gateway serves itmarked-repair: repair after another false mark with the Gateway stoppedfinalize:data-at-risk-verified:<run>on its own run, then starts the Gateway and verifies it (new PID,marked-repair-probe0)inconsistent-repair: the marked run's rollback leftopenclaw.sqlite.migrated-<run>... The Gateway is stopped. Repair left the Gateway as it was. Run \openclaw triage` for an agent with the recorded facts, or by hand: keep that file and the update's backup; ... Found: the database rollback of update left .../openclaw.sqlite.migrated- ...`. The Gateway stays stopped and no receipt is writtenrestored-repair: the leftover removedThe green cell took 736 s under host load 18 to 22. Gateway outage in each repair case is the repair's own time (53 s and 50 s), which ends with a verified serving Gateway.
autoreviewdoes not run on this machine. Two independent read-only reviewers reviewed the diff and the tests; their findings and what changed are listed below.Tests changed or removed
update-repair-service.test.ts: the "named data risk" case of "does not start a Gateway after %s" is replaced by the verified, inconsistent, unverifiable and later-mark cases. The old behavior (refuse forever) is what this change fixes.update-recovery-guidance.test.ts: assertions on "Keep the Gateway stopped" are replaced by exact rendered text.update-command-post-update-repair.test.ts,cleanup.test.ts,status.test.ts,update-repair-command.test.ts, the killed-run tests andupdate-managed-service-handoff-lifecycle.test.ts: expectations follow the new text.update-data-at-risk.test.ts: "never resolves a mark that records live Doctor writers" is replaced by a case that proves both halves: unverifiable (deferred to Doctor) before Doctor holds the state, consistent after. The old expectation was the repair loop that round 2 finding 4 reported.doctor-health.legacy-update.test.ts: "reports stale stop failure" gains anidentity-uninspectablecase. When service identity cannot be inspected, the stop is skipped, and the error must say so rather than "did not stop".service-layout.test.ts: the Git release-mode ownership cases are removed along with the reverted change; they move to the follow-up.config/test-lines-allocations/update-data-at-risk-verification.txtrecords 523 beyond the 400 allowance, with the reason.Reviewer findings
First review (before the next-update and release-mode work):
gateway stopinstances remained: fixed in the update path.Second review:
active-mutationand partial-rollback marks could be falsely resolved: both now refuse resolution, with tests.refuse(): fixed.Keep the Gateway stoppedinupdate-command-database-backup.tsrollback-start messages: left as is. It belongs to the restore/rollback catch-all fixes (audit P2-1), not this change.Not proven
[email protected]binary itself. The Docker cells use a copied record in the exact row shape thatv2026.11.5:src/infra/update-run-write.tsand its codec persist.update.run) trigger end to end; the Git cell uses the CLI trigger.active-mutationmark end to end. It is covered by the owner test and the repair test (red on the previous head, green now), not by a Docker cell.update-command-rollback.test.ts"excludes a competing config writer..." fails on base4c11507as well.Rating round 1 findings and what changed
The round 1 rating was F/F/F; the reviewer saw no end-to-end evidence yet. Each finding was checked against the code:
.migrated-<run>files. A walk that cannot finish is unverifiable. Tested with both a shared and an agent leftover.coreUpdate: completed. A mark refusal now makes repair reportcoreUpdate: "pending", which the helper already treats as "post-core repair did not complete", so it leaves the Gateway stopped. Covered in the repair tests.Rating round 2 findings and what changed
Round 2 rated proof D, patch F. Each finding was checked against the code:
readRegisteredAgentDatabases) and checks the exact<db>.migrated-<run>{,-wal,-shm,-journal}family beside the shared database and every registered agent database. A registry read failure is unverifiable. Tested with a shared leftover and one beside an agent store outside the state directory.expectRefusedBeforeDoctor). An unfinished migration, and now a live-writer mark, are deferred to Doctor and checked again after it.assertRestartSafein the interrupted-handoff helper now checks every unverified mark in history, not only the interrupted run's, and falls back to the run's own mark when history cannot be read.active-mutationmarks could never be resolved. Real: repair told you to run repair again, and the next repair said the same thing. Before Doctor, the mark is now deferred to Doctor. After the run's own Doctor maintenance has held exclusive state and agent ownership, no writer the marked run left can still hold the state, so the schema check decides. One repair resolves it (red on the previous head, green now).git-install/releasesis never read.listUpdateRunsAsync).openclaw updatenordoctor --fixsettles both.stopped; otherwise its state is reported as unknown.The low-value-test note on
update-recovery-guidance.test.tswas not taken: the exact rendered text is what the brief asks to prove, and each case covers a distinct Gateway state.Rating round 3 findings and what changed
Round 3 rated proof D, patch F. Each finding was checked against the code:
active-mutationdeferral is now the verifier's last check, so a leftover, an interrupted restore, or a schema finding reports first. Owner test: anactive-mutationmark beside a leftover now returns the leftover (red on the previous head).assertRestartSaferuns afterfinalize(), and finalize verifies every unverified mark first and records receipts. A false earlier mark is resolved in the same finalize and does not hold the Gateway. Only a mark that finalize could not resolve keeps it down, which is the intended outcome.restoreRepairGatewaynow reads receipts across recent history, as admission does. No dedicated test: in the repair harness, a repair whose start failed does not leave a stop intent for the next repair to restore. So the path the reviewer describes is not reachable through repair today.Update finalization failed., and the command exits 1 with the refusal. The next repair retries it. Repair test: red (repairsucceeded), green (failed, and a later repair resolves the mark and starts the Gateway).restoreUpdateDatabaseBackupkeeps the displaced<db>.migrated-<run>files after a successful restore and records a completeddatabase rollbackstep. A mark whose run has that step no longer counts those files. Owner test covers it.Stale Gateway PID <pid> was not stopped: <reason> Observed: service=..., PID=..., port ...=.... Doctor test: red on the previous code (did not stop), green now.Landing review findings and what changed
The landing review on
231fdd86e36rated proof C, patch F. Each finding was checked against the code:Release-mode ownership stopped a healthy Gateway (P1,
service-layout.ts). Real, and reproduced under real systemd. Reverted; see "Git release-mode repair: moved to a follow-up".Sibling
git worktreecheckouts could claim each other's service (P2,service-layout.ts). Real. Reverted with finding 1.Unchecked agent leftovers were deferred or continued past (P1,
update-data-at-risk.ts, the coordinator's fix-6 blocker and its sibling). Real.unverifiablebefore the leftover scan, and a plain update continued past a leftover it never saw.The verifier now looks for leftovers first, beside the shared database and every registered agent database, before any other check. When the registry cannot be read, the result is
unverifiablewithleftoversUnchecked. It keeps any schema finding beside that fact ("the agent database registry could not be read, so database rollback leftovers beside agent databases are unchecked; and "), and is neverfinishableornewerState. Every consumer of the verdict refuses on it:leftoversUncheckedinstead of warning and continuing.consistentrefuses and fails finalization.consistentverdict.Tests, red on
231fdd86e36and green now:The interrupted-handoff entry guard blocked on older marks (P1,
update-managed-service-handoff-interrupted.ts). Real. The entry guard now judges only the interrupted run's own mark, as onmain. The history-wide check stays afterfinalize(), which verifies older marks and records their receipts. Handoff lifecycle test: an interrupted managed update with only an earlier false mark recovers and restarts. Red on231fdd86e36(gateway left stopped: data at risk (rollback-state-unverified)), green now.The rollback-completed exception read a step compaction evicts (P2,
update-run-data-at-risk.ts). Real. It now also readsdiagnostic:database rollback, which only a completed restore writes ("Restored pre-migration databases from ..."). The ledger's compaction keeps that step and its text. Owner test with a ledger compacted past the ordinary step: the retained.migrated-<run>file no longer counts. No new stored field.Rating round after the landing review
On
33e6184dbc6: proof C, patch F. Each finding was checked against the code:update-command-finalize.ts). Real but narrow. A mark deferred to Doctor (an unfinished migration, or live Doctor writers) lets Doctor maintenance park a running Gateway, and Doctor restores it before the post-Doctor recheck runs.mainhas no recheck at all, so this is no worse thanmain.Repair did not start or restart the Gateway after this check.Tested in the after-Doctor refusal case.update-managed-service-handoff-interrupted.ts). Rejected for this PR. With no plugin cohort, no finalize runs there, so no receipt can be written. A history-wide check would bring back the stuck state the landing review reported, where a false older mark keeps the Gateway down. The branch behaves exactly as onmain.ENOENT,ENOTDIR) from "could not look". The latter goes down the sameleftoversUncheckedrefusal path. Owner test with an unreadable directory: red, then green.unverifiableand never deferrable, with both findings in the detail. Owner test with real SQLite: red, then green.mainreads everywhere. The stopping run's mark is read by run ID, so it is never skipped. Listed as a follow-up.CI on
787cf1befffThree jobs in run 44525460079 failed, and none of them came from this change:
check-test-types-core-2andcheck-test-types-core-3failed with eight TS2739 errors intest/scripts/release-*fixtures.main's own CI run 44524514068 atdbc1aa04e88(themainmerged here) shows the same errors in the same jobs. fix(release): complete the evidence test client #201811 fixed them.checks-node-compact-small-3failed intest/scripts/package-acceptance-workflow.test.ts("Expected workflow step Download full release validation manifest"). This change touches no workflow or release tooling.Merging current
maincleared them. The root test-type stripes pass locally on the merged head.The later
package-acceptance-workflowfailure came from #201802 removing a workflow step without updating its test. It was inherited frommain, and #201805 fixed it by restoring the step. This head mergesmainafter #201805.End-to-end: Git release mode (installed checkout, real managed service, busy database)
These cells drive the update-matrix harness in Docker. Each one installs a real Git checkout, converts it to release mode through a real
openclaw update, and runs a second real update under database write load. It then writes the mark that a failed post-activation schema read leaves, in the published row shape, onto that update's run while the Gateway keeps serving. Everything after that point goes through the shipped CLI.red-repeat(inside thered-repaircell)cf9a9839e03already-current, exits 0 and says nothing about the mark.green-repeat787cf1befff(earlier alsob7f71419149)Update <run> recorded data at risk (rollback-state-unverified); verification found the state schemas match installed OpenClaw 2026.11.5 and no migration or restore is unfinished, so that mark is resolved.It recordsfinalize:data-at-risk-verified:<run>on its run (read back throughopenclaw update status) and exits 0 in 145 s. Busy load held throughout: 1278 write commits at 8 MiB/s on a 512 MiB database and 1278 readiness probes, with 0 failed and 0 outages. The Gateway served the same build before and after.green-repeatdoes not depend on the reverted release-mode ownership change. A plain update's mark check runs at update admission and never asks whether the service belongs to this checkout. The same cell's repeat step on base passed that path silently, with no ownership refusal.Git release-mode repair: moved to a follow-up
This PR no longer changes release-mode repair ownership. An earlier head accepted a Git release-mode service as the checkout's own (
src/daemon/service-layout.ts). The landing review found two problems with that change, both of which make release-mode repair worse than onmain:1e39a2c5828(raw output).git worktreecheckouts share a common Git directory, so one could claim the other's release-mode service.The change is reverted here. Release-mode repair behaves as on
main: it refuses and changes nothing. The refusal is now true for this case. It names the Git release launcher, says this checkout cannot yet confirm that the release is its own, says the service was left untouched, and leads withopenclaw triage(rendered-text test inupdate-command-service-maintenance.test.ts). The ownership change and both findings move to the release-mode follow-up (#201538), which also carries the Doctor stale-build fix.Two related message fixes stay in this PR. Doctor's stale-Gateway stop now reports a stop that was skipped (
was not stopped: <reason>) and one it could not confirm (could not be confirmed stopped) instead of alwaysdid not stop. Both have red/green tests indoctor-health.legacy-update.test.ts.Raw terminal lines from every cell are in this PR comment. The full outputs (
fix.stderr,repeat.stderr, update status JSON, asciinema casts) are kept locally, because the artifact store rejects uploads from this machine.