openai / gpt-6-astra / medium / medium effort preferred over xai / grok-4.7-efficient / medium / medium 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-astra / medium / medium effort answer
## Conclusion
**Four source-proven UX issues.** Reviewed all 20 supplied files directly and independently. No tools, tests, rendering, or external actions were performed.
Evidence is limited to the packet bound to commit `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`, digest `sha256:781652784ae54bf7176b1722d4bdacf5297722e946330fd23bc8653f0947af42`. This does not establish runtime behavior or production readiness.
## Findings
### 1. Metadata failure leaves the review permanently displaying a loading message
**Severity: Medium · Confidence: High**
- The page consumes metadata `data` and `refetch`, but ignores its error state: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:104`.
- Loading/error recovery screens depend on the separate boot request: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:242–259`.
- The shell refuses to render while metadata is absent, showing “Loading review pack…” indefinitely: `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:514–516`.
- Metadata requests explicitly disable retries: `[REDACTED: private project name]/frontend/src/api/inspections.ts:159–176`.
**Impact:** If boot succeeds but the metadata request fails without cached data, the reviewer receives neither an error explanation nor a retry control.
**Recommendation:** Surface metadata loading/error state explicitly, with a retry action, while retaining the certification fail-closed gate.
### 2. “Review paused” impersonation overlay does not suspend or isolate the review
**Severity: Medium · Confidence: High**
- The ended-session interstitial renders alongside the still-mounted providers and shell; session loss is not passed into them as a suspension condition: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:407–428`.
- Its overlay is an ordinary fixed-position `div`, without dialog semantics, focus transfer, focus containment, or background inertness: `[REDACTED: private project name]/frontend/src/components/impersonation/ImpersonationEndedInterstitial.tsx:105–120`.
- The visible statement is “review paused”: `[REDACTED: private project name]/frontend/src/components/impersonation/ImpersonationEndedInterstitial.tsx:53`.
- The mounted shell retains its document-level Escape listener: `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:2020–2047`. The shared guard does not recognize this overlay: `[REDACTED: private project name]/frontend/src/components/v3-review/keyboardGuards.ts:18–41`.
**Impact:** The overlay itself does not pause ongoing playback/scan effects. Keyboard focus can remain in the background, and Escape can change the underlying review selection or navigate away during recovery. Screen-reader users receive no modal boundary.
**Recommendation:** Explicitly suspend review activity on session loss and implement accessible modal focus/background isolation while retaining recoverable client state. Successful backend writes during expiry are **not** established by this finding.
### 3. Right-pane resizing has no keyboard-accessible operation
**Severity: Medium · Confidence: High**
- The resize separator exposes only pointer handlers, with no `tabIndex` or keyboard handler: `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:2253–2275`.
- Width adjustment is driven by pointer coordinates: `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:1969–1988`.
**Impact:** Keyboard-only users cannot operate the provided panel-resizing control.
**Recommendation:** Make the separator focusable, support keyboard width adjustment, and expose current/minimum/maximum values.
### 4. Malformed inspection IDs can select different records for metadata and review data
**Severity: Medium · Confidence: High**
- `parseInt` accepts numeric prefixes; the check only rejects `NaN`: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:89–94`.
- Metadata uses the original string: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:104`.
- Boot and review-pack requests use the parsed number: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:109–110`.
- The invalid-ID screen only checks falsiness: `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:221–237`.
**Impact:** On the explicit `inspId` route, a value such as `42abc` requests metadata for `42abc` but boot/pack data for `42`. It bypasses the intended invalid-ID screen and can produce inconsistent or indefinitely loading UI. Negative IDs also pass this page guard while boot fetching requires a positive value (`[REDACTED: private project name]/frontend/src/hooks/useInspectionData.ts:26`).
**Recommendation:** Validate the entire parameter as a positive safe integer before requests, and use one normalized identity throughout.
## Focused-test evidence and discarded hypotheses
- The mount-test `render` and `screen` implementations deliberately throw; these are not executable rendering evidence: `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx:23–31`.
- Redirect tests exercise a local mirror rather than the page: `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx:45–57`. Actual DOM cases remain TODOs at lines `185–190`.
- Keyboard zone navigation is also locally mirrored: `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.keyboard.test.tsx:126–177`. This does not prove current global keyboard behavior.
- Standard-tier rendering/routing assertions remain TODOs: `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.standard-tier.test.tsx:131,185–190`.
- Test headers say these files are excluded from Vitest. The configuration and TypeScript checking setup are outside the packet, so their actual discovery/type-check status was not verified.
- **Not reported as an entitlement bypass:** the legacy route deliberately retains the full surface, while the workspace alias applies the entitlement/presentation gate (`[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:55–59`). Backend authorization is outside scope.
- **Not reported as an unsigned-acceptance bypass:** the shortcut helper permits `unsigned`, but the actual verdict handler and server gate are excluded. The helper alone cannot establish an invalid acceptance.
- Certification-stage gating and inspection-scoped hydration are present in the supplied callers; their delegated implementations and backend enforcement are not verified.
## Excluded boundaries
### Backend contracts: client declarations only
No backend implementation was supplied. Consequently, the following edges are explicitly unverified:
- `GET /inspections/{id}` and `GET /inspections/{id}/review-boot`: response schemas, identity consistency, visibility, and meanings of 401/403/404.
- `PUT /inspections/{id}`: valid acceptance transitions, role/owner/contractor restrictions, sign-off requirements, open-zone overrides, pack-hash validation, concurrency, transactionality, and audit durability.
- `GET /inspections/{id}/reviewed-zones`: reconstruction, pack identity, zone/span dispositions, and full-video-review status.
- `POST /inspections/{id}/full-video-review`: played-range validation, pack binding, and `Idempotency-Key` behavior.
- `GET`/`PUT /inspections/{id}/review-progress`: revision conflicts, restart semantics, cursor/range persistence, and inspection/pack binding.
- `POST /inspections/{id}/reviewer-signoff`: attestation validation, authority, idempotency, and subsequent revocation.
- `POST /inspections/{id}/recompute-scores`; `GET /inspections/{id}/pacp-detail` and `/macp-detail`: validation errors, completeness, and scoring correctness.
- `GET /review-pack/{id}/inspection.json`, review-pack media/overrides/evidence, and `GET /inspections/{id}/video`: enrichment, certification sanitization, regeneration identity, storage, streaming, and media access.
- `POST /media/sign-url`: token scope, lifetime, revocation, impersonation/organization binding, and media-request authorization.
- `GET /auth/me`, authentication refresh, `POST /super-admin/stop-impersonation`, and `POST /super-admin/impersonate/{target}`: identity transitions, cookies, expiry, authorization, and recovery guarantees.
- Workspace entitlement, preferences, UUIF field permissions, and observation operations: server contracts are not supplied.
- Other supplied inspection-client operations—listing, pill-state, query/selection, header-copy, duplicate detection, merging, work-order linking/unlinking, creation, reclassification, and batch reprocessing—have no verified backend counterpart here.
- Documentation-only lifecycle guarantees—including submissions/resubmission, archival, soft-delete cascades, variance resolution, draft actions, bulk operations, and auto-clear—were not treated as implemented backend evidence.
### Every declared outside dependency
Paths below are relative to `[REDACTED: private project name]/frontend/src/`; these files were **not inspected**:
- **`api/`:** `client.js`, `queryKeys.js`, `searchInput.js`, `userPreferences.js`, `uuif.js`, `workspace.js`.
- **`types/`:** `fullVideoReview.js`, `reviewData.js`, `auth.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`.
- **State/context/storage:** `stores/useV3SessionStore.js`, `stores/inspectionStore.js`, `store/useWorkspaceProModeStore.js`, `context/reviewWave2.js`, `utils/storage.js`.
- **Styles:** `styles/review-viewer.css`, `styles/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`.
- **Panel:** `components/v3-review/panels/V3ZoneProgressChip.js`.
These exclusions prevent verification of actual verdict actions, keyboard ownership across children, store resets, persistence/recovery algorithms, observation editing, player behavior, and final visual layout. Also excluded: route registration/AppShell/AuthContext, test/build configuration, browser/assistive-technology execution, live services, databases, customer data, and deployment state.
**Next useful action:** Address the four localized findings and reconcile the focused test contracts with the current route before separately authorizing runtime verification.
MATERIAL_EVIDENCE_CONFLICT: `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.test.tsx:124–136` and `[REDACTED: private project name]/frontend/src/__tests__/V3InspectionReview.uuif-redirect.test.tsx:63–80` require UUIF redirects, while `[REDACTED: private project name]/frontend/src/pages/v3/V3InspectionReview.tsx:96–102,398–428` explicitly removes that redirect and mounts V3 for all inspection types.xai / grok-4.7-efficient / medium / medium effort answer
The rendered V3 route does not implement the lifecycle the focused tests describe. Several client transitions fail open or leave review writes live. This is a source-only reading of the supplied packet, not a runtime or production verdict.
## Findings
1. Workspace entitlement failure is treated as read-only and then destroys Pro deep links. Confidence: 0.9.
`useWorkspaceProSurface` sets `ready` from `!isPending` and `surface` to `'workspace'` unless `data.can_use_pro_surface === true` (`useWorkspaceProSurface.ts` 17–24). An initial query error is not pending, so `ready` is true and `surface` is `'workspace'`. `V3InspectionReview` only waits while `!workspaceSurfaceReady` (`V3InspectionReview.tsx` 386–396) and ignores `error` / `retry`. It then mounts `V3LayoutShell` with `readOnly` (`V3InspectionReview.tsx` 55–59, 427). The read-only effect strips `queue`, `zone`, `span`, `card`, and edit params with `replace: true` (`V3LayoutShell.tsx` 1080–1093). A failed entitlement fetch is indistinguishable from Workspace mode, and the selected zone is removed from history. The pending gate exists specifically to avoid that (`V3InspectionReview.tsx` 386–389).
2. Impersonation recovery does not freeze the review surface. Confidence: 0.9.
The countdown calls `reimpersonate()` without pausing playback or disabling the shell (`V3InspectionReview.tsx` 402–405). Recovery posts stop-impersonation, then impersonate (`useImpersonationWatch.ts` 230–248). `recoveringRef` suppresses `flippedAway` for that whole gap (`useImpersonationWatch.ts` 114–128), so the overlay does not appear while the session is the super-admin identity. The banner does not take `recoverError` (`ImpersonationExpiryBanner.tsx` 30–35, 95–111), so a failed renewal has no message unless a later flip opens the interstitial. The ended overlay is paint-only: no `aria-modal`, focus trap, or `inert` (`ImpersonationEndedInterstitial.tsx` 105–120). The shell underneath stays mounted, including `useV3GlobalKeyboard({ readOnly })` and the document Escape handler (`V3LayoutShell.tsx` 578–579, 2020–2048). Pointer hits are covered; keyboard accept, disposition, and Escape are not. Boot errors other than 404 return before that overlay (`V3InspectionReview.tsx` 259–383), so a non-404 boot failure during a dead impersonation has no re-impersonate action. Cache-error probing also ignores 403 (`useImpersonationWatch.ts` 171–174).
3. The page’s inspection meta is not the cache entry mutations refresh. Confidence: 0.86.
The route loads meta with `includeObservations: false`, which uses `detailMeta` (`inspections.ts` 159–176; `V3InspectionReview.tsx` 104, 421–425). `useUpdateInspection` writes and invalidates `detail`, not `detailMeta` (`inspections.ts` 421–435). `useReviewerSignoff` invalidates only `detail` (`inspections.ts` 541–543) even though its comment says acceptance depends on a refetched live stamp (`inspections.ts` 522–527). `inspectionMeta` is what the shell uses for the stage-1 backstop and PACP start setup (`V3LayoutShell.tsx` 504–509, 831–835). After accept or sign-off, that object can stay stale for the mount. Whether the verdict bar reads a different query is outside this packet.
4. A failed `inspection.json` does not block the verdict. Confidence: 0.84.
The page calls `useInspectionData` and drops the result (`V3InspectionReview.tsx` 110). The only hard gate is review-boot (`V3InspectionReview.tsx` 259–384). The shell never reads context `error`; missing pack data falls through to `V3StandardLayoutShell` and, when not read-only, `V3VerdictBar` (`V3LayoutShell.tsx` 504, 521–545, 2079–2084). A reviewer can reach accept controls without the pack that zone, certification, and full-video state are hydrated from. Verdict-bar-local guards are not in this packet.
5. Legacy route IDs are not strict. Confidence: 0.93.
Workspace IDs must match `/^\d+$/` (`V3InspectionReview.tsx` 46–52). The legacy id uses `parseInt` and only rejects `NaN` (`V3InspectionReview.tsx` 89–94). `42abc` and `42.9` become inspection 42. The invalid-id tests only pin `"abc"` and `"NaN"` (`V3InspectionReview.test.tsx` 146–160) and do not mount the page.
6. Keyboard guard blocks every key, not activation keys. Confidence: 0.95 for Escape; 0.7 for J/K.
`shouldIgnoreKeyboard` returns true for `summary`, `a[href]`, `button`, inputs, and any mounted `[data-testid="inline-code-builder-wizard"]` (`keyboardGuards.ts` 18–40). The comment says native controls keep activation keys; the code suppresses all shortcuts. The shell Escape path calls it with no event (`V3LayoutShell.tsx` 2021–2024), so focus inside a link or button will not exit the zone. The wizard check is document-wide, not focus-scoped. The focused keyboard file’s “guard integration” mirror omits button, link, summary, and wizard (`V3InspectionReview.keyboard.test.tsx` 293–304) and does not call the shell handler.
7. Client acceptance authority is narrower than the workflow doc and fail-opens on an omitted sign-off. Confidence: 0.8 on the helper; caller wiring is outside the packet.
`canSetAcceptanceStatus` gates only the exact string `'ACCEPTED'` (`inspectionAcceptanceAuthority.ts` 53–57). `REJECTED`, `CONDITIONAL`, `REVISION_REQUESTED`, and lowercase `'accepted'` all return true, including for `user == null`. The workflow doc limits those transitions to municipality write roles and bars contractors from setting status (`INSPECTION_WORKFLOW.md` 107–125). `canFireAcceptShortcut` fail-closes only `signoffState === 'unknown'`; omitted `signoffState` still returns true (`inspectionAcceptanceAuthority.ts` 30–39). That can fire Shift+A before sign-off state has resolved and produce the 422 the comment says must be avoided (`inspectionAcceptanceAuthority.ts` 24–28).
8. Focused tests document a UUIF redirect the route removed. Confidence: 1.0 that the behaviors disagree; not a claim the removal was accidental.
The page responsibility list still says non-NASSCO types redirect to V1 (`V3InspectionReview.tsx` 36–38). The implementation comment says that redirect was removed and any inspection mounts (`V3InspectionReview.tsx` 96–103). There is no type `navigate` in the page. The UUIF tests encode the old condition locally (`V3InspectionReview.uuif-redirect.test.tsx` 33–52; `V3InspectionReview.test.tsx` 124–136). Those files also say `src/__tests__/` is excluded from vitest and that RTL `render` throws (`V3InspectionReview.test.tsx` 1–7, 26–27). They do not exercise the rendered route. `AGENTS.md` 361–362 says NASSCO and UUIF must not be mixed. The removal is blanket: `SMOKE_TEST`, `DYE_TEST`, `SONAR`, and `VISUAL` get the same shell as PACP, including verdict controls on the legacy route.
## Discarded or not confirmed
- Legacy `/inspections/:id/v3` ignoring the Pro ceiling is explicit (`V3InspectionReview.tsx` 56–59), not an accidental miss.
- Empty `reviewed_zones` skipping pack-hash binding (`inspections.ts` 205–220) is fail-closed only for non-empty entries. Server treatment of `[]` is not in the packet.
- Async hydration of `useWorkspaceProModeStore` could race the same URL sanitizer. That store is outside the packet, so this is not a confirmed defect.
- `canSetAcceptanceStatus` allowing non-accept statuses may be intentional for “old controls” (`inspectionAcceptanceAuthority.ts` 53–54). It is still a client/server contract gap, not proof the server accepts those writes.
- Media-token cache is not cleared inside `reimpersonate` (`useImpersonationWatch.ts` 248–253). Clearance depends on `setMediaAuthContext`, which is outside the packet.
## Excluded boundaries and backend edges not in this packet
Not verified, and not evidence of production behavior:
- No tests were run. The four focused test files are contract mirrors, filesystem scans, or `it.todo`s, and their headers say vitest excludes them.
- Route table and whether V3 is inside `AppShell` (`App.tsx` is absent).
- `useV3GlobalKeyboard`, `V3VerdictBar`, `V3DistanceStepControls`, `scanNavigation`, `useReviewProgress`, `useV3SessionStore`, `queryKeys`, `apiClient` refresh/401 behavior, and workspace `fetchUserWorkspace`.
- Server acceptance machine, contractor write guard, auto-archive on `ACCEPTED`, reviewer-signoff revocation, `REVIEWER_SIGNOFF_REQUIRED`, reviewed-zones/full-video-review idempotency, review-progress revisions, review-boot 404 opacity, impersonation TTL, and `can_use_pro_surface`.
- DOM keyboard behavior, video seek of `NaN`, and entitlement-query `isPending` under a non-v5 query client.
Backend contracts the client touches but this packet cannot confirm: `PUT /inspections/{id}`, `POST /inspections/{id}/reviewer-signoff`, `GET /inspections/{id}/reviewed-zones`, `POST /inspections/{id}/full-video-review`, `GET|PUT /inspections/{id}/review-progress`, `GET /inspections/{id}/review-boot`, `GET /review-pack/{id}/inspection.json`, `POST /media/sign-url`, `GET /auth/me`, `POST /super-admin/stop-impersonation`, `POST /super-admin/impersonate/{id}`.
## Next useful action
Fix only from the rendered route: on workspace query error, keep the loading/error gate and do not run the read-only URL sanitizer; lock or unmount review mutations from stop-impersonation through successful re-impersonate; invalidate `detailMeta` on update and sign-off; block verdict when pack load failed; reject non-integer route ids. Then either restore a real type gate or delete the mirrored UUIF redirect tests so they stop documenting removed behavior.
MATERIAL_EVIDENCE_CONFLICT: V3LayoutShell.tsx:84-85 says V3 routes mount outside AppShell, while V3InspectionReview.tsx:67-69 says V3 is mounted inside AppShell and depends on fullBleed; V3InspectionReview.uuif-redirect.test.tsx:33-40 and V3InspectionReview.test.tsx:124-136 require a UUIF redirect to /inspections/:id, while V3InspectionReview.tsx:96-103 removes that redirect and mounts every type.Primary judge's stated reason
A provides a more dependable source-only remediation set and a more complete assurance boundary, reducing the risk of changing intentional acceptance, keyboard, or type behavior based on unverified assumptions. This is a clear comparative advantage in audit correctness and required exclusions, not a claim that every A finding establishes runtime failure.
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_b249e9d4da1298041e15b6fa0cd29e56ade203d59ff0b8302e28e196ebfff899. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.