← Model losses

Head-to-head comparison

claude-code-cli / claude-sonnet-5-5 / high / high effort preferred over openai / gpt-6-luna / 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. An event stream sends sequence41,42,43. Client persists its last seen sequence before applying an event. It disconnects after persisting42 but before applying42; reconnect requests events after42. Server may duplicate events, retains only a bounded window and can restart with a new epoch. Design a minimal durable cursor/application contract, duplicate handling and gap/epoch recovery without asserting exactlyonce transport. Give two crash interleavings and state the invariant. No tools, edits or executed-test claims. Three numbered items, under180words.

claude-code-cli / claude-sonnet-5-5 / high / high effort answer

1. **Contract:** Persist `{epoch, applied_seq}` in the same atomic transaction as the effects of applying that event. Never persist a "seen" sequence ahead of the apply. Reconnect with `(epoch, applied_seq)`. For each incoming event:
   - Same epoch and `seq <= applied`: drop it as a duplicate.
   - Same epoch and `seq == applied+1`: apply it and advance the cursor.
   - Same epoch and `seq > applied+1`: treat it as a gap. Don't apply it; resync.
   - Different epoch: treat it as a reset.

   If the server can't serve from `applied+1` (the window was trimmed) or the epoch differs, it sends a reset. The client then loads a snapshot and stores `(new_epoch, snapshot_seq)` atomically. Delivery is at-least-once, and the client makes it effectively-once.

2. **Interleavings:**
   - (a) The old design persists 42, then crashes before applying it. Reconnecting "after 42" loses 42 permanently. Under the contract the cursor is still 41, so 42 is redelivered and applied.
   - (b) 42's effects commit, but the process crashes before the cursor write, which can only happen if the two writes are not atomic. 42 is redelivered. Atomicity or an idempotent apply keyed by `(epoch, seq)` absorbs it. Separately, if the server restarts into a new epoch and restarts sequences at 1, a bare seq compare would wrongly drop 1..41 as duplicates. The epoch check forces a resync.

3. **Invariant:** The durable state always equals the in-order application of events 1..`applied_seq` of `epoch`, with nothing applied beyond the cursor and nothing skipped below it.

*(Direct analysis; no team tools or tests were used.)*

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

1. Persist a committed cursor `(epoch, sequence)` atomically with applying each event. If effects cannot share that transaction, durably record the event first and apply it idempotently before advancing the cursor. A cursor means “applied,” not merely received.

2. Ignore duplicates at or below the committed cursor; use an idempotency key such as `(epoch, sequence)` for effects. On a sequence gap, request replay. If replay is unavailable because retention is bounded, or the server epoch changed, install a consistent snapshot and its cursor, then resume.

3. Crash before commit: neither effect nor cursor is durable; replay and apply. Crash after commit: both are durable; replay is a harmless duplicate. Invariant: the durable cursor never advances beyond the effects durably applied (or durably staged for idempotent recovery); transport may deliver duplicates.

Primary judge's stated reason

B receives a forced, slight preference because its explicit next-sequence gate makes the required in-order recovery behavior easier to implement without accidentally advancing across a missing event. This is not an established material quality gap; A's replay instruction can reasonably imply the same behavior, and an independent review could prefer A's cleaner crash analysis.

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

Battle wave: 8632e6ae-fcb8-43ca-8b4e-7b0cf9e263a3. Pair: brp1_e64cb6c41399b8ee2779c8a0a55551682cb2bf78ac53557272faff711389d3b6. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.