← Model losses

Head-to-head comparison

cursor / composer-2.5 / Composer 2.5 default / unknown effort preferred over deepseek / deepseek-flash / none / unknown effort · clear 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

Review the core [REDACTED: private project name] inspection-review workflow from evidence navigation through reviewer decision and acceptance. Identify the most consequential reproducible product behavior gap or inconsistency between displayed state, user action, and persisted authority; give exact source-grounded reproduction, smallest safe change, and focused regression coverage. Preserve certification and server acceptance authority.

cursor / composer-2.5 / Composer 2.5 default / unknown effort answer

## Evidence packet: inspection-review workflow (navigation → decision → acceptance)

### 1. Conclusion (highest-impact gap)

**When segment triage is active, the UI hides the unified evidence review queue (Review / Skip / + Add Obs) even though that queue is still built from cross-check data.** Reviewers get seek-only navigation on classified segments while signal-only and convergence items remain in `unifiedQueue` with no in-tab workflow to resolve them. That is a reproducible split between **what the product still treats as open review work** (queue + Decision Strip / Decision Assist) and **what the reviewer can act on in this pane** (local `itemStatuses` never updates in that branch; acceptance stays on `inspectionMeta.acceptance_status` only).

**Confidence:** High for the branch logic; medium that no other pane (e.g. `V3LayoutShell`, not in packet) fully replaces this queue.

**Supporting evidence**

| Behavior | Location |
|----------|----------|
| Queue built from cross-check (signal-only, profile gaps, convergence, top findings) | `ReviewTab.tsx` 771–879 |
| Segment path chosen when `hasSegmentTriage && !isCleanPipe` | 994–995, 1198–1212 |
| In that branch: only `SegmentTriageView` + `DecisionAssist` — **no** `unifiedQueue` UI | 1199–1211 |
| Queue UI (progress, `itemStatuses`, Add Obs, Skip) only in the `else` branch | 1245–1574 |
| Disposition is **display-only** from `inspectionMeta?.acceptance_status` | 558, 997–998, 1075–1076 |
| Acceptance gating lives in `inspectionAcceptanceAuthority.ts`; **not referenced in supplied `ReviewTab`** | authority file 4–57; ReviewTab imports omit it |

**Reproduction (source-grounded)**

1. Load Review tab with `data` such that `trustGate != null`, `reviewSegments.length > 0`, and `isCleanPipe` is false (e.g. `auto_clear.tier !== 'GREEN'` or grade/defect rules at 1014–1017 fail).
2. Ensure cross-check produces `unifiedQueue.length > 0` (e.g. `crossCheck.signalOnly` non-empty → items at 775–788).
3. **Observed:** Segment triage (“Review required” segments, seek on click) and Decision Assist; **not** observed: “N items to review”, Review/Skip/+ Add Obs, `reviewedCount` / `unresolvedCount` (1032–1033, 1247–1572).
4. **Persisted authority:** `acceptance_status` unchanged by this tab; observations only if created elsewhere — `createObservation` is only wired from queue flow (`handleObservationSave` 930–948) and `openAddObservation` from active queue row (1485–1504), which are absent in the triage branch.

**Implications**

- Reviewers can satisfy **spatial** navigation without **certification-relevant** disposition of flagged evidence items in the same surface that shows Decision Strip / disposition contradiction logic (1053–1070).
- Local queue progress is **ephemeral** (`itemStatuses` 640) and **branch-dependent**, so displayed “review complete” semantics (e.g. “All findings corroborated — no review needed” when `unifiedQueue.length === 0`, 1263–1266) do not align with server acceptance and can diverge from hidden non-empty queue logic when triage is shown for other reasons.

**Smallest safe change (preserves server acceptance authority)**

- Do **not** add client writes to `ACCEPTED` from Review tab; keep `canAcceptInspection` / server as authority.
- **Minimal product fix:** In the `hasSegmentTriage && !isCleanPipe` branch, if `unifiedQueue.length > 0`, also render the existing queue block (1245–1574) below segment triage, or a compact “Open evidence queue (N)” entry that mounts the same handlers — reuse `startReview` / `skipItem` / `markAdded` without new persistence semantics.

**Focused regression coverage**

- Fixture: `hasSegmentTriage === true`, `isCleanPipe === false`, `unifiedQueue.length > 0`.
- Assert: Review (or Start Review), Skip, and + Add Obs (when `assetId` present) are present and drive `itemStatuses` / `createObservation` as in the non-triage branch.
- Negative: `isCleanPipe === true` still suppresses alarming queue UX (1213–1244).
- Authority: no test that Review tab sets `acceptance_status`; optional assert DispositionCard remains non-interactive (div-only disposition chips 589–604).

---

### 2. Alternatives / discarded hypotheses

