openai / gpt-6-astra / medium / medium effort preferred over xai / grok-4.7-efficient / xhigh / xhigh 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. Dashboard layout, widget/query state and API/schema contracts, including their focused 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 32 supplied files found **11 concrete issues**. Findings apply only to the supplied snapshot at `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`. No tools, tests, or external actions were used; runtime and production behavior remain unverified.
### Findings
1. **High — Dashboard switching can retain the previous dashboard’s widgets.**
`[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:145–155` resolves widgets using `urlConfigId`, but its memo dependencies omit that value at line **191**. Meanwhile, the header’s active configuration does update on URL changes at lines **119–130**. When the mounted page switches IDs with unchanged query data, the title/share target can describe dashboard B while widgets still describe A.
**Recommendation:** Include `urlConfigId` in the resolution dependencies. **Confidence: 1.00.**
2. **High — Dashboard filter composition changes Boolean meaning.**
`[REDACTED: private project name]/frontend/src/store/useDashboardFilterStore.ts:99–103` supports an explicit global connector, but `getEffectiveFilters` discards it at lines **141–149**. `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:44–57` then flattens global, cross-, local, and existing conditions under the base query’s connector. Global `A OR B` becomes `A AND B` by default; conversely, an existing OR query makes an added cross-filter another alternative rather than a restriction.
**Impact:** Displayed metrics can answer a different question from the selected filters.
**Recommendation:** Preserve filter groups and explicitly define their composition. **Confidence: 1.00.**
3. **High — Relation query builder ignores OR between root conditions.**
`[REDACTED: private project name]/frontend/src/lib/semanticQueryBuilder.ts:351–355` accepts `connector`, but lines **372–385** place every root condition and the relation into one AND group. For two root alternatives and an inspection relation, `(A OR B) AND relation` becomes `A AND B AND relation`. The ordinary builder correctly handles OR at lines **218–225**.
**Recommendation:** Group root conditions with their requested connector before intersecting with the relation. **Confidence: 1.00.**
4. **High — Relation interpretation can reverse explicit negation.**
Two source-proven cases:
- “work orders not completed”: absence detection only recognizes negation preceding the relation (`[REDACTED: private project name]/frontend/src/lib/relationIntent.ts:223–234`). The completed token becomes a **positive** closed-status predicate at lines **534–559**, and the remaining “not” is removed at line **572**. The function returns a successful positive relation at lines **604–614**.
- “no PACP inspections”: the negation bridge excludes inspection-type tokens at line **45**, so the absence matcher at **225** fails. PACP is subsequently consumed at **515–528**, and “no” is removed at **572**, yielding positive PACP existence.
**Impact:** Requests for absence/exclusion can become their opposite.
**Recommendation:** Preserve scoped negation; refuse unsupported negated qualifiers instead of stripping them. **Confidence: 0.99.**
5. **Medium — “Reset to default” cannot recover URL-addressed or persona-cloned corrupt layouts.**
`[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:427–433` only clears `default_dashboard_id`. A URL-selected corrupt dashboard still wins at **145–150**; a corrupt persona clone remains selected at **170–179**.
**Impact:** The offered recovery action returns users to the same error.
**Recommendation:** Make recovery change the actual failing selection or replace its invalid layout. **Confidence: 1.00.**
6. **Medium — Medium-width layout scaling creates overlapping widgets.**
`[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:559–569` independently rounds width upward and floors position, retaining explicit row placement. Two valid adjacent widgets at `x=0,w=3` and `x=3,w=3`, sharing a row, become `x=0,w=2` and `x=1,w=2`: they overlap. Width 3 is explicitly supported by `[REDACTED: private project name]/frontend/src/components/dashboard/BuilderCanvas.tsx:20,48`.
**Recommendation:** Repack the six-column layout or use collision-aware breakpoint layouts. **Confidence: 1.00.**
7. **Medium — Layout validation accepts malformed values that fail during rendering.**
`[REDACTED: private project name]/frontend/src/lib/parseLayout.ts:21–27` validates only ID/type strings and finite position numbers before asserting `WidgetConfig[]`. It accepts an object-valued `title`, which is rendered directly at `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:179`. It also accepts zero/negative/fractional spans and duplicate IDs, although positions and IDs are consumed directly at `[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:565–569`.
**Impact:** Malformed layouts bypass the dedicated invalid-layout recovery surface and can instead produce widget render errors or invalid/ambiguous placement.
**Recommendation:** Validate the consumed widget fields, unique IDs, and supported grid bounds. **Confidence: 0.99.**
8. **Medium — Forecast and risk widgets do not receive their required data shape.**
`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:248–365` has no transform cases for `forecast_summary` or `risk_heatmap`; both receive the default `{ rows }` at **363–364**. Their renderers instead read top-level `at_risk_5y`/`critical_5y` and `distribution` at `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:233–235,250–259`.
**Impact:** Even populated query results render forecast placeholders and zero-valued risk bands.
**Recommendation:** Add explicit transformations matching these renderer contracts. **Confidence: 1.00.**
9. **Medium — Config-only narrative text never reaches the renderer through WidgetCard.**
Without `widget.query`, `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:40–42` produces a null query, disabling fetching through `[REDACTED: private project name]/frontend/src/api/dashboardData.ts:62`. The config-to-text transformation is called only when a result exists (`WidgetCard.tsx:64`), making its config-only handling at **225–240** unreachable in this case. `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:96–97` forwards only `data`, not the text configuration.
**Impact:** A configured narrative with no query receives undefined data rather than its saved text. The excluded narrative component’s fallback appearance is unknown.
**Recommendation:** Construct config-only data independently of query results. **Confidence: 1.00.**
10. **Medium — Chart transformation removes the IDs required for asset-detail clicks.**
`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:257–260,271–274` reduces bar/line rows to `{ name, value }`. Their click handlers forward those transformed rows (`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:149–150,185–186`), while asset navigation requires `payload.asset_id` or `payload.id` (`WidgetCard.tsx:140–144`). Neither survives the transform. Additionally, the shared handler returns before reaching asset navigation if no dimension exists at **117–118**.
**Impact:** Configured asset-detail clicks cannot navigate for these charts, even when original rows contain asset IDs.
**Recommendation:** Preserve navigation identity separately from display values and dispatch asset actions before dimension-dependent checks. **Confidence: 1.00.**
11. **Medium — Dashboard dialogs lack modal semantics and focus management.**
`[REDACTED: private project name]/frontend/src/components/dashboard/PersonaSelector.tsx:19–65` and `[REDACTED: private project name]/frontend/src/components/dashboard/ShareDialog.tsx:42–61` implement overlays with ordinary divs, without dialog roles, modal declarations, accessible title associations, or focus handling. Neither component contains Escape handling or a focus trap; their icon-only close buttons also lack accessible labels.
**Impact:** Keyboard focus can remain behind the overlay, and assistive technology lacks dialog identification and named close controls.
**Recommendation:** Use an accessible dialog primitive with focus placement/restoration, containment, Escape dismissal, and labelled controls. **Confidence: 0.99.**
## Focused tests reviewed
- `[REDACTED: private project name]/frontend/src/__tests__/DashboardLayout.test.tsx:19–45` checks malformed JSON, non-array JSON, and one valid layout through the helper. The rendering, save/default, and recovery interactions at **50–62** are all `it.todo`.
- `[REDACTED: private project name]/frontend/src/lib/semanticQueryBuilder.test.ts:61–262` covers scalar conversion, operator handling, rejection, and deterministic output. Its relation test at **264–328** covers nesting with **zero root conditions**, so it does not cover finding 3.
- These are observations about supplied test source, **not test execution results**.
## Excluded boundaries and uncertainty
The following direct dependencies were explicitly outside the packet. Paths below are relative to `[REDACTED: private project name]/frontend/src/`, retaining the supplied `.js` spelling:
- **API/cache/auth:** `api/queryKeys.js`, `api/csrf.js`, `api/mediaTokens.js`, `api/uploadConfig.js`, `api/auth.js`.
- **Session/reset/upload/toast:** `hooks/useUppy.js`, `hooks/useLogout.js`, `lib/crossTabReset.js`, `lib/resetRegistry.js`, `store/orgScopedResets.js`, `store/useToastStore.js`, `types/auth.js`.
- **Onboarding APIs:** `api/consultant.js`, `api/inspections.js`, `api/media.js`.
- **Widget navigation/coaching:** `hooks/useDrillThrough.js`, `components/dashboard/UnknownDataCoachingBanner.js`.
- **Widget implementations:** `components/dashboard/widgets/ActionQueueWidget.js`, `AgingBucketsWidget.js`, `DataHealthWidget.js`, `ExceptionFeedWidget.js`, `MapWidget.js`, `NarrativeTextWidget.js`, `StackedAreaWidget.js`, `StackedBarWidget.js`, `TimelineWidget.js`—all under that same widget directory.
- **Legacy parsing:** `lib/nlParser.js`.
Consequently, this review does not establish centralized cache-key hierarchy, reset coverage, backend authorization, server filtering semantics, excluded widget behavior, or downstream parser handling.
Also excluded: all other repository source; backend routes/schemas/models and database enforcement; route mounting/guards and application initialization; builder-page save orchestration; dependency versions and library internals; global styling, rendered accessibility, browser/print behavior; builds, tests, live services, databases, customer data, and deployment state.
### Discarded hypotheses
- No cache invalidation defect is asserted merely because dashboard mutations invalidate `.all`: the actual key hierarchy is excluded.
- No authorization bypass is inferred from visible Share controls: backend enforcement is excluded.
- No backend schema mismatch or tenant-data leak is inferred from handwritten frontend types or comments alone.
**Next useful action:** Prioritize dashboard identity and Boolean/negation fixes, then add narrowly targeted regressions for those concrete cases in a separately authorized implementation task. This packet makes no production-readiness determination.xai / grok-4.7-efficient / xhigh / xhigh effort answer
The snapshot has source-proven dashboard UX and query-contract defects. It does not show production readiness. The highest-impact defects are a stale URL dashboard body, a recovery control that does not recover, tablet cell overlap, and widget transforms that mis-state query results.
## Findings
1. **URL dashboard navigation keeps the previous widget set.** `resolvedDashboard` reads `urlConfigId` but memoizes only on `[prefs, configs, personas]` (`[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:140-191`). The switcher navigates with `navigate(\`/dashboards/${cfg.id}\`)` (`DashboardPage.tsx:308-310`) and nothing in this file remounts the page on id change. `activeConfig` does depend on `urlConfigId` (`DashboardPage.tsx:119-130`) and `setDashboardId` follows that id (`DashboardPage.tsx:132-136`). After a switch, the title and loaded filters are for the new dashboard while the grid still renders the previous widgets, then those widgets refetch with the new dashboard’s persisted filters. Same failure for bookmark `/dashboards/49` → `/dashboards/50`, and for Back to my dashboard after a direct named open (`DashboardPage.tsx:379-396`). Impact: wrong layout and mixed query results under the new name. Confidence: 0.93 under normal `useMemo` semantics. A router `key` that remounts this page is not in the packet and would mask it.
2. **“Reset to default” does not repair an invalid layout.** Corrupt `layout_json` returns `layoutError` and empty widgets (`DashboardPage.tsx:145-151`, `159-166`, `174-178`). The button only patches `default_dashboard_id: null` (`DashboardPage.tsx:427-433`). URL resolution returns before preferences (`DashboardPage.tsx:144-155`, and the migration effect bails at `DashboardPage.tsx:200`), so a named URL stays on the same bad config. A persona clone is selected in step 2 even after the preference is cleared (`DashboardPage.tsx:170-178`), so the persona-pack fallback never runs. The confirm copy says the saved selection will be cleared; the invalid `layout_json` is not deleted or replaced. Impact: the only recovery control on the error empty state is a no-op for URL dashboards and for the usual cloned-persona dashboard. Confidence: 0.94.
3. **Failed config/prefs loads look like “no dashboard”.** `isLoading` ignores `isError` (`DashboardPage.tsx:241-243`). On error, `configs` stays `undefined`, step 1 is skipped, and a loaded persona pack is shown with no error (`DashboardPage.tsx:170-186`, `450-455`). Migration is guarded by `configs === undefined` (`DashboardPage.tsx:202`), so it does not auto-write, but there is no retry. Impact: a failed `/dashboards` fetch shows a persona pack or the empty prompt instead of the saved dashboard. Confidence: 0.9.
4. **Tablet layout overlaps cells instead of reflowing.** At 768–1279px, widths are rounded from 12 columns to 6 and `x` is scaled independently; `y` is unchanged (`DashboardPage.tsx:544-570`). Example: four `w=3` tiles become span 2 at x = 0, 1, 3, 4, so column pairs overlap, and 2+2+2+2 = 8 > 6. CSS grid paints later widgets on top of earlier ones. `parseLayout` accepts any finite `x,y,w,h`, including negatives and zeros, and does not require unique ids, in-grid bounds, or non-overlap (`[REDACTED: private project name]/frontend/src/lib/parseLayout.ts:21-27`). Impact: tablet dashboards hide widgets; bad saved positions never take the invalid-layout error UI. Confidence: 0.95 for the overlap math; 0.85 that typical `w=3` rows hit it.
5. **Each widget is wrapped in two cards, so charts are clipped.** `WidgetCard` draws a border, padding, and title (`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:153-203`), then `WidgetRenderer` draws another border, padding, and the same title (`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:107-123`). `WidgetCard` sets `overflow: hidden`. Builder preview adds a third header around the same renderer (`[REDACTED: private project name]/frontend/src/components/dashboard/BuilderCanvas.tsx:130-164`). A 2-row cell is 160px (`DashboardPage.tsx:41`, `534`). Impact: duplicate titles and a large share of small widgets clipped. Confidence: 0.96.
6. **Query results are reshaped into the wrong widget contracts.** `transformQueryResult` has no `forecast_summary` or `risk_heatmap` cases and falls through to `{ rows }` (`WidgetCard.tsx:363-364`). Those renderers read `at_risk_5y`, `critical_5y`, and `distribution` (`WidgetRenderer.tsx:233-259`), so the dashboard always shows `--` or all-zero bands. `data_source` is never read (`WidgetRenderer.tsx:29`); fetch is only `widget.query` (`WidgetCard.tsx:40-62`). Gauge transform returns `{ value }` only (`WidgetCard.tsx:263-266`) while `GaugeWidget` reads `data.max` and defaults to 100 (`WidgetRenderer.tsx:208-211`). Coverage/progress invent a target of 100 when a second metric is absent, and a null second metric becomes total `1` for coverage but `100` for progress (`WidgetCard.tsx:297-320`). Timeline title uses `dimensions[0]` but date/type are hardcoded to columns `date` and `type` (`WidgetCard.tsx:348-356`). Action-queue `title` and `status` are the same dimension (`WidgetCard.tsx:332-339`). `meta.truncated` / `total_rows` are never read (`[REDACTED: private project name]/frontend/src/api/dashboardData.ts:24-35`, `WidgetCard.tsx:61-64`). Impact: allowlisted widgets show empty, clamped, or mislabeled figures, and truncation is silent. Confidence: 0.92.
7. **Null buckets filter as the string `"Unknown"`, and the coaching banner sticks.** Bar/line transforms coerce null dimensions to `"Unknown"` (`WidgetCard.tsx:253-260`). Clicks send `eq` against `payload.name` (`WidgetCard.tsx:120-139`, `WidgetRenderer.tsx:149-151`). That is not an `is_null` query. The banner latches on the first non-empty load and resets only when `widget.id` changes (`WidgetCard.tsx:78-112`), not when `effectiveQuery` changes, so filters and polls keep a stale >50% banner. Table, forecast, and gauge never receive `onClick` (`WidgetRenderer.tsx:71-78`). Exception/aging/action clicks are forwarded from child widgets that are outside this packet (`WidgetRenderer.tsx:91-99`); the transforms they are given omit the dimension key, so `handleClick` returns early if those children pass the transformed item. Impact: cross-filter/drill-through on empty categories queries the wrong value; banner advice survives filter changes. Confidence: 0.9 for bar/line `"Unknown"`; 0.72 for unwired child-widget clicks.
8. **Dashboard filters are not the server preference contract.** The store persists `[REDACTED: private project name]-dashboard-filters-${dashboardId}` with no user or org id (`[REDACTED: private project name]/frontend/src/store/useDashboardFilterStore.ts:45-67`). `UserPreferencesResponse.dashboard_filter_presets` and `DashboardConfigResponse.filter_config` have no reader in this snapshot (`[REDACTED: private project name]/frontend/src/api/userPreferences.ts:228-249`, `[REDACTED: private project name]/frontend/src/api/dashboards.ts:7-25`). `getEffectiveFilters` drops `connector` (`useDashboardFilterStore.ts:141-149`). `WidgetCard` appends those conditions into the widget group and keeps the widget connector (`WidgetCard.tsx:50-58`), so a base `OR` group becomes `A OR B OR <global filter>` instead of an intersection. Global `addCondition` has no caller in this snapshot; only remove/clear and cross-filter add are wired. Impact: filters do not follow the preferences API, can reload across org switches if this key is not cleared elsewhere, and OR widget queries are widened by global/cross filters. Confidence: 0.86 for the unused server fields and the OR merge; 0.55 that localStorage survives logout/org switch (reset registry is outside the packet).
9. **First-run persona path can dead-end, and selection errors are silent.** The file header says no preference opens `PersonaSelector` (`DashboardPage.tsx:4-7`). The effect instead writes `persona: 'engineer'` and calls `createFromPersona` (`DashboardPage.tsx:207-227`). `showPersonaSelector` starts false (`DashboardPage.tsx:113`) and the header control requires `prefs?.persona` (`DashboardPage.tsx:358-360`). The empty state tells the user to select a persona and passes no `action` (`DashboardPage.tsx:450-455`). Prefs `onError` clears the ref (`DashboardPage.tsx:218-220`) but does not change state, so the effect does not re-run. `handlePersonaSelect` closes the modal and fires both mutations without awaiting or rendering `isError` (`DashboardPage.tsx:234-239`). Auto-create also ignores `hasFeature(DASHBOARD_BUILDER)`, which only gates New Dashboard (`DashboardPage.tsx:337-356`, `[REDACTED: private project name]/frontend/src/config/features.ts:7-9`, `53`). Impact: a failed first-run or persona write leaves a prompt with no control; unlicensed create is still attempted and fails silently. Confidence: 0.9.
10. **Semantic relation building contradicts its own fail-closed contract.** Inspection type ids are hardcoded `NASSCO_*_V7` and are not checked against catalog enum values (`[REDACTED: private project name]/frontend/src/lib/relationIntent.ts:106-110`, `514-528`). Named-set prose says the server expands membership (`[REDACTED: private project name]/frontend/src/api/semanticQuery.ts:79-88`); `TypedValueV1` has no set token (`semanticQuery.ts:111-116`) and the interpreter inlines `named_sets[].values` (`relationIntent.ts:548-556`). `detectObservationCodeRelation` does not use `CONTRACTED_NEGATOR` (`relationIntent.ts:367-377` vs `58-59`, `223-234`), so “doesn't have RMJ” is a positive exists. The vocabulary loop returns on the first inspection/work-order lexeme before observation-code nesting (`relationIntent.ts:453-467`, `617-624`), so “inspections with RMJ” drops the code. Residue fail-closed only matches status words (`relationIntent.ts:589-597`); “since YEAR” / “next …” are dropped when the date field is missing or the window helper returns null (`relationIntent.ts:275-279`, `496-512`). Remainder stripping removes every `not` (`relationIntent.ts:568-574`). `buildExecutableAssetRelationQuery` never reads `input.connector` and always ANDs root conditions with the relation (`[REDACTED: private project name]/frontend/src/lib/semanticQueryBuilder.ts:372-385`). Relation leaves omit `code_system` (`semanticQueryBuilder.ts:279-286`) while root leaves copy it (`semanticQueryBuilder.ts:172-177`). Impact: relation utterances the module says must not be answered wrongly are widened, narrowed, or sent as NASSCO literals. Confidence: 0.9 for the control-flow bugs; 0.8 that missing `code_system` changes server results.
11. **Share and both modals miss the access and keyboard contracts they document.** `ShareDialog` states only an owner/admin may change visibility and only an admin may publish (`[REDACTED: private project name]/frontend/src/components/dashboard/ShareDialog.tsx:1-6`) but it never calls `usePermissions`; any viewer with widgets gets Share (`DashboardPage.tsx:402-409`). Buttons stay active while pending (`ShareDialog.tsx:68-101`). `PersonaSelector` and `ShareDialog` have no `role="dialog"`, focus move, focus trap, or Escape handler (`[REDACTED: private project name]/frontend/src/components/dashboard/PersonaSelector.tsx:19-33`, `ShareDialog.tsx:42-47`). Filter dismiss buttons are icon-only with no accessible name (`[REDACTED: private project name]/frontend/src/components/dashboard/DashboardFilterBar.tsx:59-71`). Impact: publish is discoverable by every viewer and only fails after the request; keyboard and AT users are not kept in the modal. Server enforcement of publish is not in this packet. Confidence: 0.9 for the missing UI gates; authorization bypass itself is not proven.
12. **Builder drop and layout callbacks share one setter.** `handleLayoutChange` rewrites the current `widgets` array; `handleDrop` appends a widget; both call `onLayoutChange` (`BuilderCanvas.tsx:56-86`). If the grid emits `onLayoutChange` after `onDrop` in the same turn, the append is overwritten because the layout callback only maps existing ids. The builder page that owns that state is not in the packet, so event order is not fully proven. Confidence: 0.7.
13. **Focused tests do not lock the contracts they name.** `DashboardLayout.test.tsx` asserts `parseLayout` for `invalid_json` and `not_array` only (`[REDACTED: private project name]/frontend/src/__tests__/DashboardLayout.test.tsx:19-45`). It never renders `DashboardPage`. `invalid_widget` is untested. The `is_default` checkbox cases are `it.todo` (`DashboardLayout.test.tsx:50-62`) and no builder page is in the snapshot. `semanticQueryBuilder.test.ts` does not cover OR-plus-relation, missing `code_system`, or relation-intent refusal. Impact: the defects above are not pinned by the in-scope tests. This is a coverage gap, not a runtime failure. Confidence: 0.97.
## Discarded hypotheses
- Coverage meter sweep is not inverted. `describeArc` uses SVG sweep 0 from the right point toward the left, which is the upper semicircle (`[REDACTED: private project name]/frontend/src/components/dashboard/widgets/CoverageMeterWidget.tsx:19-20`, `38-44`).
- Empty `semantic_fingerprint`, cookie CSRF refresh, and `switchActiveOrg` not auto-reverting are documented intentional behavior (`semanticQuery.ts:168-169`, `client.ts:365-368`), not dashboard defects.
- Onboarding dismiss in `localStorage` is explicitly cross-org by comment (`OnboardingBanner.tsx:12-14`). Sandbox filtering of consultant clients is not in the domain-array ban list (`DATA_OWNERSHIP.md:19`, `OnboardingBanner.tsx:63`).
- Stringified dashboard query keys match the in-repo query-key rule (`dashboardData.ts:55-57`, `AGENTS.md:321-328`). Invalidating `queryKeys.dashboardData.all` was not called broken; the key factory is outside the packet.
- Tenant scope omitted from semantic query bodies was not treated as a missing `municipality_id` bug. The client sets `tenant_scope_required` and the server is described as the enforcer (`semanticQueryBuilder.ts:395`).
- Approximate 30-day months in `relationIntent.ts:119-121` are an explicit choice, not an accidental drop.
## Excluded boundaries and missing evidence
Source review only of commit `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3`. No tests, shell, services, databases, or runtime behavior. This does not establish production readiness.
Outside the packet, so not verified: `queryKeys`, `useDrillThrough`, widget modules imported by `WidgetRenderer` (`StackedBarWidget`, `StackedAreaWidget`, `MapWidget`, `TimelineWidget`, `ExceptionFeedWidget`, `AgingBucketsWidget`, `NarrativeTextWidget`, `ActionQueueWidget`, `DataHealthWidget`, `UnknownDataCoachingBanner`), `nlParser`, dashboard builder page, route/feature guards, `useMediaFiles` / `useInspections` / `useConsultantClients` response shapes, backend dashboard-data and semantic-query handlers, and whether org reset clears `[REDACTED: private project name]-dashboard-filters-*`. Consequence: click payloads for non-chart widgets, drill-through operator `eq` vs explorer `equals` (`WidgetCard.tsx:126-131` vs `[REDACTED: private project name]/frontend/src/types/filter.ts:1-15`), invalidation prefixes, and onboarding `total` fields stay unverified. Persona-pack JSON is not in the snapshot, so how often forecast/risk widgets are actually saved is unknown; the transform gap still exists for those types.
## Next useful action
Fix `resolvedDashboard` so `urlConfigId` is a real dependency, and change invalid-layout recovery so a URL or persona-clone failure navigates to a valid pack or a different id instead of only nulling `default_dashboard_id`. Then reflow the 6-column grid and stop nesting `WidgetRenderer` chrome inside `WidgetCard`. Re-check forecast, risk, gauge max, coverage defaults, and `"Unknown"` filters against one saved layout fixture. Do not treat this packet as a runtime pass.
MATERIAL_EVIDENCE_CONFLICT: DashboardPage.tsx:4-7 says no preference shows PersonaSelector, but DashboardPage.tsx:113 and 207-227 auto-assign persona "engineer" and never open that modal; WidgetRenderer.tsx:233-259 reads at_risk_5y, critical_5y, and distribution while WidgetCard.tsx:248-282 and 363-364 never emit those fields.Primary judge's stated reason
A receives a weak preference because its actionable inventory more reliably stays within the source-proven audit boundary and explicitly enumerates excluded dependencies. B offers useful additional coverage, but mixes established defects with unsupported downstream outcomes and conditional hypotheses. This is a slight comparative preference, not an established material quality gap; an independent review could reasonably favor B's broader coverage.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: a74ee767-4b32-4c9f-aba3-8297b9f8fec4. Pair: brp1_c6833ff9ecc2df995806d12b2ae8d1e7d840e2f5b8b181e9429e4d899dfb44e4. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.