← Model losses

Head-to-head comparison

xai / grok-4.7-efficient / xhigh / xhigh 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

MVP source audit; taskCategory=ux; module category=ux, difficulty=high, expectedTests=none. Inspection review lifecycle, client state transitions, keyboard and tier behavior using the rendered route and focused tests. State exact backend contract edges not included. Source review only; no tests run. Use only exact supplied files and cite file plus original line. Do not run tests, use shell/globs/root traversal, live services, databases, customer data, or edit source. Report concrete source-proven issues with impact and confidence, otherwise state no findings. Identify every excluded boundary explicitly; do not infer production readiness. This source-only audit packet is bound to verified merged main commit 9dab4e99d3bfadf995dbaa031b9b6a365970e1e3; it does not verify runtime or production behavior.

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

The rendered review route does not implement the UUIF redirect or executable keyboard and tier contracts in the focused tests. Those tests are non-running mirrors. Source-proven client issues are a stuck meta-load, an impersonation “pause” that does not freeze the surface, and an ID guard that does not match boot enablement. This does not establish runtime or production behavior.

## Findings

### 1. Inspection-meta failure is shown as indefinite loading
Confidence: 0.93. Impact: a successful review-boot plus a failed lean GET never reaches the page’s 404, 403, or Retry UI. The reviewer stays on “Loading review pack…” with no retry. Certification fail-closed routing also never runs, because it depends on `inspectionMeta`.

The page reads only `data` and `refetch` from the meta query and gates errors on `bootQuery` alone.

```104:104:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
const { data: inspectionMeta, refetch: refetchInspectionMeta } = useInspectionMeta(inspId, { includeObservations: false })
```

```239:259:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
// Real error states — a deleted/missing/forbidden/errored inspection must not
// fall through to the empty V3LayoutShell ...
if (bootQuery.isLoading) {
  return ( /* Loading inspection… */ )
}
if (bootQuery.isError) {
```

The shell treats a missing meta object as still loading, and the provider only forwards the prop. A first-fetch error leaves that prop undefined.

```511:516:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx
// Fail closed: never mount Standard until inspectionMeta exists ...
if (inspectionMeta == null) {
  return <div className="v3-cert-loading" role="status">Loading review pack…</div>
}
```

```555:557:[REDACTED: private project name]/frontend/src/context/InspectionContext.tsx
inspectionId,
mediaType,
inspectionMeta,
```

`useInspection` uses `retry: false` (`inspections.ts` 174–175). Boot can still be a cached success for 5 minutes (`useInspectionData.ts` 27) while meta, `staleTime` default, refetches and fails. The GH-1492 comment says a meta 404 used to paint the false-fatal screen (`V3InspectionReview.tsx` 118–121); that path now neither fatals nor recovers. The overlay Retry calls only `checkNow()` (`V3InspectionReview.tsx` 415), unlike the boot-404 Retry which refetches boot and meta (`V3InspectionReview.tsx` 277–281).

### 2. Impersonation “review paused” does not freeze review client state
Confidence: 0.92. Impact: during a dead session, and especially during banner-triggered stop-then-re-impersonate, playback, document shortcuts, and write controls stay live. Writes can go out as the super-admin identity or 404. The copy says the review is paused.

The overlay is a sibling. The shell stays mounted and `readOnly` is only the workspace flag.

```59:59:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
const workspaceReadOnly = Boolean(workspaceKey) && surface !== 'pro'
```

```407:427:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
{impWatch.flippedAway && (
  <ImpersonationEndedInterstitial overlay
    onReimpersonate={() => void impWatch.reimpersonate()}
    onRetry={() => void impWatch.checkNow()}
    ...
  />
)}
...
<V3LayoutShell readOnly={workspaceReadOnly} />
```

The overlay has no dialog role, focus move, or inert shell (`ImpersonationEndedInterstitial.tsx` 105–120). Shell focus is taken on mount (`V3LayoutShell.tsx` 1096–1099). Document Escape still runs and is not impersonation-aware (`V3LayoutShell.tsx` 2020–2046). `useV3GlobalKeyboard({ readOnly })` still runs (`V3LayoutShell.tsx` 579). The banner is not a full-screen block (`ImpersonationExpiryBanner.tsx` 68–113; wired at `V3InspectionReview.tsx` 402–405).