| Hypothesis | Verdict |
|------------|---------|
| **DispositionCard looks actionable but isn’t** | Likely intentional (“display-only v1”, 558); weaker than triage hiding the only Add Obs path in this file. |
| **`skipItem` / `markAdded` use stale `itemStatuses` in `findIndex`** (900, 914) | Real UX bug when advancing queue in the **else** branch; narrower than triage hiding entire queue. |
| **“All findings corroborated — no review needed”** when `unifiedQueue.length === 0` (1265) | Messaging vs formal acceptance (`acceptance_status`); important but secondary if queue is non-empty yet hidden. |
| **Multiple DB statuses collapse to one “Needs Review” chip** (`CONDITIONAL`, `PENDING_REVIEW`, etc. → same label, 560–567, 581) | Display vs persisted granularity; not a write authority bug. |
| **Contradiction only for `ACCEPTED` / `REJECTED`** (1056–1070) | Incomplete warnings for `PENDING_REVIEW` + RED auto-clear; display consistency, not action blocking. |

---

### 3. Missing evidence / uncertainty

| Dependency (outside packet) | Consequence |
|-----------------------------|-------------|
| `V3LayoutShell`, verdict bar, Accept / Accept Anyway, sign-off | Cannot confirm whether hidden queue is fully compensated elsewhere; triage gap remains **proven in ReviewTab** regardless. |
| `InspectionContext` / `inspectionMeta` refresh after `createObservation` | Unclear if observations added outside queue update cross-check on next load. |
| `useSegmentClassification`, `useTrustGate` thresholds | Exact conditions for `hasSegmentTriage` in production need those hooks; branch condition itself is explicit in snapshot. |
| Tests directory | No existing regression cited; recommendation is new focused tests only. |

---

### 4. Next useful action

Implement the **conditional queue render under segment triage** (smallest diff: shared sub-render or duplicate conditional wrapping 1245–1574), add the fixture test above, and spot-check one real inspection with both `reviewSegments` and `crossCheck.signalOnly` to confirm Review/Add Obs appear without exposing Accept to non-`canAcceptInspection` users (acceptance stays in gated shell/API).

deepseek / deepseek-flash / none / unknown effort answer

I'll analyze the supplied evidence directly. This is a read-only, single-lane assessment.

## Conclusion

The most consequential **reproducible** product gap in the supplied snapshot is in `ReviewTab.tsx`: the unified review queue's per-item progress state is **pure component-local UI state** (`itemStatuses`, `activeReviewIdx`) that is never persisted, never surfaced to the acceptance decision, and is **silently discarded** the moment the component unmounts. Critically, `ReviewTab.tsx` *does* render a persisted, server-derived acceptance disposition (`acceptanceStatus` from `inspectionMeta`, lines 998, 1076, 560–567), so the surface displays two competing authorities side by side: one durable (DB acceptance status) and one ephemeral ("N done · M remaining"), with no reconciliation. A reviewer can progress the queue to "all done," navigate away/back, and the DB still reads `PENDING_REVIEW`/whatever it was, with zero record that review occurred — while the UI *implied* completion.

**Confidence: medium-high** for the inconsistency being real and source-grounded; **medium** that it is the single "most consequential" gap, since the packet omits the persistence layer.

## Supporting evidence

**1. Ephemeral progress state, no write path (ReviewTab.tsx):**
- `itemStatuses` / `activeReviewIdx` are `useState` (lines 639–640).
- All mutations are local setState only: `skipItem` (897–908), `markAdded` (910–922), `stopReview` (952–957).
- `reviewedCount` / `unresolvedCount` are derived purely from this local map (1032–1033) and rendered as `{reviewedCount} done · {unresolvedCount} remaining` (1267–1271).
- No `useEffect`/callback persists `itemStatuses`; the only network writes are `createObservation` (933–943) and the lazy code-tree GET (661–663). The unmount cleanup (668–670) only clears active zone/highlight.

**2. Conflicting durable authority rendered simultaneously:**
- `acceptanceStatus = inspectionMeta?.acceptance_status` (998) is explicitly commented "display-only from inspectionMeta" (997).
- `DispositionCard` renders it as authoritative status text via `inspectionAcceptanceStatusLabel(status)` (609) and maps it to active disposition chips (560–581).
- `dispositionContradiction` (1053–1070) already encodes the pattern that *displayed* status can contradict *AI* recommendation — but there is no equivalent reconciliation between **reviewer queue progress** and **persisted acceptance**. The reviewer's own completed work ("N done") and the persisted status live in two unlinked systems.

