Repository navigation
refactor(qa): add canonical live channel adapters - #99707
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 11:54 AM ET / 15:54 UTC. Summary PR surface: Source +1075, Tests +429, Docs +11, Other +45. Total +1560 across 37 files. Reproducibility: not applicable. as a bug reproduction: this is a feature/refactor PR. Source inspection shows current main lacks the Review metrics: 3 noteworthy metrics.
Stored data model 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:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land this PR only after maintainers approve the additive QA runner adapter contract and are satisfied with the registration-only compatibility path plus current-head live QA validation. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is a feature/refactor PR. Source inspection shows current main lacks the Is this the best way to solve the issue? Yes, conditionally: using the existing QA runner registration seam and QA Lab transport registry is the narrowest owner-neutral route I found. The SDK surface still needs maintainer approval because it becomes a compatibility-sensitive plugin contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 67ec544884af. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1075, Tests +429, Docs +11, Other +45. Total +1560 across 37 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
Review history (13 earlier review cycles; latest 8 shown)
|
4adef85 to
a075be3
Compare
a075be3 to
c5cc32e
Compare
c5cc32e to
e38dd7b
Compare
3249aec to
419e7d9
Compare
8da112c to
4710dd2
Compare
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
4710dd2 to
44bdb81
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Closes #99699
What Problem This Solves
Telegram, Slack, WhatsApp, and Matrix live QA transports could not be selected by the shared QA Lab scenario host. Matrix also belongs to its own QA runner plugin, so QA Lab needs an owner-neutral contribution contract rather than importing plugin-private runtime code.
Why This Change Was Made
Each live channel contributes a transport adapter definition through the existing QA runner registration seam. QA Lab remains the single scenario host: it owns the QA bus, wait lifecycle, failure detection, and state-backed adapter wrapper, while channel factories own only transport setup, inbound delivery, outbound observation, readiness, cleanup, and channel configuration.
The runner contract now exposes only four adapter setup options and a three-method message recorder instead of duplicating the full CLI option object and QA bus state. Telegram Bot API types come from the Telegram plugin API, and Slack message types are derived from the existing validated response schema.
The existing
qa telegram,qa slack,qa whatsapp, andqa matrixcommands keep their current runners and scenario catalogs. The shared host can run migrated scenarios withqa suite --channel-driver live --channel <adapter-id>without changing current command behavior. Matrix cleanup and forced-exit behavior remain intact.QA Channel and Crabline keep their existing stateful implementations; contributed live definitions are the only transports wrapped by the shared host. Slack streamed previews are reconciled into QA bus edit events when the native message is updated in place.
User Impact
Existing live QA commands behave as before. Maintainers can migrate shared YAML/flow scenarios to the canonical adapters incrementally, then remove legacy scenario runners only after their command contracts are represented by the shared host.
Explicit shared live-adapter runs use one worker, reject runtime-pair duplication, and default to the selected factory's declared canonical scenarios.
Evidence
bfffa950d71c91b5a8f9c2f3bbd2d3a80da7705c.pnpm buildpassed with Plugin SDK export verification.git diff --checkpassed.tbx_01kwqtr4x789kqdgeh9azfydfqpassed for headddc617494c240e7beeef16577e5b1df73b1cf559(Actions run 28724355393). Current-head CI has 68 passing substantive checks with Real behavior proof still in progress. Current-head ClawSweeper is pinned to this SHA with no contributor-facing code finding.