Repository navigation
Conversation
QA suite evidence (qa-evidence.json, qa-suite-summary.json) derived execution.channel.driver/live from the requested channelDriver param instead of the transport adapter actually created. A qa-channel fallback created when no live adapter matched was therefore reported as driver: "live", live: true, falsely attesting a live channel executed. Surface the realized driver (live | crabline | qa-channel) from createQaSuiteTransportAdapter and thread it through the three suite runners into writeQaSuiteArtifacts, where summary and evidence now prefer it over the requested driver. The credential-blocked path (no transport created) records driver: undefined, live: false instead of forwarding the requested driver. Fixes openclaw#115753 Co-Authored-By: Claude <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 11:46 PM ET / July 30, 2026, 03:46 UTC. ClawSweeper reviewWhat this changesThreads the transport driver actually created by QA Lab into suite summary and evidence artifacts, so fallback and credential-blocked runs do not claim the requested live driver executed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep open. This focused branch appears to address the linked QA-evidence integrity bug and adds coverage for the prior review concern, but its after-fix evidence is still test-only rather than proof from a real QA suite run that produces the corrected artifact. Priority: P2 Review scores
Verification
How this fits togetherQA Lab selects a transport adapter for each suite partition and later writes JSON evidence consumed by operators and release-quality tooling. This change carries the selected adapter identity into artifact generation so the recorded execution facts match the transport that actually ran. flowchart LR
A[Suite run parameters] --> B[Transport adapter selection]
B --> C[Realized driver fact]
C --> D[Suite runners]
D --> E[Artifact writer]
E --> F[QA evidence JSON]
E --> G[Suite summary JSON]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +31, Tests +39. Total +70 across 9 files. View PR surface stats
Review metricsNone. 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: Keep the canonical bug open, land this narrow prepared-fact propagation only after a real suite artifact demonstrates the fallback and blocked-partition outputs, then let GitHub close the linked report on merge. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was established in this review. The linked report and the branch tests give a clear source-level path, but no after-fix real QA suite artifact was supplied. Is this the best way to solve the issue? Yes, provisionally: carrying the realized transport fact from adapter creation to artifact writing is narrower and less error-prone than reconstructing execution identity from requested parameters; a real artifact run should confirm every runner path. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against cc48aef14355. 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)
|
…tory Add a regression covering a requested live driver with a channelId and supplied factories where none match: adapter selection throws instead of falling back to qa-channel while reporting driver live. This documents that realizedDriver 'live' is only returned when a matching factory actually creates the adapter. Co-Authored-By: Claude <[email protected]>
|
@/home/0668001413/.claude/jobs/1e7c40bb/tmp/pr116192_comment.md |
|
Thanks for the focused work here. Closing as duplicate and incomplete relative to the older canonical repair in #115777. This patch improves several focused paths, but unified, mixed, missing-result, and generic failure artifacts can still report the requested driver instead of the realized driver. The canonical PR carries the realized adapter facts through aggregation and is the route we will continue. |
|
@/home/0668001413/.claude/jobs/1e7c40bb/tmp/pr116192_close.md |
Remove the ClawSweeper/openclaw#116192 reference from the test comment; keep the technical rationale for the invariant. Co-Authored-By: Claude <[email protected]>
What Problem This Solves
QA suite evidence (
qa-evidence.json,qa-suite-summary.json) derivedexecution.channel.driver/livefrom the requestedchannelDriverparam instead of the transport adapter actually created. WhenchannelDriver: "live"was requested but no live adapter factory matched (so the built-inqa-channelfallback ran), evidence still reporteddriver: "live",live: true— falsely attesting a live channel executed. A credential-blocked partition likewise recorded its requested driver as executed despite never creating an adapter.The contract (
docs/concepts/qa-e2e-automation.md) statesqa-evidence.jsonrecords "channel, driver actually used".Fixes #115753
Why This Change Was Made
The realized driver (
live|crabline|qa-channel) is computed insidecreateQaSuiteTransportAdapterbut was previously passed only into the transport factory context and discarded — artifact writers only ever saw the requestedchannelDriver. The fix surfaces the realized driver as a prepared fact at the transport-creation boundary and threads it through the three suite runners intowriteQaSuiteArtifacts, where summary and evidence now prefer it over the requested driver.The realized driver is only set to
"live"when a matching live factory actually creates the adapter: whenusesLiveAdapteris true,createQaTransportAdaptergoes throughrequireQaTransportFactory, which throws (no QA transport factory for live:<channelId>) if no factorymatchesthe channel — it never falls back to the sharedqa-channeltransport while still reportinglive. So the inferredrealizedDrivercannot diverge from the adapter that was actually created.This follows AGENTS.md's "carry prepared facts forward" guidance: the realized driver is known at transport creation and should not be rediscovered (or, worse, replaced by the requested value) at the evidence-writing layer.
User Impact
qa-evidence.json/qa-suite-summary.jsoncould report a live channel executed when only theqa-channelfallback ran; blocked partitions falsely claimed their requested driver executed.driver: undefined,live: falseinstead of forwarding the requested driver; the per-scenariostatus: "blocked"still conveys the blocked state.No schema change —
qaEvidenceChannelSchema.driveralready accepted any non-empty string; a realized driver string flows through unchanged. No public type widened:QaTransportAdapterFactoryResult/QaChannelDriverRuntime(exposed viaruntime-api.ts) are unchanged; the realized driver is surfaced only via a suite-local intersection return type oncreateQaSuiteTransportAdapter.Evidence
Behavior addressed: evidence records the realized transport driver, not the requested one; the
qa-channelfallback for a requestedlivedriver is now reported asqa-channel, and a credential-blocked partition no longer attests a live channel ran.Validation (trusted source, local checkout on Node 24.18.0):
Real behavior proof — these tests exercise the real production paths, not mocked output:
suite-launch.runtime.test.ts > "reuses unavailable channel credential evidence across serial partitions"drives the real unified partition launcher with a credential-blocked live partition, writes a realqa-evidence.jsonfile to disk, parses it back, and asserts the blocked entry hasexecution.channel.live === falsewithdriverundefined — proving the fix end-to-end through artifact generation. (The prior buggy behavior asserteddriver: "live", live: truehere.)suite.test.ts > "keeps metadata-only live channel drivers on the shared QA transport"asserts the realizeddriveris"qa-channel"whenliveis requested but no live adapter is selected.suite.test.ts > "rejects a requested live driver whose channel has no matching factory instead of recording live"(new) locks the realization invariant: a requestedlivedriver with a channelId and supplied-but-nonmatching factories throws at adapter selection (no QA transport factory for live:whatsapp) rather than falling back toqa-channelwhile reportinglive. This is the case ClawSweeper flagged — it cannot produce a falseliveattestation becauserequireQaTransportFactorythrows before any driver is returned.suite.summary-json.test.tsadds a case whererealizedDriver: "qa-channel"overrides a requestedchannelDriver: "live"in the summary.Boundary: change is internal to
extensions/qa-lab/src/;createQaSuiteTransportAdapteris not re-exported throughapi.ts/runtime-api.ts.