Repository navigation
improve(qa): make module flow selection implementation-aware - #118069
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 7:32 AM ET / 11:32 UTC. ClawSweeper reviewWhat this changesThe PR records whether a QA flow was authored as a module and selects it only when the chosen transport adapter declares and fulfills module-flow preparation support. Merge readinessNo actionable patch defect found. The PR replaces a source-layout heuristic with the selected adapter’s documented capability, and it resolves both prior review findings; it remains open because it adds a compatibility-sensitive QA runner contract that needs normal maintainer acceptance. Priority: P2 Review scores
Verification
How this fits togetherQA Lab reads scenario YAML, plans a channel-specific execution lane, then creates an adapter to run the selected flows and emit QA evidence. This change ensures module-backed flows reach only adapters that can prepare their runtime context. flowchart LR
A[Authored QA scenarios] --> B[Scenario catalog]
B --> C[Lane planner]
D[Selected transport factory] --> E[Declared module support]
E --> C
C --> F[Transport adapter]
F --> G[QA execution evidence]
Decision needed
Why: The implementation is coherent, but accepting a new plugin-facing capability determines the long-term contract for third-party QA runner adapters. Before merge
Agent review detailsSecurityNone. PR surfaceSource +108, Tests +203, Docs +8. Total +319 across 32 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the optional factory capability as the single module-flow eligibility contract, with all opt-in adapters required to return Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main derives eligibility from a module path, while the PR’s selected-factory path directly expresses the missing adapter capability check. Is this the best way to solve the issue? Yes—the selected adapter owns whether it can prepare module context, so preserving authored flow form until that selection is the narrowest maintainable fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d73eb23b290f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
d789b98 to
c8a6d2d
Compare
163b2a7 to
a738431
Compare
a738431 to
3611353
Compare
Closes #118005
What Problem This Solves
QA Lab normalizes top-level module flows into ordinary flow steps before planning. That erased the fact that module flows depend on adapter-owned preparation, so eligibility was inferred from the module's
./live-transports/source path instead of the selected transport implementation.As a result, catalog layout owned an execution decision it could not prove. An implementation without module-flow preparation could be selected until runtime, where missing prepared context risked an unsupported execution being treated as QA coverage.
Why This Change Was Made
The catalog now preserves whether a flow was authored with module syntax as internal planning provenance. Transport factories use one narrow declaration,
supportsModuleFlows: true, and every declared adapter is checked forprepareFlowwhen created. Planning filters unsupported module flows during implicit selection and reports the exact selected implementation during explicit selection.This is not scenario metadata or a generic capability framework. No scenario YAML changes. The previous path-derived rule is removed. Named driver/channel constraints, selected implementation support, provider mode, model constraints, and auth constraints remain independent.
Discord, Matrix, Slack, and WhatsApp declare module-flow support because their adapters prepare flows. Telegram, Crabline, and the built-in QA channel do not. The catalog currently contains 143 module flows after main independently converted one prior module scenario to inline steps.
Historical overlap is resolved: #115777 and #116262 are closed, and #115777's evidence work was superseded by merged #119761. This patch preserves #119761's realized-driver/evidence semantics and does not change no-factory fallback behavior.
Production delta is
+151/-45(net+106), excluding tests and docs. The positive delta is the owner contract, lifecycle-safe rejection, and propagation through the independent CLI, profile, lab-server, runtime-pair, suite-planning, and runtime entry points; there is no compatibility or deprecation layer.User Impact
No end-user behavior changes. QA operators get honest selection: module flows run only on implementations that prepare them, unsupported explicit selections explain which implementation cannot run the flow, and unsupported flows cannot fulfill coverage.
Evidence
36113539403ed9f9ef84b591ce8282c196191da1.qa/scenarios/**files changed.tbx_01kzbchf6y9pmrwyzvhewkckr8, Actions run 31096509614, including all 149 public Plugin SDK subpaths.git diff --checkpassed.