Skip to content

fix(update): bridge 2026.11.5 updaters - #200662

Merged
steipete merged 1 commit into
mainfrom
codex/update-compat-2026-11-5
Nov 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/update-compat-2026-11-5

Conversation

@steipete

@steipete steipete commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Updates driven by a 2026.11.5 updater can fail with ERR_MODULE_NOT_FOUND on their recovery path when the target is a build from main.

User Impact

2026.11.5 is now npm latest and beta. Users on 2026.11.5 who update to the next release keep a working failure and recovery path: after the package swap, their old updater still finds the chunks it lazily imports, so a failed update stays recoverable instead of crashing mid-recovery.

Why This Change Was Made

2026.11.5 was published to npm on 2026-11-17, but main's update compatibility inventory stops at 2026.11.5-beta.4. Without an inventory entry, builds from main ship no post-swap bridges for 2026.11.5 updaters. This is the same gap previously fixed for 11.2/beta.1 (#195249), 11.3/beta.2 (#197844), beta.3 (#199653) and beta.4 (#200152).

The inventory was regenerated with pnpm update:compat:gen over the full published window (every existing version plus --registry-release 2026.11.5), from integrity-verified npm tarballs. The diff only adds lines: every existing entry is byte-identical. The single addition is 2026.11.5 (77 chunks, commit e13cf15ece9, the v2026.11.5 tag).

Evidence

  • Registry match: npm view [email protected] reports the same dist.integrity and openclaw.schemaVersions (state 36, agent 38) as the new entry. npm records no gitHead; the commit matches the release tag.
  • Bridge requirements: 2026.11.5 requires the same 92 (origin module, exports) imports as 2026.11.5-beta.4, with none added or removed, and main already serves beta.4's set. scripts/runtime-postbuild.mts writes these bridges on every build, so the PR CI build exercises the new entry natively.
  • Reviews: autoreview was scoped-clean at P2. An independent read-only Codex review of the exact head checked additions-only, ordering, parser semantics and beta.4 consistency, and found no defects.
Notes

The inventory has now lagged an npm publish six times (#195249, #196855, #197844, #199653, #200152, and this one). Regenerating it at release cut or publish would close the gap; that remains a maintainer decision.

Separately, the inventory inside the published 2026.11.5 package covers only 2026.9.1 through 2026.10.9. Updaters from 10.10 through 11.4, and the 11.5 betas, that target 2026.11.5 therefore have no post-swap bridges on their failure path. Fixing that needs a release-branch regeneration, which this main PR does not change.

@clawsweeper

clawsweeper Bot commented Nov 17, 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 scripts Repository scripts size: XL labels Nov 17, 2026
@steipete
steipete marked this pull request as ready for review November 17, 2026 15:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T15:25:36.566683Z 7d9bcfa Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds the published 2026.11.5 release to the inventory that generates compatibility bridges for already-running updaters.

Example: A 2026.11.5 updater reaches failure recovery after replacing its package with a build from main.

  • Before: Its lazy import of update-command-failure-recovery-sPj_v2Xk.mjs can fail because that historical filename is absent.
  • After: Postbuild emits the recorded filename as a bridge to verifyUpdateFailureRecovery.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused generated-data repair has no identified correctness defect, but its changed recovery behavior lacks shipped-entry-point proof; no persisted user format or migration changes.
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: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A failed update started by the published 2026.11.5 updater can crash while attempting recovery.
Reason: The addition restores the established post-swap compatibility contract, and maintainer-authored direction needs no further product approval.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR supplies missing stable-updater compatibility coverage without an identified patch defect; the same entry also appears in the open release-closeout PR.

Priority: P1
Reviewed head: 7d9bcfa68f44b84feb3e9de0ab14ffa289e9ba64

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply redacted terminal output or logs showing the shipped 2026.11.5 CLI updating to the candidate and completing post-swap failure recovery with settings and data intact; no base-failing/head-passing demonstration is supplied.
Agent review details

How this fits together

Runtime postbuild reads historical release imports from the inventory and generates module bridges to current implementations for use after package replacement.

flowchart LR
  A[Published release imports] --> B[Compatibility inventory]
  B --> C[Runtime postbuild]
  D[Current implementation exports] --> C
  C --> E[Packaged module bridges]
  F[Running stable updater] --> E
  E --> G[Recovery implementation]
Loading

Technical review

Best possible solution:

Retain the generated stable-release entry and let the existing postbuild owner supply the historical updater bridges.

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

Source establishes missing historical filenames and the production bridge-generation path; no shipped updater reproduction was run during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete repair through the established inventory owner, with no new runtime machinery or unrelated changes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2c1f967bc1dc.

Provenance checked

  • Release-specific updater compatibility inventory keeps the original intent (05bf4e0: Preserve imports made by already-running updaters after installation replacement, using integrity-verified release artifacts.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ad678e5 adds scripts/lib/update-compat-inventory.json:35947 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ad678e593841; files: scripts/lib/update-compat-inventory.json)
  • Dallin Romney: Raw commit ea69fcb adds scripts/lib/update-compat-inventory.json:27066 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ea69fcbb62f6; files: scripts/lib/update-compat-inventory.json)

PR surface

Other +1871. Total +1871 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1871 0 +1871
Total 1 1871 0 +1871

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 P1: The latest stable updater can lose its failure-recovery imports after package replacement when targeting a main-derived build.
  • 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:

  • P1: The latest stable updater can lose its failure-recovery imports after package replacement when targeting a main-derived build.
  • 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.

  • Provide the stable-updater recovery trace described in the proof assessment.

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 17, 2026, 10:40 AM ET / 15:40 UTC.

@steipete
steipete merged commit 350c9f1 into main Nov 17, 2026
246 of 252 checks passed
@steipete
steipete deleted the codex/update-compat-2026-11-5 branch November 17, 2026 15:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

RomneyDa added a commit that referenced this pull request Nov 17, 2026
Co-authored-by: Peter Steinberger <[email protected]>

(cherry picked from commit 350c9f1)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
RomneyDa added a commit that referenced this pull request Nov 19, 2026
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 350c9f1)

Release adaptation: none. Companion disposition: #200659 projects cold archive payloads and #200733 preserves missing payload warnings; #200662 retains the stable 11.5 upgrade bridge; #200786 keeps controlled npm install environment.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 67c71dddf43d6e4ebd6e45d438706ece0742bba6)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix(update): include cold archives in candidate snapshots

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

* fix(update): preserve file archives in rehearsal snapshots

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

* fix(update): preserve source WAL state during archive inventory

Classify cold archive SQL under its existing candidate-state subprocess owner. Preserve incomplete WAL source families so header inspection retains private cleanup custody.

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

---------

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 802e3f7)

Release adaptation: none. Companion disposition: #200659 projects cold archive payloads and #200733 preserves missing payload warnings; #200662 retains the stable 11.5 upgrade bridge; #200786 keeps controlled npm install environment.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 7384191252d0eb5c3add0e64ff9402d4afa55886)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
…200733)

One archived (cold) transcript file that was already missing from live state no longer blocks every update: the rehearsal snapshot keeps it missing, reports a warning, and only a Doctor repair that reads that archive fails, as it would on live state. Dangling or unreachable links count as missing. On Windows the rehearsal always copies archives instead of hard-linking them, because removing a hard link on a filesystem without POSIX delete (for example an SMB share) clears the live file's read-only attribute.

Follow-up to #200659. Refs #200594.

Proof: 11.4 -> main with one missing archive refused at snapshot inventory (ENOENT); 11.4 -> fix succeeded over CLI and managed update.run with the warning. Native Windows Server 2025 probe confirmed the SMB read-only attribute loss through a hard link and none with a copy.
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 427c857)

Release adaptation: none. Companion disposition: #200659 projects cold archive payloads and #200733 preserves missing payload warnings; #200662 retains the stable 11.5 upgrade bridge; #200786 keeps controlled npm install environment.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit badc5c39bc62a5573ab1f8d73a5233cd0b85a3a4)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
…#200786)

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 9107009)

Release adaptation: none. Companion disposition: #200659 projects cold archive payloads and #200733 preserves missing payload warnings; #200662 retains the stable 11.5 upgrade bridge; #200786 keeps controlled npm install environment.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit fc54a13ecebe318ca0126947193bb66700018d2f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts 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