Skip to content

chore(clawhub): cover plugin release policy contracts - #118971

Merged
vincentkoc merged 2 commits into
mainfrom
qa-clawhub-release-policy-contracts
Aug 3, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
qa-clawhub-release-policy-contracts

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

ClawHub package-release policy had no executable QA Lab owner for four release-critical contracts:

  • clawhub.package-release-validation
  • clawhub.version-bump-gates
  • clawhub.npm-trusted-publishing-provenance
  • clawhub.external-code-plugin-package-contract-required

That 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.ts and plugin-npm-release-check.ts entrypoints 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

Repair Notes

  • Root cause: the release-policy contracts had no executable QA coverage owner.
  • Owner boundary: QA Lab scenario metadata and its E2E test.
  • Canonical fix: exercise both real release-check entrypoints from one temporary-Git fixture.
  • Removed paths: none.
  • Sibling coverage: both ClawHub and npm release validation are asserted where their contracts overlap.
  • CI routing: release-check source changes now include this E2E fixture alongside the existing release-wrapper owner test.

AI Assistance

Implementation, validation, and review were performed with Codex under maintainer direction.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 21:16
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:22 PM ET / 21:22 UTC.

ClawSweeper review

What this changes

Adds 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
Reviewed head: f6a63db32f82e9b40475fcf822b1bcb16532f751

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused validation-only patch with source-aligned contract coverage and reported remote proof; no correctness blocker was found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused Testbox evidence for the fixture.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused Testbox evidence for the fixture.
Evidence reviewed 6 items PR fixture exercises both real command entrypoints: The proposed fixture launches both release-check TypeScript entrypoints in temporary Git repositories, then asserts valid metadata, invalid provenance, missing compatibility/build metadata, and version-bump outcomes.
Coverage ledger maps to existing taxonomy contracts: The new scenario names the four existing ClawHub publishing coverage IDs, whose taxonomy descriptions cover release validation, version bumps, npm provenance, and required external-code package metadata.
Current release-check owner boundary: Current main's ClawHub entrypoint collects publishable packages, resolves the optional Git range, runs dependency freshness and version-gate checks, and prints the result; the npm entrypoint follows the parallel package-selection path.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +231, Other +34. Total +265 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 231 0 +231
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 34 0 +34
Total 2 265 0 +265

Review metrics

Metric Value Why it matters
Release-policy coverage 4 primary contracts added The scenario gives explicit executable ownership to four existing release-critical taxonomy contracts.
Production versus validation LOC production +0, tests +231, QA scenario +34 The added code is validation-only and does not alter release scripts, package contracts, defaults, or runtime behavior.

Stored data model

Persistent data-model change detected: vector/embedding metadata: qa/scenarios/plugins/clawhub-release-policy-contracts.yaml. Confirm migration or upgrade compatibility proof before merge.

Technical review

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

Labels

Label changes:

  • add P3: This is low-risk QA coverage for maintainer release-policy regression detection with no user runtime behavior change.
  • 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: This maintainer-authored, test-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused Testbox evidence for the fixture.

Label justifications:

  • P3: This is low-risk QA coverage for maintainer release-policy regression detection with no user runtime behavior change.
  • 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: This maintainer-authored, test-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused Testbox evidence for the fixture.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current main attributes both release-check entrypoints and their shared package-contract implementation to the commit that introduced the policy surface. (role: release-check feature introducer; confidence: high; commits: 3b14a930003f; files: scripts/plugin-clawhub-release-check.ts, scripts/plugin-npm-release-check.ts, scripts/lib/plugin-clawhub-release.ts)
  • Vincent Koc: Recent QA scenario and test history includes multiple QA Lab and release-proof contributions, and this PR follows that established scenario-plus-fixture ownership boundary. (role: recent QA Lab contributor; confidence: high; commits: 495a4f9b8e5a, 54b2243de3d7, d563101a82fd; files: qa/scenarios/plugins, test/e2e/qa-lab/plugins)

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.

@vincentkoc
vincentkoc force-pushed the qa-clawhub-release-policy-contracts branch from f6a63db to feba990 Compare August 3, 2026 21:42
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc merged commit 10b4bac into main Aug 3, 2026
97 of 100 checks passed
@vincentkoc
vincentkoc deleted the qa-clawhub-release-policy-contracts branch August 3, 2026 21:55
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* 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
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* test(clawhub): cover plugin release policy contracts

* test(clawhub): route release checks to policy coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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