← Model losses

Head-to-head comparison

xai / grok-4.7-efficient / high / high effort preferred over cursor / composer-2.5 / Composer 2.5 default / unknown 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

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.

xai / grok-4.7-efficient / high / high effort answer

The review UI can certify an inspection as needing no further review, and can hide the footage that says otherwise, without ever touching acceptance authority.

## Conclusion

`ReviewTab` runs three independent decision paths that do not share a precedence rule, and none of them call `canAcceptInspection`, `canSetAcceptanceStatus`, or `canFireAcceptShortcut`. The certification-facing path can affirm persisted `ACCEPTED` while the evidence-quality path in the same render says reinspect, and the clean-pipe branch then removes the seek action that would show that evidence.

**Reproduction (all inputs are fields this file already reads; no extra coupling is assumed):**

1. `data.review_score.tier === 'auto_accept'`, `data.reviewability.reinspect_recommended === true`, `data.auto_clear.tier === 'GREEN'`, `inspectionMeta.acceptance_status === 'ACCEPTED'`, `grades.overall_grade <= 1`, `defect_count === 0` (or `structural_defects_total === 0` when `defect_count` is null), and segment classification returns at least one `tier === 'review'` segment so `trustGate != null`.

2. `DecisionStrip` never receives `reviewability`. At `ReviewTab.tsx:409-411` the action becomes `No review needed — high-trust assessment`. At `1037-1038` the disposition rationale becomes `High-trust assessment — auto-accept recommended.`

3. The contradiction detector at `1056-1064` warns on `ACCEPTED` plus auto-clear `RED`, `manual_review`, or `needs_review`. It does not read `reinspect_recommended`. `dispositionContradiction` stays null, so `DispositionCard` (`580-603`, `1076`) paints a green Accept pill with no warning. That pill is the persisted status, visually endorsed.

4. `isCleanPipe` (`1014-1017`) is only GREEN + grade ≤ 1 + zero defects. The zone ternary at `1199-1224` then replaces `SegmentTriageView` and `DecisionAssist` with `No defects found`. `DecisionAssist` (`322-324`, `358`) would have rendered `Recommend reinspection`, but it is unmounted. Problem-bundle `onSeek` (`240`) is gone, so the reviewer cannot jump to the review-required footage from this view.

5. Nothing in `ReviewTab.tsx` or `V3InspectionReview.tsx` imports `inspectionAcceptanceAuthority.ts`. No user action here writes `ACCEPTED`. The gap is the opposite: the screen affirms certification and removes the contradicting navigation, while server acceptance state is left untouched and ungated.

`V3InspectionReview.tsx:59` and `:427` pass `readOnly` from workspace Pro entitlement only. That is editability, not the owner-org accept gate in `canAcceptInspection` (`inspectionAcceptanceAuthority.ts:4-11`).

**Implications:** A reviewer or auditor can treat an already-accepted inspection as settled, skip the footage this view’s own reviewability signal marks for reinspection, and never see the contradiction this file already raises for weaker conflicts. Fixing it by writing `ACCEPTED` or `REJECTED` from the client would move authority off the server.

**Confidence:** High that the branches diverge for those inputs. Medium on how often the server emits `auto_accept` together with `reinspect_recommended`; those producers are outside this packet. The client does not reconcile them, so the behavior is reproducible whenever both are present.

**Smallest safe change (do not add an accept writer):**

- One helper in `ReviewTab`, used by `DecisionStrip`, `dispositionRationale`, the `ACCEPTED` contradiction check, and `isCleanPipe`: evidence blocks the auto-accept copy when `reviewability.reinspect_recommended` or `reviewable_pct < 50` (the same thresholds `DecisionAssist` already uses at `322-327`).
- Those cases must not render `No review needed` or `auto-accept recommended`. If status is `ACCEPTED`, set a contradiction string in the same style as the existing RED case (`1058-1059`). Do not clear or set `acceptance_status`.
- Do not take the clean-pipe branch when that evidence block is set or any segment `tier === 'review'`. Keep segment seek mounted.
- In `DecisionAssist` (`342-346`), also downgrade `needs_review` the way `manual_review` already downgrades `accept`, so the assist cannot show `Accept — pipe is in good condition` (`356`) beside the strip’s spot-check line (`412`).
- Replace the unscored YELLOW fallback `Approved — schedule re-inspection` (`426-427`) with Monitor wording. The chip at `404` already says Monitor. Do not treat that string as a status write.
- Leave `canAcceptInspection` / `canSetAcceptanceStatus` / `canFireAcceptShortcut` as the only client gates. Any later accept control must call them and must no-op while the evidence block is set. Server acceptance remains authoritative.

**Regression:**

- `auto_accept` + `reinspect_recommended` + `ACCEPTED` + GREEN: strip and rationale must not contain those two certification phrases; contradiction must be non-null; `acceptance_status` must be unchanged.
- Same scores with `reinspect_recommended === false`: existing auto-accept copy may remain (guard against over-blocking).
- GREEN, grade ≤ 1, `defect_count === 0`, `reinspect_recommended`, and a review-tier segment: zone 3 still renders that segment’s seek target, not only `No defects found`.
- `needs_review` with otherwise-clean reviewability: assist headline is not `Accept — pipe is in good condition`.
- Unscored auto-clear YELLOW: action text is not `Approved`.
- `canSetAcceptanceStatus` still returns `canAcceptInspection(user)` only for `ACCEPTED`, and `true` for every other status. `canFireAcceptShortcut` still returns false for red, unauthorized, already accepted, and `signoffState === 'unknown'`.

## Alternatives and discarded hypotheses

- **Add-observation distance drift** (`924-943`): open freezes `currentDistance` after `startReview` seeks, and save uses `result.distance ?? frozenDistance` rather than the queue item’s `distanceFt`. Real record corruption if the picker omits distance, but it does not affirm or bypass acceptance authority. Secondary.
- **`canAcceptInspection` null-id equality** (`6-10`): if both `active_org_id` and `municipality_id` are null, `activeOrgId === user.municipality_id` is true. Not on the render path in this packet; `User` shape is outside it. Do not “fix” the gate by widening who can accept.
- **`ownerOrganizationDisplayName` prefers `active_org_name`** (`15-17`): can name the active workspace instead of the owning municipality. Unused by these two UI files.
- **`CONDITIONAL` mapped to Needs Review** (`562`, `581`): explicit map, not an accidental default. Harm depends on status taxonomy outside the packet.
- **Unused authority module:** display-only disposition (`558`) does not write `ACCEPTED`, so “never imported” is not by itself an accept bypass. The defect is the ungated certification copy, not a missing button.
- **Local skip/add progress** (`1032-1033`): not persisted and not certification. `reviewed` is in the status union (`640`) and never assigned.
- **`isClean` (`1003`) is unused.** Narrative cannot collapse while `isProblem` (`1626`). Neither is an authority gap.

## Missing evidence

`useTrustGate`, `useSegmentClassification`, scoring that emits `review_score.tier`, `V3LayoutShell` (where an Accept control would live), `InlineCodePicker`’s distance default, and the server accept endpoint are outside the packet. Consequence: this packet cannot show a click that persists `ACCEPTED` without the server, and it cannot prove how often `auto_accept` and `reinspect_recommended` co-occur. It can prove the client will display both stories whenever they do. `workspaceReadOnly` does not implement `canAcceptInspection`.

## Next action

Change only the advisory precedence and the clean-pipe gate in `ReviewTab.tsx`, with the regression cases above. Do not add an accept control or a client write of `acceptance_status`. Separately confirm any shell Accept / Shift+A path calls `canFireAcceptShortcut` and `canSetAcceptanceStatus` before it hits the server.

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

Primary judge's stated reason

Slight forced preference for B: reconciling explicit reinspection evidence with no-review advice and retaining segment seek targets better addresses the requested displayed-state/action/authority inconsistency. This is not an established material quality gap; an independent review could reasonably favor A's smaller action-restoration fix.

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_0c3fba52e0990043a69ac9196527382c3f3fb0bc688cc972c0b3b503e21f65d4. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.