**3. Acceptance authority boundary is defined but never wired in this surface:**
- `inspectionAcceptanceAuthority.ts` supplies `canAcceptInspection`, `acceptanceReservedMessage`, `canFireAcceptShortcut`, `acceptShortcutKind`, `canSetAcceptanceStatus` (lines 4–57).
- **None of these imports appear in `ReviewTab.tsx`** or `V3InspectionReview.tsx` in the supplied evidence. `ReviewTab.tsx` imports only `inspectionAcceptanceStatusLabel` (line 28) — a *label* helper, not the authority gate. So a surface that displays acceptance status/contradictions does not itself gate or expose the acceptance action, and the packet does not show where (or whether) the authority functions are consumed. That is the concrete, evidence-grounded inconsistency between *displayed state* and *persisted authority*.

**4. Persistence gap for the "accept" terminal action:** `ReviewTab` has no accept/override control at all — only Review/Add Obs/Skip (1464–1531). Acceptance must happen elsewhere (outside packet). Whether that elsewhere correctly uses `canFireAcceptShortcut`/`canSetAcceptanceStatus` **cannot be verified from this snapshot** — the consumers are not among the listed missing dependencies either, which means the packet simply does not scope them.

## Smallest safe change (recommendation)

Do **not** change certification or server acceptance authority. The minimal, low-risk change that addresses the displayed/persisted mismatch:

1. **Label the progress as local and non-persistent.** In `ReviewTab.tsx`, change the progress affordance (1267–1271) from an implied completion state to explicit session-scoped wording, e.g. `Review progress this session: {reviewedCount} done · {unresolvedCount} remaining (not saved)`, and/or persist `itemStatuses` per `inspectionId` via `localStorage` so it survives remount. This removes the false implication that "done" is durable.

2. **Make the authority explicit at the point of display** without adding write powers: import `acceptanceReservedMessage`/`ownerOrganizationDisplayName` into the `DispositionCard` area so non-authorized viewers see why acceptance isn't offered, rather than a status chip with no explanation.

This preserves server authority (no new writes, no gate changes) and is confined to the file already in scope.

## Focused regression coverage

- **R1 (ephemeral-state honesty):** mount `ReviewTab`, skip/add items until `unresolvedCount === 0`, assert the persisted `acceptance_status` remains unchanged and that the UI copy does not claim durable completion.
- **R2 (authority parity):** assert that any surface rendering an Accept/Accept-Anyway control calls `canFireAcceptShortcut`/`acceptShortcutKind`/`canSetAcceptanceStatus` and that amber routes to `override` while green routes to `accept` (lines 42–51). This is precisely the class of test `canFireAcceptShortcut` was written for.
- **R3 (unknown sign-off fail-closed):** assert `signoffState: 'unknown'` yields `false`/`null` (lines 38, 49) so the client cannot emit `REVIEWER_SIGNOFF_REQUIRED`.

## Alternatives / discarded hypotheses

- **Contradiction logic (1053–1070) is a bug?** Rejected as the primary finding: it is intentionally sourced from durable data and correctly labeled "display-only." The gap is the *unpersisted* queue, not this block.
- **`SegmentTriageView` clean-range merge (78–87) off-by-one?** Uses `<= last.end_ft + 1`; plausible adjacency semantics, not demonstrably wrong from the packet. Discarded as a false positive.
- **`DecisionStrip` action-string precedence (409–428)?** Multiple overlapping heuristics, but all display-only and not authority-bearing. Lower consequence than the persistence gap.

## Missing evidence / dependencies and consequences

- `inspectionAcceptanceStatus.js`, `InspectionContext.js`, `useMergedObservations.js`, `useObservations.js`, `api/inspections.js`, and the accept-control component(s) are **outside the packet**. Consequence: I cannot confirm (a) whether any accept control exists in this review workflow, (b) whether authority functions are wired anywhere, or (c) whether `itemStatuses` is persisted by a parent. If a downstream writer already persists progress or gates acceptance, findings **1–3** are partly blunted; finding **3** (no authority import in these three files) remains true of the packet regardless.
- Non-blocking: `V3InspectionReview.tsx` is primarily boot/routing/impersonation logic (lines 44–434) and does not itself touch acceptance authority — consistent with, but not proof of, the gate living in the omitted shell/control components.

## Next useful action

Retrieve the accept-control component and `api/inspections.js` write path to determine where `canAcceptInspection`/`canSetAcceptanceStatus` are actually consumed, then confirm whether `itemStatuses` is persisted anywhere; that single check decides whether this is a UI-honesty fix (localStorage + copy) or a genuine authority-bypass bug.

Primary judge's stated reason

B is more useful for implementing and checking a concrete evidence-navigation-to-observation workflow repair, whereas A's main diagnosis treats an unproven persistence expectation as a product inconsistency. This is a clear comparative advantage in grounding the requested finding, not proof that B established the most consequential production-wide defect.

This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.

Battle wave: f6382501-bcc3-49c9-a1b7-b4247e5a724c. Pair: brp1_cbb1aaa866d1a84a9cfa061fac734c2f08e16d5389ff2389719a422b785e05f2. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.