Skip to content

fix(release): keep bundled plugin package verification complete - #114497

Merged
steipete merged 2 commits into
mainfrom
codex/bundled-package-inventory-dedupe-4f0d
Jul 27, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/bundled-package-inventory-dedupe-4f0d

Conversation

@steipete

@steipete steipete commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where release and installed-package verification could silently stop checking bundled plugin manifests and runtime sidecars when a plugin build filter was inherited before verifier startup or changed afterward. The verifier also repeatedly rescanned the bundled plugin inventory.

Why This Change Was Made

Compute one deterministic complete packaged-plugin inventory with the build-only selection filter explicitly cleared, then reuse that snapshot for published runtime sidecars and required installed manifests. Preserve all other release environment values, root package exclusions, private QA exclusions, provider boundaries, and existing package contracts.

User Impact

Published OpenClaw installations consistently require every actually packaged bundled plugin, including Ollama and LM Studio. A selected build cannot make release verification silently accept an incomplete package, and package verification avoids repeated synchronous repository scans.

Evidence

Verified exact head: 07ec13aaa54011f30cc63bd3c65977d439d6d3c3.

  • Exact-head GitHub Actions CI run 30264807650: passed, including the required openclaw/ci-gate, build artifacts, release verification, guards, core and test types, lint, dependencies, and security checks.
  • node scripts/run-vitest.mjs test/openclaw-npm-postpublish-verify.test.ts: 51 passed.
  • Real fresh Node subprocess, started with OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS=ollama already in its inherited environment: verified both the Ollama and LM Studio installed manifests are independently required.
  • Same-process post-initialization control: changing the filter after the verifier loads cannot narrow the required inventory.
  • Targeted oxfmt --check and git diff --check: passed.
  • Fresh independent whole-branch Codex Sol/high structured review and TruffleHog on the exact head: clean, no actionable findings.
  • Additional production-package evidence from parent cd775c7f104923096f858d721c67128f220ad72b: Linux Testbox changed gate, 252 release/package tests, canonical production npm pack, strict bundled-workspace tarball validation, lifecycle-enabled real npm installation, and intact/missing-Ollama/missing-LM-Studio/missing-root corruption controls all passed. The exact-head fresh-process regression above specifically covers the inherited-filter correction added after that parent.

AI-assisted; independently reviewed and verified.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Jul 27, 2026
@steipete
steipete marked this pull request as ready for review July 27, 2026 10:03
@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 8:15 AM ET / 12:15 UTC.

ClawSweeper review

What this changes

This PR snapshots the complete bundled-plugin package inventory so release and installed-package verification continue requiring every packaged plugin manifest after a build-filter environment variable changes.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 4 items remain

The patch appears to correct a real release-verification invariant, but the real package-build/install proof in the PR body names commit cd775c7f, while the current head is 07ec13a. Because the newer commit contains the central environment-filter correction and this PR carries the protected maintainer label, keep it open for a refreshed merge-result and after-fix package verification. Likely related people: steipete (medium confidence, recent contributor on this exact release-verification path).

Priority: P2
Reviewed head: 07ec13aaa54011f30cc63bd3c65977d439d6d3c3
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation and focused regression coverage look solid, but real package behavior has not been demonstrated for the current head.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR documents convincing production tarball and real-install behavior for cd775c7f, but the current head is 07ec13a, whose filter-clearing change is the core behavior still needing equivalent redacted terminal or artifact proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR documents convincing production tarball and real-install behavior for cd775c7f, but the current head is 07ec13a, whose filter-clearing change is the core behavior still needing equivalent redacted terminal or artifact proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Complete-inventory snapshot: The proposed verifier creates one private inventory with the build-filter variable cleared, then reuses it for both sidecar selection and required installed manifests; this prevents a later inherited filter from reducing verification coverage.
Regression coverage: The added test changes OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS after verifier initialization and asserts that bundled-manifest errors remain identical, including Ollama and LM Studio controls.
Prior real package evidence: The PR body records a production package build, real lifecycle-enabled npm install, and corruption controls against commit cd775c7f; it is strong evidence for the earlier revision but does not prove the current head 07ec13a, which added the filter-clearing behavior.
Findings None None.
Security None None.

How this fits together

The npm postpublish verifier checks the assembled OpenClaw package before release or installation. It derives the packaged plugin inventory, selects runtime sidecars, and reports missing bundled manifests so incomplete tarballs do not reach users.

flowchart LR
  A[Build filter environment] --> B[Bundled plugin inventory]
  B --> C[Package verification snapshot]
  C --> D[Runtime sidecar selection]
  C --> E[Required plugin manifests]
  D --> F[Release package checks]
  E --> F
  F --> G[Published npm package]
Loading

Decision needed

Question Recommendation
After refreshing this branch against current main, should the exact merge candidate be accepted once the real npm package build/install and bundled-manifest corruption controls pass? Refresh and reprove exact head: Rebase or merge-update the branch, then rerun the production package build, real install, and missing-manifest controls on the resulting head.

