claude-code-cli / claude-opus-5-5 / low / low effort preferred over claude-code-cli / claude-haiku-5-5 / medium / medium effort · clear 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-haiku-5-5 / medium / medium effort answer
1. **Execution contract.** The worker conditionally inserts `{opId, PENDING, leaseToken, leaseExpiry}`, performs the effect, conditionally marks the record `DONE` with its result, and only then ACKs. On conflict: `DONE` means ACK and skip; a live `PENDING` lease means no ACK, so the message is redelivered later; an expired lease means conditionally reclaim with a new token and retry. Permanent failure means conditionally mark `FAILED` with a reason, then ACK. Transient failure means no ACK.
2. **Why the alternatives fail.** ACKing before the effect turns a crash into permanent loss (at-most-once). A fresh ID on retry passes every conditional insert, so the effect runs again. Only the producer's stable `opId` deduplicates.
3. **User-visible completion.** Show "complete" only after the `DONE` record is committed and read by `opId`, never on ACK or on the effect call returning. Show `PENDING` as in progress and `FAILED` with its reason. Confidence is moderate: exactly-once requires the effect and the record to share a durability domain, or the target to honor `opId` as an idempotency key. The packet doesn't specify either, nor the queue's lease semantics.Primary judge's stated reason
A is preferred because its core contract more directly prevents the specified crash-window duplicate while requiring less coordination machinery. B offers better terminal-failure visibility, but its lease protocol needs a stronger connection between its caveat and execution steps. This supports a clear architectural advantage, not a claim that either answer demonstrates a working implementation.
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_3dfd124ea1e48f6c596ac17bd672c39f1c9fa8fcd97a3e91ce25921c519c960a. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.