Repository navigation
fix(qa): preserve script evidence coverage - #120286
Conversation
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 4:36 PM ET / 20:36 UTC. ClawSweeper reviewWhat this changesThe PR binds standalone QA script evidence coverage to the canonical scenario catalog and removes duplicated coverage metadata from individual producers. Merge readinessNo actionable findings: the patch repairs the shared producer boundary that current main leaves coverage-empty, and the protected member-authored PR needs ordinary maintainer merge judgment. Priority: P3 Review scores
Verification
How this fits togetherQA script producers write schema-v2 evidence artifacts for QA and release operators. The shared writer combines producer execution facts with catalog-owned scenario coverage before downstream artifact consumers read the result. flowchart LR
A[QA script producer] --> B[Shared evidence writer]
C[Scenario catalog] --> B
B --> D[Schema-v2 evidence artifact]
D --> E[QA and release consumers]
Decision needed
Why: The PR is member-authored and carries the protected maintainer label, so ordinary maintainer judgment remains required despite clean source and proof evidence. Before merge
Agent review detailsSecurityNone. PR surfaceTests +76. Total +76 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep catalog coverage owned and resolved by the shared writer, then merge once the current-base result remains clean. Do we have a high-confidence way to reproduce the issue? Yes—current main's writer-to-summary path is source-reproducible as emitting empty coverage for catalog-backed producers, and the PR adds an on-disk artifact regression for that path. Is this the best way to solve the issue? Yes—the shared writer is the earliest common catalog-aware producer boundary; restoring per-producer metadata would recreate semantic drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 62937ea6fc25. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
ClawSweeper disposition for reviewed head
|
9213088 to
7205d86
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper exact-head disposition for
Review: #120286 (comment) |
|
Merged via squash.
|
Related: #99374
Related: #110280
What Problem This Solves
Fixes an operational issue where standalone script-produced schema-v2
qa-evidence.jsoncould reportstatus: passwithcoverage: [], even though the scenario catalog already defined the canonical coverage. That left otherwise valid QA evidence semantically incomplete for direct artifact consumers.Why This Change Was Made
#99374 introduced the shared script evidence writer with caller-owned coverage metadata. #110280 then made the scenario catalog the semantic coverage owner and replaced producer coverage during aggregate ingestion, but standalone writer output bypassed that aggregate overwrite and could remain empty.
The canonical fix is at
createQaScriptEvidenceWriter, the earliest shared catalog-aware boundary for standalone script producers:coverageBinding: "none"opt-out used by the synthetic writer unit fixture;This is the best fix because it repairs direct artifacts at their producer while preserving aggregate overwrite as defense in depth. Rejected alternatives were restoring per-producer coverage fields, which would recreate drift and reverse #110280; relying only on aggregate overwrite, which leaves standalone artifacts broken; and moving catalog lookup into the generic summary builder, which would couple a generic formatter to catalog-only semantics and break intentional uncataloged fixtures.
Scope is deliberately limited to QA producer/tooling and tests. There are no product runtime behavior, config, dependency, workflow, protocol, release, or OTEL changes.
User Impact
QA and release operators can trust standalone script evidence to carry the same canonical coverage semantics as aggregate evidence. There is no shipped product runtime behavior change.
Evidence
7205d8616ea98bd74f8f0673cdd1d6c62628e053.8c68f74ef914763e846f4b3c2fef8b80ace56f5e(fix(ci): align hosted gates with workflow applicability #120313); that infrastructure fix is an ancestor of the fetchedorigin/main.git range-diff:9213088b4e4 = 7205d8616ea;88cbe84fa1bf0ee65339f708b8f43540a030799ebefore and after;b4a83018f8d644d1915d913b27f732cc13b221f81fa928fa4154d217bc1c96dabefore and after;exact-head; no fallback, bypass, or manual hosted dispatch.fnm exec --using v24.15.0 node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/script-evidence.test.ts test/e2e/qa-lab/runtime/diagnostic-events-boundary-runtime.test.ts;OPENCLAW_QA_REF=7205d8616ea98bd74f8f0673cdd1d6c62628e053 OPENCLAW_QA_PACKAGE_SOURCE_KIND=source-checkout OPENCLAW_QA_PACKAGE_SOURCE_SHA=7205d8616ea98bd74f8f0673cdd1d6c62628e053 fnm exec --using v24.15.0 node --import tsx test/e2e/qa-lab/runtime/diagnostic-events-boundary-runtime.ts --output-dir .artifacts/qa-e2e/pr120286-diagnostic-events-boundary;result.status = pass;observability.async-dispatch,observability.diagnostic-event-types,observability.model-call-diagnostic-events,observability.plugin-sdk-diagnostic-runtime-exports,observability.trusted-diagnostic-event-subscription,observability.trusted-trace-context,observability.w3c-trace-context-creation;qa-evidence.jsonSHA-256:73f735b1ca66109cd8bdcffe3cc372dd548116d7be3b3840bc1a0271817ef12a.oxfmt --check,git diff --check, and the changed-gate dry-run passed without changing the patch..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main; clean, no accepted/actionable findings (overall 0.98).Change Size
Changelog
No
CHANGELOG.mdentry. The changelog is release-only, and this changes QA tooling/test evidence behavior rather than shipped product behavior.AI Assistance
AI-assisted: yes. Codex assisted implementation, review, and proof. A sanitized local agent transcript is included below.
Agent Transcript
Redacted codex session transcript