improve(qa): standardize script evidence output#99374
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 1:19 AM ET / 05:19 UTC. Summary PR surface: Source +9, Tests +371. Total +380 across 7 files. Reproducibility: not applicable. This PR is internal QA maintenance, not a reported product bug. The source comparison does show two current-main script producers carrying duplicated evidence-writing behavior. Review metrics: 2 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the shared QA script evidence writer after current CI/proof is green, keeping the helper in the QA test/runtime layer and the QA Lab evidence helpers exposed through the extension API barrel for boundary-safe test use. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR is internal QA maintenance, not a reported product bug. The source comparison does show two current-main script producers carrying duplicated evidence-writing behavior. Is this the best way to solve the issue? Yes; placing the shared writer under the QA e2e runtime keeps the fix at the duplicated producer layer, and routing QA Lab evidence helpers through AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 328fb70ba730. Label changesLabel justifications:
Evidence reviewedPR surface: Source +9, Tests +371. Total +380 across 7 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
|
What Problem This Solves
Resolves a QA maintenance problem where script-backed scenarios assembled
qa-evidence.json, logs, and artifact references independently. This allowed unbounded diagnostic output, inconsistent artifact paths, and blocked prerequisite messages to be lost after output truncation.Why This Change Was Made
Adds one shared QA script evidence writer that owns schema construction, UTF-8 byte-bounded logs and failure details, contained artifact paths, and streaming blocked-status detection. The existing hosted-media and ClawHub release-candidate producers now use the shared path instead of maintaining separate evidence plumbing.
User Impact
There is no user-visible product behavior change. QA maintainers get consistent pass/fail/blocked evidence, reliable artifact links, and bounded diagnostics for script-backed scenarios.
Evidence
node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/script-evidence.test.ts test/e2e/qa-lab/media/hosted-media-provider-live.test.ts test/e2e/qa-lab/plugins/clawhub-release-candidate-install.test.ts— 28 tests passed.tbx_01kwk5g33qx6398swb0pdzyvw7—check:changedandcheck:test-typespassed.