← Model losses

Head-to-head comparison

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 code review. Contract: only current lease holder may commit; lease generations increase monotonically; a worker may pause past expiry; retries keep stable operation IDs. Code: async function commit(job,lease){if(Date.now()<lease.expiresAt){await compute(job);await storeResult(job.id,job.result);await markDone(job.id);}}. WorkerA checks generation7, pauses; lease expires and B obtains generation8; A resumes. Identify the stale-write mechanism and minimal storage/transaction checks. Distinguish fencing from deduplication and explain the compute-to-commit race. Give two meaningful verification cases; do not claim execution. No tools. Answer in three numbered items, under180words.

openai / gpt-6-sol / low / low effort answer

1. **Stale-write mechanism:** A checks generation 7 before `compute`, then pauses. After expiry, B obtains generation 8, but A resumes and writes because the code never rechecks ownership. Even a check immediately after `compute` leaves a race before the write.

2. **Minimum fix:** At commit, storage must atomically verify that A’s generation still equals the current generation and its lease is valid, then write the result and mark the job done in the same transaction. Reject generation 7 once generation 8 exists. A stable operation ID can deduplicate retries of one operation, but it does not fence out a former lease holder.

3. **Verification cases (not executed):** (a) Pause A after its initial check, grant B generation 8, then resume A; A’s write and done marker must be rejected. (b) Retry a valid holder’s operation with the same ID; it must not create duplicate effects.

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

1. **Stale-write mechanism.** The code checks the lease once, using local wall-clock time (`Date.now()<lease.expiresAt`), and then acts on that check later. The lease generation never reaches storage. A passes the check at generation 7, pauses, and resumes after B holds generation 8. A's `storeResult` and `markDone` then write without any condition. The compute-to-commit race is that `compute` can run for any length of time between the check and the write. Re-checking the clock before writing only narrows the gap and does not close it. Clock skew makes the local check weaker still.

2. **Minimal storage checks.** Pass `lease.generation` to storage as a fencing token. Do the result write and the "done" marking in one atomic transaction:
   `UPDATE jobs SET result=?,status='done' WHERE id=? AND lease_gen=? AND status<>'done'`
   If zero rows change, abort. Fencing rejects writes from older lease holders. Deduplication by stable operation ID only makes repeated attempts of the same operation harmless. A and B share `job.id`, so deduplication alone might accept A's stale write and drop B's. You need both.

3. **Verification cases (designed, not run).**
   - (a) A checks at generation 7 and pauses. B commits at generation 8. A resumes and its commit is rejected, so B's result remains.
   - (b) B acquires generation 8. A writes first at generation 7 and is rejected. B then commits. B retries with the same operation ID, and the retry changes nothing.

Primary judge's stated reason

B is preferred because its stated commit condition covers an expired lease even when the generation has not advanced. A's more concrete implementation sketch and richer takeover tests counterbalance that advantage. This is a weak comparative preference, not an established material quality gap across the answers.

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

Battle wave: b628f53b-a3e5-4f4d-85d3-7e1cd2c26f1f. Pair: brp1_4e0274126b1dfa3b145a034dc974b8c1046bcb3d0245f1252d45ef51ddc0d61c. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.