Repository navigation
refactor(tests): simplify QA evidence and planning tests - #156908
vincentkoc wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates QA evidence tests, shares temporary-directory cleanup, and restores three planning scenarios to lane coverage. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR retains a useful planning-coverage repair that current main still lacks. Source review found no concrete introduced bug, but the changed tests remain unexecuted and overlapping main changes need reconciliation. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherQA Lab selects test scenarios and turns their results and artifacts into evidence galleries and coverage reports. These tests check scenario eligibility, evidence interpretation, and fixture cleanup. flowchart TD
A[Scenario catalog] --> B[Lane and suite planning]
B --> C[Scenario execution]
C --> D[Results and artifacts]
D --> E[Evidence gallery and scorecard]
F[QA tests and temporary fixtures] --> B
F --> E
Technical reviewBest possible solution: Retain the catalog-selector repair and assertion-preserving cleanup while adapting the test consolidation to current main's existing audits. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: current main's obsolete coverage IDs match none of the three intended catalog rows, leaving their parameterized lane checks empty. Collection and execution were not performed. Is this the best way to solve the issue? Yes: updating the selector, guarding its membership, and consolidating assertions at their existing test owners is a bounded solution; runtime correctness of the revised tests remains unverified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ed1e21065ea. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -76. Total -76 across 8 files. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 8, 2026, 1:37 PM ET / 17:37 UTC (Revision 2). |
What Problem This Solves
QA evidence tests repeat redaction runs and fixture bookkeeping, while a stale planning coverage selector silently omits three catalog rows. Gallery temporary roots also lack consistent cleanup ownership.
Why This Change Was Made
Reuse the existing temporary-directory tracker, protect scorecard setup with its cleanup scope, and consolidate blocked-producer and redaction checks around their surviving literal assertions. Restore the three planning rows, add an explicit catalog-membership guard, and move ordering/eligibility assertions into stronger survivors.
User Impact
No production behavior changes. Eight test/support files change: tests +286/-357 (-71), support -5, production 0; net -76 lines.
Static registrations change from 93 to 90 and statically expanded cases remain 150, with changed membership: two duplicate redaction executions are removed; three planning rows and one membership guard are added while two dominated shells are removed. Gallery's 20, script-evidence's 30 and scorecard's 13 cases remain.
Evidence
Current-Main Integration Note (October 14)
Source-only comparison of head
687a0a7194e0d4897f2a7404c714857c82fe60c2against main769d14b937f580b9bac2118f64943d1059b2e5ddnarrows two integration decisions:evidence-gallery.test.tsstill usescreateTempRepowithout a suite cleanup hook; the support helper still returns an untracked temporary directory. This is remaining test-fixture ownership work, not a production defect.suite-planning.test.ts. Merged PR #168028 (4e97b5ca74f8a4d0f237472d9dd125652563edb3) deleted the case this draft strengthens. Do not revive it; preserve main's current prototype-mutation and deletion/recreation ordering tests. This does not establish equivalent coverage of every encounter-order assertion.These are two bounded source findings, not a complete eight-file audit, proof that cleanup is the sole residual, or supersession of this PR. The branch has not been rebased or narrowed. The counts and validation below describe the existing candidate; they do not qualify a future integration. Held YAML inputs, fs-safe qualification, execution proof, owner/review and current-head CI/native landing gates remain outstanding.
qa/scenarios/personal/redaction-no-secret-leak.yamlandqa/scenarios/security/secret-redaction-tool-logs.yaml. Exact upstream dependency sources are outside the native inputs; exact fs-safe 0.18.2 implementation and runtime qualification remain unproven.--no-verifyexception after separate pinned formatting proof. The configured literal scan was disabled (unset); no full hook or runtime pass is claimed.