Repository navigation
fix(update): record compatibility for the 2026.9.6 release - #156873
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 23, 2026, 8:36 PM ET / September 24, 2026, 00:36 UTC. ClawSweeper reviewWhat this changesExtend the release compatibility recorder to recognize the 2026.9.6 updater’s package-root Node recovery import while rejecting other dynamic import forms. Regression provenanceRegression provenance — verified: source commit Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main still rejects the published 2026.9.6 import, and the earlier merged compatibility work covers different release forms. This PR remains a distinct, useful repair. Priority: P2 Review scores
Verification
How this fits togetherThe compatibility recorder reads compiled updaters from published OpenClaw packages and records the dist chunks a future package must preserve. Candidate postbuild uses that inventory to keep older updaters working after replacement. flowchart LR
A[Published package] --> B[Compatibility recorder]
B --> C{Import form}
C -->|Known package asset| D[Skip package asset]
C -->|Hashed dist chunk| E[Record chunk origins]
C -->|Unknown dynamic import| F[Refuse recording]
E --> G[Release inventory]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +73, Other +75. Total +148 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the exception limited to the verified package-root asset, then refresh the 2026.9.6 inventory in the separate release change with a published-updater-to-candidate upgrade check. Do we have a high-confidence way to reproduce the issue? Yes, from source: the published updater has a package-root dynamic import that main’s recorder refuses for that owner. This read-only review did not run the generator. Is this the best way to solve the issue? Yes. Extending the existing recorder for the exact shipped form is narrower than changing updater behavior, and the added cases check both acceptance and refusal at the recorder boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a5f1d0996a1f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit 0580bd9)
…56873) Co-authored-by: Vincent Koc <[email protected]>
Related: #45233
Related: #145335, #152411
What Problem This Solves
update:compat:genrejects the official 2026.9.6 package because its updater imports the package-root Node recovery bootstrap dynamically. That asset is outside the hashed dist bridge graph.User Impact
Maintainers can record compatibility imports from the published 2026.9.6 package. This change does not alter the installed updater or its recovery behavior.
Why This Change Was Made
Teach the existing AST recognizer the exact published contract: a direct awaited const import of
node-runtime-recovery.mjs, rooted in the executing module's package. Require the preceding same-block const root binding; reject target/CWD roots, mutable or shadowed bindings, alternate paths, and import options. Existing source-script handling, unknown-import refusals, and literal hashed-edge recording remain covered.The recorder gains 75 net tooling lines and 73 test lines; product runtime is unchanged. The generated 9.6 inventory is separate from this PR. Normal postbuild uses the unchanged bridge writer and checked-in inventory, so this recorder-only change does not change packaged output.
Evidence
3aace2ad(108 passed jobs, 18 skipped). The actual tested merge was2086be5c, combining this head with maina5f1d099.test/scripts/runtime-postbuild.test.tsfile passed 134 cases withnode scripts/run-vitest.mjs test/scripts/runtime-postbuild.test.ts --maxWorkers=1in 7.242s command wall on Linux, 2 vCPU, 7.6GiB RAM, Node 24.19.0 and Vitest 5.0.1. Its report file interval was 2.763s. In normal CI, the file passed 134 cases in 3.358s within the existing two-worker group; the whole two-group job took 608s including setup. These are observed costs, not a before/after speed comparison. This supplies both measured-cost items in the exact-head review.