Skip to content

fix(update): record compatibility for the 2026.9.6 release - #156873

Merged
vincentkoc merged 1 commit into
mainfrom
fix/update-compat-node-bootstrap-20260924
Sep 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/update-compat-node-bootstrap-20260924

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Related: #45233
Related: #145335, #152411

What Problem This Solves

update:compat:gen rejects 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

  • Reproduced the original refusal against the official 2026.9.6 npm archive, verified against its SHA-512 integrity and release source identity. Canonical generation and check now pass with 39 recorded chunks; combined-inventory validation preserves the existing 9.1–9.5 records.
  • Exact-tree Linux proof: 134 postbuild cases and 12 external-binding cases passed, no skips. Includes the emitted bootstrap plus a literal hashed edge and 16 refusal variants, including loop and arrow shadowing.
  • Scoped lint: zero warnings/errors. Both existing scripts and root-test type graphs passed. Independent source review and autoreview are clean.
  • Normal CI 35938629217, attempt 1 passed on head 3aace2ad (108 passed jobs, 18 skipped). The actual tested merge was 2086be5c, combining this head with main a5f1d099.
  • Measured test cost: the complete test/scripts/runtime-postbuild.test.ts file passed 134 cases with node scripts/run-vitest.mjs test/scripts/runtime-postbuild.test.ts --maxWorkers=1 in 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.
  • Full build and installed-upgrade behavior are not claimed here; adding the generated inventory to a candidate still requires its own build and upgrade proof. The original proof lease finished cleanup; the separate timing lease was released with cleanup still pending at its retained observation.

@vincentkoc vincentkoc self-assigned this Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review September 24, 2026 00:29
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review exact head 3aace2adf94b85461724d38eaa50072ba2ac8517. The body records the authenticated 2026.9.6 generator/check result, unchanged packaging boundary, 146 passing focused cases, and scoped lint/type proof.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 8:36 PM ET / September 24, 2026, 00:36 UTC.

ClawSweeper review

What this changes

Extend the release compatibility recorder to recognize the 2026.9.6 updater’s package-root Node recovery import while rejecting other dynamic import forms.

Regression provenance

Regression provenance — verified: source commit 97c7b3593392 by Jason (Json); canonical PR #145335 (blame-to-merge-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
Reviewed head: 3aace2adf94b85461724d38eaa50072ba2ac8517

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused recorder repair has release-source support and useful boundary coverage; its test cost still needs to be recorded.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored tooling PR is exempt from the contributor proof gate. Its body reports a Linux generator/check run on the integrity-verified 2026.9.6 npm package with 39 chunks; candidate upgrade behavior belongs to the later inventory refresh, and this PR changes no stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored tooling PR is exempt from the contributor proof gate. Its body reports a Linux generator/check run on the integrity-verified 2026.9.6 npm package with 39 chunks; candidate upgrade behavior belongs to the later inventory refresh, and this PR changes no stored-data contract.
Evidence reviewed 10 items Published import contract: The 2026.9.6 release source resolves the executing module’s package root and dynamically imports node-runtime-recovery.mjs from it.
Current-main failure path: Main rejects nonliteral post-swap imports unless they match the older source-script exception, which does not include the Node recovery owner.
Introduced repair: The pinned PR delta adds a narrowly shaped exception for the published package asset and retains refusal of unknown nonliteral imports.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Resolve merge risk (P1) - The PR does not state the new test cases’ measured single-worker wall time or CI seconds, so the repository test-cost requirement remains unchecked.
  • Complete next step (P2) - Add the focused test file’s measured single-worker wall time to the PR body, and add its CI seconds when the exact-head run completes.
Agent review details

Security

None.

PR surface

Tests +73, Other +75. Total +148 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 73 0 +73
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 105 30 +75
Total 3 178 30 +148

Review metrics

Metric Value Why it matters
Production versus test growth tooling +75 net lines, tests +73 net lines The tooling growth recognizes one published package asset; product runtime code does not grow.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

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

Labels

Label changes:

  • add P2: The recorder blocks preparation of compatibility data for the latest published package, with a bounded tooling repair and no changed product runtime.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: The recorder blocks preparation of compatibility data for the latest published package, with a bounded tooling repair and no changed product runtime.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4abf0cc adds scripts/lib/update-compat-source-imports.mts:65 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4abf0cc462d7; files: scripts/lib/update-compat-source-imports.mts)
  • Jason (Json): Raw commit 97c7b35 adds src/cli/update-cli/update-command-node-runtime-resolution.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 97c7b3593392; files: src/cli/update-cli/update-command-node-runtime-resolution.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit 0580bd9 into main Sep 24, 2026
216 checks passed
@vincentkoc
vincentkoc deleted the fix/update-compat-node-bootstrap-20260924 branch September 24, 2026 00:52
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant