← Model losses

Head-to-head comparison

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

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

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

The corrupt-layout recovery path traps in-progress builder edits and then discards them, while the confirm copy claims a server delete that never happens.

1. After a saved dashboard fails to parse, Save is disabled and the only recovery that clears the block wipes any widgets the user added, without deleting the saved record. In `DashboardBuilderPage.tsx`, a failed `parseLayout` in the URL load effect (lines 51–60) or `loadSavedConfig` (lines 122–130) sets `widgets` to `[]` and `layoutError` to `invalid_json` or `not_array`. `saveBlocked` (line 48) keeps Save disabled (lines 276–279) until that flag is cleared. `addWidget` (lines 86–102) and the canvas (`onLayoutChange={setWidgets}`, lines 439–459) still accept edits and do not clear `layoutError`. The banner’s “Start fresh” control (lines 399–403) is the documented way out: after `window.confirm('This will discard your saved layout. Continue?')` it calls `startNew()` (lines 138–146), which clears `widgets`, `layoutError`, and `configId` and does not call `deleteDashboard`. Edits made after the error are thrown away, and the next successful save creates a new dashboard, leaving the corrupt one in My Dashboards. “New” (line 252) does the same wipe with no confirm. Confidence: high.

2. Unconfirmed overwrite from “New”, template apply (lines 114–120), and `loadSavedConfig` (line 327) can also drop an unsaved canvas, but those are missing dirty checks rather than a dead-end. In `useServerGrid.ts`, a numeric header value that fails `parseNumericExpression` (lines 316–321) or a `type === 'function'` filter (lines 327–335) is omitted from the POST while the header still shows it, so results look unfiltered; that misleads during filtering, but it is not the builder edit trap above. A refetch of `urlConfig` resetting a dirty canvas (lines 51–67) is plausible and not established here.

3. `parseLayout`, `useDashboardConfig`, and `WidgetConfigEditor` are outside the packet. Consequence: the exact invalid-JSON vs not-array strings and whether a query refetch replaces a dirty canvas cannot be confirmed; the page-level trap does not depend on them.

4. Regression: load a dashboard whose `layout_json` is invalid; add a widget; assert Save cannot be the only exit that deletes that widget, that confirming “Start fresh” does not remove the server row, and that the corrupt config remains listed unless delete ran.

Primary judge's stated reason

B is preferred because its explicit warning correction and corresponding regression assertion make the requested next action more concrete. A's closer builder linkage substantially counterbalances that benefit. This is a weak, forced preference, not an established material quality gap; an independent review could reasonably prefer A.

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