← Model losses

Head-to-head comparison

xai / grok-4.7-efficient / high / high effort preferred over cursor / composer-2.5 / Composer 2.5 default / unknown 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

Inspect the dashboard-builder data exploration interaction in the supplied implementation. Find one user-visible interaction that can mislead, trap, or silently discard a user’s work during filtering, loading, or editing; cite the exact condition, describe a minimal UX correction, and suggest a focused regression check.

xai / grok-4.7-efficient / high / high effort answer

The corrupt-layout recovery path traps edits and then discards them, while telling the user the saved dashboard was removed.

**Exact condition.** A load with `parseLayout` not ok (`urlConfig` effect at lines 57–59, or `loadSavedConfig` at lines 127–129) sets `layoutError`, clears `widgets`, and keeps `configId` on that saved dashboard. `saveBlocked` (lines 47–48, 276–279) disables Save. The empty state still says to add a widget (lines 431–435), and `addWidget` (lines 86–102) appends widgets without clearing `layoutError`, so the new draft cannot be saved. “Start fresh” (lines 399–403) confirms “This will discard your saved layout” and calls `startNew` (lines 138–146), which drops those widgets and does not call `deleteDashboard` or `updateDashboard`. “New” (line 252) calls the same reset with no confirm.

**Minimal UX correction.** While `layoutError` is set, do not invite a draft that cannot be saved: hide that empty-state CTA and disable Add Widget until the user picks a recovery. Make the two outcomes explicit: “Reset editor” (local only; confirm if `widgets.length > 0` that those unsaved widgets will be lost; do not say the saved dashboard was deleted) and “Replace saved layout” (clear `layoutError`, then Save overwrites `layout_json`). Smallest un-trap: `setLayoutError(null)` on local draft mutation so Save can overwrite the corrupt layout, and fix the confirm copy unless a delete or overwrite actually runs.

**Regression check.** Open a saved dashboard whose `layout_json` is invalid JSON. Confirm the alert and disabled Save. Add a widget. Assert either Save is enabled and persists that widget onto the same `configId`, or Add Widget is disabled and the empty-state CTA is absent. Accept “Start fresh” and assert the new widget is not removed without a confirm that names unsaved widgets, and that My Dashboards still lists the saved record unless the confirm promised a real delete.

Confidence: high. This is entirely in `DashboardBuilderPage.tsx`.

**Alternatives considered.** In `useServerGrid.ts`, a numeric header filter that fails `NUMERIC_RE` is dropped with no user-facing warning (lines 316–321); `type === "function"` only `console.warn`s (lines 327–335). `filterMode: 'remote'` (line 703) does not apply it locally, and lines 67–76 already say the header can still show a filter the body does not send. That misleads during filtering, but it does not discard an edit, and a custom `transport` is given `rawHeaderFilterCount` as a mitigation the default POST path never surfaces. Unsaved-changes loss on template apply (lines 114–120) and saved-dashboard delete with no confirm (lines 169–178, 349–365) are real, but they are separate actions, not the load/edit trap above. Hitting `page > maxPage` (lines 480–481) ends progressive load with an empty page and no cap message; whether a consumer shows `totalCount` is outside this packet.

**Missing evidence.** `parseLayout`, `useDashboardConfig`, `WidgetCatalog`, and `BuilderCanvas` are outside the packet. Not needed for this bug: Add Widget alone is enough to build an unsavable draft. Consequence: a late `urlConfig` refetch could also clobber a dirty draft (effect deps are `[urlConfig]`, lines 51–67, with no dirty guard), but that depends on the hook’s referential stability, which this packet does not show. `dateFilterValueToGridRange` is also outside the packet, so a silent date-filter drop is only possible, not shown.

**Next action.** Change the invalid-layout recovery so a post-error draft is either not editable or is savable, and make the confirm match the server effect; add the regression above.

cursor / composer-2.5 / Composer 2.5 default / unknown effort answer

## Evidence packet

### 1. Conclusion (filtering — silent mismatch)

**Finding:** A numeric column header filter can stay visible in the grid while the server runs an **unfiltered** (wider) query — the user believes they narrowed the dataset; results and counts reflect no such filter.

**Exact condition:** In `tabulatorFiltersToGridFilters`, when `numericFields.has(f.field)` is true, the value is non-empty (`f.value` is not null/''), and `parseNumericExpression(strVal)` returns `null` (value does not match `NUMERIC_RE`, e.g. plain text `"active"`, malformed `">8x"`, or a lone operator `">"`). The loop `continue`s without adding a `GridFilterItem` and without any user-facing notice (only a dev `console.warn` exists for `type === 'function'`, not for failed numeric parse).

```316:321:[REDACTED: private project name]/frontend/src/hooks/useServerGrid.ts
    if (numericFields.has(f.field)) {
      const numeric = parseNumericExpression(strVal)
      if (numeric) {
        result.push({ field: f.field, op: numeric.op, value: numeric.value })
      }
      continue
    }
```

The hook’s own `GridTransportRequest.rawHeaderFilterCount` comment describes the same class of failure: Tabulator can report filters that never reach `body.nl_filter_group` after translation.

**Minimal UX correction:** When a header filter cell is non-empty but translation produces no server condition for that field, show a compact inline warning on the column (or toolbar): e.g. “Filter not applied — use expressions like `>8` or `<=100`.” Optionally block treating the grid as “filtered” until valid or cleared. Mirror the numeric-parse rules in the message.

**Focused regression check:** Unit test `tabulatorFiltersToGridFilters([{ field: 'score', type: 'function', value: 'not-a-number' }], new Set(['score']))` → `[]`; integration/E2E: type invalid text into a numeric header filter, assert row set/count match unfiltered baseline **and** (after fix) assert visible “not applied” state. Cross-check export: `getExportBody()` should not claim a numeric constraint that was dropped.

**Confidence:** High for the silent-drop behavior in the supplied snapshot; medium that this path is exercised from dashboard-builder exploration UI (no `useServerGrid` import in `DashboardBuilderPage.tsx` in this packet).

---

### 2. Alternatives / discarded hypotheses

| Hypothesis | Verdict |
|------------|--------|
| **Dashboard builder — load another saved dashboard** (`loadSavedConfig` on card click, ~327): replaces `widgets` with no dirty-state prompt; can discard in-progress layout/edits. Strong for **editing**, not filtering. | Valid secondary finding; not chosen as primary because question emphasizes filtering/loading/editing and numeric filter is a clearer silent server mismatch. |
| **`reload()` clears `totalCount` to `null`** (~726): can briefly mislead “no rows” / empty totals while loading. | Transient UI flicker, not durable discard of user input. |
| **`setSearchText` 300ms debounce** (~824–829): rapid navigation might reload without final keystrokes. | Race/edge; less reproducible than numeric drop. |
| **Aborted requests return never-settling promise** (~628–629): Tabulator drops request; user may see stale rows until next success. | Loading confusion; harder to pin to one user action in packet alone. |

---

### 3. Missing evidence / consequence

- **`DashboardBuilderPage.tsx` does not reference `useServerGrid` or a data grid** in this snapshot — cannot prove explorer widgets in the builder wire numeric `numericFilterFields` without `WidgetConfigEditor`, `WidgetRenderer`, or explorer pages (listed as outside packet).
- **`headerFilters.js` / `compileFilterToServer.js`**: date/custom filter behavior not verified here.
- **Consequence:** Primary finding is grounded in `useServerGrid.ts`; product-level “dashboard-builder exploration” linkage is inferred from scope JSON, not demonstrated in-file.

---

### 4. Next useful action

Add a user-visible “filter not applied” path for numeric (and optionally `rawHeaderFilterCount` vs translated filter count mismatch in custom `transport`), plus the unit test above; separately, if builder UX is in scope, add dirty-state guard before `loadSavedConfig` / `applyTemplate` / `startNew`.

Primary judge's stated reason

Forced, weak preference for A because its developed finding and regression scenario address a builder editing trap without requiring an unshown grid integration. Both satisfy the central investigative outcome. A's inaccurate characterization of the confirmation and its multiple alternative recovery proposals counterbalance that advantage; no material quality gap is established, and an independent review could reasonably reject this preference.

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

Battle wave: c50cc6a9-2031-4391-a213-ab4daedec0f2. Pair: brp1_bb31d81a50ca21563cb850386539ce7cf1ca2456b490a743d1188182f731b4f4. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.