openai / gpt-6-astra / medium / medium effort preferred over openai / gpt-6.1-sol / low / low 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. 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.openai / gpt-6.1-sol / low / low effort answer
## Conclusion
Direct, independent review of all 32 supplied files found **seven source-proven issues**. No tools, tests, runtime checks, or edits were performed.
### Findings
1. **High — Switching dashboard URLs 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 dependency list at **line 191** omits that ID. Navigating between named dashboards without changing preferences/config caches updates the header and active filter context (**lines 119–136**) while retaining the previous widget layout.
**Impact:** Dashboard name, filters, sharing target, and displayed metrics can disagree.
**Recommendation:** Include `urlConfigId` in the memo dependencies.
**Confidence:** 0.99.
2. **High — Dashboard filter connectors are lost or applied to the wrong group.**
`[REDACTED: private project name]/frontend/src/store/useDashboardFilterStore.ts:99–103` supports an OR connector, but **lines 141–149** return only flattened conditions. `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:44–57` merges those conditions with local/cross-filters using the *base query’s* connector instead.
**Impact:** Global `A OR B` becomes `A AND B` on a normal query; an OR base query instead makes cross/local constraints optional alternatives, potentially widening results.
**Recommendation:** Preserve filter-group semantics; do not flatten differently connected groups into one condition array.
**Confidence:** 0.99.
3. **High — Relation-query construction ignores OR between root conditions.**
`[REDACTED: private project name]/frontend/src/lib/semanticQueryBuilder.ts:351–354` accepts a root connector, but **lines 376–385** put every root condition and the relation into a single AND group. The ordinary builder correctly honors OR at **lines 220–224**.
**Impact:** `(A OR B) AND relation` becomes `A AND B AND relation`, excluding valid matches.
**Recommendation:** Group root conditions using their connector, then AND that group with the relation.
**Confidence:** 0.99.
4. **Medium — “Reset to default” does not recover several invalid-layout cases.**
`[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:427–432` only clears `default_dashboard_id`. A URL-addressed corrupt dashboard still wins resolution (**lines 145–152**), and a corrupt persona clone still wins over the valid persona pack (**lines 173–185**).
**Impact:** The advertised recovery action can leave the same error displayed indefinitely.
**Recommendation:** Handle URL and persona-clone recovery explicitly, rather than only clearing the preference.
**Confidence:** 0.99.
5. **Medium — Forecast and risk widgets receive incompatible query-result shapes.**
`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:248–365` has no transform cases for `forecast_summary` or `risk_heatmap`; both receive `{ rows }` through **lines 363–364**. Their renderers read top-level `at_risk_5y`/`critical_5y` and `distribution` in `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:233–251`. Both types are explicitly allowed at **lines 35–37**.
**Impact:** Query-backed forecast widgets show placeholders, and risk heatmaps show zero counts despite returned rows.
**Recommendation:** Establish and implement matching transform/renderer contracts.
**Confidence:** 0.98.
6. **Medium — Aging-bucket, exception-feed, and action-queue click payloads cannot supply the selected filter value.**
`[REDACTED: private project name]/frontend/src/components/dashboard/WidgetCard.tsx:117–124` requires `payload[dimension]` or `payload.name`. Its transforms instead produce `range` (**lines 322–330**) or `title`/`status` (**lines 304–313, 332–340**), discarding the original dimension key. `[REDACTED: private project name]/frontend/src/components/dashboard/WidgetRenderer.tsx:90–99` forwards those items/buckets to the click handler.
**Impact:** Filter/drill-through actions return early when callbacks forward these transformed records.
**Recommendation:** Preserve a canonical dimension value in transformed click payloads.
**Confidence:** 0.94; exact interaction emission remains outside the packet.
7. **Medium — Layout validation accepts positions incompatible with the layout consumers.**
`[REDACTED: private project name]/frontend/src/lib/parseLayout.ts:22–27` accepts any finite numeric position, including zero/negative dimensions and fractional coordinates. `[REDACTED: private project name]/frontend/src/pages/DashboardPage.tsx:551–569` inserts these directly into CSS grid spans/lines. Builder limits establish positive widget sizes in `[REDACTED: private project name]/frontend/src/components/dashboard/BuilderCanvas.tsx:20–23, 48–51`.
**Impact:** Malformed saved layouts can pass validation yet produce invalid or unintended placement instead of the explicit layout-error surface.
**Recommendation:** Validate integral coordinates, positive dimensions, and supported grid bounds.
**Confidence:** 0.97.
### Focused-test evidence
`[REDACTED: private project name]/frontend/src/__tests__/DashboardLayout.test.tsx:19–45` checks parsing only; the UI/default round-trip cases are TODOs at **lines 50–62**.
`[REDACTED: private project name]/frontend/src/lib/semanticQueryBuilder.test.ts:264–328` checks nested relation construction but does not exercise OR root composition. These are coverage observations, not test results.
### Alternatives and discarded hypotheses
- No backend authorization, tenant-isolation, or schema-enforcement defect is asserted: backend evidence is excluded.
- Cache-detail invalidation concerns cannot be conclusively resolved without the excluded query-key registry.
- No production failure frequency or browser-specific rendering outcome is inferred.
- Click-payload finding is limited to the supplied transformation/forwarding contract; excluded widget implementations could alter emitted payloads.
### Explicit excluded boundaries
All source outside the declared packet is excluded, including:
- **Auth/session/reset dependencies:** `hooks/useUppy.js`, `lib/crossTabReset.js`, `store/useToastStore.js`, `api/csrf.js`, `api/mediaTokens.js`, `api/queryKeys.js`, `api/uploadConfig.js`, `api/auth.js`, `hooks/useLogout.js`, `lib/resetRegistry.js`, `store/orgScopedResets.js`, `types/auth.js`.
- **Onboarding API dependencies:** `api/consultant.js`, `api/inspections.js`, `api/media.js`.
- **Interaction/coaching dependencies:** `hooks/useDrillThrough.js`, `components/dashboard/UnknownDataCoachingBanner.js`.
- **Excluded widget implementations:** `components/dashboard/widgets/ActionQueueWidget.js`, `AgingBucketsWidget.js`, `DataHealthWidget.js`, `ExceptionFeedWidget.js`, `MapWidget.js`, `NarrativeTextWidget.js`, `StackedAreaWidget.js`, `StackedBarWidget.js`, `TimelineWidget.js`.
- **Parser dependency:** `lib/nlParser.js`.
These dependency paths are relative to `[REDACTED: private project name]/frontend/src/`. Also excluded: dashboard-builder page/catalog/editor source, backend routes/schemas/SQL, dependency versions and library internals, application routing/bootstrap, styling outside supplied files, all other tests, live services, databases, customer data, browser/accessibility execution, and deployment behavior.
**Next useful action:** Correct the URL memo dependency and connector composition first, then add narrowly targeted regression checks under separately authorized implementation work.
This assessment is bound to supplied commit `9dab4e99d3bfadf995dbaa031b9b6a365970e1e3` and packet digest `8eeba499cd2025a06ff6502c2a374ac1e3c297292422678220e03a780752cb0d`; it does **not** establish runtime behavior or production readiness.Primary judge's stated reason
A provides materially broader supported audit coverage: it identifies requests that can become their opposite and valid adjacent widgets that collide after scaling, enabling targeted remediation beyond the substantial common findings. This is a clear task-grounded preference, not merely a forced slight preference, while runtime incidence remains unverified.
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_47dd76a2664c0912eaf88f0d95199b35bc85f87c8106c9432966a0a2377bfada. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.