Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 12:12 PM ET / 16:12 UTC. ClawSweeper reviewWhat this changesThe PR makes QA Lab evidence and suite summaries record the transport driver that actually ran, rather than the requested channel-driver setting. Merge readinessKeep this PR open for normal maintainer review. Current main still derives QA artifact channel evidence from the requested driver, while this patch carries the driver selected at transport creation into every artifact-writing runner; the implementation is focused, internally scoped, and has no blocking correctness finding. The branch is cleanly mergeable but behind main, so landing should rely on GitHub’s exact three-way merge result and current required-check gate. Priority: P2 Review scores
Verification
How this fits togetherQA Lab selects a transport adapter from suite configuration, runs scenarios through it, and writes evidence artifacts consumed by QA and release-quality workflows. This change carries the selected transport identity from adapter creation through the suite runners to flowchart LR
A[Suite configuration] --> B[Transport adapter selection]
B --> C[Realized driver]
C --> D[Standard, isolated, and parity 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 one authoritative realized-driver fact at transport creation, pass it through all suite execution modes, and emit that fact in both QA artifact formats while retaining requested configuration only as separate metadata where needed. Do we have a high-confidence way to reproduce the issue? Yes. Current main has a focused source path: a requested Is this the best way to solve the issue? Yes. Carrying the prepared driver from the adapter-creation owner is narrower and safer than reconstructing execution identity at the artifact layer, and it avoids widening the plugin SDK or adding a parallel public contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 38a5d39b3328. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Added real behavior proof to the PR body: a script drives the real production evidence/summary builders ( @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
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]>
…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]>
Previous check-lint failed with exit 143 (SIGTERM): the runner received a shutdown signal while oxlint:core was still running (285s). No lint error was reported. Re-triggering via synchronize. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Remove the ClawSweeper/openclaw#116192 reference from the test comment; keep the technical rationale for the invariant. Co-Authored-By: Claude <[email protected]>
911fa63 to
615cad4
Compare
check-lint failed with exit 143 (SIGTERM runner shutdown); a separate shard hit an unrelated git-worktree CI env mismatch in server.sessions.create.test.ts. Neither is from this PR's qa-lab changes. Co-Authored-By: Claude <[email protected]>
Remove ticket-specific issue references from inline comments; keep the technical rationale. Co-Authored-By: Claude <[email protected]>
|
Cleaned up the ticket-specific inline-comment lore (removed issue-number references, kept the technical rationale) and rebased against current main; CI is green (0 fail). The remaining actionable item from the last review is addressed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
check-lint failed with exit 143 (oxlint SIGTERM runner shutdown); a separate shard hit an unrelated CI env ENOENT in cron/command-runner.test.ts (child.pid). Neither is from this PR's qa-lab changes. Co-Authored-By: Claude <[email protected]>
|
this pr appears to have been autogenerated as a response to an issue I made for my pr |
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.Real behavior proof (trusted source, local checkout on Node 24.18.0):
A script drives the real production evidence/summary builders that
writeQaSuiteArtifactscalls internally —buildQaSuiteEvidenceSummaryandbuildQaSuiteSummaryJson— with a requestedchannelDriver: "live"but a realizedqa-channelfallback (no live adapter matched). It writes the producedqa-evidence.jsonandqa-suite-summary.jsonto a temp dir using the real JSON shape the artifact writer emits, then reads them back:{ "proof": "qa-evidence-realized-driver", "issue": "#115753", "requestedDriver": "live", "realizedDriver": "qa-channel", "evidenceExecutionChannel": { "id": "qa-channel", "live": false, "driver": "qa-channel" }, "summaryRunChannelDriver": "qa-channel", "verdict": { "evidenceRecordsRealized": true, "summaryRecordsRealized": true, "requestedLiveNotAttested": true } }The evidence
execution.channelrecordsdriver: "qa-channel",live: false— the realized fallback — instead of the requested"live". The summaryrun.channelDriveris"qa-channel"(realized wins over requested"live"). The requestedliveis no longer falsely attested. No real gateway/provider/transport started; no credentials or endpoints.This complements
suite-launch.runtime.test.ts, which drives the real unified partition launcher with a credential-blocked live partition, writes a realqa-evidence.jsonto disk, parses it back, and assertsexecution.channel.live === falsewithdriverundefined.Boundary: change is internal to
extensions/qa-lab/src/;createQaSuiteTransportAdapteris not re-exported throughapi.ts/runtime-api.ts.