openai / gpt-6.1-sol / low / low effort preferred over cursor / composer-2.5 / Composer 2.5 default / 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
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.
openai / gpt-6.1-sol / low / low effort answer
## Conclusion
Direct, independent source review found **three concrete UX issues**. No tools, tests, rendered runtime, or external services were used. Findings apply only to packet `781652784ae54bf7176b1722d4bdacf5297722e946330fd23bc8653f0947af42` at commit `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`; they do not establish production readiness.
### 1. Metadata failure leaves the review indefinitely “loading”
**Severity: Medium · Confidence: 0.99**
- `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:104` retains metadata data/refetch but does not handle metadata error state. Its error screens check only review-boot errors (`:259–384`).
- `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:514–516` displays “Loading review pack…” whenever metadata is absent.
- `[REDACTED: private project name]/frontend/src/api/inspections.ts:174–175` disables automatic metadata retries.
**Impact:** If review-boot succeeds but the independent metadata request fails, the page mounts a permanent loading message with no metadata retry action—even when the pack itself loaded.
**Recommendation:** Surface metadata errors separately and provide an explicit retry while preserving the certification fail-closed boundary.
### 2. “Review paused” impersonation overlay does not actually isolate or pause the review
**Severity: Medium · Confidence: 0.97**
- `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:411–429` mounts the expiry overlay alongside the still-mounted inspection providers and shell; it supplies no pause/disabled signal.
- `[REDACTED: private project name]/frontend/src/components/impersonation/ImpersonationEndedInterstitial.tsx:105–119` implements a visual fixed overlay without focus management, modal semantics, or background inertness.
- `[REDACTED: private project name]/frontend/src/components/v3-review/keyboardGuards.ts:18–41` does not recognize that overlay.
- The shell’s document-level Escape listener remains registered (`[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:2020–2047`).
**Impact:** Existing playback is not explicitly paused by this transition. Keyboard focus can remain behind the overlay, and Escape can clear review selection or navigate away despite the displayed “review paused” message. Background controls remain reachable by keyboard.
**Recommendation:** Explicitly pause review playback/scanning, suppress background shortcuts, and manage modal focus/inertness during recovery. Whether omitted playback hooks independently stop playback is unverified; the exposed Escape path is source-proven.
### 3. Route ID validation accepts malformed IDs and disagrees between requests
**Severity: Medium · Confidence: 0.99**
- `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:90–94` validates with `parseInt`, accepting values such as `42abc` as `42`.
- Metadata uses the original string (`:104`), while boot and provider use the parsed integer (`:109`, `:422`).
- Negative integers also pass the page guard (`:222`), although boot is disabled for nonpositive IDs (`[REDACTED: private project name]/frontend/src/hooks/useInspectionData.ts:26`).
**Impact:** A malformed route can request metadata for `42abc` while requesting the pack for inspection `42`, bypassing the intended invalid-ID screen and potentially entering the indefinite metadata-loading state. Negative IDs enter an inconsistent disabled-boot path.
**Recommendation:** Validate one positive safe integer representation before enabling any inspection request; use that same canonical ID throughout.
## Focused-test evidence and discarded hypotheses
- The supplied mount test cannot mount anything: its `render` shim deliberately throws (`[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx:23–30`).
- Keyboard tests frequently exercise mirrored handlers rather than rendered components (`[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.keyboard.test.tsx:126–141`, `:193–219`, `:293–304`).
- Tier tests leave rendered Workspace/Pro behavior as TODOs (`[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.standard-tier.test.tsx:181–190`).
- UUIF redirect tests still assert redirects (`[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx:63–80`), whereas the page explicitly removed that redirect (`[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:96–102`). This is stale contract evidence, **not proof that current UUIF rendering is defective**.
- Test headers claim exclusion from Vitest, but the configuration is outside this packet; actual discovery/execution was not verified.
- Legacy-route Pro behavior is explicitly intentional (`[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:56–59`); it is not reported as an entitlement bypass.
- Acceptance authority and certification routing contain explicit client gates. Their backend enforcement and omitted verdict implementation cannot be certified here.
## Explicit excluded boundaries
**Runtime:** Browser rendering/layout, CSS effects, responsive behavior, assistive-technology behavior, actual event timing, playback/buffering/autoplay, network failures, test execution/discovery, build/type checks, live services, databases, customer data, deployment, and production behavior.
**Backend contracts:** No server implementation was supplied for inspection reads/writes and lifecycle transitions; owner-org/RBAC/tenant enforcement; submission locks; archival, deletion and merge effects; reviewed-zone persistence and pack-hash validation; full-video proof/idempotency; review-progress revisions/restarts; reviewer sign-off issuance/revocation; score validation/recomputation; review-boot and review-pack enrichment/certification sanitization; media signing/expiry/path scope/range serving; auth refresh, impersonation stop/start/TTL; workspace entitlements; preferences; codebooks/permissions; bulk, playlist, creation and reprocessing endpoints. Client declarations and documentation do not verify these contracts.
**Every declared outside dependency remains excluded:**
Under `[REDACTED: private project name]/frontend/src/`:
- `types/`: `fullVideoReview.js`, `reviewData.js`, `auth.js`.
- `api/`: `client.js`, `queryKeys.js`, `searchInput.js`, `userPreferences.js`, `uuif.js`, `workspace.js`.
- `lib/`: `crossTabReset.js`, `useUserPreferencesQueue.js`, `prefetchReviewStills.js`, `reviewVideoEmptyState.js`, `reviewVideoSessionPlayer.js`, `videoPlaybackBuffer.js`.
- `hooks/`: `useMergedObservations.js`, `useNasscoMode.js`, `useZoneBoundaryAlert.js`, `useDistance.js`, `useFocusZoneTimeRange.js`, `useImageUrl.js`, `useOverrides.js`, `useTokenKeepAlive.js`, `useVideoSync.js`, `useZoneEvidence.js`.
- `stores/`: `useV3SessionStore.js`, `inspectionStore.js`; `store/useWorkspaceProModeStore.js`; `context/reviewWave2.js`; `utils/storage.js`.
- `styles/`: `review-viewer.css`, `v3-review.css`.
- `components/review-tabs/`: `Filmstrip.js`, `VideoPlayer.js`.
- `components/v3-review/`: `AddObsSlideOver.js`, `CertificationReviewPanel.js`, `GuidedReviewControlBar.js`, `SidescanPanel.js`, `V3DenseHeader.js`, `V3DistanceStepControls.js`, `V3RightPane.js`, `V3SpatialStrip.js`, `V3VerdictBar.js`, `V3ZoneAnnouncer.js`, `blockingCoding.js`, `coverageRecovery.js`, `editModeGuard.js`, `obsPredicates.js`, `observationCardParams.js`, `pacpRequiredSetup.js`, `reviewEvidenceAssist.js`, `reviewNavigation.js`, `reviewPositionCapture.js`, `reviewPresentation.js`, `reviewStationCards.js`, `reviewTravelChrome.js`, `reviewZoneQueues.js`, `scanNavigation.js`, `throughputPace.js`, `useReviewTargetCursor.js`, `useV3GlobalKeyboard.js`, `zoneObservationLinking.js`.
- `components/v3-review/hooks/`: `useCoverageRecovery.js`, `useFullVideoReviewAttestation.js`, `usePlayedSpanAttestation.js`, `useReviewProgress.js`, `useReviewResumePlayback.js`, `useReviewReturnSeek.js`, `useSessionReviewPace.js`, `useV3ZoneBoundaryHotkeys.js`.
- `components/v3-review/panels/V3ZoneProgressChip.js`.
Router/AppShell registration, AuthContext integration, third-party implementation details, Vitest configuration, and referenced tests outside the packet are also excluded.
**Next useful action:** Address the three source-proven transitions and reconcile the stale focused-test contracts; runtime verification requires a separately authorized scope.
MATERIAL_EVIDENCE_CONFLICT: UUIF redirect tests require navigation to V1 ([REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx:124–136; [REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx:63–80), but the rendered page source explicitly removes that redirect and renders any inspection type ([REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:96–102).
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 better delivers the requested audit outcome by locating concrete client transitions requiring remediation and distinguishing stale test evidence from implementation defects. Its more explicit excluded-boundary inventory also improves assurance limits. This is a supported substantive advantage, not merely a forced slight preference; actual runtime failure and production behavior remain unverified.
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_891d6ca4d90f78072088758a65f2a9723eddd8b7b9ae1aa9847f80356b590efa. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.