Skip to content

test(qa): prove ClawHub catalog discovery - #118934

Merged
vincentkoc merged 2 commits into
mainfrom
qa-clawhub-catalog-discovery
Aug 4, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
qa-clawhub-catalog-discovery

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

ClawHub plugin catalog discovery had no primary QA proof through the real HTTP and CLI command boundary. Existing tests mocked the catalog client, so regressions could silently mix plugin and skill results, lose duplicate-score selection, or hide empty and failed lookups.

Why This Change Was Made

Adds a deterministic ClawHub catalog-search fixture profile and an end-to-end command test. The test exercises both installable plugin families, best-score duplicate merging, the separate skill endpoint, empty results, JSON and terminal identity, install guidance, and a controlled HTTP 503.

The scenario claims:

  • clawhub.plugin-catalog-search
  • clawhub.plugin-and-skill-search-separation
  • clawhub.catalog-lookup-failure

Production code is unchanged. Production LOC delta: +0/-0.

User Impact

No runtime behavior changes. Release QA can now detect catalog discovery regressions at the operator-visible command boundary.

Evidence

Reviewed branch head: 98979d2ab07f5964362e2db0291316fc8b91797a.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes scripts Repository scripts extensions: qa-lab size: M maintainer Maintainer-authored PR labels 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, 7:05 PM ET / 23:05 UTC.

ClawSweeper review

What this changes

Adds a deterministic ClawHub HTTP fixture, QA scenario, and command-boundary tests for plugin catalog search, skill separation, empty results, and service failures.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer review. This is a still-unique, test-only addition that exercises the documented ClawHub plugin-versus-skill boundary without changing production behavior; no blocking correctness finding was found.

Priority: P3
Reviewed head: 98979d2ab07f5964362e2db0291316fc8b91797a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, maintainable QA addition with no blocking defect found; it needs a refresh on current main before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR is not subject to the external-contributor real-behavior-proof gate; its body reports focused fixture and command-boundary test output.
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 not subject to the external-contributor real-behavior-proof gate; its body reports focused fixture and command-boundary test output.
Evidence reviewed 5 items Current command contract: Current main sends plugin search through the shared catalog helper and exposes JSON, empty-result, terminal, and error outcomes.
Distinct catalog endpoints: Plugin packages use /api/v1/packages/search; skills use /api/v1/search, matching the separation the PR exercises.
PR boundary coverage: The PR starts the local fixture, checks family requests, score-based duplicate selection, terminal and JSON output, skill separation, empty results, and a 503 error path.
Findings None None.
Security None None.

How this fits together

The plugins-search CLI calls the catalog-search helper, which queries ClawHub’s installable plugin families and renders terminal or JSON results. Skills use a separate ClawHub endpoint, and the new fixture makes both HTTP paths deterministic for QA.

flowchart LR
  A[Plugins search CLI] --> B[Catalog search helper]
  B --> C[Plugin family HTTP searches]
  C --> D[ClawHub fixture server]
  D --> E[Plugin search results]
  D --> F[Skill search results]
  B --> G[Terminal or JSON output]
Loading

Decision needed

Question Recommendation
After the branch is refreshed, is fixture-backed handler coverage sufficient for this QA addition, or should it also spawn the Commander CLI process? Accept the focused boundary test: Rebase, rerun the focused fixture and E2E tests, and retain the existing unit test as the Commander parsing proof.

Why: The test proves the real HTTP boundary and command handler, while existing unit coverage separately exercises Commander’s limit parsing and registration; accepting that split is a maintainer QA-scope choice.

Before merge

  • Resolve merge risk (P1) - GitHub reports this draft branch as behind current main; rebase or refresh it and repeat the focused QA proof before merge.
  • Complete next step (P2) - This protected, maintainer-authored draft needs an owner to refresh the branch and accept the focused QA scope; no mechanical repair is identified.
Agent review details

Security

None.

PR surface

Tests +239, Other +134. Total +373 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 240 1 +239
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 135 1 +134
Total 4 375 2 +373

Review metrics

Metric Value Why it matters
Production versus QA LOC production +0/-0; QA and test support +375/-2 The branch adds only scenario, fixture, and regression coverage, so it does not expand the shipped runtime surface.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the refreshed test-only coverage once it remains compatible with current main and repeats the focused fixture-backed command test.
  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 refreshed test-only coverage once it remains compatible with current main and repeats the focused fixture-backed command test.

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

Not applicable: this PR adds regression coverage rather than repairing a reported user-facing failure. Its fixture provides a clear deterministic path for the covered catalog behaviors.

Is this the best way to solve the issue?

Yes: a local HTTP fixture tests the shared command boundary more meaningfully than the existing mocked helper tests, while preserving the existing Commander unit coverage for option parsing.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This is bounded QA coverage with no claimed production 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 not subject to the external-contributor real-behavior-proof gate; its body reports focused fixture and command-boundary test output.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the current-main catalog-search command and helper, as well as this PR’s QA coverage. (role: feature owner and recent area contributor; confidence: high; commits: 99926b732346, b0ae8036d74c, 98979d2ab07f; files: src/cli/plugins-search-command.ts, src/plugins/catalog-search.ts, src/cli/plugins-search-command.clawhub.e2e.test.ts)
  • Peter Steinberger: History sampling shows repeated work across the selected ClawHub infrastructure and fixture area, though shallow history prevents feature-specific attribution. (role: adjacent area contributor; confidence: low; files: scripts/e2e/lib/clawhub-fixture-server.cjs, src/infra/clawhub.ts)

Rank-up moves

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

  • Rebase or refresh onto current main and rerun the focused fixture-server and command E2E tests.

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 (2 earlier review cycles)
  • reviewed 2026-08-03T21:03:19.516Z sha f55e9b9 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T22:25:29.377Z sha 98979d2 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the qa-clawhub-catalog-discovery branch from e5afaa5 to 98979d2 Compare August 3, 2026 21:43
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 00:48
@vincentkoc
vincentkoc merged commit ee397f0 into main Aug 4, 2026
265 of 272 checks passed
@vincentkoc
vincentkoc deleted the qa-clawhub-catalog-discovery branch August 4, 2026 01:07
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
* test(qa): prove ClawHub catalog discovery

* test(qa): use shared temp cleanup
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. scripts Repository scripts 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