Repository navigation
fix(release): admit 2026.9.7 recovery helper and plugin scan inventory - #160717
Conversation
|
🦞👀 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. |
Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by #158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as #155877 did for the sqlite-store worker. Every main-based FRV since #158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test #156334, signal socket probe count after #159648) in the current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
b9dac3f to
afdc234
Compare
|
Codex review: blocked before merge. Reviewed September 28, 2026, 5:32 PM ET / 21:32 UTC. ClawSweeper reviewWhat this changesRelease tooling permits the sealed npm-update recovery bundle under its larger size limit and registers reviewed 2026.9.7 plugin scan findings, with focused test changes. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. Current main lacks the 2026.9.7 release-tooling admissions, and the PR reports a successful real tarball check and plugin scan. One verifier gap remains: the recovery helper gains an import-scan exemption without coverage from the separate artifact import guard. Priority: P2 Review scores
Verification
How this fits togetherFull Release Validation checks an installed npm tarball and scans packed official plugins before qualifying a release. The package verifier checks artifact contents, while the plugin scanner compares findings with release-specific inventories. flowchart LR
A[Release tarball] --> B[Installed package verifier]
B --> C[Size and import checks]
D[Packed plugins] --> E[Plugin security scan]
E --> F[Reviewed release inventory]
C --> G[Release qualification]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +16, Other +26. Total +42 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Add a bounded import-closure check for the sealed recovery artifact while retaining its 80 MiB size allowance and the frozen historical plugin inventories. Do we have a high-confidence way to reproduce the issue? Yes, from source and the reported Full Release Validation error: current main applies the 6 MiB root-dist limit to the sealed helper. I did not execute the release check in this read-only review. Is this the best way to solve the issue? Partly. The size allowance and release-specific inventory follow existing tooling patterns, but the helper needs import-closure coverage before its installed-source scan is skipped. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a46cde88785d. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
openclaw#160717) fix(release): admit 2026.9.7 recovery helper and plugin scan inventory Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by openclaw#158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as openclaw#155877 did for the sqlite-store worker. Every main-based FRV since openclaw#158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test openclaw#156334, signal socket probe count after openclaw#159648) in the current inventory, and map release/2026.9.7 to it, as openclaw#153372 did for 9.6.
What Problem This Solves
Fixes: Full Release Validation fails "Check npm package contents" and "plugin-npm-security-scan" when validating 2026.9.7 (FRV parent 36466521174).
User Impact
User impact: no runtime change. Release operators can qualify 2026.9.7: the installed-package verifier accepts the sealed package-update recovery helper, and the plugin security scan has a reviewed inventory for
release/2026.9.7.Why This Change Was Made
dist/package-update-activation-recovery.mjs(fix: recover interrupted npm package updates #158491) is a ~66 MB sealed, self-contained bundle (alwaysBundlefor every non-builtin, built byscripts/lib/managed-handoff-build-config.mts). The verifier applied the 6 MiB root-dist cap to it, sorelease-checkfailed withinstalled package root dist file 'package-update-activation-recovery.mjs' is invalid or exceeds 6291456 bytes.The fix adds it to the self-contained bundle set (80 MiB cap, no reparse), the same route fix(release): allow the sqlite-store worker bundle its self-contained size #155877 took for the sqlite-store worker. Every main-based FRV artifact run since fix: recover interrupted npm package updates #158491 (for example 36426750111, 36446409284, 36475382668) failed on this line. Follow-up worth considering: the helper's import graph pulls most of the Gateway throughupdate-command-executor; the managed handoff helper built by the same config is 2.3 MB.FROZEN_RELEASE_SECURITY_INVENTORY_POLICIESstopped atrelease/2026.9.6, so every reviewed finding was unexpected for 9.7. The 9.6 counts are now frozen, and four post-9.6 findings are recorded in the current inventory. All four are in test files: the Codex auth-refresh harness spawn, the Feishu proxy env test, the iMessage client test (fix(imessage): stop routing benign Apple framework stderr to ERROR #156334), and the Signal socket probe count after test(protocol,workboard,channels,memory,ai): remove low-value tests (batch d066) #159648.release/2026.9.7now maps to the current inventory, the same route fix(release): recognize the reviewed 2026.9.6 plugin inventory #153372 took for 9.6.Evidence
node scripts/run-vitest.mjs test/openclaw-npm-postpublish-verify.test.ts: 182/182 pass. Without the verifier change, the new case fails with the exact FRV error.node scripts/run-vitest.mjs test/scripts/plugin-npm-security-scan.test.ts: 44/44 pass.release/2026.9.7(layout=current) and with main's default target.scripts/release-check.ts --tarballfrom this branch, run against the FRV-producedopenclaw-2026.9.7.tgz(npm producer 36475653358) with the release checkout at b211b21, passes end to end (final npm tarball contents and installed runtime look OK, 11.5 min locally). The unpacked-size budget stays a CI warning (370.2 MiB against 320 MiB), mostly from this helper.