Skip to content

fix: clarify split-install updates and blocked Doctor repairs - #196342

Merged
RomneyDa merged 11 commits into
mainfrom
openclaw/gentle-krill
Nov 12, 2026
Merged

RomneyDa merged 11 commits into
mainfrom
openclaw/gentle-krill

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Closes #196321. Related: #196350, #196371, #196474.

What Problem This Solves

When the CLI and Gateway use different installations, repair messages can send users in circles. Doctor can also report a successful restart even though a repair was blocked.

User Impact

  • Updates say which installation changes, which stays unchanged, and which CLI to use afterward.
  • Status and Doctor explain when a custom launcher override needs manual editing. Reinstalling alone cannot replace it.
  • Permission errors name the affected path. A successful restart no longer implies every repair succeeded.

The docs give a short systemd repair checklist. Update routing, service permissions, and launcher overrides are unchanged. Environment-only override handling is covered by #196371.

Validation

The wording-only follow-up passed 66 focused tests across update previews, target selection, status, and Doctor (118.74s including compiler preparation). Docs MDX/link checks, scoped lint/format, and diff checks passed. New-head CI is pending.

Earlier regression, native upgrade, review, and CI evidence

Evidence

  • Original status and text/JSON preview regressions failed on base 6091f622fe4dc75c495c091b81afdde5298c99d2; the original guidance fix passed its affected suites.

  • Four additional regressions failed on the previous PR head: exact unsafe service/definition directory paths, blocked repair with truthful restart outcome, and launcher diagnostic ordering. They passed with this fix.

  • Broad affected validation: native definition mutation 42 passed; Doctor commands 181 passed / 2 fixture failures / 1 existing skip. Both fixture failures reproduced on the original production code and were fixed at the OS boot-reader boundary.

  • Final affected rerun: 86 passed (52 settlement/readiness, 2 migration-refusal, 20 CLI subprocess output, 12 legacy-update flow). Earlier stale wording failures are corrected.

  • Core and affected Doctor/services typechecks, targeted lint/format, test-line budget, and diff checks passed.

  • Final local ClawSweeper reviewed 6091f622fe4dc75c495c091b81afdde5298c99d2..6f2eb3a33ffe32bab64c5f33ad593abf21707449: complete, no findings, patch correct (0.89). Read-only source review, not runtime proof.

  • Current-head CI exposed an obsolete install integration assertion that hid the unsafe path. Updated it to require the exact actionable directory while still excluding unresolved credential names. All 16 install integration tests passed, plus scoped lint, format, and test-line budget checks. Follow-up ac861812d71718bfc59af2b69be0e41a06ce715a changes tests/allocation only; reviewed production bytes remain unchanged.

  • Native explicit-launcher testing also caught earlier maintenance admission hiding the later override diagnostic. The early refusal now gives conditional override guidance without changing service authority; its beginDoctorMaintenance regression was red before the fix. All 48 settlement tests passed; after moving the new case into the existing refusal suite to respect the file-size limit, all 3 refusal tests passed. Core/Doctor typechecks, scoped lint/format, and test-line budget passed. Independent AutoReview of the additional message/test change was scoped-clean at P0–P2 (0.97).

  • Final committed-range local ClawSweeper review: 6091f622fe4d..72ca05d532dd, complete, no actionable correctness/security findings. The subsequent 15d72955e709 only relocates an unchanged documentation paragraph to resolve a main conflict; MDX, format, diff, and merge-tree checks passed. Production bytes are unchanged.

Combined native verification

Native Linux/systemd (PID 1, Node 24.22.1) proof used the three companion fixes together on focused Testbox run 42765103716.

  • Stable 2026.11.2 Gateway/state at A upgraded successfully through fixed driver B: actual update exit 0/status ok, effective launcher moved to B, PID changed, candidate serving build matched, and authenticated RPC plus health/readiness passed.
  • Sessions, approvals, and workspace survived. The environment-only drop-in remained byte-identical, remained effective in systemd and the running process, and was not copied into the managed base. No manual post-update restart or repair.
  • The fixed CLI also restarted the unchanged stable service successfully before upgrading it.
  • Package build and integrity checks passed. Upgrade-stage package SHA-256: 3b0757080aedfec5b322c2241fe9fc67237698ca08bbefb321f0537ee8208975; frozen combined source tree: 77289499c424e1ab9162b12bea7d8f1a6b6f19ab. Production files were reconciled against the PR heads, including the shared activation file.
  • Permission-blocked Doctor was proved separately on fresh candidate state: exact unsafe directory reported, service/drop-in unchanged, no false repair-success claim, and authenticated Gateway health/readiness retained. Disposable services/users/runtime files were cleaned up.

Limits: the fixed driver was bootstrapped into B before the actual upgrade. This is not proof that an unmodified released updater fixes its own first hop. No agent/model inference or external channel round trip was tested. The first combined harness finished with a later Doctor-fixture failure after its upgrade stage passed; the isolated Doctor run then exposed an early launcher-guidance defect. Those full runs are not described as passing. The final launcher-specific proof is recorded separately below.

Final launcher-specific native proof

The final candidate passed package build/integrity and the isolated systemd explicit-launcher Doctor case: override-aware guidance and systemctl cat inspection instructions were present, circular Doctor advice was absent, and both managed base and operator drop-in remained unchanged. Summary flow: native-systemd-explicit-launcher-doctor-guidance; status: passed. Disposable user/runtime cleanup passed.

Package SHA-256: ca1f3b0ea7e9f7532f2b0162e93d16e8bd98dd221779bb8d1f5d89c332f1fdf6; combined source tree: 8dbfb8fad7567c41106d76b766f870b2eb7f8713. This tree differs from the successful stable-upgrade/permission proof only in the early Doctor guidance message; unchanged upgrade and permission results were reused. This final run is a launcher-specific proof, not another stable-upgrade run. Full PR CI remains separate from these focused checks.

CI repair follow-up

  • Reproduced both stale Windows Doctor-flow expectations, then replaced circular openclaw doctor --fix advice with the actionable launcher-override guidance. All 17 flow tests pass; targeted lint, format and diff checks pass. No new production behavior.
  • Attributed the test-line failure to fix(release): bound Linux selected-tag checkout #194996: 71 net selected-tag checkout regression lines landed on main without an allocation; a later Discord deletion leaves 70 lines of inherited debt. Added the separate linux-selected-tag-checkout.txt allocation for exactly 70 lines, keeping this PR’s own 128-line allocation unchanged. The guard now passes at 6,618,505 lines, ceiling 6,618,505, zero slack.
  • Integrated main through baccc7e15291 only to resolve the named failing ratchet/base interaction, plus the attributed correction. Post-integration proof: 67 tests passed (17 Doctor flow, 47 maintenance settlement, 3 migration-refusal), three shards in 73.36s including compiler preparation. Broad exact-head CI remains pending.

November 12 publication follow-up

Head 0d830dd6c5dde00e9dc70fe325f774da31900114 appends the independently reviewed duplicate-allocation deletion to the previous head. No production, documentation, or runtime-test bytes changed in this follow-up; existing focused proof is reused rather than claimed rerun. The shared test-line scalar is unchanged. The previous docs failure was classified as inherited; new exact-head CI and fresh hosted review remain pending. Native stable-upgrade/rollback proof remains unverified and is not implied by publication.

@clawsweeper

clawsweeper Bot commented Nov 10, 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 cli CLI command changes commands Command implementations size: M labels Nov 10, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review November 10, 2026 00:31
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 4a08a81d17ea8040f506da638021cc060ba98213, but the PR head is now f15cc2e77d8140ce74d1b5cc286c028d37a7653a. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-10T00:47:38.383Z sha 4a08a81 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Nov 10, 2026
@RomneyDa RomneyDa changed the title fix: explain split-install updates with operator-owned launchers fix: clarify split-install updates and blocked Doctor repairs Nov 10, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 10, 2026
Remove the reviewed duplicate allocation without changing the shared test-line ceiling.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
@RomneyDa
RomneyDa merged commit 7cf5e75 into main Nov 12, 2026
132 checks passed
@RomneyDa
RomneyDa deleted the openclaw/gentle-krill branch November 12, 2026 06:53
RomneyDa added a commit that referenced this pull request Nov 12, 2026
Backport #196342 to the release-owned status, dry-run, and Doctor paths without importing newer runtime architecture. Preserve diagnostic-only guidance, stopped-service policy, and all existing repair scenarios; add override, blocked-repair, and actionable-path regressions. Canonical test allocation remains 128; no runtime or shared test ceiling increases.

Source review and git diff --check complete. Product tests, typecheck, lint, format, and build remain CI-only and pending on the next exact candidate.

(cherry picked from commit 7cf5e75)

Co-authored-by: RomneyDa <[email protected]>

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 12, 2026
Backport split-install update warnings and operator-owned launcher diagnostics.
Keep repair authority checks before writes and distinguish healthy Gateway
restoration from completion of individual Doctor repairs.

Adapted from 7cf5e75.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…aw#196342)

* fix: explain split-install updates with operator-owned launchers

* fix: explain split-install updates with operator-owned launchers

OpenClaw-Publication: 1034120f-087e-4928-8108-953e498b201e

* fix: report blocked Doctor repairs without hiding recovery guidance

* test: expect actionable service permission paths

* fix: explain launcher overrides at Doctor admission

* docs: group launcher repair guidance with service updates

* test: expect actionable foreign-service Doctor guidance

* test: account for selected-tag checkout regressions

* docs: simplify update and Doctor repair guidance

* fix: remove duplicate split-install test allocation

Remove the reviewed duplicate allocation without changing the shared test-line ceiling.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
…aw#194058)

Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from openclaw#134490 and keeps the launch confirmation from openclaw#143139.

Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base 18bee8e reports no agent found; published 2026.11.1 upgrades to the fix with settings intact.

Co-authored-by: TorstenW <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: steipete <[email protected]>

(cherry picked from commit 7c702c3)

Release adaptation: Capture invoking operator env before candidate admission, forward to interactive triage only; preserve latest target selectors, confirmation and lease cleanup ordering. Exact three authorized production paths plus real lifecycle regression.

Follow-up dispositions: ad4863d fix: preserve the running installation when an agent updates its Gateway (openclaw#201570); dc73ec0 fix: let updates finish when another tool briefly reads OpenClaw's databases (openclaw#202541); d07b530 fix: clarify PostgreSQL schema upgrades for Git installs (openclaw#202098); e60ea9f test(update): add a Git release upgrade-survivor scenario (openclaw#201956); 2ef6f7b fix(update): build and serve Git releases outside node_modules (openclaw#201917); dbc1aa0 fix: keep the openclaw command and Gateway working after updating a pnpm install (openclaw#201735); f5e7641 fix: Git checkout updates across a schema change no longer end as post-update-failed after the new release starts (openclaw#201600); 2183caf fix: Git checkout updates no longer fail before the new release starts on a schema change or a busy database (openclaw#201463); 47e8649 fix: explain why Doctor cannot restore a scheduled job’s account (openclaw#201550); 8f2cfd4 fix: remove updater-only restrictions from agent maintenance guidance; cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 24cb734 fix: keep carried-over scheduled jobs running after updates (openclaw#200653); d1276e1 feat(doctor): check OpenClaw ID member roles and honor an optional roles default (openclaw#197785); 0a39956 fix: finish updates when another tool reads OpenClaw's databases during the update (openclaw#201330); ea1c9d5 fix(update): settle remounted package publications before admission (openclaw#201336); 66b5212 fix(update): isolate malformed retained-install markers (openclaw#201199); 7e79c83 fix: let the next update finish a killed source checkout update (openclaw#201009); d905d8a fix: let the next update finish a killed update after the machine restarted (openclaw#200994); fdf0c95 fix: let the next update finish a killed update that had already installed the new version (openclaw#200866); 0c19bcd chore(release): close out 2026.11.5 on main (openclaw#200577); a1940e0 fix(matrix): keep explicit recovery available during deferred migration (openclaw#200805); 18b4776 improve: explain package baseline drift during updates (openclaw#200802); 1ad4cad fix(doctor): reclaim macOS updater runtimes blocked by non-updater processes (openclaw#200732); 427c857 fix: keep one missing archived transcript from blocking every update (openclaw#200733); 802e3f7 fix(update): keep valid cold archives from blocking updates (openclaw#200659); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); 3afe212 fix: let Doctor publish unchanged plugin migrations in any order (openclaw#200658); f65e4db fix(doctor): reclaim runtimes blocked by unrelated Linux processes (openclaw#200657); dab086c fix(update): let candidate Doctor read plugin dependencies from the staged package (openclaw#200595); 3447bee fix(update): keep updates going when the predecessor writes during its stop (openclaw#200569); 0ce9c77 fix: let the next update settle a package publication that a killed update left behind (openclaw#200550); ae31ea3 fix(update): repair handoffs in the journal-pinned lease store (openclaw#200532); 74020ea fix: continue updates when initial SQLite capture is stale (openclaw#200328); 6747b1e feat(update): run Git checkout installs from releases behind the release link (openclaw#199706); e3f8a67 fix(state): keep completed retained agent stores out of startup upgrade (openclaw#200284); 3c512c5 fix(gateway): move managed update lease operations off the main thread (openclaw#200169); ea69fcb chore(release): close out 2026.11.4 on main (openclaw#199956); 618bf31 fix(state): bound startup upgrade copies and pruning to owned state (openclaw#199929); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); 5dbf569 fix(update): plugin failures never fail an update or Gateway health; 764761e fix(update): refuse missing host prerequisites in one line and record a cause per attempt; 4c4fef4 fix(ui): update dialog claims installation before progress is confirmed (openclaw#199254); 136e1f6 fix(update): retrying an update from a dev checkout is refused after a killed update (openclaw#198673); 3bd03da fix(update): avoid duplicate database copies while the Gateway is stopped (openclaw#198148); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); e333f7e chore(ci): drop retired test-lines allocation records (3/3) (openclaw#197657); fd6fa47 fix: converge Gateway updates with environment-only service overrides (openclaw#196371); 7cf5e75 fix: clarify split-install updates and blocked Doctor repairs (openclaw#196342); 6ff8c86 fix(update): retain lazy sqlite catalog generation (openclaw#197095); 930e1f7 fix: keep stable updates and recovery free of premature migrations (openclaw#196474); a15f737 fix: preserve external plugin data during update rehearsal (openclaw#196301); 92798ae fix: updates survive interrupted heartbeat runs (openclaw#195656); c1e55e2 fix(update): restore LaunchAgent registration after repair contention (openclaw#195406); 715c610 fix(doctor): repair retained ISO session end timestamps (openclaw#194685); 689cfc8 fix(update): reclaim dead closing triage repair leases (openclaw#194503); 86bc89e fix(doctor): keep standing Codex parameter advice out of retirement blockers (openclaw#193650); 691bc8d fix(backup): read the backup engine without copying the live database (openclaw#194234); 000542f fix(backup): backups and updates fail on slow storage when a header probe batch misses its deadline (openclaw#194239); 31a65d5 fix(update): skip --no-lazy-fetch on Git versions without it (openclaw#194198); e45e99d fix(update): preserve dev update sources in tag-only Git clones (openclaw#193109)

Validation: Baseline2 intended operator-agent failures/32 controls passed; candidate34/34passed (194058-green.log). Accept launches synthetic operator-only CLI with expected env, decline starts nothing. Isolated updater flow, not live systemd/upgrade qualification.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 6689fd575ada8fe40a9593784deac18ec73041cd)
(cherry picked from commit 92e7a9fa223b0dc35801f25f70be90b472d9a6b7)
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. size: M

Projects

None yet

1 participant