Skip to content

fix(release): seal exact plugin artifacts in FRV - #164464

Merged
RomneyDa merged 5 commits into
mainfrom
openclaw/fix-plugin-security-scan-release-blockers
Oct 3, 2026
Merged

RomneyDa merged 5 commits into
mainfrom
openclaw/fix-plugin-security-scan-release-blockers

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Related: #164440

What Problem This Solves

Full Release Validation repeatedly blocked releases because Plugin Prerelease scanned raw repository packs and mistook source-only tests and fixtures for publication risk. Release Prepare then rebuilt plugin npm artifacts after FRV, so passing FRV did not seal the bytes that publication would consume.

User Impact

FRV now packs, qualifies, and security-scans the exact selected plugin npm tarballs. Its terminal manifest records their immutable producer/artifact descriptor, and Release Prepare adopts those bytes rather than repacking them. Source-only fixtures no longer affect release qualification; package-owned fixture leakage and new critical runtime findings still block.

Why This Change Was Made

  • Removes the 1,500-line source-tree scanner, supplemental packer/runner, release-specific fixture inventories, and its duplicate Plugin Prerelease jobs.
  • Runs a compact security gate after the real final packaging/runtime qualification and before immutable artifact upload.
  • Scans package runtime, extensionless and directories.bin executables, and vendored dependency runtime. Dependency tests, declarations, docs, examples, and benchmarks are outside the plugin-runtime policy boundary.
  • Keeps reviewed production findings in shrink-only inventories. Plugin allowances are bound to mutually exclusive source/dist/setup layouts; dependency allowances are shared by dependency path rather than copied per plugin.
  • Makes all-group FRV require the exact plugin artifact descriptor before passing and preserves it through the authenticated manifest.
  • Makes Release Prepare dispatch only the remaining ClawHub preparation and validate/adopt the FRV plugin npm descriptor throughout recovery and sealing.

