Repository navigation
chore(qa): cover plugin testing harness contracts - #118933
Conversation
7b5180b to
9727bdf
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:13 PM ET / 21:13 UTC. ClawSweeper reviewWhat this changesThe PR adds a contract test that runs a virtual plugin tool through the public test harness and a QA scenario mapping that proof to plugin-testing taxonomy coverage. Merge readinessKeep this focused maintainer-authored QA PR open. The patch adds coverage for the supported Plugin SDK test helpers and the registry’s existing tool-contract enforcement; it is not duplicated by the adjacent gateway-flow QA coverage on current main, and the protected Priority: P3 Review scores
Verification
How this fits togetherThe Plugin SDK exposes test-only helpers that let plugin authors create isolated state and register virtual plugins against OpenClaw’s real registry boundary. The new contract test turns those helpers into executable regression coverage, while the QA scenario records the proof under the plugin-testing surface. flowchart LR
A[Plugin test helpers] --> B[Isolated temporary home]
A --> C[Virtual plugin registry]
C --> D[Tool contract enforcement]
D --> E[Registered tool or diagnostic]
E --> F[Contract test]
F --> G[QA taxonomy scenario]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +113, Other +29. Total +142 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the public SDK-harness contract test and narrow QA mapping, then merge it after a maintainer confirms the scenario taxonomy placement and refreshes the focused validation on the merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage for existing supported test helpers rather than repairing a reported runtime failure. The source path is clear, but this read-only review did not execute the contributor’s focused test command. Is this the best way to solve the issue? Yes. Exercising the documented SDK testing subpaths through the actual plugin registry is a better regression boundary than a metadata-only assertion, and current-main gateway-flow coverage does not cover the same isolated-harness contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5b1b1e063225. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* 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) ...
* 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) ...
* test(qa): cover plugin testing harness contracts * test(qa): narrow plugin harness tool factory
What Problem This Solves
The plugin testing taxonomy had no primary QA owner for test fixtures, local
test environment support, or unit and integration scaffolds. The tool-contract
harness was only mapped secondarily to a startup log sentinel that does not
execute the helper surface.
Why This Change Was Made
Adds one contract test that uses the repo-local plugin test helpers against the
real registry boundary: an isolated temporary home, typed fixture inputs,
declared tool registration and execution, plus the canonical missing-contract
diagnostic. A focused QA scenario maps that proof to the four exact taxonomy
IDs.
No production, Plugin SDK, taxonomy, loader, or lifecycle behavior changes.
Production LOC delta: 0.
AI-assisted: yes.
User Impact
Plugin authors and maintainers gain regression coverage proving the supported
local test harness can register and execute a declared tool and rejects an
invalid tool contract. Runtime behavior is unchanged.
Evidence
node scripts/run-vitest.mjs src/plugins/contracts/plugin-testing-harness.contract.test.ts src/plugins/contracts/shape.contract.test.ts src/plugins/contracts/memory-embedding-provider.contract.test.ts src/plugins/contracts/plugin-tool-contracts.test.tsoxfmt --checkpassed for both changed files.git diff --checkpassed.tbx_01kz53227eeb0h24b3mrv0k7vw:154f983d1cdfcc19fa427a28d7076701024b960e.plugin-testing-harness-contracts.plugins.test-fixturesplugins.local-test-environmentplugins.harness-contracts-toolsplugins.unit-and-integration-scaffoldscheck:changedpassed all selected lanes, including full typecheck, all lint shards, boundary/dead-code/database guards, and runtime import cycles.154f983d1cdfcc19fa427a28d7076701024b960e:patch is correctwith confidence0.99.