openai / gpt-6-sol / medium / medium effort preferred over claude-code-cli / claude-opus-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.
openai / gpt-6-sol / medium / medium effort answer
1. Use the producer’s stable operation ID as the effect store’s unique key. Apply the effect with a conditional insert in the same durable transaction as its success record. On redelivery, an existing success means **do not repeat the effect**; acknowledge the duplicate.
2. Acknowledge only after durable success is confirmed. For a transient failure, do not acknowledge; retry with the same ID. For a terminal failure, durably record the failed outcome before acknowledging. Expose completion to users from the durable outcome record—not from queue acknowledgment.
3. Acknowledging first can lose the operation if the worker crashes before the effect. Generating a new ID on retry defeats duplicate detection and can repeat the effect after a crash between effect and acknowledgment. Conditional inserts alone are insufficient if the effect cannot be committed atomically with the record.
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.
Primary judge's stated reason
B receives a slight forced preference because its durable failed-outcome rule makes unsuccessful completion easier to expose consistently to users. This is not an established material quality gap: A's retry-and-dead-letter alternative is valid, and the advantage concerns its less explicit outcome reporting rather than demonstrated execution failure.
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_bd5f55ba08d97fbb10f8e6f38eca6483d3a101ae3f2c3327b8fb9d53a89fd1a0. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.