Recovery itself suppresses the overlay, then stops impersonation before re-impersonating, while the shell is not told `recovering`:

```114:128:[REDACTED: private project name]/frontend/src/hooks/useImpersonationWatch.ts
// Suppresses flip detection while OUR reimpersonate() transiently ends the session
const recoveringRef = useRef(false)
...
} else if (healthyRef.current.targetUserId != null && !recoveringRef.current) {
  setFlippedAway(true)
}
```

```229:253:[REDACTED: private project name]/frontend/src/hooks/useImpersonationWatch.ts
recoveringRef.current = true
...
if (currentlyImpersonating) {
  await apiClient.post('/super-admin/stop-impersonation')
}
await apiClient.post(`/super-admin/impersonate/${target}`)
...
await queryClient.invalidateQueries()
```

Nothing in the page pauses video, queue scan, or `useReviewProgress` (`V3LayoutShell.tsx` 641–647, `enabled: !readOnly` only). The same recovery function does not call `clearMediaTokenCache`. Whether `AuthContext` clears signed-URL cache when `/auth/me` updates is outside this packet. Client TTL is 870s (`mediaTokens.ts` 64, 377–380). Same-tab recovery can keep pre-recovery media URLs until that TTL if nothing else clears them.

### 3. ID guard does not match boot enablement
Confidence: 0.88 on the branch; route-pattern reachability is outside the packet. Impact: a negative legacy id skips “Invalid inspection ID.” and the boot error screens, then hits finding 1. A legacy id that merely starts with digits is treated as that integer.

Workspace ids must be all digits. Legacy `inspId` is not checked the same way, and `parseInt` is not a full-string parse.

```50:53:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
const workspaceInspId = workspaceInspIdCandidate && /^\d+$/.test(workspaceInspIdCandidate)
  ? workspaceInspIdCandidate
  : undefined
const inspId = routeParams.inspId ?? workspaceInspId
```

```90:94:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
const inspectionIdNum = inspId ? parseInt(inspId, 10) : null
const safeInspId =
  inspectionIdNum != null && !Number.isNaN(inspectionIdNum)
    ? inspectionIdNum
    : null
```

```222:222:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
if (!safeInspId) {
```

`0` is rejected by `!safeInspId`. `-1` is truthy. Boot is disabled unless `inspectionId > 0` (`useInspectionData.ts` 26), so `isLoading` and `isError` stay false and the shell mounts. `useInspectionMeta("-1")` is still enabled (`inspections.ts` 174, `enabled: !!id`) and can 404 into finding 1. `parseInt("12abc", 10)` is `12`, so that legacy param loads inspection 12. The invalid-id tests only pin `"abc"` and `"NaN"` (`V3InspectionReview.test.tsx` 146–160) and do not execute (below).

### 4. Reviewed-zones read failure fails open; late hydrate can replace client decisions
Confidence: 0.80. Impact: after refresh, a failed `GET /inspections/{id}/reviewed-zones` looks like no prior Clear/Skip/defect decisions, with no alert. A late success can replace in-session decisions made before hydrate. Queue scan is not held for this read.

The query does not surface `isError` to the provider; the effect hydrates only when `data` exists and has no local-dirty guard. The file comment says the setter replaces the whole map (`InspectionContext.tsx` 226–232, 235–260). The store function itself is not in the packet.

Scan start is fail-closed on overrides, not on reviewed-zones:

```1262:1266:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx
if (!targetsReady || (!readOnly && !overridesReady) || (activeQueueParam === 'all' && !allZoneScanReady)) {
  activeAutoTargetKeyRef.current = null
  pause()
  pauseAutoScanForManualReview()
  return
}
```

Overrides failure is visible (`V3LayoutShell.tsx` 2147–2153). Reviewed-zones failure is not.

### 5. Workspace entitlement failure is indistinguishable from Workspace mode
Confidence: 0.84. Impact: on the workspace alias, a failed workspace fetch forces read-only Pro workflow removal with no error and no retry. The hook’s `error` and `retry` are unused. Fail-closed read-only is explicit; the missing distinction is the UX defect.

```17:25:[REDACTED: private project name]/frontend/src/hooks/useWorkspaceProSurface.ts
const canUseProSurface = workspaceQuery.data?.can_use_pro_surface === true
return {
  surface: proModeActive && canUseProSurface ? 'pro' as const : 'workspace' as const,
  canUseProSurface,
  ready: !workspaceQuery.isPending,
  error: workspaceQuery.isError,
  retry: workspaceQuery.refetch,
}
```

```55:59:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
const { surface, ready: workspaceSurfaceReady } = useWorkspaceProSurface()
const workspaceReadOnly = Boolean(workspaceKey) && surface !== 'pro'
```

`ready` is true once `isPending` is false, including `isError`. Legacy `/inspections/:id/v3` ignores this ceiling (`workspaceKey` absent). That matches the page comment (`V3InspectionReview.tsx` 56–58), not a silent legacy bypass.

### 6. Escape uses the keyboard guard without the event the guard was fixed to accept
Confidence: 0.78. Impact: Escape can exit the zone or `navigate(-1)` when focus has already left an input/button/link but the event target is still that control. J/K and Shift+A/R behavior of the real handlers is not in this packet.

```21:23:[REDACTED: private project name]/frontend/src/components/v3-review/keyboardGuards.ts
// Check the event target too, because focus may move before a bubbling shortcut receives it.
if (el?.closest('summary, a[href]') || target?.closest('summary, a[href], button, input, textarea, select')) return true
```

```2021:2024:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx
function handleKeyDown(e: KeyboardEvent) {
  if (e.key !== 'Escape') return
  if (e.defaultPrevented) return
  if (shouldIgnoreKeyboard()) return
```

The focused-button tests call `shouldIgnoreKeyboard()` with no event (`V3InspectionReview.keyboard.test.tsx` 103–107). The “guard integration” mirror omits `BUTTON` and the wizard check (`V3InspectionReview.keyboard.test.tsx` 293–300) even though the real helper returns true for `BUTTON` and for any mounted `[data-testid="inline-code-builder-wizard"]` (`keyboardGuards.ts` 29–39).

## Confirmed in source, not treated as defects
- Non-numeric `inspId` such as `abc` does not mount the shell (`V3InspectionReview.tsx` 90–94, 222–236).
- The workspace alias waits until the entitlement query is not pending before mounting the shell, so the read-only URL sanitizer does not wipe a Pro deep link during that pending window (`V3InspectionReview.tsx` 386–396; sanitizer at `V3LayoutShell.tsx` 1080–1093).
- `acceptShortcutKind` matches the Shift+A mirror: green accept, amber override, red / `canAccept: false` / `signoffState: 'unknown'` no-op (`inspectionAcceptanceAuthority.ts` 30–51). `unsigned` and omitted `signoffState` are allowed through on purpose in that helper; the verdict-bar caller is not in the packet.
- Read-only shell omits the verdict slot, zone announcer, and Add Obs slide-over, forces `queueScanMode` false, and disables zone-boundary hotkeys (`V3LayoutShell.tsx` 608–609, 1075, 2077, 2084, 2283).
- Reviewed-zone PUT bodies without a 64-hex pack hash throw before the request (`inspections.ts` 205–228).
- Sign-url does not append a session JWT (`mediaTokens.ts` 326–329, 371–373). The file header still describes a legacy JWT fallback (`mediaTokens.ts` 28–32). That is comment drift, not current behavior.

## Discarded hypotheses
- Restoring the UUIF-to-V1 redirect. The route comment says that allowlist was removed on 2026-05-18 because it bounced PACP-coded CCTV (`V3InspectionReview.tsx` 96–102). The tests still describe the old redirect. That is contract drift, not evidence the route accidentally lost a redirect.
- `unsigned` Shift+A as a proven 422 bug. The helper comment blocks only red, unauthorized, already accepted, and `unknown` (`inspectionAcceptanceAuthority.ts` 24–39). The handler that might open sign-off is not in the packet.
- One-way zone stripping when leaving Workspace as a defect. Stripping on confirmed read-only matches the sanitizer comment. Live Pro toggle not restoring already-deleted params is an edge; the toggle store is outside the packet.
- Silent read-only on entitlement failure as a security fail-open. It fails closed. The defect is the missing error/retry affordance only.
- Media-token 401 retry and cross-tab cache clear as error swallowing. Those are intentional (`mediaTokens.ts` 302–311, 255–258).

## Excluded boundaries
Tests were not run. `src/__tests__/` is documented as excluded from vitest, and `render` throws because RTL is not installed (`V3InspectionReview.test.tsx` 3–7, 26–27; same note in the keyboard, standard-tier, and UUIF files). Several cases are `it.todo`. Zone J/K, Enter seek, Shift+R, distance-stepper keydown, right-pane DOM, and URL routing are local mirrors or filesystem reads, not the rendered route.

Backend contract edges not in this packet, so not verified:

- Acceptance machine and auth: `DRAFT` to `PENDING_REVIEW`, `PENDING_REVIEW` to `ACCEPTED` / `CONDITIONAL` / `REJECTED` / `REVISION_REQUESTED`, `REVISION_REQUESTED` back to `PENDING_REVIEW`, contractor `_enforce_contractor_inspection_write_guard`, `WRITE_ROLES` versus the client `admin` / `power_user` plus `MUNICIPALITY` plus `active_org_id === municipality_id` mirror (`INSPECTION_WORKFLOW.md` 82–126; `inspectionAcceptanceAuthority.ts` 4–11). `useUpdateInspection` does not call that mirror (`inspections.ts` 409–418).
- Auto-archive on `ACCEPTED`, `PATCH /inspections/{id}/archival`, soft-delete locks, merge, duplicates, bulk tag/project/work-order, batch reprocess. Wrappers exist for some; the review page does not call them.
- Observation CRUD, NASSCO mapping 422/advisory, observation-draft batch/action, decision ledger.
- Review-pack video, `user_overrides.json`, snapshots, heatmap, in-progress fps. The client review path uses `GET /inspections/{id}/review-boot`, `GET /review-pack/{id}/inspection.json`, and signed `GET /api/v1/inspections/{id}/video` (`useInspectionData.ts` 21–22, 80; `V3InspectionReview.tsx` 113). Doc also lists `GET /review-pack/{id}/video` (`INSPECTION_WORKFLOW.md` 780).
- Server handlers for reviewed-zones, review-progress, full-video-review, reviewer-signoff, recompute-scores, pacp/macp detail, header-copy-source, `/auth/me`, stop/start impersonation, and workspace `can_use_pro_surface`.
- `PUT` status casing. The doc uses uppercase `ACCEPTED` (`INSPECTION_WORKFLOW.md` 183). The verdict bar that would send the body is not in the packet. Sign-off invalidation targets `queryKeys.inspections.detail` (`inspections.ts` 542) while the page reads `detailMeta` (`inspections.ts` 165–167). `queryKeys.js` is outside the packet, so cache refresh of the rendered meta query is unproven.

Direct dependencies named by supplied files but not in the snapshot, so their behavior was not reviewed: `fullVideoReview.js`, `client.js`, `queryKeys.js`, `searchInput.js`, `crossTabReset.js`, `userPreferences.js`, `uuif.js`, `useMergedObservations.js`, `useNasscoMode.js`, `useZoneBoundaryAlert.js`, `useUserPreferencesQueue.js`, `useV3SessionStore.js`, review CSS, `storage.js`, `reviewData.js`, `auth.js`, `workspace.js`, `useWorkspaceProModeStore.js`, and the V3 children imported by `V3LayoutShell.tsx` (including `V3VerdictBar`, `V3RightPane`, `useV3GlobalKeyboard`, `VideoPlayer`, `scanNavigation`, `coverageRecovery`, attestation and progress hooks). Router table and `App.tsx` are not in the packet, so which URL actually mounts `V3InspectionReview` is unproven. The page comment says `/inspections/:inspId/v3` and `/w/:workspaceKey/municipal.inspection-review/:inspId` (`V3InspectionReview.tsx` 32–33). It never reads `?v=3`.

## Next useful action
Wire the page to meta `isError` the same way as boot (fatal versus impersonation, with retry), and pass a single frozen flag into the shell for `flippedAway || recovering` that pauses playback, ignores document shortcuts, and blocks writes. Do not treat the focused tests as the lifecycle contract until they import the route and are actually executed.

MATERIAL_EVIDENCE_CONFLICT: UUIF redirect tests say non-NASSCO types navigate to `/inspections/:id` with `replace: true` (`V3InspectionReview.test.tsx` 124–136; `V3InspectionReview.uuif-redirect.test.tsx` 33–40, 63–68), but `V3InspectionReview.tsx` 96–104 and 203–219 contain no type redirect and state that the NASSCO allowlist redirect was removed.

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

# V3 Inspection Review — UX source audit (evidence packet)

**Scope:** Supplied snapshot at commit `9dab4e99…`; inspection review lifecycle, client state transitions, keyboard behavior, Workspace/Pro surface (not legacy `V3Tier`). **No tests executed; no runtime.**

---

## 1. Conclusion (with evidence, impact, confidence)

### Finding A — UUIF / NASSCO redirect contract is stale vs the live route (HIGH)

**Observation:** The entry page documents removal of the NASSCO-only redirect; UUIF types are no longer sent to V1.

```97:102:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
  // [D-16] redirect REMOVED 2026-05-18: the allowlist {NASSCO_PACP_V7, NASSCO_MACP_V7,
  // NASSCO_LACP_V7} excluded CCTV-source inspections that ARE PACP-coded, bouncing
  // founder-tested URLs back to V1. Violates feedback_nassco_no_partial_coverage —
  // exclusion patterns are bugs to close, not exclusions to honor. V3 now renders any
  // inspection; types without zone data simply show an empty SpatialZoneBar + the
```

**Conflict:** Contract tests still encode redirect-to-V1 for six UUIF types and no-redirect for NASSCO types, including mirrored `shouldRedirectToV1` logic.

```124:136:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx
describe('V3InspectionReview — UUIF types redirect to V1 [D-16]', () => {
  ...
    it(`redirects ${uuifType} to /inspections/42 (replace:true)`, () => {
      ...
      expect(mockNavigate).toHaveBeenCalledWith('/inspections/42', { replace: true })
```

```45:52:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx
function shouldRedirectToV1(
  inspectionMeta: any,
  nasscoTypes: readonly string[],
): boolean {
  const inspType =
    inspectionMeta?.inspection_type_id ?? inspectionMeta?.inspection_type
  if (!inspType) return false
  return !nasscoTypes.includes(inspType)
}
```

**Impact:** Anyone using these files as the lifecycle spec will expect UUIF → V1 behavior that the rendered route no longer implements; regression tests (if ever enabled) would fight product intent. UX for UUIF on `/v3` is “empty/sparse V3,” not redirect—only documentable from the page comment, not from tests.

**Confidence:** 0.95 (direct contradiction in supplied sources).

---

### Finding B — Keyboard / tier “focused tests” are not part of CI execution (MEDIUM)

**Observation:** Multiple `__tests__` files state they are excluded from Vitest and serve as TS-checked documentation; RTL is stubbed or absent.

```4:6:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.keyboard.test.tsx
 * NOTE: src/__tests__/ is excluded from the vitest run per vitest.config.ts.
 * These tests serve as TS-checked contract documentation and will run once
```

```26:28:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx
const render: (ui: React.ReactNode) => { unmount: () => void } = () => {
  throw new Error('RTL not installed — see vitest.config.ts exclusion')
}
```

**Impact:** Keyboard guards (`shouldIgnoreKeyboard`, Shift+A/R via `acceptShortcutKind`), tier-removal scans, and mount/redirect behaviors are **not** runtime-verified by this packet; only static imports (e.g. real `shouldIgnoreKeyboard` in keyboard tests) partially bind to production.

**Confidence:** 0.9.

---

### Finding C — In-test keyboard guard mirror is weaker than production (LOW–MEDIUM)

**Observation:** Production guard yields for buttons, links/summary, event target, and inline code wizard.

```18:40:[REDACTED: private project name]/frontend/src/components/v3-review/keyboardGuards.ts
export function shouldIgnoreKeyboard(event?: Pick<KeyboardEvent, 'target'>): boolean {
  ...
  if (el?.closest('summary, a[href]') || target?.closest('summary, a[href], button, input, textarea, select')) return true
  ...
    tag === 'BUTTON' ||
  ...
  if (document.querySelector('[data-testid="inline-code-builder-wizard"]')) {
    return true
  }
```

The “guard integration” block uses a **local** mirror that omits `BUTTON`, `summary`/`a[href]`, and the wizard DOM probe.

```293:304:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.keyboard.test.tsx
  function guardedJHandler(el: HTMLElement | null, onZoneChange: () => void) {
    const tag = el?.tagName
    if (
      tag === 'INPUT' ||
      tag === 'TEXTAREA' ||
      tag === 'SELECT' ||
      !!el?.isContentEditable
    ) {
      return // guarded
    }
    onZoneChange()
  }
```

**Impact:** Developers copying the mirror (called out in comments as intentional) could under-guard shortcuts vs `keyboardGuards.ts`. Production shell uses `shouldIgnoreKeyboard()` for Escape (```2020:2024:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx```); J/K lives in `useV3GlobalKeyboard` (**not in packet**).

**Confidence:** 0.85 for documentation drift; 0.5 for user-facing bug without reading `useV3GlobalKeyboard`.

---

### Finding D — Workspace vs Pro surface: coherent fail-closed client transitions (POSITIVE, no defect)

**Evidence chain:**

- Server ceiling + UI preference: ```11:25:[REDACTED: private project name]/frontend/src/hooks/useWorkspaceProSurface.ts```
- Workspace alias read-only unless Pro entitled: ```56:59:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx```
- Block mount until entitlement resolves (avoids read-only URL sanitizer wiping deep links): ```386:395:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx```
- Read-only shell: disable queue scan, strip mutation/query params, restrict panes: ```607:608:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx```, ```1077:1094:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx```
- Certification stage1 blocked in Workspace: ```521:528:[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx```

**Confidence:** 0.9 that **in-scope** tier behavior is Workspace/Pro via `readOnly`, not `V3Tier` (aligned with ```192:198:[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.standard-tier.test.tsx```).

---

### Finding E — Inspection session / disposition hydration edges (client contract, MEDIUM)

**Lifecycle transitions in packet:**

| Transition | Client behavior | Source |
|------------|-----------------|--------|
| Inspection id change | Reset V3 session store; clear video/stills gates | ```181:192:[REDACTED: private project name]/frontend/src/context/InspectionContext.tsx``` |
| Wave-2 ready | `useReviewWave2Enabled` gates reviewed-zones + overrides | ```52:61:[REDACTED: private project name]/frontend/src/hooks/useInspectionData.ts```, ```233:261:[REDACTED: private project name]/frontend/src/context/InspectionContext.tsx``` |
| Zone disposition writes | `useUpdateInspection` binds `inspection_json_sha256` from reviewed-zones cache or throws | ```205:228:[REDACTED: private project name]/frontend/src/api/inspections.ts```, ```409:417:[REDACTED: private project name]/frontend/src/api/inspections.ts``` |
| Acceptance shortcuts | Fail-closed on `signoffState === 'unknown'` | ```30:39:[REDACTED: private project name]/frontend/src/lib/inspectionAcceptanceAuthority.ts``` |

**Excluded backend edges (named, not verified):** server rules for `acceptance_status` transitions, reviewer-signoff revocation, full-video-review idempotency, audit_log shape—referenced in `inspections.ts` / `INSPECTION_WORKFLOW.md` but backend not in packet.

**Impact:** UX can block saves locally with `REVIEW_PACK_IDENTITY_UNAVAILABLE_MESSAGE` if reviewed-zones/full_video_review SHA is missing; accept shortcuts won’t fire on unknown sign-off (intentional fail-closed).

**Confidence:** 0.88.

---

### Finding F — Impersonation lifecycle UX (GH-1492) is explicitly wired on the page shell (POSITIVE + one gap)

**Positive:** Boot 404 de-fatalized via `checkNow` / retry; overlay preserves scan state on `flippedAway`; T-2min banner on page not layout shell.

```118:122:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
  // [GH-1492] Impersonation session watch — long review passes under
```

