Repository navigation
refactor(qa): simplify transport adapter contracts - #99632
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 6:43 PM ET / 22:43 UTC. Summary PR surface: Source +73, Tests +79. Total +152 across 15 files. Reproducibility: not applicable. this is a QA Lab refactor/contract PR, not a bug reproduction. Source inspection confirms current main and v2026.6.11 still use the older registry and required-method contract. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this PR after maintainers accept the optional-method async factory contract; if they want earlier validation, revise toward an explicit preflight check before merge. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a QA Lab refactor/contract PR, not a bug reproduction. Source inspection confirms current main and v2026.6.11 still use the older registry and required-method contract. Is this the best way to solve the issue? Yes, pending maintainer acceptance: one async registry and adapter-owned optional methods are a narrower QA Lab boundary cleanup than keeping the duplicated capabilities alias. The main alternative is preflight validation if maintainers want unsupported methods caught before scenario invocation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 219f27a5ec6b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +73, Tests +79. Total +152 across 15 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
5725c08 to
8ba28e0
Compare
* feat(qa): add transport capability contracts * fix(qa): scope sequence support by channel * refactor(qa): simplify transport adapter contracts * fix(qa): clarify unsupported transport method errors
Fixes #99622
What Problem This Solves
QA Lab needs one asynchronous owner boundary for constructing QA Channel and Crabline adapters, but method support should come from the adapter implementation itself. Parallel declarations duplicated the adapter interface and could drift from the methods available on a selected channel.
Crabline Telegram supports native-command injection and outbound preview-sequence observation. Crabline Slack does not. The transport contract now represents that difference directly: channel-specific methods are optional, and an attempted flow call fails clearly at the invocation point when the selected adapter does not implement the method.
Why This Change Was Made
This change keeps an injectable asynchronous adapter factory registry while simplifying the transport contract:
QaTransportAdapterFactoryretainsid,matches, and asynchronouscreate.The change remains inside the QA Lab plugin boundary. It does not change production channel behavior.
User Impact
No direct end-user behavior changes. QA maintainers and channel contributors get a smaller transport contract, one extensible asynchronous construction boundary, deterministic cleanup ownership, and clear failures when a scenario invokes a method unavailable on the selected channel.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/qa-transport-registry.test.ts extensions/qa-lab/src/scenario-flow-runner.test.ts extensions/qa-lab/src/scenario-catalog.test.ts extensions/qa-lab/src/scenario-runtime-api.test.ts extensions/qa-lab/src/qa-channel-transport.test.ts extensions/qa-lab/src/suite-runtime-flow.test.ts extensions/qa-lab/src/manual-lane.runtime.test.ts extensions/qa-lab/src/self-check.test.ts extensions/qa-lab/src/suite.test.ts— 9 files, 86 tests passed.node scripts/run-vitest.mjs extensions/qa-lab/src/crabline-transport.test.ts -t "observes Telegram preview edits through the shared transport adapter|configures OpenClaw's Slack plugin against a Crabline local provider server"— 2 tests passed, 13 skipped.oxfmt, scopedoxlint, andgit diff --checkpassed.tbx_01kwmvq9cz6xp5nnnvm9917ev0—check:changedpassed with full project typecheck, all oxlint shards, import-cycle validation, and changed guards. Actions run: https://github.com/openclaw/openclaw/actions/runs/28682699653