Why: The patch is narrow and the supplied prior proof is strong, but it predates the head commit that changes the build-filter handling and this protected release-verification PR requires explicit maintainer handling.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR documents convincing production tarball and real-install behavior for cd775c7f, but the current head is 07ec13a, whose filter-clearing change is the core behavior still needing equivalent redacted terminal or artifact proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The current head adds the key filter-clearing behavior after the package-install proof recorded in the PR body, so release verification could still differ on the actual merge candidate until that exact head is rebuilt and installed.
  • Resolve merge risk (P1) - This automation-sensitive verifier is behind current main; the final merge result should be refreshed before relying on its package artifact evidence.
Agent review details

Security

None.

PR surface

Tests +76, Other +7. Total +83 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 77 1 +76
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 9 2 +7
Total 2 86 3 +83

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Refresh package proof on the merge candidate (recommended)
    Before merge, update the branch against current main and rerun the real tarball build/install plus bundled-manifest corruption controls on that exact commit.
  2. Pause pending release-contract decision
    Pause the PR if maintainers do not want the verifier's package inventory fixed at process initialization.

Technical review

Best possible solution:

Keep one canonical full packaged-plugin inventory for all verifier decisions, then refresh the branch and capture package-build, installed-binary, and missing-manifest corruption proof for the exact merge candidate.

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

No high-confidence current-head execution was independently established in this review. The source path and added regression test make the old failure mode reproducible in principle by setting the bundled-plugin build filter after the verifier snapshot is created.

Is this the best way to solve the issue?

Yes, conditionally: a single canonical unfiltered inventory is the narrowest maintainable way to keep sidecar and manifest verification consistent. The solution still needs real package proof for the latest merge candidate because the recorded proof predates its central follow-up commit.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR documents convincing production tarball and real-install behavior for cd775c7f, but the current head is 07ec13a, whose filter-clearing change is the core behavior still needing equivalent redacted terminal or artifact proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: A broken release verifier can allow incomplete bundled-plugin packages through publication, but the issue is bounded to release/package validation rather than an active runtime outage.
  • merge-risk: 🚨 automation: The changed script controls automated package and release verification, where an incorrect inventory can silently reduce required-manifest coverage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR documents convincing production tarball and real-install behavior for cd775c7f, but the current head is 07ec13a, whose filter-clearing change is the core behavior still needing equivalent redacted terminal or artifact proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Complete-inventory snapshot: The proposed verifier creates one private inventory with the build-filter variable cleared, then reuses it for both sidecar selection and required installed manifests; this prevents a later inherited filter from reducing verification coverage. (scripts/openclaw-npm-postpublish-verify.ts:65, 07ec13aaa540)
  • Regression coverage: The added test changes OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS after verifier initialization and asserts that bundled-manifest errors remain identical, including Ollama and LM Studio controls. (test/openclaw-npm-postpublish-verify.test.ts:659, 07ec13aaa540)
  • Prior real package evidence: The PR body records a production package build, real lifecycle-enabled npm install, and corruption controls against commit cd775c7f; it is strong evidence for the earlier revision but does not prove the current head 07ec13a, which added the filter-clearing behavior. (scripts/openclaw-npm-postpublish-verify.ts:65, cd775c7f1049)
  • Current-head provenance: The supplied PR commit trail shows 07ec13a as the current head after cd775c7f; its subject, “ignore inherited bundled plugin build filters,” matches the new core invariant and makes the older head-specific proof stale. (scripts/openclaw-npm-postpublish-verify.ts:65, 07ec13aaa540)

Likely related people:

  • steipete: The supplied commit trail attributes both the inventory reuse and the follow-up inherited-filter correction to this person; no broader current-main ownership trail was available in the review context. (role: recent contributor on the release-verification path; confidence: medium; commits: cd775c7f1049, 07ec13aaa540; files: scripts/openclaw-npm-postpublish-verify.ts, test/openclaw-npm-postpublish-verify.test.ts)

Rank-up moves

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

  • Refresh the branch against current main and run the production tarball build/install on the resulting head.
  • Post redacted terminal output or a linked artifact showing the bundled-manifest corruption controls pass on that exact head.

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 (3 earlier review cycles)
  • reviewed 2026-07-27T10:02:27.438Z sha cd775c7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-27T10:08:41.213Z sha cd775c7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-27T10:21:21.603Z sha cd775c7 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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: 🐚 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Jul 27, 2026
@steipete
steipete merged commit dd77dd9 into main Jul 27, 2026
114 of 124 checks passed
@steipete
steipete deleted the codex/bundled-package-inventory-dedupe-4f0d branch July 27, 2026 12:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 28, 2026
…claw#114497)

* perf(release): reuse bundled plugin package inventory

* fix(release): ignore inherited bundled plugin build filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant