Skip to content

chore(qa): cover ClawHub package compatibility - #118985

Merged
vincentkoc merged 1 commit into
mainfrom
test/qa-clawhub-package-compatibility
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/qa-clawhub-package-compatibility

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

ClawHub package compatibility had no structured QA scenario proving that incompatible metadata stops an install before trust checks or artifact download. A regression here could perform unnecessary remote work or leave install side effects before the operator sees the incompatibility.

Why This Change Was Made

This extends the real CLI/ClawHub HTTP fixture to cover package-level pluginApiRange fallback, version-level minGatewayVersion, and the compatible install path. It also registers the exact portfolio coverage ID as a discoverable QA scenario.

The architectural owner remains the existing ClawHub install flow. This is test and QA metadata only: no production path, compatibility policy, fallback, or fixture abstraction was added.

User Impact

No runtime behavior changes. Maintainers now have executable regression proof that incompatible packages fail visibly before trust or download work, while compatible packages still install, persist their record, and report telemetry.

Evidence

Repair Doctrine

  • Coverage gap: the CLI/ClawHub boundary did not assert compatibility rejection ordering or absence of failed-install side effects.
  • Canonical fix: exercise the existing install flow through its real local HTTP boundary and map it to the structured QA catalog.
  • Sibling coverage: package metadata fallback, version metadata, compatible install, checksum failure, and telemetry failure all execute in the same E2E file.
  • Removed paths: none; no duplicate production policy was introduced.

AI Assistance

  • AI-assisted with Codex.
  • I understand the test fixture, assertions, and QA scenario mapping.
  • Autoreview completed and all accepted/actionable findings are resolved.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 21:49
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 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. 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, 6:01 PM ET / 22:01 UTC.

ClawSweeper review

What this changes

Adds a ClawHub QA scenario plus CLI E2E coverage proving incompatible package metadata fails before trust checks, archive download, install-record persistence, and telemetry, while compatible metadata still completes installation.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this maintainer-authored PR open for normal merge review. The patch is a focused regression-proof addition: current ClawHub installation validates resolved compatibility before the trust/security request and archive download, and the new real CLI fixture asserts that ordering for package-level plugin API fallback and version-level gateway minimums.

Priority: P3
Reviewed head: 35217add20c583f3a744038513a1169947a8aaef

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned QA patch with concrete Testbox-backed E2E evidence and no correctness or security finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored QA-only PR is not subject to the external-contributor proof gate; its body nevertheless supplies linked Testbox evidence of the full local-HTTP CLI E2E file passing.
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 QA-only PR is not subject to the external-contributor proof gate; its body nevertheless supplies linked Testbox evidence of the full local-HTTP CLI E2E file passing.
Evidence reviewed 6 items Current compatibility owner and ordering: Current main resolves compatible version metadata, validates package compatibility, and returns any validation failure before entering the trust acknowledgement and archive-download path.
Existing compatibility contract: The compatibility validator rejects unsatisfied plugin API ranges and minimum gateway versions with typed install failures.
QA coverage ID is canonical: The requested coverage ID already exists in the ClawHub Compatibility and Trust taxonomy, so the new scenario registers an existing proof target rather than inventing a parallel identifier.
Findings None None.
Security None None.

How this fits together

The ClawHub plugin install path resolves package and version metadata, validates host compatibility, then performs trust checks, downloads the archive, persists the install record, and reports telemetry. This PR adds executable QA evidence at that boundary and registers it in the QA coverage catalog.

flowchart LR
  A[Plugin install command] --> B[Package metadata]
  B --> C[Version artifact metadata]
  C --> D[Compatibility validation]
  D -->|Incompatible| E[Visible install error]
  D -->|Compatible| F[Trust check and archive download]
  F --> G[Install record and telemetry]
  H[QA scenario catalog] --> I[CLI HTTP-fixture regression test]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main, although GitHub reports it cleanly mergeable; retain the focused ClawHub E2E gate on the final merge result because nearby ClawHub work has landed since the branch base.
Agent review details

Security

None.

PR surface

Tests +51, Other +25. Total +76 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 55 4 +51
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 25 0 +25
Total 2 80 4 +76

Review metrics

Metric Value Why it matters
Production versus QA delta production +0/-0; QA/tests +80/-4 The PR adds coverage and catalog metadata without changing installation behavior or compatibility policy.
Canonical QA coverage 1 existing taxonomy coverage ID registered The scenario maps the E2E fixture to the established ClawHub compatibility proof target.

Stored data model

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused regression coverage once the merge-result QA gate confirms the ClawHub install E2E remains green against current main.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused regression coverage once the merge-result QA gate confirms the ClawHub install E2E remains green against current main.

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

Not applicable: this PR adds regression coverage rather than repairing a newly reported runtime failure. Current source establishes the relevant compatibility-before-trust ordering, and the PR's local HTTP fixture exercises that flow through the real CLI entrypoint.

Is this the best way to solve the issue?

Yes. Reusing the existing real CLI and local ClawHub HTTP fixture is the narrowest maintainable way to prove both rejection ordering and the absence of failed-install side effects without introducing production test hooks.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is low-risk QA coverage and catalog metadata with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 QA-only PR is not subject to the external-contributor proof gate; its body nevertheless supplies linked Testbox evidence of the full local-HTTP CLI E2E file passing.

Label justifications:

  • P3: This is low-risk QA coverage and catalog metadata with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 QA-only PR is not subject to the external-contributor proof gate; its body nevertheless supplies linked Testbox evidence of the full local-HTTP CLI E2E file passing.

Evidence

What I checked:

  • Current compatibility owner and ordering: Current main resolves compatible version metadata, validates package compatibility, and returns any validation failure before entering the trust acknowledgement and archive-download path. (src/plugins/clawhub.ts:1260, 65fa1f9a7bd1)
  • Existing compatibility contract: The compatibility validator rejects unsatisfied plugin API ranges and minimum gateway versions with typed install failures. (src/plugins/clawhub.ts:1134, 65fa1f9a7bd1)
  • QA coverage ID is canonical: The requested coverage ID already exists in the ClawHub Compatibility and Trust taxonomy, so the new scenario registers an existing proof target rather than inventing a parallel identifier. (taxonomy.yaml:4804, 65fa1f9a7bd1)
  • PR asserts the relevant external ordering: The new parameterized CLI E2E cases assert incompatible metadata produces the expected error without security, download, telemetry, or persisted-install side effects. (src/cli/plugins-cli.clawhub-install.e2e.test.ts:285, 35217add20c5)
  • Feature provenance: History attributes the current compatibility resolution and validation flow to the same recent ClawHub implementation commit, providing a direct owner trail for review routing. (src/plugins/clawhub.ts:1260, 5150670c72d9)
  • PR validation evidence: The PR body reports a current-head Blacksmith Testbox run of the five-test ClawHub install E2E file and successful changed-file and focused-plugin checks; the supplied GitHub check context also reports the applicable quality and security checks successful. (src/cli/plugins-cli.clawhub-install.e2e.test.ts:242, 35217add20c5)

Likely related people:

  • vincentkoc: Git history and blame attribute the current package-version compatibility validation and its surrounding ClawHub install path to Vincent Koc; the PR extends that same path's E2E coverage. (role: introduced the current compatibility flow and recent area contributor; confidence: high; commits: 5150670c72d9, 35217add20c5; files: src/plugins/clawhub.ts, src/cli/plugins-cli.clawhub-install.e2e.test.ts)

Rank-up moves

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

  • Keep the focused ClawHub install E2E green on the final merge result after the routine current-main refresh.

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

Copy link
Copy Markdown
Member Author

Land-ready proof for head 35217add20c583f3a744038513a1169947a8aaef:

  • Native review artifacts validate READY FOR /prepare-pr with no findings.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 118985 passed the hosted exact-head gates.
  • Sol/high autoreview was clean at 0.99.
  • ClawSweeper reviewed the exact head with no findings.
  • The remaining ClawSweeper merge-result move is satisfied: Blacksmith Testbox tbx_01kz52k474vdxm039w727tk1ys merged the PR head cleanly with then-current main 945597bb81c0a42246efd924f17d8eac245d7868, then passed src/cli/plugins-cli.clawhub-install.e2e.test.ts with 5/5 tests. Run: https://github.com/openclaw/openclaw/actions/runs/30865545262

Production LOC delta is 0; test/QA delta is +80/-4. No docs or changelog update is required.

@vincentkoc
vincentkoc merged commit 07a9856 into main Aug 4, 2026
189 of 195 checks passed
@vincentkoc
vincentkoc deleted the test/qa-clawhub-package-compatibility branch August 4, 2026 00:29
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (54 commits)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  test(qa): prove gateway chat RPCs (#118988)
  test(ui): cover Control UI auth transports (#118866)
  fix(auth): do not admit ambient environment credentials behind declared profiles (#118458)
  test(ui): cover operator administration flows (#118836)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits)
  fix(cli): honor local port in gateway call (#119046)
  fix(gateway): honor external status target context (#119015)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes 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: S 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