openai / gpt-6-sol / low / low effort preferred over claude-code-cli / claude-opus-5-5 / 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.
openai / gpt-6-sol / low / low effort answer
1. **Durable contract:** Store `(epoch, applied_sequence)` as the cursor, not the last received sequence. Apply each event’s effects and advance that cursor in one durable transaction. If they cannot share a transaction, use a durable inbox and idempotent application keyed by `(epoch, sequence)`. Resume strictly after the *applied* cursor; this is not exactly-once transport.
2. **Crash interleavings:** With the current design, persisting 42 before applying it causes reconnect-after-42 to skip 42. Under the contract, crashing before commit leaves the cursor at 41, so 42 is replayed. Crashing after the effects-and-cursor commit leaves it at 42; a duplicate 42 is ignored. **Invariant:** the cursor never advances past unapplied effects, and an event’s effects are not applied twice.
3. **Recovery:** Within an epoch, ignore sequences at or below the cursor and require the next sequence to be contiguous. If the server cannot supply that next event from its bounded window, or its epoch changes, stop incremental application and rebuild from an authoritative snapshot with a matching epoch/cursor before resuming. The snapshot source and its consistency guarantee are unspecified.
claude-code-cli / claude-opus-5-5 / high / high effort answer
1. **Durable contract.** The root cause is that the client persists the cursor before applying the event. The fix is to store the state change and the cursor `(epoch, seq)` in a single atomic transaction, and never write the cursor first. On reconnect, the client sends its committed `(epoch, seq)`. The server delivers at least once and does not promise exactly-once.
2. **Duplicates, gaps and epochs.**
- **Duplicate or stale:** if `seq ≤ cursor` in the same epoch, drop it. This makes applying events idempotent.
- **Gap:** if `seq > cursor+1`, re-request from the cursor.
- **Window or epoch:** if the event has fallen out of the server's window, or the epoch has changed, the server returns RESET. The client then atomically installs a snapshot plus its `(epoch, seq)`.
3. **Interleavings.**
- **A:** Commit 41, receive 42, crash before commit. On reconnect the client asks for events after 41. Event 42 is redelivered and applied once. The old design would have resumed after 42 and lost it.
- **B:** Commit 42, crash before ack. The server resends 42, which is dropped as `≤ cursor`. Event 43 then applies.
- **Invariant:** the durable cursor always equals the last event whose effects are durably applied. State equals one fold of the epoch's events up to the cursor, or a snapshot plus later events.
Primary judge's stated reason
A earns a slight forced preference because its guarantee boundaries are more careful about what durable client processing can establish despite bounded retention. This is not a proven material quality gap: B's recovery provisions support a reasonable qualified reading of its delivery statement, and its state invariant is stronger explanatory counterevidence.
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_b18c47cf396949d230935baa7e5fcb9d748a33234231bf4fad75af1c8d4c77e6. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.