Repository navigation
fix(qa): reject suite summaries with missing outcomes - #125122
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 9:16 AM ET / 13:16 UTC. ClawSweeper reviewWhat this changesThe PR gives QA suite summaries one shared accounting validator so direct gates and confidence reports reject inconsistent complete outcome counts. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open. The latest head addresses the prior scenario-granularity finding: complete counts now reconcile with scenario outcomes without incorrectly counting lower-level blocked evidence rows. Current main still has separate, weaker direct-gate and confidence-report validation; wait for exact-head CI and the maintainer-owned merge decision. Priority: P2 Review scores
Verification
How this fits togetherQA Lab writes a suite-summary artifact after running scenarios and collecting evidence. Direct QA commands and confidence reports consume that artifact to determine whether an operator sees a valid passing result. flowchart LR
A[QA scenario execution] --> B[Suite summary artifact]
B --> C[Shared accounting validation]
C --> D[Direct suite command]
C --> E[Confidence report]
D --> F[QA operator result]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +65, Tests +128, Other 0. Total +193 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the shared validator after exact-head checks pass, keeping scenario results as aggregate-count ownership and lower-level evidence as corroborating evidence only. Do we have a high-confidence way to reproduce the issue? Yes, from source: a complete summary can report counts that differ from its scenario outcomes, and current-main direct gates do not reconcile that invariant. The PR adds focused regression coverage for the false-green shapes. Is this the best way to solve the issue? Yes. A shared validator at the suite-summary boundary is the narrowest maintainable repair because both direct gates and confidence reports consume the same artifact contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7068006c78a1. LabelsLabel changes:
Label 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 (6 earlier review cycles)
|
036a297 to
1f1bd30
Compare
1f1bd30 to
2e61e61
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2e61e61 to
c3a88da
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where direct QA suite commands could report success when a summary omitted required outcomes or contradicted its own scenario/evidence rows.
Why This Change Was Made
Complete
total/passed/failed/skippedcounts now share one accounting invariant across direct suite gates and confidence reports. Invalid accounting is surfaced as a typed artifact error, while legacy partial-count fallback, all-skipped handling, and report-only optional scenarios retain their existing behavior.User Impact
QA operators no longer get a false-green exit from internally inconsistent complete suite summaries. Corrupt or incomplete accounting fails closed instead.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/suite-summary.test.ts extensions/qa-lab/src/confidence-report.test.ts extensions/qa-lab/src/cli.runtime.test.ts— 223/223 tests passed.node scripts/check-changed.mjs -- extensions/qa-lab/src/errors.ts extensions/qa-lab/src/suite-summary.ts extensions/qa-lab/src/suite-summary.test.ts extensions/qa-lab/src/confidence-report.ts extensions/qa-lab/src/confidence-report.test.ts extensions/qa-lab/src/cli.runtime.test.ts— all changed-file gates passed, including extension typechecks, type-aware lint, dead-export scan, formatting, and import-cycle checks.