← Model losses

Head-to-head comparison

openai / gpt-6-luna / max / max effort preferred over openai / gpt-6-luna / 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

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-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.

openai / gpt-6-luna / low / low effort answer

## Conclusion

**One source-proven destructive overwrite path remains:** after loading a malformed saved layout, Builder’s **Start fresh** clears the error and resets `configId` to `null` in `DashboardBuilderPage.tsx:154–166`, but leaves the form saveable. A subsequent Save uses the create path (`configId == null`) and creates a new dashboard (`:168–184`); it does **not** overwrite the malformed saved layout. However, the malformed dashboard’s identity is discarded, so this flow cannot repair that dashboard in place. The confirmation says “discard your saved layout” (`:431–435`), although this action only resets the draft; it does not itself delete or update the saved record. Smallest safe mitigation: make the confirmation accurately describe starting a new dashboard, or provide an explicit repair flow that preserves the loaded ID while requiring deliberate replacement.

**Dashboard “Reset to default” does not overwrite the layout:** its handler only mutates `default_dashboard_id: null` (`DashboardPage.tsx:428–434`). It changes selection, not the saved layout.

No source-proven crash is established for the accepted-but-malformed nested payloads:

- The parser validates only the widget envelope and finite numeric position coordinates; it preserves all other fields (`parseLayout.ts:21–27`), as its tests explicitly demonstrate for arbitrary types and payload fields (`parseLayout.test.ts:41–49`).
- On the display page, each widget is isolated by an error boundary (`DashboardPage.tsx:535–537`, `572–574`). Malformed `config.localFilters` can nevertheless cause a **per-widget render failure**: `WidgetCard` casts it to an array and spreads it (`WidgetCard.tsx:40–46`), while rendering the filter count also assumes `.length` (`:150–151`). A non-iterable value can throw, but the boundary contains it to that widget. This is a narrow, source-proven containment issue; smallest mitigation is to use `Array.isArray` before consuming local filters.
- Finite but grid-invalid positions are accepted by the parser. The dashboard grid uses them in CSS grid coordinates/spans (`DashboardPage.tsx:514–520`, `556–570`); the builder passes them directly to `GridLayout` (`BuilderCanvas.tsx:40–54`, `98–119`). The snapshot does not establish a crash or a persisted-layout write from rendering alone, so I cannot conclude a defect or overwrite from those values.
- Malformed title values are rendered as React children in `WidgetCard` and passed through builder rendering (`WidgetCard.tsx:179`; `BuilderCanvas.tsx:139–142`; `WidgetRenderer.tsx:119–120`). The supplied evidence does not establish a crash for object titles. Builder editor initialization and saving can behave misleadingly for non-string titles, but a destructive overwrite is not established from source alone.
- Malformed query payloads may flow into `useWidgetData` (`WidgetCard.tsx:40–61`; `dashboardData.ts:55–62`). The query hook serializes the query for its key and posts it; the server-side behavior and query result shape are outside the packet, so no query-triggered crash can be concluded.
- Unknown or legacy widget types are not parser-rejected. `WidgetRenderer` renders a placeholder for unrecognized types (`WidgetRenderer.tsx:102–104`, `317–322`). The editor’s selector lists only allowlisted types (`WidgetConfigEditor.tsx:48–49`, `:95–103`), and saving edits retains existing config fields while replacing type/title/query (`:37–45`). This can replace an unknown type on an explicit edit, but no automatic destructive path is shown. Extra fields are preserved by parsing; builder layout updates spread the widget (`BuilderCanvas.tsx:59–63`) and editor saving spreads config (`WidgetConfigEditor.tsx:44`).

**Dependencies and uncertainty:** the packet omits implementations of grid/layout internals, individual widget components, and the API/server. Therefore conclusions about RGL behavior, server handling of malformed query/filter payloads, and persistence side effects beyond the shown mutation calls are not established.

Primary judge's stated reason

A offers materially better supported coverage of the requested runtime and persistence paths, with consumer-local mitigations and actionable line evidence. This is a clear preference, not merely a forced slight choice: B denies an established builder render failure and mislabels non-destructive draft recovery as destructive overwrite. B's better treatment of the Start fresh wording does not offset those errors.

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_f5b2ccac95fc56bfc3b18e87024bf15b269eaffc51a767c726c3c9a8dc5d75bf. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.