← Model losses

Head-to-head comparison

claude-code-cli / claude-opus-5-5 / low / low effort preferred over claude-code-cli / claude-sonnet-5-5 / 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

Read-only architecture analysis. A worker receives an at-leastonce queue message, performs a durable side effect, then acknowledges. It can crash after the effect and before the ACK. The producer assigns a stable operation ID and the effect store supports conditional inserts. Design the smallest reliable execution contract, including duplicate handling, successful and failed acknowledgment ordering, and user-visible completion. Explain why acknowledging first or generating a fresh ID on retry fails. No tools or executed-test claims. Three numbered items, under180words.

claude-code-cli / claude-opus-5-5 / low / low effort answer

1. **Contract: idempotent effect keyed by the stable operation ID, then ACK.** The worker performs the effect as a conditional insert keyed by `opId`, for example `INSERT … IF NOT EXISTS`. The effect and its completion record must be written in the same atomic write. If the insert reports that `opId` already exists, treat the message as a duplicate success. Confidence: high.

2. **ACK ordering.** ACK only after the conditional insert commits, or after it confirms a duplicate. If the effect fails, do not ACK; NACK or let the message time out so it is redelivered with the same `opId`, and send it to a dead-letter queue after N attempts. **ACK-first fails** because a crash between the ACK and the effect loses the operation. **A fresh ID on retry fails** because the conditional insert can no longer recognize the retry, so a crash after the effect but before the ACK duplicates the effect.

3. **User-visible completion.** Report "done" only from the committed `opId` record in the effect store, never from the ACK. Queue state is not authoritative. **Uncertainty:** this assumes the effect can share an atomic write with the `opId` record. An external effect would need its own idempotency key.

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

1. **Contract:** The producer assigns a stable `opId` and the worker uses it as the effect key. The worker runs one conditional insert, `INSERT effect(opId, result) IF NOT EXISTS`, which commits the effect and its completion record atomically. If the insert succeeds, the worker ACKs. If it reports the key already exists, the effect was already applied by an earlier attempt, so the worker skips the effect, reads the stored result, and ACKs. The insert is the single source of truth for "done", and duplicates are harmless no-ops.

2. **Ordering:**
   - **Success:** effect committed or found, then ACK.
   - **Failure:** on a transient error or crash, do not ACK or insert. The broker redelivers, and the same `opId` makes the retry safe. For a permanent failure, record a terminal failure under the same `opId` (or dead-letter the message), then ACK.
   - **User-visible completion:** derive it from the effect record, not from the ACK. Show "done" only once the `opId` row exists. A crash between effect and ACK then leaves the user correctly seeing "done", and the redelivery just ACKs.

3. **Why the alternatives fail:**
   - **ACK first:** a crash after the ACK and before the effect loses the work permanently. The broker believes it is done, and nothing is durable. This gives at-most-once delivery.
   - **Fresh ID per retry:** the conditional insert cannot recognize the earlier attempt, so the effect is applied twice. Dedup needs an ID that is the same across attempts.

Primary judge's stated reason

A receives a weak preference because its completion rule is more internally consistent without requiring an additional distinction between successful and failed records. This is a slight forced preference, not an established material quality gap; an independent review could reasonably favor B's more explicit failure disposition.

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

Battle wave: 5445eeb0-b4b5-4bfd-a365-2ddf55296fda. Pair: brp1_4197cefd234c3820ee24e081620e8978de61db1cd0de0e5e1f9a7bf37721b08b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.