```407:418:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx
      {impWatch.flippedAway && (
        <ImpersonationEndedInterstitial
          overlay
```

**Gap (low):** `everImpersonated` exposed from hook reads `healthyRef` during render (```270:272:[REDACTED: private project name]/frontend/src/hooks/useImpersonationWatch.ts```); boot-404 path uses `checkNow()` which corrects race (```152:162:[REDACTED: private project name]/frontend/src/hooks/useImpersonationWatch.ts```). UI that relied on render-time `everImpersonated` alone could be briefly wrong—boot path is guarded.

**Confidence:** 0.7 for edge case; 0.9 for main flows described in source.

---

## 2. Alternatives / likely false positives

- **“UUIF still redirects”** — FALSE per `V3InspectionReview.tsx`; only tests still say redirect.
- **“Standard tier UI still branches”** — Not provable inside packet for every component; `standard-tier.test.tsx` scans `v3-review/` via fs when run—that scan is **not** executed in this audit and `V3DenseHeader` / `V3VerdictBar` bodies are **outside** the packet.
- **Tenant isolation in helpers** — Not assessed; out of UX lane.

---

## 3. Missing evidence / excluded boundaries

**Explicitly excluded (not in packet; behavior not auditable here):**

- All **Missing direct dependencies JSON** entries (e.g. `useV3GlobalKeyboard`, `V3VerdictBar`, `VideoPlayer`, `useV3SessionStore`, `scanNavigation`, `client.ts`, `queryKeys` implementation, CSS).
- **vitest.config.ts**, DOM harness, RTL—test execution policy.
- **Runtime / production** at commit `9dab4e99…`.
- **Backend** handlers for: `/inspections/{id}/review-boot`, `/reviewed-zones`, `/review-progress`, `/full-video-review`, `/reviewer-signoff`, acceptance_status authorization (`INSPECTION_WORKFLOW.md` is product doc only).
- **Rendered route table** beyond strings in `V3InspectionReview.tsx` (workspace path parsing only in supplied file).

**Backend contract edges visible in packet but server semantics excluded:**

- `GET /inspections/{id}/reviewed-zones` → disposition + optional `full_video_review.inspection_json_sha256` (```188:247:[REDACTED: private project name]/frontend/src/api/inspections.ts```)
- `PUT /inspections/{id}/review-progress` (```988:995:[REDACTED: private project name]/frontend/src/api/inspections.ts```)
- `POST /inspections/{id}/full-video-review` with `Idempotency-Key: passId` (```255:277:[REDACTED: private project name]/frontend/src/api/inspections.ts```)
- `POST /media/sign-url` for video/stills (```331:385:[REDACTED: private project name]/frontend/src/api/mediaTokens.ts```)

---

## 4. Next useful action

1. **Reconcile [D-16] contracts:** Update or remove UUIF redirect tests (`V3InspectionReview.test.tsx`, `V3InspectionReview.uuif-redirect.test.tsx`) to match ```97:102:[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx```, or restore redirect in the page (product decision).
2. **Promote or relocate keyboard tests** out of excluded `src/__tests__` once RTL exists; align `guardedJHandler` mirror with `keyboardGuards.ts` or delete mirror in favor of importing production helper only.
3. **If validating J/K/Shift+A end-to-end:** add `useV3GlobalKeyboard` + `V3VerdictBar` to a future audit packet.

---

**MATERIAL_EVIDENCE_CONFLICT:** UUIF inspections are documented to `navigate('/inspections/:id', { replace: true })` in `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx` (e.g. lines 124–136) and `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx` (lines 45–52), but `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx` (lines 97–102) states the redirect was **removed** and V3 renders any inspection type.

Primary judge's stated reason

A receives a weak, forced preference because its supported metadata-error finding gives the audit a concrete recovery problem to address beyond B's predominantly test-contract drift findings. Its unsupported hydration conclusions reduce that advantage. This is not an established material quality gap; an independent review could reasonably favor B's restraint.

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

Battle wave: 5276beb5-613e-4538-b8ae-dfc9265f64df. Pair: brp1_6011947d480ee304e63395c5918ecb0c8ed7db986a22b3442a3507ce68c57f2b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.