Repository navigation
fix(qa): deduplicate producer and fallback evidence by scenario id - #117806
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 12:34 AM ET / 04:34 UTC. ClawSweeper reviewWhat this changesThis PR filters generic QA fallback evidence when a producer already emitted an entry with the same scenario ID, with a regression test for the failed-script case. Merge readinessThe patch is a focused, source-correct repair for duplicate QA evidence rows: current main concatenates producer and fallback entries without an identity check, while this branch retains the authoritative producer entry and preserves fallback entries with distinct IDs. Keep this PR open because it is maintainer-authored/labeled, is behind current main, and its exact-head CI is still running. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs cataloged script, Vitest, or Playwright scenarios and merges their evidence into a summary used by scorecards and maturity reporting. Script producers can emit authoritative scenario facts, while the generic runner emits fallback rows for command-level outcomes. flowchart LR
A[QA scenario catalog] --> B[Script or test runner]
B --> C[Producer evidence]
B --> D[Generic fallback evidence]
C --> E[Evidence merge boundary]
D --> E
E --> F[QA evidence summary]
F --> G[Scorecard and maturity report]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +30. Total +34 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the authoritative-ID filter at the shared evidence merge boundary, retain the regression pair for same-ID suppression and distinct-ID preservation, then land after the branch is refreshed and required checks complete. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main concatenates authoritative producer entries and requested fallback entries without comparing their IDs. The branch’s regression fixture constructs that same-ID failed-script path, but this read-only review did not execute tests. Is this the best way to solve the issue? Yes. The merge boundary is where both evidence sources are available, so filtering only fallback entries whose IDs are already producer-owned avoids hiding distinct command-level failures or moving policy into individual producers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6d6b3a852d45. 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
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(qa): deduplicate producer and fallback evidence by scenario id This is item 3/3 in the current shard. Shard 50/82. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
What Problem This Solves
Fixes an issue where a script-backed QA scenario could appear twice in the final evidence summary when its producer wrote an authoritative scenario row and the generic script runner also emitted fallback evidence for the same scenario ID. This produced one duplicated Telegram evidence row in the maturity run.
Why This Change Was Made
Merged evidence now drops a generic fallback entry only when a producer entry already owns the same
test.id. Producer entries remain authoritative, while fallback evidence with a genuinely distinct ID is preserved for command-level failures and other separate checks.The fix stays at the evidence merge boundary; it does not suppress all fallback evidence or deduplicate unrelated producer rows.
User Impact
QA summaries report each producer-owned scenario once, without hiding distinct fallback failures. Product runtime behavior is unchanged.
Evidence
scenario-script; the summary retains only the authoritative producer row.script-producer.web-ui.smokeand the distinctscenario-scriptfallback row.git diff --checkpassed after rebasing onto currentmain.AI-assisted: yes.