Evidence

  • Real publication path: packed and scanned all 96 publishable plugin npm tarballs; 96/96 passed under the final policy.
  • pnpm test test/scripts/plugin-npm-security-scan.test.ts test/scripts/verify-plugin-npm-published-runtime.test.ts --maxWorkers=1 — 45 passed.
  • Actual validated-request handoff: the selected-plugin publication flow passed and produced plugin_npm_preflight.required=true with the exact selected roster.
  • Publication identity boundary: 9/9 focused transport cases passed after removing an adjacency-only test assumption found by CI.
  • FRV/Release Ready focused suites — 304 passed in 92.57s.
  • Extended-stable workflow suite — 64 passed in 14.06s; the immutable release-ci/* transport test executes the embedded admission policy and verifies exact tooling ancestry argument order.
  • Package Acceptance workflow suite — 567 unaffected cases passed; two stale changed-contract fixtures failed, were corrected, and both focused reruns passed.
  • pnpm check:workflows — passed with the supported isolated Python 3.11 runtime.
  • pnpm check:changed — passed after the final extended-stable admission repair.
  • git diff --check — passed.
  • AutoReview P1 findings resolved: vendored dependency runtime coverage, extensionless executable coverage, and release-layout-bound allowances. Its index-only staging finding was eliminated by staging the replacement gate with the scanner removal. Its final ancestry-order concern was rejected against the actual is_ancestor(ref, source) helper contract, then the behavioral shim was tightened to prove the exact Git call.
  • ClawSweeper findings resolved: plugin qualification now consumes publication_request.outputs.publication_selection_json; ordinary files under fixture/test-support directories are rejected; recovery preserves npmArtifact and adopts only the ClawHub run ID; extended-stable FRV admits only an immutable release-ci/* ref whose SHA prefix matches the exact workflow revision and whose tooling revision remains reachable from current main.

Scope

Net diff: 993 additions, 4,479 deletions. No release was dispatched or published by this PR.

@clawsweeper

clawsweeper Bot commented Oct 3, 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 Oct 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 5:47 PM ET / 21:47 UTC (Revision 6).

ClawSweeper review

What this changes

Full Release Validation now qualifies and records the exact plugin npm tarballs that Release Prepare adopts for publication.

Merge readiness

✅ Ready for maintainer review

The prior blockers are resolved, and no additional actionable defect was found. Current main still rebuilds plugin artifacts after validation, so this member-authored PR remains useful.

Priority: P2
Reviewed head: 9c562a0205520a079569c639b197a88311bec6c2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has a coherent owner-level repair, relevant reported validation, and resolves the prior blockers.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER author is exempt from ordinary contributor proof; the body reports final tarball scanning and selected-publication handoff validation. Release metadata changes stay isolated by exact tooling identity, and authenticated loaders retain source, roster, policy, producer, and digest checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER author is exempt from ordinary contributor proof; the body reports final tarball scanning and selected-publication handoff validation. Release metadata changes stay isolated by exact tooling identity, and authenticated loaders retain source, roster, policy, producer, and digest checks.
Evidence reviewed 8 items Pinned introduction and inspection limitation: The original head and checkout are 9c562a0. Local historical diff inspection encountered a missing promisor blob and HTTP 403; the read-only GitHub compare API supplied the pinned introduced patches instead. No base-only changes were attributed to this PR.
Previous admission finding resolved: The new guard accepts release-ci transports only when their SHA prefix matches the workflow revision and that revision is reachable from main. Exact canonical extended-stable source-tip admission remains in place. The added executable policy cases cover accepted transport, mismatched prefix, and unreachable tooling, including the actual ancestry argument order.
Artifact handoff and compatibility: Release Prepare obtains npmArtifact from authenticated FRV evidence, preserves it during recovery, and dispatches only ClawHub preparation. Descriptor validation binds source, tooling, producer, attempt, and artifact identity; subsequent loading verifies the complete source roster, publisher policy, archive digest, and original package bytes. Release evidence and recovery requests remain bound to their exact tooling revision, rather than migrating existing user state.
Findings None None.
Security None None.

How this fits together

Full Release Validation checks a selected release source and produces publication evidence. Release Prepare consumes that evidence and hands qualified plugin artifacts to the existing publication workflow.

flowchart LR
  A[Release source and plugin selection] --> B[Full Release Validation]
  B --> C[Plugin packaging and runtime checks]
  C --> D[Exact tarball security scan]
  D --> E[Immutable artifact descriptor]
  E --> F[Release Prepare]
  F --> G[Approved publication]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -1780, Docs +20, Config +31, Other -1757. Total -3486 across 30 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 304 2084 -1780
Docs 5 67 47 +20
Config 4 190 159 +31
Generated 0 0 0 0
Other 12 432 2189 -1757
Total 30 993 4479 -3486

Review metrics

None.

Stored data model

Persistent data-model change detected: database schema: scripts/lib/plugin-npm-security-scan.mts, serialized state: scripts/lib/plugin-npm-security-scan.mts, serialized state: scripts/plugin-npm-security-prepare.mts, serialized state: scripts/plugin-npm-security-scan-runner.mjs, serialized state: scripts/plugin-npm-security-scan.mts, unknown-data-model-change: scripts/lib/plugin-npm-security-scan.mts, and 3 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Keep one packaging owner and carry its authenticated, qualified tarball identities through preparation and approved publication.

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

Yes, source inspection establishes that current main validates supplemental packs and then separately rebuilds plugin publication artifacts; no runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

Yes, qualifying the existing packaging owner's final bytes and reusing its immutable descriptors directly addresses the handoff defect without introducing another packaging implementation.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER author is exempt from ordinary contributor proof; the body reports final tarball scanning and selected-publication handoff validation. Release metadata changes stay isolated by exact tooling identity, and authenticated loaders retain source, roster, policy, producer, and digest checks.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs bounded release qualification and artifact handoff behavior without an established urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER author is exempt from ordinary contributor proof; the body reports final tarball scanning and selected-publication handoff validation. Release metadata changes stay isolated by exact tooling identity, and authenticated loaders retain source, roster, policy, producer, and digest checks.

Evidence

What I checked:

  • Pinned introduction and inspection limitation: The original head and checkout are 9c562a0. Local historical diff inspection encountered a missing promisor blob and HTTP 403; the read-only GitHub compare API supplied the pinned introduced patches instead. No base-only changes were attributed to this PR. (9c562a020552)
  • Previous admission finding resolved: The new guard accepts release-ci transports only when their SHA prefix matches the workflow revision and that revision is reachable from main. Exact canonical extended-stable source-tip admission remains in place. The added executable policy cases cover accepted transport, mismatched prefix, and unreachable tooling, including the actual ancestry argument order. (.github/workflows/plugin-npm-release.yml:358, 9c562a020552)
  • Artifact handoff and compatibility: Release Prepare obtains npmArtifact from authenticated FRV evidence, preserves it during recovery, and dispatches only ClawHub preparation. Descriptor validation binds source, tooling, producer, attempt, and artifact identity; subsequent loading verifies the complete source roster, publisher policy, archive digest, and original package bytes. Release evidence and recovery requests remain bound to their exact tooling revision, rather than migrating existing user state. (scripts/openclaw-release-ready.mjs:615, 9c562a020552)
  • Security scan boundary: The replacement scanner consumes final tarball bytes before immutable upload, checks package identity and resource limits, rejects package-owned fixture leakage, scans vendored JavaScript runtime and extensionless executables, and applies layout-specific finding limits. It imports OpenClaw's scanner and tarball inspector; dependency path names in its inventory do not establish a Codex harness dependency. (scripts/plugin-npm-security-scan.mts:252, 9c562a020552)
  • Current main still needs the change: At the fetched main revision, Release Prepare still dispatches a separate plugin npm preflight after authenticating FRV. The main scanner also still delegates to the supplemental source-pack scanner. The merged related PR fix(release): qualify frozen 2026.9.9 validation #164440 qualifies a frozen release inventory and does not implement this artifact-sealing handoff. (scripts/openclaw-release-ready.mjs:651, f40a007daffa)
  • Reported validation and proof scope: The captured PR body reports packing and scanning 96 real publishable tarballs, a validated selected-plugin handoff, focused publication transport cases, and passing release suites. It explicitly reports no release dispatch or publication. The author is MEMBER, so the ordinary external-contributor proof gate does not apply. No target code or tests were executed during this review. (9c562a020552)

Likely related people:

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

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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-03T18:55:09.142Z sha e07d95b :: blocked before merge. :: [P2] [P2] Recognize fixture and test-support directory components
  • reviewed 2026-10-03T19:01:28.363Z sha e07d95b :: blocked before merge. :: [P2] [P2] Recognize fixture and test-support directory components
  • reviewed 2026-10-03T20:48:57.399Z sha d1b77b5 :: blocked before merge. :: [P1] [P1] Read plugin selection from the validated request producer | [P2] [P2] Recognize fixture and test-support directory components | [P3] [P3] Update recovery guidance for the single dispatched child
  • reviewed 2026-10-03T21:00:52.041Z sha 9334c34 :: blocked before merge. :: [P1] [P1] Read plugin selection from the validated request producer | [P2] [P2] Recognize fixture and test-support directory components | [P3] [P3] Update recovery guidance for the single dispatched child
  • reviewed 2026-10-03T21:24:37.709Z sha 6556b41 :: blocked before merge. :: [P1] Support extended-stable admission before requiring its preflight

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Oct 3, 2026
@RomneyDa RomneyDa changed the title fix(release): stop plugin scans blocking releases on test fixtures fix(release): seal exact plugin artifacts in FRV Oct 3, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 3, 2026 20:41
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 3, 2026
@RomneyDa
RomneyDa force-pushed the openclaw/fix-plugin-security-scan-release-blockers branch from 8864bdb to 6556b41 Compare October 3, 2026 21:17
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 3, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@RomneyDa
RomneyDa merged commit 8841578 into main Oct 3, 2026
153 checks passed
@RomneyDa
RomneyDa deleted the openclaw/fix-plugin-security-scan-release-blockers branch October 3, 2026 22:43
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
* fix(release): retire brittle plugin source scanner

* fix(release): seal plugin artifacts in FRV

* test(release): preserve publication identity boundary

* fix(release): bind plugin qualification inputs

* fix(release): admit extended-stable preflight tooling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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