Skip to content

refactor(update): retire expired early Git recovery - #205995

Merged
obviyus merged 2 commits into
mainfrom
cut/early-release-recovery
Nov 26, 2026
Merged

obviyus merged 2 commits into
mainfrom
cut/early-release-recovery

Conversation

@obviyus

@obviyus obviyus commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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: 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 (November 25, 00:47:32 UTC) and v2026.11.10 (05:42:47 UTC) as non-prereleases. Both tags' package versions are plain regular final versions.
  • 2026.11.9 release notes describe a focused patch release; 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.
  • 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 is incomplete; the review does not substitute for it.
  • Exact-head hosted CI run 45843501199 completed successfully for 6982048f4cc2f0ad37f9061341b882460e407de4; the PR watchdog then reported GREEN on 6982048.
  • AWS run 16c39b06500a42ca375a66a7ae0477a0 verified source 6982048f4cc2f0ad37f9061341b882460e407de4, passed build:ci-artifacts, unified declarations, and packed-package integrity. It installed published 2026.11.10, then stopped in harness setup before the update because tsx was absent from PATH. This is build/package evidence, not upgrade success. The lease was released.
  • Upgrade proof gap: one corrected AWS run 0fbebb80284e3ebf5b1ff86690870105, lease 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 reporting Writing 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.

- 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.
@clawsweeper

clawsweeper Bot commented Nov 26, 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 size: XL labels Nov 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 26, 2026
- Keep the existing resolver import used by the surviving post-core continuation.
- Do not restore any expired early Git recovery behavior.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Removes 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.

  • Before: The candidate refuses activation and can start a systemd recovery that rebuilds the checkout.
  • After: The candidate no longer provides that special refusal or automatic recovery.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The retirement is coherent and source-reviewed without findings, but required runtime upgrade evidence is not yet supplied.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: The updater still carries an expired exception for a short-lived moving-main installation layout.
Reason: The maintainer-authored direction implements an existing retirement decision and removes the entire exception while preserving supported bridge behavior.

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: 6982048f4cc2f0ad37f9061341b882460e407de4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Complete the planned v2026.11.10-to-head upgrade through the shipped updater, showing the target Gateway serving, a settled update result, and existing settings and data intact.
Agent review details

How this fits together

Older 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 7e75d49 adds src/infra/update-migrated-finalize.worker.ts:76 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7e75d4900ebe; files: src/infra/update-migrated-finalize.worker.ts)

PR surface

Source -1551, Tests -669, Docs -9. Total -2229 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 0 1551 -1551
Tests 3 0 669 -669
Docs 1 0 9 -9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 0 2229 -2229

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: Old moving-main installations lose their special schema refusal and recovery dispatch; this impact is explicitly accepted in the maintainer-authored retirement.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • merge-risk: 🚨 compatibility: Old moving-main installations lose their special schema refusal and recovery dispatch; this impact is explicitly accepted in the maintainer-authored retirement.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Supply the planned stable-upgrade result with preserved settings and data.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 26, 2026, 10:17 AM ET / 15:17 UTC.

@obviyus
obviyus merged commit b125529 into main Nov 26, 2026
148 checks passed
@obviyus
obviyus deleted the cut/early-release-recovery branch November 26, 2026 15:50
@obviyus

obviyus commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
## 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]>
fuller-stack-dev added a commit that referenced this pull request Nov 27, 2026
…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}.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
…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}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant