xai / grok-4.7-efficient / high / high 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.
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.
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
A provides the stronger actionable review: its focused fix can prevent reassuring advice from hiding review-required evidence while leaving persisted acceptance unchanged. This is a clear comparative advantage in source-grounded diagnosis, not proof that the conditional state occurs in production or that certification is bypassed.
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_4cc81038169d448a132a45da47f9883f2cecb9709c36d5c50020fa5d15005f58. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.