Skip to content

fix(qa): deduplicate producer and fallback evidence by scenario id - #117806

Merged
RomneyDa merged 1 commit into
mainfrom
codex/qa-evidence-dedupe
Aug 2, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
codex/qa-evidence-dedupe

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 2, 2026

Copy link
Copy Markdown
Member

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

  • Blacksmith Testbox focused proof: 45/45 test-file scenario runner tests passed.
  • New regression proof covers a failed script whose producer and fallback share scenario-script; the summary retains only the authoritative producer row.
  • Existing failed-script proof still retains both script-producer.web-ui.smoke and the distinct scenario-script fallback row.
  • git diff --check passed after rebasing onto current main.
  • Production delta: +5/-1 (+4 net). Tests: +31/-1 (+30 net).

AI-assisted: yes.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 12:34 AM ET / 04:34 UTC.

ClawSweeper review

What this changes

This 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 readiness

⚠️ Ready for maintainer review - 2 items remain

The 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
Reviewed head: 820d5f4eed5936dada72335aa05f494efbaf0e06

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, well-covered ownership-boundary repair with no source-level correctness or security finding; landing still needs the normal refreshed-head CI and maintainer review.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER-authored internal QA-harness repair, so the external-contributor real-behavior gate does not apply; the PR body supplies focused Testbox test evidence, while exact-head CI remains in progress.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER-authored internal QA-harness repair, so the external-contributor real-behavior gate does not apply; the PR body supplies focused Testbox test evidence, while exact-head CI remains in progress.
Evidence reviewed 5 items Current defect is source-reproducible: Current main gathers producer evidence, independently builds fallback evidence for producer runs that request fallback rows, then concatenates both arrays without checking entry identity; matching IDs therefore remain duplicated in the final summary.
Patch repairs the ownership boundary: The branch builds a set of authoritative producer test IDs and removes only fallback entries with an already-owned ID, leaving different fallback IDs intact.
Regression coverage matches the reported collision: The new test makes a failing script producer emit the same scenario-script ID as the fallback, then asserts that the merged summary retains one authoritative failure entry.
Findings None None.
Security None None.

How this fits together

QA 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]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main and several exact-head checks remain in progress; rebase or refresh the merge result and confirm the latest ClawSweeper rank-up guidance before landing.
  • Complete next step (P2) - The protected maintainer label, branch freshness requirement, and still-running exact-head checks require explicit maintainer landing review; no mechanical repair is indicated.
Agent review details

Security

None.

PR surface

Source +4, Tests +30. Total +34 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 1 +4
Tests 1 31 1 +30
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 36 2 +34

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a bounded QA reporting correctness fix that affects evidence and maturity summaries, not product runtime delivery or availability.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored internal QA-harness repair, so the external-contributor real-behavior gate does not apply; the PR body supplies focused Testbox test evidence, while exact-head CI remains in progress.

Label justifications:

  • P2: This is a bounded QA reporting correctness fix that affects evidence and maturity summaries, not product runtime delivery or availability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored internal QA-harness repair, so the external-contributor real-behavior gate does not apply; the PR body supplies focused Testbox test evidence, while exact-head CI remains in progress.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Current-main blame attributes the evidence merge block to the commit that introduced the test-file scenario runner and its test suite. (role: current runner introducer and recent area contributor; confidence: high; commits: c1ee660b858b; files: extensions/qa-lab/src/test-file-scenario-runner.ts, extensions/qa-lab/src/test-file-scenario-runner.test.ts)
  • Dallin Romney: History shows prior work on duplicate child evidence and QA evidence/catalog boundaries, in addition to this branch. (role: prior QA evidence contributor; confidence: high; commits: 32dc664b4bfa, 8924e27bb6ea; files: extensions/qa-lab/src/test-file-scenario-runner.ts, extensions/qa-lab/src/test-file-scenario-runner.test.ts)
  • Colin Johnson: The history identifies the commit that introduced script-backed evidence scenarios, which established the producer/fallback integration being repaired. (role: script-evidence feature contributor; confidence: medium; commits: 591313e80a5e; files: extensions/qa-lab/src/test-file-scenario-runner.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the branch against current main and confirm the remaining exact-head checks complete successfully.
  • Before landing, review the latest ClawSweeper comment and address or explicitly disposition its Rank-up moves.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa RomneyDa self-assigned this Aug 2, 2026
@RomneyDa
RomneyDa merged commit 652b0b9 into main Aug 2, 2026
198 of 205 checks passed
@RomneyDa
RomneyDa deleted the codex/qa-evidence-dedupe branch August 2, 2026 09:20
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant