Repository navigation
chore(clawhub): cover plugin release policy contracts - #118971
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:22 PM ET / 21:22 UTC. ClawSweeper reviewWhat this changesAdds a QA Lab scenario and temporary-Git integration fixture covering ClawHub and npm plugin release validation, provenance, compatibility metadata, and version-bump behavior. Merge readiness✅ Ready for maintainer review Keep open for normal maintainer review. This is a focused, test-only QA coverage addition that exercises the two real release-check entrypoints and maps their existing policy contracts into the coverage ledger; no patch defect or security concern was found. Priority: P3 Review scores
Verification
How this fits togetherPlugin packages pass through the ClawHub and npm release-check scripts before publication. Those scripts collect package metadata, enforce publish policy and version gates, then emit a publishable-package result used by release automation. flowchart LR
A[Plugin package metadata] --> B[ClawHub and npm release checks]
C[Git change range] --> B
B --> D[Policy and version-gate decisions]
D --> E[Release automation output]
F[QA Lab scenario] --> G[Temporary Git package fixture]
G --> B
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +231, Other +34. Total +265 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain one integration fixture that invokes both release-check CLIs against a temporary Git plugin package, then land it once the normal maintainer review and required checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds automated release-policy coverage rather than repairing a reported runtime failure. The proposed fixture gives a clear deterministic validation path for the covered contract cases. Is this the best way to solve the issue? Yes. Running the real release-check entrypoints from a temporary Git package exercises CLI wiring, package discovery, Git-range handling, and shared validation more directly than unit-testing only internal helpers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e4b6bde45a07. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
f6a63db to
feba990
Compare
|
@clawsweeper automerge |
|
🦞👀 Command router queued. I will update this comment with the next step. |
* origin/main: (90 commits) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) feat(sms): add Twilio MMS support (#118664) test(gateway): prove TLS certificate pinning (#118812) test(qa): cover tool policy and sandbox gates (#118925) fix(cli): keep update dry-run state immutable (#118856) fix(scripts): honor last repeated CLI flag value (#118710) ... # Conflicts: # pnpm-workspace.yaml
…r-admin-20260803 * origin/main: (89 commits) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) ...
* test(clawhub): cover plugin release policy contracts * test(clawhub): route release checks to policy coverage
What Problem This Solves
ClawHub package-release policy had no executable QA Lab owner for four release-critical contracts:
clawhub.package-release-validationclawhub.version-bump-gatesclawhub.npm-trusted-publishing-provenanceclawhub.external-code-plugin-package-contract-requiredThat left identity, provenance, compatibility metadata, and version-bump regressions outside the coverage ledger.
Why This Change Was Made
Adds one QA Lab scenario backed by a Vitest E2E fixture that creates temporary Git plugin packages and invokes the real
plugin-clawhub-release-check.tsandplugin-npm-release-check.tsentrypoints through Node + tsx.The test covers the canonical valid package, bad repository provenance, missing external-code compatibility/build metadata, an unchanged version after a committed source change, and the corresponding passing version bump. It does not change release scripts, workflows, package contracts, or production behavior.
User Impact
No runtime behavior changes. Maintainers now get executable QA coverage if ClawHub or npm plugin release policy drifts across either release-check entrypoint.
Evidence
test-projects261/261 and ClawHub release policy 5/5 passed on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/30854581152pnpm check:changed: all policy guards, formatting, all-project typecheck, lint, and import-cycle checks passed on the final three-file diff: https://github.com/openclaw/openclaw/actions/runs/30854843166Repair Notes
AI Assistance
Implementation, validation, and review were performed with Codex under maintainer direction.