Repository navigation
refactor(update): retire expired early Git recovery - #205995
Conversation
- Remove the moving-main November 17–19 recovery exception after the documented stable-release expiry. - Remove its finalize-worker readers, layout check, recovery runner, obsolete tests, and update guide section. - Regular stable v2026.11.10 is on npm latest; v2026.11.9 and v2026.11.10 are non-prerelease releases.
|
🦞👀 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. |
- Keep the existing resolver import used by the surviving post-core continuation. - Do not restore any expired early Git recovery behavior.
|
Codex review: passed. What this changesRemoves the expired recovery exception for Git installations running moving-main builds from November 17–19. Example: A November 17 Git updater checks a candidate that requires a database migration.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored PR follows the documented retirement cutoff and removes the temporary recovery path completely; no definite code defect was found. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherOlder installed updaters invoke the candidate's finalize worker to inspect capabilities and finish activation; this PR removes its early-Git exception while preserving normal checks, Doctor delegation, and post-core finalization. flowchart TD
A[Installed updater] --> B[Candidate finalize worker]
B --> C[Capability check]
B --> D[Normal finalization]
B --> E[Delegated Doctor and post-core work]
D --> F[Update result and Gateway restart]
Technical reviewBest possible solution: Complete the documented retirement while preserving the shipped finalize-worker contracts and validating the surviving stable-upgrade path. Do we have a high-confidence way to reproduce the issue? This is a retirement refactor rather than a bug report; current main still contains the specifically identified exception. Is this the best way to solve the issue? Deleting the exception and its sole external reader is the smallest complete retirement, with no replacement owner or compatibility shim needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f3bd14b7f7e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1551, Tests -669, Docs -9. Total -2229 across 10 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 10:17 AM ET / 15:17 UTC. |
|
Landed as b125529. Deletes the early-release recovery path (-1,551 production lines). Its documented condition, 'until the first regular stable cut after v2026.11.8', is met: 2026.11.9 and 2026.11.10 are regular stable releases on npm latest. The fleet snapshots show no recovery in flight. Proof: 70 focused finalize and post-core tests, CI green on the exact head, and a clean review. The upgrade run from 2026.11.10 did not complete, for harness reasons named in the body. |
## What Problem This Solves Update maintenance still carries a temporary recovery path for moving-`main` Git installations from November 17–19. Its documented expiry was the first regular stable release after `v2026.11.8`; that release has shipped. ## User Impact Published-release update paths are unchanged. The obsolete early Git layout no longer receives its special schema refusal or automatic systemd rebuild recovery. No flags, state, formats, or replacement code paths are added. Accepted edge case: an untracked moving-`main` host with an old recovery still in flight when it pulls this head can lose that recovery's finishing dispatch. The tracked fleet's November 26 daily snapshots show no early-release recovery or retained recovery runner. This removes repository code, not any installation's retained files. ## Why This Change Was Made Retire the exception fully rather than keep a shim: delete its layout/schema inspection, systemd recovery starter and runner, readiness loop, ledger/lock helper, finalize-worker readers, obsolete tests, and expired updating-guide section. The normal finalize worker and its remaining checks stay in place. `src/update` is unchanged. Net production change: **−1,551 lines** (0 added against the base). Tests: **−669 lines**. Documentation: **−9 lines**. Total: **−2,229 lines**. ## Evidence - [Release-channel contract](https://github.com/openclaw/openclaw/blob/b09b8a3e12a2f0374889ca69e1b6563e8e14cf5c/docs/reference/RELEASING.md#release-channels): regular stable uses npm `latest`; regular patch numbers are below 33, while extended-stable starts at 33. - `npm view openclaw dist-tags --json` returned `latest: 2026.11.10`, `beta: 2026.11.10`, `extended-stable: 2026.10.34`. A final can also be on beta; that does not undo its stable publication. - GitHub reports both [v2026.11.9](https://github.com/openclaw/openclaw/releases/tag/v2026.11.9) (November 25, 00:47:32 UTC) and [v2026.11.10](https://github.com/openclaw/openclaw/releases/tag/v2026.11.10) (05:42:47 UTC) as non-prereleases. Both tags' package versions are plain regular final versions. - [2026.11.9 release notes](https://docs.openclaw.ai/releases/2026.11.9) describe a focused patch release; [2026.11.10](https://docs.openclaw.ai/releases/2026.11.10) has regular public release notes. At least v2026.11.10 conclusively satisfies the documented expiry after v2026.11.8. - Before deletion, LSP references for every exported recovery symbol and repository-wide module-import search identified the sole external production reader: `update-migrated-finalize.worker.ts` (static early-layout imports, recovery dispatch, and `--check` starter). Other readers were within the deleted recovery modules and their tests. Those readers were removed first. LSP uses the primary checkout's index; the import search checked this exact worktree. - Fleet snapshot inspection: four `update-status.json` files and the available `trial.json`/`restore.json` files, six files in total, from the November 26 daily fleet snapshots. No matches for early-release/early-Git recovery, its transient systemd unit, retained recovery path, backup unit marker, or dispatch flag. General recovery artifacts in those snapshots belong to other update/Doctor paths. These snapshots are evidence only for tracked hosts at capture time, not a live global census. - `ocx test` (vitest-source) passed once on this head: **6 files, 70 tests**, covering finalize-worker output, compiled `--check` capabilities, post-core admission in an actual child process, post-core root binding, result publication, and failure propagation. Builds/lint are left to CI. A separate published `2026.11.10` upgrade through the existing survivor lane is being run on isolated AWS. - Local review round 1 found that the package-root resolver import also serves the retained post-core continuation. Commit `6982048f4cc2f0ad37f9061341b882460e407de4` restores that existing import; no retired behavior was restored. Round 2 on this exact head completed with **patch is correct**, **zero findings**, and security cleared. Runtime upgrade proof remains unrun; the review does not substitute for it. Co-authored-by: Ayaan Zaidi <[email protected]>
…ma update (#206341) * fix(update): refuse schema changes the 2026-11-17 main Git updater cannot finish Restore the candidate --check refusal retired in #205995, without the systemd recovery: identify the early release layout, refuse only when this release would migrate state, and print the platform's one-time rebuild. * fix(update): remove the early release link in the printed rebuild On current main, openclaw gateway install binds the service to the early updater's launcher while its release link exists, so the rebuilt Gateway never started. Remove the link after the build, spelled from $HOME so the early updater's path redaction leaves it usable. * fix(update): require the state directory before the rebuild changes anything * fix(update): put the early release link back when the rebuild's service install fails * fix(update): keep the rebuild's shell variable out of the OPENCLAW_ namespace * fix(update): keep the printed rebuild intact through the early updater's redaction The early updater redacts $ followed by 16 or more name characters as a Matrix event ID, which turned the line's restore variable into a placeholder. Use a short variable and ${OPENCLAW_STATE_DIR}.
…ma update (openclaw#206341) * fix(update): refuse schema changes the 2026-11-17 main Git updater cannot finish Restore the candidate --check refusal retired in openclaw#205995, without the systemd recovery: identify the early release layout, refuse only when this release would migrate state, and print the platform's one-time rebuild. * fix(update): remove the early release link in the printed rebuild On current main, openclaw gateway install binds the service to the early updater's launcher while its release link exists, so the rebuilt Gateway never started. Remove the link after the build, spelled from $HOME so the early updater's path redaction leaves it usable. * fix(update): require the state directory before the rebuild changes anything * fix(update): put the early release link back when the rebuild's service install fails * fix(update): keep the rebuild's shell variable out of the OPENCLAW_ namespace * fix(update): keep the printed rebuild intact through the early updater's redaction The early updater redacts $ followed by 16 or more name characters as a Matrix event ID, which turned the line's restore variable into a placeholder. Use a short variable and ${OPENCLAW_STATE_DIR}.
What Problem This Solves
Update maintenance still carries a temporary recovery path for moving-
mainGit installations from November 17–19. Its documented expiry was the first regular stable release afterv2026.11.8; that release has shipped.User Impact
Published-release update paths are unchanged. The obsolete early Git layout no longer receives its special schema refusal or automatic systemd rebuild recovery. No flags, state, formats, or replacement code paths are added.
Accepted edge case: an untracked moving-
mainhost with an old recovery still in flight when it pulls this head can lose that recovery's finishing dispatch. The tracked fleet's November 26 daily snapshots show no early-release recovery or retained recovery runner. This removes repository code, not any installation's retained files.Why This Change Was Made
Retire the exception fully rather than keep a shim: delete its layout/schema inspection, systemd recovery starter and runner, readiness loop, ledger/lock helper, finalize-worker readers, obsolete tests, and expired updating-guide section. The normal finalize worker and its remaining checks stay in place.
src/updateis unchanged.Net production change: −1,551 lines (0 added against the base). Tests: −669 lines. Documentation: −9 lines. Total: −2,229 lines.
Evidence
latest; regular patch numbers are below 33, while extended-stable starts at 33.npm view openclaw dist-tags --jsonreturnedlatest: 2026.11.10,beta: 2026.11.10,extended-stable: 2026.10.34. A final can also be on beta; that does not undo its stable publication.update-migrated-finalize.worker.ts(static early-layout imports, recovery dispatch, and--checkstarter). Other readers were within the deleted recovery modules and their tests. Those readers were removed first. LSP uses the primary checkout's index; the import search checked this exact worktree.update-status.jsonfiles and the availabletrial.json/restore.jsonfiles, six files in total, from the November 26 daily fleet snapshots. No matches for early-release/early-Git recovery, its transient systemd unit, retained recovery path, backup unit marker, or dispatch flag. General recovery artifacts in those snapshots belong to other update/Doctor paths. These snapshots are evidence only for tracked hosts at capture time, not a live global census.ocx test(vitest-source) passed once on this head: 6 files, 70 tests, covering finalize-worker output, compiled--checkcapabilities, post-core admission in an actual child process, post-core root binding, result publication, and failure propagation.6982048f4cc2f0ad37f9061341b882460e407de4restores that existing import; no retired behavior was restored. Round 2 on this exact head completed with patch is correct, zero findings, and security cleared. Runtime upgrade proof is incomplete; the review does not substitute for it.6982048f4cc2f0ad37f9061341b882460e407de4; the PR watchdog then reported GREEN on 6982048.6982048f4cc2f0ad37f9061341b882460e407de4, passedbuild:ci-artifacts, unified declarations, and packed-package integrity. It installed published2026.11.10, then stopped in harness setup before the update becausetsxwas absent from PATH. This is build/package evidence, not upgrade success. The lease was released.cbx_eecbee6a3f2e, checked out the exact PR head with the runner PATH and registry prerequisite corrected. Its build and unified declarations passed, but packaging did not complete after more than 20 minutes, last reportingWriting OpenClaw package inventory. The bounded retry was stopped and its lease released without reaching the update. No successful stable-to-head update or serving-head readiness is claimed. No further harness retries or production patches were made; maintainer direction accepts this gap for this deletion, with green exact-head CI, clean review, and the 70 focused tests.