openai / gpt-6.1-sol / high / high effort preferred over openai / gpt-6-luna / xhigh / xhigh effort · close win.
Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.
Reviewed public evidence
Task goal
Audit [REDACTED: private project name] QA/QC flag review and correction flow for data-loss, stale-state, and invalid-transition defects across queue selection, edit/save, and refresh. Report only defects demonstrable from supplied code, with exact trigger and state transition, smallest safe fix, and targeted regression scenarios.
openai / gpt-6.1-sol / high / high effort answer
Independent, read-only assessment of the supplied snapshot.
## Findings
### 1. Nonterminal QA reviews have no completion-refresh mechanism
**Evidence:** `[REDACTED: private project name]/frontend/src/api/qaReview.ts:39–47,57–59`; `[REDACTED: private project name]/frontend/src/components/qa-review/QAReviewPanel.tsx:66–75`.
- **Trigger → transition:** Triggering a review invalidates its query once. If that refetch returns `pending` or `running`, the panel displays “in progress,” but neither the hook nor panel schedules another fetch when the server completes.
- **Impact:** The panel can remain on an obsolete in-progress state until an unrelated refetch occurs.
- **Smallest safe fix:** Poll only while the fetched status is `pending` or `running`; stop on `completed` or `failed`.
- **Regression:** Return `pending`, then `running`, then `completed`; verify automatic progression and polling termination. Repeat with `failed`.
- **Confidence:** High for the missing local mechanism. An externally configured polling/invalidation mechanism could compensate; none is supplied.
### 2. Review mutations leave summary queries uninformed
**Evidence:** `[REDACTED: private project name]/frontend/src/api/qaReview.ts:57–59,83–91`.
- **Trigger → transition:** A mounted `['qa-summary', submissionId]` query contains an earlier aggregate. A successful review run changes review coverage or scores, but the mutation invalidates only `['qa-review', inspectionId]`.
- **Impact:** Inspection detail refreshes while its submission summary can retain old counts, scores, and bands.
- **Smallest safe fix:** Also invalidate affected summary queries. Without an inspection-to-submission mapping, invalidating the `['qa-summary']` prefix is the smallest safe change. For asynchronous runs, refresh summaries when completion is observed as well.
- **Regression:** Cache a summary, successfully complete a review with changed aggregate values, and verify that the mounted summary refetches.
- **Confidence:** High for the invalidation omission; observable staleness requires the run to change the aggregate and no external refresh to intervene. Dismissal effects on summary scoring are not established.
### 3. Keyboard revalidation permits repeated submissions while pending
**Evidence:** `[REDACTED: private project name]/frontend/src/pages/QAQCPage.tsx:106–109,164–166,229–230`.
- **Trigger → transition:** Select an inspection, press `r`, then press it again while revalidation remains pending. Every press invokes `revalidate.mutate` with a fresh UUID; `runRevalidate` checks only whether an inspection is selected.
- **Impact:** The parent submits overlapping revalidation commands instead of treating pending revalidation as a guarded transition. Fresh idempotency keys do not identify these submissions as retries of one operation.
- **Smallest safe fix:** Return immediately when revalidation is pending. If immediate repeated events must be excluded before a render, use a synchronous in-flight ref released on settlement.
- **Regression:** Dispatch repeated `r` events while the mutation is unresolved; assert one invocation. After settlement, assert another invocation is allowed.
- **Confidence:** High for repeated mutation invocation. Request serialization and any resulting backend corruption cannot be determined without `../api/qaqc`.
### 4. Dismissing findings produces an unsupported “passed QA” conclusion
**Evidence:** `[REDACTED: private project name]/frontend/src/components/qa-review/QAReviewPanel.tsx:15–19,83,142–145`.
- **Trigger → transition:** A completed review contains findings, and all their IDs appear in `dismissed_flags`. Filtering makes `activeFlags.length` zero, so the panel displays “No issues found. This inspection passed QA.”
- **Impact:** The UI conflates **findings dismissed** with **no findings generated**. It can simultaneously display a RED health badge and the pass message; dismissal does not change the supplied review’s score or band.
- **Smallest safe fix:** Distinguish “No issues found” from “All findings dismissed.” Do not derive a QA-pass decision solely from the active-flag count.
- **Regression:** Render a completed RED review with every finding dismissed; assert the pass/no-findings message is absent. Preserve appropriate empty-state messaging for a genuinely empty review.
- **Confidence:** High for the incorrect no-findings statement. Whether dismissal is permitted to confer formal approval requires policy evidence not supplied.
## Boundaries and discarded hypotheses
- **No edit/save data-loss defect is established.** `QaQcEditPanel` and its save implementation are outside the packet. Clearing `focusedField` on selection (`QAQCPage.tsx:75–79`) alone does not prove draft destruction.
- `nextUnresolvedInspection` traverses the current queue and wraps (`94–99`), while filter/page changes retain selection (`205–216`). These behaviors deserve targeted tests, but the supplied evidence does not establish whether wrapping or retaining an off-queue selection violates the intended navigation contract.
- Refresh-related error-index changes alone do not prove incorrect editor targeting: highlighting an error and explicitly opening it are separate actions in this page.
**Next useful action:** Add the targeted regressions above, then audit the editor/save and QA/QC hooks for dirty-draft ownership, request ordering, and refresh reconciliation.
openai / gpt-6-luna / xhigh / xhigh effort answer
## Demonstrable issues
1. **QA review can remain stuck on “in progress” after an asynchronous run completes.**
`useQAReview` has no polling option (`qaReview.ts:39–47`). After a successful trigger, it invalidates the query (`qaReview.ts:57–59`), which causes a refresh, but `QAReviewPanel` renders `pending`/`running` as a terminal loading view with no retry control (`QAReviewPanel.tsx:66–75`). If that refresh reads `pending` or `running`, and the server completes the review while the page stays mounted, this code schedules no further refresh. The panel can keep showing the stale in-progress state.
**Smallest safe fix:** poll while the fetched status is `pending` or `running`, stopping once it is terminal.
**Regression:** trigger a review; return `running` from the first GET and `completed` from a later GET without remounting or changing focus; verify the panel updates.
**Caveat:** application-wide query defaults are outside the packet and could provide polling.
2. **Refreshing loses the page’s selected inspection and focused-error state, despite writing focus details to the URL.**
`QAQCPage` initializes `selectedInspectionId` and `focusedField` to `null` (`QAQCPage.tsx:59–61`). Opening an error writes focus-related parameters to the URL and sets local focus state (`:82–86`), but the page never reads those parameters to restore state. It also does not serialize the selected inspection ID in `applyFocusedParams` (`:36–48`). After refresh, the page therefore passes `inspectionId={null}` and `focused={null}` to its child panels (`:221–237`), even if the URL still contains `tab`, `obs`/`obs_idx`, and `focus`.
**Smallest safe fix:** persist the inspection ID with the focus parameters and hydrate selection/focus from them on page load.
**Regression:** select an inspection, open one of its errors, reload the same URL, and verify the inspection and focused field are restored. This is a navigation/state-restoration defect; the supplied code does **not** establish loss of saved edits.
## Limits of the evidence
No edit/save implementation or QA/QC API hooks are included, so I cannot establish data loss during save, save/revalidation ordering defects, or invalid status transitions. Those dependencies are explicitly outside the packet. The shown queue navigation and mutation invalidation do not by themselves demonstrate such defects.Primary judge's stated reason
B receives a slight forced preference because its dismissal finding gives maintainers a particularly well-supported correction to misleading QA feedback, with a precise regression scenario. This is not an established material quality gap: A contributes useful reload-state coverage, and some additional B findings remain conditional. An independent review could reasonably reject this weighting.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: 73088e6c-242b-4408-960f-d09feaae160d. Pair: brp1_8666c9e3b16e6fcb903b93cd0da3eaef31b1d9b2d40330d2c0f8a74a37c543dc. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.