← Model losses

Head-to-head comparison

openai / gpt-6-sol / medium / medium effort preferred over grok-build / grok-4.7-build-fast / high / high 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

Read-only debugging analysis of an event-status reducer. Supplied contract: event IDs are case-sensitive nonempty strings, sequence numbers are nonnegative integers, rows arrive in arbitrary order, and the highest-sequence row for each exact ID defines its current state. Equal-sequence conflicting states must be reported as conflicts, never resolved by arrival order. Only current state ready is eligible for processing. Code under review:
function ready(rows) { const seen = {}; for (const row of rows) { const id = row.id.toLowerCase(); if (!seen[id]) seen[id] = row; } return Object.values(seen).filter(row => row.state === "ready"); }
Supplied rows: {id:"A",seq:2,state:"cancelled"}, {id:"A",seq:1,state:"ready"}, {id:"a",seq:3,state:"ready"}, {id:"B",seq:1,state:"ready"}, {id:"B",seq:2,state:"cancelled"}, {id:"C",seq:5,state:"ready"}, {id:"C",seq:5,state:"cancelled"}. Identify the expected eligible IDs and conflict IDs, explain concrete code failures, and propose minimal pseudocode. Mention one meaningful additional edge case. Do not claim execution or tests. Use only this identical packet; no tools. Keep the answer under 250 words.

openai / gpt-6-sol / medium / medium effort answer

**Expected eligible ID:** `a`. **Conflict ID:** `C`. Exact IDs `A` and `a` are distinct; `A` and `B` are currently cancelled.

The code lowercases IDs, wrongly merging `A` with `a`. It keeps the first row rather than the highest-sequence row, so arrival order determines the result for `B`. It also silently keeps the first `C` state instead of reporting the equal-sequence conflict. For these rows, its apparent output is `B` and `C`, not the correct eligible ID.

Minimal pseudocode:

```text
current = Map()
for row in rows:
    prior = current.get(row.id)
    if prior is absent or row.seq > prior.seq:
        current.set(row.id, {seq: row.seq, state: row.state, conflict: false})
    else if row.seq == prior.seq and row.state != prior.state:
        prior.conflict = true

eligible = IDs whose entries are not conflicted and have state == "ready"
conflicts = IDs whose entries are conflicted
```

A further edge case is ID `"__proto__"`: the plain-object `seen` and truthiness check can mistake an inherited property for an existing row. This is a code-level observation, not a test result.

grok-build / grok-4.7-build-fast / high / high effort answer

Eligible IDs: only `"a"`. Conflict IDs: only `"C"`.

By exact ID, `"A"`’s current row is seq 2 `"cancelled"` (seq 1 ignored). `"a"` is a different ID and is seq 3 `"ready"`. `"B"`’s current row is seq 2 `"cancelled"`. `"C"` has both `"ready"` and `"cancelled"` at seq 5, so it is a conflict and not eligible.

The reducer (packet line 2) fails the contract in four ways. `toLowerCase()` merges `"A"` and `"a"`. `if (!seen[id])` keeps the first arrival and never reads `seq`, so `"B"` stays the earlier `"ready"`. Equal-seq states for `"C"` are resolved by arrival order (first `"ready"` wins) and never reported. The return value is only rows with `state === "ready"`, so conflicts cannot be surfaced. On this input that control flow keeps cancelled `"A"`, ready `"B"`, and ready `"C"`, then filters to `"B"` and `"C"`. This is a static reading, not a run or test.

```
group by exact id
at the max seq, if distinct states differ → conflict
else if that state is "ready" → eligible
ignore every lower seq
```

Edge case: identical id, seq, and state is not a conflict; only distinct states at the winning seq are. A non-string `id` also throws on `toLowerCase()`.

Confidence: high. Discarded: treating `"A"`/`"a"` as one ID, or letting first-seen or same-state duplicates count as conflicts. No other files in the packet. Next: compare a fix against this grouping rule only.

Primary judge's stated reason

B earns a slight forced preference because its pseudocode gives more direct guidance for an order-independent implementation, including conflict reset and safe key storage. A remains substantively correct and practically useful; this is not an established material quality gap, and an independent review could reasonably reject the preference.

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

Battle wave: fe3c1dee-34b7-47ef-a1b7-6ce625309764. Pair: brp1_74ef9c9830bd42ed372cb5ae69235a25e87baf27758f8d5e191c5a666207b969. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.