Repository navigation
fix(qa): invalidate stale profile evidence before planning - #120012
vincentkoc wants to merge 1 commit into
Conversation
Punchcard-Session: cobalt-valley-meadow-mg
|
Codex review: blocked before merge. Reviewed September 2, 2026, 11:57 AM ET / 15:57 UTC. ClawSweeper reviewWhat this changesThe PR invalidates canonical QA profile evidence before planning and removes it again after profile planning, suite, or scorecard failures. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 6 items remain Keep this member-authored PR open: current main still leaves stale profile evidence on failures before suite startup, but the introduced cleanup path can mask the primary failure when deletion also fails. Priority: P2 Review scores
Verification
How this fits togetherQA Lab profile runs select scenario sets and produce canonical evidence for release and maturity automation. The profile command plans a run, invokes the suite, and attaches scorecard data to the resulting evidence. flowchart LR
A[Profile request] --> B[Profile planning]
B --> C[Resolve output directory]
C --> D[Clear prior evidence]
D --> E[Run QA suite]
E --> F[Attach scorecard]
F --> G[Canonical evidence]
E --> H[Failure cleanup]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +25, Tests +133. Total +158 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Rebase the focused pre-planning invalidation repair onto current main, preserve both primary and cleanup failures, and add a fault-injection regression at the profile lifecycle boundary. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path: make suite, scorecard, or profile-plan processing fail after the first deletion succeeds, then make cleanup deletion fail; the introduced catch reports only the cleanup failure. Is this the best way to solve the issue? No—the early invalidation belongs at the profile lifecycle owner, but the new catch must retain both the original and cleanup failures using the established QA error-precedence pattern. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 296b2ef4a28d. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Closing due to inactivity. |
What Problem This Solves
Fixes an issue where a failed or invalid QA profile run could leave a previously successful
qa-evidence.jsonin the reused output directory, allowing later planning or release automation to mistake stale evidence for the current run's result.Related context:
Why This Change Was Made
The root cause was lifecycle ownership:
runQaProfileCommandconsumed the canonical profile evidence path without first invalidating evidence owned by an earlier run, and failure paths did not reliably remove partially rewritten evidence.The canonical fix resolves the output directory once at profile-run entry, removes the canonical evidence before planning or execution, passes that resolved directory through the suite command, and removes canonical evidence again on any profile planning, suite, or attachment failure. The QA profile command remains the lifecycle owner. No paths were removed.
Production LOC: +79/-54 (net +25). Test LOC: +146/-13.
User Impact
Operators and release automation can trust that a failed QA profile run cannot appear successful because an older run left canonical evidence behind. Successful runs still write the profile scorecard and preserve the direct-flow watch URL.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/cli.runtime.test.ts- 144 tests passed.git diff --check HEAD^ HEAD- passed.node_modules/.bin/oxfmt --check extensions/qa-lab/src/cli.runtime.ts extensions/qa-lab/src/cli.runtime.test.ts- passed for both files.28376512747a04bd22ec8c027e9a11f0c0e882f6- clean, no accepted/actionable findings.extensions/qa-lab/src/cli.runtime.tsandextensions/qa-lab/src/cli.runtime.test.ts.CHANGELOG.mdchange; release-note context is captured here.AI-assisted: yes.
Punchcard-Session: cobalt-valley-meadow-mg