Skip to content

fix(release): admit 2026.9.7 recovery helper and plugin scan inventory - #160717

Merged
steipete merged 1 commit into
mainfrom
fix/release-9-7-tooling-admissions
Sep 28, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/release-9-7-tooling-admissions

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

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

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.
  • Real scan: 98 candidate plugin packages packed at release SHA b211b21 pass with release/2026.9.7 (layout=current) and with main's default target.
  • Real verifier: the full scripts/release-check.ts --tarball from this branch, run against the FRV-produced openclaw-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.
  • Codex autoreview: scoped-clean.

@steipete steipete added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 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: S labels Sep 28, 2026
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.
@steipete
steipete force-pushed the fix/release-9-7-tooling-admissions branch from b9dac3f to afdc234 Compare September 28, 2026 21:23
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:32 PM ET / 21:32 UTC.

ClawSweeper review

What this changes

Release 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
Reviewed head: afdc2349642639f315adf8b70c5f0affa70908d3

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Real release-tooling proof is useful, but the package-verification exemption leaves a concrete guard gap.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.
Evidence reviewed 6 items Introduced package exemption: The PR adds the root recovery helper to the self-contained path set. Files in that set return a null source, so the installed dependency scan skips their imports.
Existing artifact guard scope: The separate closure guard derives entrypoints under dist/worker and does not include the root dist recovery helper.
Release inventory change: The branch freezes the prior optional finding counts, adds four exact test-file findings, and registers the 2026.9.7 target.
Findings 1 actionable finding [P2] Guard the recovery bundle's imports before exempting it
Security None None.

How this fits together

Full 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
Loading

Before merge

  • Guard the recovery bundle's imports before exempting it (P2) - This addition makes the installed dependency verifier return source: null for the root recovery bundle, while the separate import guard only covers dist/worker. A helper over 6 MiB that retains import "missing-package" can therefore pass package qualification and fail when recovery is needed. Add bounded artifact import-closure coverage and a negative case before granting this exemption.
  • Resolve merge risk (P1) - Release qualification could accept a large recovery helper with an unresolved external import: the installed verifier skips its imports, and the separate artifact guard does not inspect its root dist path.
  • Complete next step (P2) - Before merge, check the sealed recovery helper's import closure through the release path and prove rejection of an unresolved external import.

Findings

  • [P2] Guard the recovery bundle's imports before exempting it — scripts/openclaw-npm-postpublish-verify.ts:99
Agent review details

Security

None.

PR surface

Tests +16, Other +26. Total +42 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 26 10 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 28 2 +26
Total 4 54 12 +42

Review metrics

Metric Value Why it matters
Release inventory targets 1 target added, 1 prior target frozen The 2026.9.7 scan can recognize its reviewed findings without changing the prior release's optional counts.

Merge-risk options

Maintainer options:

  1. Check the sealed artifact (recommended)
    Verify the recovery helper's import closure before package admission and add a negative artifact case for an unresolved import.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add a bounded import-closure check for dist/package-update-activation-recovery.mjs and a negative artifact test for an unresolved external import; retain the 80 MiB allowance and frozen release inventories.

Technical review

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

  • [P2] Guard the recovery bundle's imports before exempting it — scripts/openclaw-npm-postpublish-verify.ts:99
    This addition makes the installed dependency verifier return source: null for the root recovery bundle, while the separate import guard only covers dist/worker. A helper over 6 MiB that retains import "missing-package" can therefore pass package qualification and fail when recovery is needed. Add bounded artifact import-closure coverage and a negative case before granting this exemption.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a46cde88785d.

Labels

Label changes:

  • add P2: This is a bounded release qualification failure with no claimed runtime change.
  • add merge-risk: 🚨 automation: The introduced exemption can let package validation report success without checking the recovery helper's imports.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded release qualification failure with no claimed runtime change.
  • merge-risk: 🚨 automation: The introduced exemption can let package validation report success without checking the recovery helper's imports.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports that the changed verifier passed a full release-check on the 2026.9.7 tarball and that the changed inventory admitted 98 real packed plugin packages. Those after-fix release-entrypoint results support the requested admission; the separate unresolved-import case remains a patch finding. No stored-data contract changes.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs test/openclaw-npm-postpublish-verify.test.ts.
  • [P1] node scripts/run-vitest.mjs test/scripts/check-cli-bootstrap-imports.test.ts.
  • [P1] git diff --check.

What I checked:

  • Introduced package exemption: The PR adds the root recovery helper to the self-contained path set. Files in that set return a null source, so the installed dependency scan skips their imports. (scripts/openclaw-npm-postpublish-verify.ts:99, afdc23496426)
  • Existing artifact guard scope: The separate closure guard derives entrypoints under dist/worker and does not include the root dist recovery helper. (scripts/check-cli-bootstrap-imports.mts:26, a46cde88785d)
  • Release inventory change: The branch freezes the prior optional finding counts, adds four exact test-file findings, and registers the 2026.9.7 target. (scripts/lib/plugin-npm-security-scan.mts:285, afdc23496426)
  • Current-main need: The pinned main verifier's self-contained set does not contain the recovery helper; the introduced diff also shows no 2026.9.7 scanner policy on main. (scripts/openclaw-npm-postpublish-verify.ts:94, a46cde88785d)
  • Reported real release proof: The captured PR body reports a scan of 98 packed plugin packages at release SHA b211b21 and a full release-check --tarball against the 2026.9.7 artifact, ending with the installed-runtime success message. This proves the stated admission scenario, not the missing negative import case.
  • Relevant merged history: Recent history includes the prior self-contained worker size exception and release verifier work; history is routing context, not proof of who introduced the current gap. (scripts/openclaw-npm-postpublish-verify.ts, f6e970fc545c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Add bounded import-closure coverage for the sealed helper and show that an unresolved external import is rejected.

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.

@steipete
steipete merged commit b779775 into main Sep 28, 2026
156 checks passed
@steipete
steipete deleted the fix/release-9-7-tooling-admissions branch September 28, 2026 21:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant