openai / gpt-6-astra / xhigh / xhigh effort preferred over openai / gpt-6-luna / max / max 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
Review runtime compatibility and error containment for persisted dashboard layouts after the shared parseLayout envelope guard. Trace accepted-but-malformed nested title, config/localFilters, and query payloads, plus finite but grid-invalid positions, through DashboardPage and its grid/per-widget boundary and through DashboardBuilderPage, BuilderCanvas, WidgetRenderer, and WidgetConfigEditor/DataSourcePicker. Check how unknown or legacy custom widget types and extra fields behave. Determine whether the dashboard Reset to default and builder Start fresh recovery flows change only selection/draft state or can overwrite persisted layouts. Report only source-proven crashes, misleading recovery behavior, or destructive overwrite paths, with exact file/line evidence and the smallest safe mitigation. Do not claim that database records are malformed, do not broaden the parser contract or reject custom types without proof, and state clearly if no remaining defect is established.
openai / gpt-6-astra / xhigh / xhigh effort answer
## Conclusion
Direct, source-only review establishes remaining crash, recovery, and field-loss paths. These are conditional on the accepted inputs described below; they do not establish that any database record contains them.
Paths below are relative to `[REDACTED: private project name]/frontend/src/`.
## Findings
### 1. Accepted nested payloads can escape the builder’s error containment
**Confidence: high.**
`lib/parseLayout.ts:21–27` validates only the widget envelope and finite position coordinates.
- **Object-valued title:** `title: {}` passes parsing but is rendered directly in `components/dashboard/BuilderCanvas.tsx:138–143` and `WidgetRenderer.tsx:119–122`. React rejects the object child. Neither the canvas nor its mounting site provides a boundary (`pages/DashboardBuilderPage.tsx:470–505`).
- **Non-array query metrics:** a query with an available dataset and `metrics: {}` reaches editor state unchanged (`WidgetConfigEditor.tsx:32–34`). Once the dataset has an available metric, `DataSourcePicker.tsx:70–74` calls the nonexistent `metrics.includes`. String metrics can survive that render but throw on deselection at `metrics.filter` (`:75–79`).
- The builder preview itself receives no query data (`BuilderCanvas.tsx:161–164`), so the malformed-metrics failure can remain latent until editing.
An outer application boundary is outside the packet; the source proves failure escapes the supplied builder components, not necessarily the entire application.
**Smallest safe mitigation:** use a display-only fallback for non-renderable titles, contain the complete builder widget including its header, and guard picker array operations locally. Preserve the original payload until an explicit repair; keep `parseLayout` permissive.
### 2. Ordinary editing can erase persisted query and extension fields
**Confidence: high for the overwrite path.**
`WidgetConfigEditor.tsx:37–45` constructs a replacement query containing only dataset, metrics, dimensions, `limit: 1000`, and `offset: 0`. Thus even a title-only edit discards existing query filters, sorting, time range, and extension fields, and changes pagination. Those query fields are supported by `api/dashboardData.ts:7–16`.
The replacement reaches the existing widget through `DashboardBuilderPage.tsx:121–124, 500–502`; dashboard Save serializes it and updates the existing ID (`:168–180`, `api/dashboards.ts:100–105`).
Separately, a grid layout callback replaces the whole position object with `{x,y,w,h}`, dropping position extension fields (`BuilderCanvas.tsx:56–63`). This establishes loss when that callback executes, not automatic loss on mount.
**Smallest safe mitigation:** merge edited query fields into the original query for unchanged data sources; avoid resetting pagination on unrelated edits. Merge position coordinates into the existing position object.
### 3. “Reset to default” does not recover every resolution path
**Confidence: high.**
The error description promises recovery, but the handler only requests `{ default_dashboard_id: null }` (`DashboardPage.tsx:419–432`).
That cannot change the selected invalid layout when:
- A URL names the dashboard: URL selection takes precedence (`:144–152`).
- The selected layout is the saved configuration matching the persona: clearing the default still selects that configuration before the system pack (`:170–185`).
**Smallest safe mitigation:** make the action depend on the resolution source. For URL/persona-selected failures, offer an actual selection change or editing action rather than promising recovery from clearing the default preference.
### 4. Dashboard recovery can retain stale layouts or failed-widget state
**Confidence: high under the stated same-mount conditions.**
- `resolvedDashboard` reads `urlConfigId` (`DashboardPage.tsx:144–156`) but omits it from its memo dependencies (`:191`). Changing the URL on the existing page while data references remain stable can therefore retain the previous widgets/error, even though `activeConfig` updates (`:119–130`). The switcher performs precisely a URL navigation (`:305–311`).
- `WidgetErrorBoundary` permanently latches `hasError` (`:47–81`). Grid children are keyed only by widget ID (`:533–537, 565–574`). Replacing a failed widget with a corrected configuration under the same ID does not reset the fallback.
**Smallest safe mitigation:** add `urlConfigId` to the memo dependencies and reset widget boundaries when the relevant dashboard/widget configuration changes.
### 5. Builder “Start fresh” describes a persisted discard that it does not perform
**Confidence: high.**
The confirmation says “This will discard your saved layout” (`DashboardBuilderPage.tsx:431–435`). In fact, `startNew` clears local draft state and sets `configId` to `null` (`:154–166`). A subsequent Save takes the create path (`:177–181`), whose request is POST `/dashboards` (`api/dashboards.ts:87–93`).
**Smallest safe mitigation:** state that this starts a new dashboard and retains the existing saved dashboard.
Neither recovery handler shows a layout-overwrite request. The destructive update path established above is editor changes followed by dashboard Save.
## Containment and compatibility checks
- **Dashboard nested failures are contained per widget.** Object titles render inside `WidgetCard` (`WidgetCard.tsx:179`), underneath the boundaries cited above. Truthy queries with non-iterable `config.localFilters` throw at `:41–46`; non-iterable existing query conditions throw when additional conditions are merged (`:48–56`). These produce the widget fallback rather than a source-proven dashboard-page crash.
- **Malformed queries do not uniformly crash.** The data hook serializes/posts the supplied query (`api/dashboardData.ts:55–62`); request errors have a visible failure state (`WidgetCard.tsx:188–196`). If data is returned, malformed metrics can throw in transformations (`:285–306, 317–318`), still inside the widget boundary. Server acceptance is not established.
- **Finite grid-invalid positions:** dashboard arithmetic/CSS consumes them outside the widget boundary (`DashboardPage.tsx:514–569`); the builder forwards them to RGL (`BuilderCanvas.tsx:40–52, 98–118`). No JavaScript crash is established by the supplied source. RGL rejection, normalization, or callback behavior cannot be inferred from this packet.
- **Unknown/custom types:** parsing deliberately preserves them (`parseLayout.test.ts:41–49`), and rendering has a placeholder (`WidgetRenderer.tsx:102–104, 317–321`). The builder allowlist controls new drops (`BuilderCanvas.tsx:70–74`), not loaded widgets. Editor options omit custom types, but its state/save path does not automatically convert them (`WidgetConfigEditor.tsx:31, 38–44, 95–103`). No crash is established from an unknown type alone.
- **Extra fields:** parsing preserves them; widget updates preserve unrelated top-level fields, and editor config spreading preserves config members. Query and position replacement are the specific loss exceptions above.
## Evidence limits and next action
RGL internals, imported specialized widgets, the preference mutation implementation, and outer application boundaries are outside the packet. Existing builder tests mock the canvas/editor (`__tests__/DashboardBuilderDraft.test.tsx:24–25`); dashboard rendering coverage remains stubbed (`__tests__/DashboardLayout.test.tsx:50–62`).
Next useful action: apply consumer-level containment and preservation fixes, then verify object titles, malformed picker metrics, query-field round trips, and URL/persona recovery with focused interaction tests.openai / gpt-6-luna / max / max effort answer
**Direct, read-only source analysis:** remaining crashes and data-loss paths are established. No database contents are inferred.
### Findings
1. **An object-valued title can crash the builder.** `parseLayout` checks `id`, `type`, and position, but not `title` (`parseLayout.ts:21–27`). `BuilderCanvas` renders `widget.title` directly (`BuilderCanvas.tsx:139–142`), and `WidgetRenderer` does too (`WidgetRenderer.tsx:119–121`). A JSON object title is therefore accepted but is not a valid React child. The dashboard wraps each `WidgetCard` in `WidgetErrorBoundary` (`DashboardPage.tsx:572–574`), so the failure is contained to that widget there; the supplied builder code has no corresponding boundary around its canvas or editor. **Mitigation:** render a safe fallback string at these display sites; do not reject custom widget types in the parser.
2. **Malformed nested filters and query metrics can crash a widget—or the builder editor.** `WidgetCard` spreads `config.localFilters` as an iterable without checking it (`WidgetCard.tsx:44–47`); an object value throws during render. With non-empty query results, missing/null `query.metrics` can throw in the `progress_bullet`/`coverage_meter` transforms, and non-iterable metrics can throw in `stacked_bar` (`WidgetCard.tsx:245–246, 281–295, 297–320`). A non-iterable `query.filters.conditions` can also throw when filters are merged (`WidgetCard.tsx:50–58`). Dashboard widget boundaries contain these render failures; query-result behavior depends on the API response, which is outside this packet. Separately, the editor seeds `metrics` from the saved query (`WidgetConfigEditor.tsx:32–34`), and `DataSourcePicker` calls `metrics.includes` (`DataSourcePicker.tsx:63–75`); an object-valued `metrics` crashes when a matching dataset is selected. No builder-local boundary is shown around the editor (`DashboardBuilderPage.tsx:496–505`). **Mitigation:** validate these shapes at their consumers and show a widget/editor-level configuration error rather than allowing the render to throw or silently dropping filters.
3. **Editing can discard persisted query and position extras.** `WidgetConfigEditor` rebuilds the query with only dataset, metrics, dimensions, limit, and offset (`WidgetConfigEditor.tsx:37–45`). The builder replaces the widget’s query with that result (`DashboardBuilderPage.tsx:121–124`); saving an existing dashboard then sends the whole layout through the update path (`DashboardBuilderPage.tsx:171–178`). Thus query fields such as filters, sort, or custom extras can be lost after editing and saving. Also, the parser test explicitly accepts and preserves `position.extra` (`parseLayout.test.ts:41–49`), but `BuilderCanvas` rebuilds position with only `x`, `y`, `w`, and `h` when its layout-change callback runs (`BuilderCanvas.tsx:56–63`). **Mitigation:** merge edited query fields into the existing query, and merge changed coordinates into the existing position.
4. **Dashboard “Reset to default” can leave the displayed error in place.** The action says it recovers the invalid layout, but only mutates `default_dashboard_id` (`DashboardPage.tsx:417–433`). A URL-addressed dashboard takes precedence over preferences (`DashboardPage.tsx:144–153`), so clearing the preference does not change the currently displayed invalid dashboard. If the selected default is also the matching persona clone, clearing the default can select that same config again (`DashboardPage.tsx:158–179`). **Mitigation:** make this action selection-aware—leave a URL-addressed dashboard or avoid presenting the same broken persona clone as the fallback; otherwise label it as clearing the saved selection, not repairing the layout.
### Recovery and boundaries
Builder **Start fresh** itself does not overwrite the saved layout: for parser errors, Save is blocked (`DashboardBuilderPage.tsx:58–60, 306–309`), and Start fresh clears local draft state and `configId` without calling a mutation (`DashboardBuilderPage.tsx:154–166, 431–435`). A subsequent save follows the create path, not the update path (`DashboardBuilderPage.tsx:177–183`). However, nested malformed values that pass `parseLayout` do not set `layoutError`; in particular, an object title can prevent the builder from rendering before its Start fresh UI is usable.
Finite but grid-invalid positions are accepted (the tests include negative, fractional, zero, and negative-size values: `parseLayout.test.ts:41–49`). The dashboard uses them in grid calculations and CSS placement (`DashboardPage.tsx:514–520, 523–538, 556–574`), and the builder passes them to `GridLayout` with size constraints but no explicit normalization (`BuilderCanvas.tsx:40–52`). **No additional crash or destructive overwrite from these positions is established by this snapshot**; the grid-library behavior is not included.
Unknown widget types alone are not shown to crash: the renderer uses a placeholder (`WidgetRenderer.tsx:102–104`), and the parser does not apply the editor/drop allowlist. Extra top-level widget fields survive the builder’s object spreads; the query and position losses above are the demonstrated exceptions.
**Next useful action:** add focused tests for object titles, non-array filters/metrics, editor round-tripping of query extras, position extras after layout changes, and reset behavior on URL-addressed and persona-cloned dashboards.
Primary judge's stated reason
B provides more complete source-grounded recovery analysis and actionable fixes, especially for stale URL-selected content and the misleading Start fresh confirmation. This supports a clear coverage preference, while substantial portions of the answers remain equivalent and no execution or actual persisted-data corruption is established.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: fd07e73c-9cd1-42ac-ae73-7a3724f34d1c. Pair: brp1_ea2e765391f96be1a5a2487ce26ce4bd01f3026915e96066c36b63659ae404b6. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.