← Model losses

Head-to-head comparison

openai / gpt-6-astra / medium / medium effort preferred over openai / gpt-6.1-sol / low / low 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. Workspace navigation, role-aware shell and layout state across the shell and its focused navigation tests. 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

Direct, independent review of all 20 supplied files found **five source-proven issues**. No tools, tests, runtime checks, or edits were performed.

Evidence is limited to packet `sha256:d44ebc3ebabfab1c97f69230cb62766b52edc2ac299c211c46c8eb0ba17fcb67`, bound to commit `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`. This does not establish runtime behavior or production readiness.

## Findings

### 1. Standard navigation offers server-excluded modules
**Severity: Medium · Confidence: 0.99**

- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:332–343` constructs Standard navigation from the entire fixed registry, without checking `workspace.modules`.
- `[REDACTED: private project name]/frontend/src/lib/navRegistry.ts:184–189` includes Map & Pipes and Plans & Reports unconditionally.
- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:200–214` rejects an unavailable server-backed module and redirects to the default landing.

**Impact:** When the resolved workspace excludes Reports, the shell still supplies a Reports navigation item whose handler leads back to another page. Workspace-specific navigation is inconsistent with module eligibility.

**Recommendation:** Derive Standard items from resolved modules plus the intentional client-only allowlist.

**Boundary:** The supplied code proves the incompatible navigation inputs and handler behavior; actual rendering by the excluded `V3Sidebar` is unverified. This is not evidence of backend authorization bypass.

### 2. Legacy workspace hamburger changes state that its shell never renders
**Severity: Medium · Confidence: 0.99**

- `[REDACTED: private project name]/frontend/src/components/layout/TopBar.tsx:23–30` toggles `sidebarDrawerOpen` below 1280px.
- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:368–392` renders the legacy sidebar using only `sidebarCollapsed`.
- Its complete legacy return, lines **368–689**, contains no drawer.
- `[REDACTED: private project name]/frontend/src/hooks/useV3Shell.ts:43–50` supports selecting this legacy branch.

**Impact:** In legacy workspace mode below 1280px, the hamburger announces opening/closing the menu but cannot change the rendered sidebar. The expanded sidebar continues consuming 240px.

**Recommendation:** Connect the legacy workspace branch to a drawer or give its hamburger a supported collapse action.

### 3. Workspace switching leaves existing workspace reads able to overwrite optimistic state
**Severity: Medium · Confidence: 0.92**

- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:119–124` maintains an active workspace query.
- The switch handler at **226–276** overwrites its cache and starts the PATCH without cancelling an existing query.
- Only the newly requested invalidation is sequenced after PATCH success, at **254–257**.
- Canonical navigation immediately follows whatever workspace occupies that cache, at **213–214**.

**Impact:** If a workspace GET is already in flight when a switch occurs, its old response can replace the optimistic target and redirect the user back before the post-PATCH refetch corrects it. Sequencing the new refetch does not protect against the existing read.

**Recommendation:** Cancel outstanding workspace queries before the optimistic update and protect overlapping switches from stale completion/rollback.

**Boundary:** This identifies a source-level race under the stated request ordering, not an observed runtime occurrence.

### 4. Focused navigation tests exercise copies rather than the implementation
**Severity: Medium · Confidence: 1.00**

- `[REDACTED: private project name]/frontend/src/__tests__/WorkspaceShell.multinav.test.tsx:189–202` defines its own switch handler; **199–200** patch and immediately invalidate.
- The actual handler defers invalidation until success: `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:251–258`.
- The test also uses `['userWorkspace']` at line **192**, whereas the real key is `['user-workspace']` in `[REDACTED: private project name]/frontend/src/api/queryKeys.ts:662–664`.
- `[REDACTED: private project name]/frontend/src/__tests__/PlatformWorkspacesPage.test.tsx:89–100` invokes a locally created mock directly and asserts that same invocation, without exercising a production handler.

**Impact:** These tests cannot catch removal or breakage of the actual switch/save behavior. The switch test specifically preserves the immediate-invalidation sequence that production code intentionally avoids.

**Recommendation:** Exercise exported production logic or mounted handlers, including PATCH settlement and rollback, rather than inline mirrors.

### 5. Standard smoke assertions require routes that the current resolver deliberately redirects
**Severity: Medium · Confidence: 1.00**

- `[REDACTED: private project name]/frontend/tests/app-layout/v3-shell-smoke.spec.ts:209–214` includes `/inspections` and `/repairs`.
- Lines **238–243** require those route segments to survive navigation.
- `[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:215–230` excludes both from the client-only allowlist.
- The smoke workspace fixture at **69–73** also excludes them from server modules.
- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:200–214` therefore resolves both to the fixture’s default landing.

**Impact:** The assertions contradict the supplied resolver and fixture. Successful rendering of the intended fallback would fail these tests.

**Recommendation:** Assert the intended redirects or replace the removed destinations with supported routes.

Additional coverage limits: the Pro suite is explicitly skipped at `[REDACTED: private project name]/frontend/tests/app-layout/v3-shell-smoke.spec.ts:138`; its purported nonblank assertion accepts zero characters at **178**. Neither establishes working Pro layout.

## Discarded or unproven hypotheses

- Client-only Uploads bypasses workspace-module filtering intentionally (`[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:117–122`); excluded module/backend implementations prevent any authorization-bypass conclusion.
- Frontend role values matching the test’s hardcoded list does not prove backend enum parity.
- Drawer accessibility, breakpoint coordination in V3 chrome, feature enforcement inside modules, and tenant isolation cannot be established from the supplied shell alone.

## Explicit excluded boundaries

All files outside the declared 20-file packet are excluded. Specifically, the listed direct dependencies below were **not reviewed**. Paths are relative to `[REDACTED: private project name]/frontend/src/`, retaining the packet’s dependency names:

- **API/auth:** `api/client.js`, `api/superAdmin.js`, `api/auth.js`, `api/dashboard.js`, `auth/AuthContext.js`.
- **Configuration/hooks:** `config/features.js`, `hooks/useMediaQuery.js`, `hooks/usePermissions.js`, `hooks/useCommandCenter.js`.
- **Supporting logic:** `lib/roleLabels.js`, `lib/clientToServerMigration.js`, `lib/useUserPreferencesQueue.js`, `components/review-tabs/playbackSpeeds.js`.
- **Chrome:** `components/layout/OrgSwitcher.js`, `components/layout/SurfaceSwitcher.js`, `components/layout/OffboardingBanner.js`, `components/layout/SidebarDrawer.js`, `components/layout/TrustStrip.js`, `components/layout/V3Sidebar.js`, `components/layout/V3TopBar.js`.
- **Other components:** `components/alerts/AlertDropdown.js`, `components/assistant/AssistantBubble.js`, `components/assistant/assistantBubbleVisibility.js`, `components/chat/ChatPanel.js`, `components/common/ErrorBoundary.js`, `components/common/Toast.js`, `components/consultant/CommandCenter.js`, `components/media/ProcessingIndicator.js`, `components/v3-review/V3ProDevToggle.js`.
- **Stores:** `store/useAIStore.js`, `store/useExplorerStore.js`, `store/useLayerStore.js`, `store/useMapRailUIStore.js`, `store/useMonitorUIStore.js`, `store/useProfileBankFilterStore.js`, `store/useViewUIStore.js`, `store/useWorkspaceProModeStore.js`, `stores/useV3SessionStore.js`.
- **Module bodies:** `components/workspace/modules/MunicipalExplorerModule.js`, `components/workspace/modules/MunicipalReportsModule.js`, `components/workspace/modules/MunicipalUploadsModule.js`, `components/workspace/modules/V3InspectionsModule.js`, `components/workspace/modules/V3RepairsModule.js`, `components/workspace/modules/V3TodayModule.js`, `pages/v3/V3InspectionReview.js`.

Also excluded: route mounting and guards; platform workspace editor implementation; backend resolver, schemas, role enum, persistence and authorization; global CSS and tooling configuration; dependency implementations; live services, databases and customer data; browser rendering, assistive-technology behavior, actual network ordering, test execution and deployment state.

**Next useful action:** Correct the navigation/state mismatches and align focused test contracts with production behavior in a separately authorized implementation task.

MATERIAL_EVIDENCE_CONFLICT: `[REDACTED: private project name]/frontend/tests/app-layout/v3-shell-smoke.spec.ts:238–243` requires inspections/repairs URLs to remain, while `[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:225–229` removes their routability and `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:200–214` redirects them.

openai / gpt-6.1-sol / low / low effort answer

## Conclusion

**Three source-proven issues found.** Independently reviewed all 20 supplied files directly; no tools, tests, edits, or external actions. Findings apply only to snapshot `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`.

### 1. Legacy workspace hamburger does not control its sidebar below 1280px
**Severity: Medium · Confidence: 0.99**

- `[REDACTED: private project name]/frontend/src/components/layout/TopBar.tsx:23–30` makes the hamburger toggle `sidebarDrawerOpen`, rather than `sidebarCollapsed`, below 1280px.
- The legacy branch in `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:368–689` renders no drawer; its sidebar width depends exclusively on `sidebarCollapsed` at lines 384–390.

**Impact:** With the explicitly supported V3 rollback active, mobile/tablet users can click “Open menu” without changing navigation visibility. The expanded 240px sidebar remains beside the content.

**Recommendation:** Connect the legacy workspace branch to a drawer, or retain a sidebar-collapse handler appropriate to that branch.

### 2. V3 Standard navigation advertises server-excluded modules
**Severity: Medium · Confidence: 0.99**

- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:333–343` constructs navigation from the entire fixed registry without consulting `workspace.modules`.
- `[REDACTED: private project name]/frontend/src/lib/navRegistry.ts:184–189` includes `municipal.explorer` and `municipal.reports-amp`.
- `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:200–214` rejects an absent server-backed module and redirects to `default_landing`.
- Neither of those two keys is client-only: `[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:215–230`.

**Impact:** A workspace that omits either module still displays its navigation destination. Clicking it silently sends users elsewhere, rather than opening the advertised destination. Fixed municipal navigation also fails to reflect the active workspace’s actual module configuration.

**Recommendation:** Derive Standard items from available server modules plus explicitly allowed client-only destinations.

### 3. Focused navigation tests do not enforce the current implementation contract
**Severity: Medium · Confidence: 0.99**

Two concrete discrepancies:

- `[REDACTED: private project name]/frontend/src/__tests__/WorkspaceShell.multinav.test.tsx:189–211` tests an inline replacement handler that invalidates immediately and uses `['userWorkspace']`. Actual code waits for PATCH success and uses the centralized key: `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:245–276`; `[REDACTED: private project name]/frontend/src/api/queryKeys.ts:662–664`. The test neither imports nor invokes that implementation.
- `[REDACTED: private project name]/frontend/tests/app-layout/v3-shell-smoke.spec.ts:209–243` requires `/inspections` and `/repairs` to remain unredirected. Those keys are intentionally excluded from the routing allowlist in `[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:225–229`, so the shell redirects them through lines 200–214.

**Impact:** The unit test cannot catch regressions in real switch sequencing, while two active smoke cases assert obsolete routing behavior.

**Recommendation:** Test shared production logic or the mounted shell; update smoke expectations to the current dormant-route contract.

## Calibration

- No backend authorization bypass is established. Client-only uploads are explicitly intentional; their underlying authorization is outside this packet.
- Role/backend parity is not verified: `PlatformWorkspacesPage.test.tsx:27–35` compares against a hardcoded frontend expectation, not supplied backend source.
- Pro smoke coverage is explicitly skipped at `v3-shell-smoke.spec.ts:138`. Its nonblank assertion at line 178 also accepts empty content; neither is evidence of runtime correctness.
- No production-readiness conclusion follows.

## Excluded boundaries

All source outside the exact 20-file packet is excluded, including these declared dependencies:

- **API:** `src/api/client.js`, `superAdmin.js`, `auth.js`, `dashboard.js`.
- **Auth/config:** `src/auth/AuthContext.js`, `src/config/features.js`.
- **Hooks:** `src/hooks/useMediaQuery.js`, `usePermissions.js`, `useCommandCenter.js`.
- **Libraries:** `src/lib/roleLabels.js`, `clientToServerMigration.js`, `useUserPreferencesQueue.js`.
- **Stores:** `src/store/useAIStore.js`, `useExplorerStore.js`, `useLayerStore.js`, `useMapRailUIStore.js`, `useMonitorUIStore.js`, `useProfileBankFilterStore.js`, `useViewUIStore.js`, `useWorkspaceProModeStore.js`; `src/stores/useV3SessionStore.js`.
- **Components:** `src/components/alerts/AlertDropdown.js`; `layout/OrgSwitcher.js`, `SurfaceSwitcher.js`, `OffboardingBanner.js`, `SidebarDrawer.js`, `TrustStrip.js`, `V3Sidebar.js`, `V3TopBar.js`; `assistant/AssistantBubble.js`, `assistantBubbleVisibility.js`; `chat/ChatPanel.js`; `common/ErrorBoundary.js`, `Toast.js`; `consultant/CommandCenter.js`; `media/ProcessingIndicator.js`; `v3-review/V3ProDevToggle.js`; `review-tabs/playbackSpeeds.js`.
- **Module bodies:** `src/components/workspace/modules/MunicipalExplorerModule.js`, `MunicipalReportsModule.js`, `MunicipalUploadsModule.js`, `V3InspectionsModule.js`, `V3RepairsModule.js`, `V3TodayModule.js`; `src/pages/v3/V3InspectionReview.js`.

Paths above are relative to `[REDACTED: private project name]/frontend/`. Backend resolver/schema/RBAC behavior, router integration, CSS, test configuration, runtime rendering, live services, databases, customer data, and deployment/production behavior remain unverified.

**Next useful action:** Correct the three source contracts, then separately authorize narrowly scoped verification.

MATERIAL_EVIDENCE_CONFLICT: `[REDACTED: private project name]/frontend/tests/app-layout/v3-shell-smoke.spec.ts:241–243` requires inspections/repairs deep links not to redirect, while `[REDACTED: private project name]/frontend/src/lib/workspaceModules.ts:225–229` explicitly disables those routes and `[REDACTED: private project name]/frontend/src/components/workspace/WorkspaceShell.tsx:200–214` redirects them.

Primary judge's stated reason

B offers a slightly more useful account of test assurance and the sidebar evidence boundary. This is a forced, weak preference, not an established material quality difference: its conditional race claim counterbalances those benefits, and an independent review could reasonably reject the preference.

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

Battle wave: 87604684-5410-4204-96bf-6143dab2c1dc. Pair: brp1_506889ce4a83d6027946767c144db887f0161738df62cec6444c189741c846f2. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.