← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / low / low effort preferred over openai / gpt-6-luna / low / low 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

Design ownership of non-safety-critical scheduled jobs across three regions. Networks partition, clocks skew, region workers pause and resume, and job execution can trigger irreversible external API side effects without idempotency support. Define authoritative lease epochs, fencing limits, quorum behavior, degraded availability, ambiguous effect handling, manual reconciliation and auditability. Explain which guarantees are impossible and give partition/crash/rejoin acceptance traces without claiming exactly-once effects.

Give one coherent design with explicit requirements, assumptions and alternatives, state/invariant/transaction details appropriate to the stated scope, and measurable pass/fail acceptance checks. Do not invent benchmark measurements, provider costs, source inspection, executed tests or objective passes. Every contributor must independently answer the complete identical question; there are no separate roles, files or tool evidence.

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

## Recommendation and guarantees

Use a **single consensus authority replicated across three regions**, plus a durable, one-shot dispatch record for every scheduled occurrence. Allow ownership failover, but **never automatically retry an external request whose outcome might be ambiguous**.

This favors avoiding duplicate effects over completing every occurrence. It provides neither exactly-once effects nor uninterrupted availability.

This is an independent, reasoning-only design. No source evidence, implementation inspection, or executed tests were supplied.

### Requirements and assumptions

- One voting replica per region; any authoritative mutation requires a committed **2-of-3 quorum**. Workers may run in all regions.
- Consensus storage survives supported crashes, preserves committed records across leader changes, and uses safe membership changes. No independent regional promotion or split-brain restore.
- Failures are crash, pause, and network failures—not malicious workers. Workers obey the protocol.
- An occurrence has a stable identifier, such as `(job_id, schedule_version, nominal_due_time)`. Ownership changes never create a new identifier for the same occurrence.
- Each occurrence has one irreversible external request. Multi-step jobs must model each irreversible step separately; partial completion is another reconciliation problem.
- HTTP libraries, proxies, and application recovery must not automatically retry the irreversible request. A single request may itself produce multiple effects inside the provider; this design cannot control that.
- Clocks may skew arbitrarily. Wall-clock observations do not authorize ownership or dispatch. Accurate real-world scheduling requires an additional clock-error assumption.
- The service accepts skipped or indefinitely blocked occurrences. Job policy explicitly chooses whether an unresolved occurrence blocks later occurrences. Default: block them if ordering or cumulative effects matter.

## Authoritative state

| Record | Essential fields |
|---|---|
| Job | schedule version, enabled state, concurrency policy |
| Ownership | job ID, monotonically increasing epoch, unique worker incarnation, renewal sequence |
| Occurrence | occurrence ID, state, current epoch, immutable payload hash |
| Dispatch | occurrence ID, unique dispatch ID, designated worker incarnation, authorization commit index |
| Resolution | evidence references, operator identities, decision, risk acknowledgment |
| Audit | committed transitions, actor, reason, old/new state, relevant identifiers |

Occurrence states:

`READY → CLAIMED → DISPATCH_AUTHORIZED → CONFIRMED_SUCCESS / CONFIRMED_NO_EFFECT / UNKNOWN`

`UNKNOWN` may subsequently become `RESOLVED_EFFECT`, `RESOLVED_NO_EFFECT`, or `CLOSED_UNRESOLVED`.

A dispatch authorization is permanent historical fact. **It is not a renewable lease and is not automatically transferable.** If its worker crashes, another worker cannot execute it.

A `DISPATCH_AUTHORIZED` record without trustworthy outcome evidence is operationally ambiguous even if a watchdog has not yet labeled it `UNKNOWN`.

## Epochs, leases, and transactions

### Ownership

An epoch is a consensus-committed generation number, not a timestamp. Acquiring or replacing ownership atomically:

1. Verifies job eligibility and expected previous epoch.
2. Increments the epoch.
3. Records a fresh worker incarnation.
4. Appends the audit event.

Renewals compare the epoch and worker incarnation and increment a renewal sequence. A paused process does not inherit authority merely because it still holds an old token.

Use a renewal deadline as a **failure-detection policy**, not as a safety proof. An elected authority can propose replacement after insufficient renewals; replacement becomes authoritative only when committed. Clock errors may cause premature failover or delayed failover, but cannot authorize conflicting committed epochs.

Thus this is a revocable, quorum-authoritative lease—not a physical-time promise that an old worker must already have stopped. If timed, non-overlapping execution leases are required instead, bounded clock drift, pause handling, and conservative expiry rules become additional assumptions.

### Occurrence creation and claiming

Occurrence creation uses a uniqueness constraint on its stable ID. Schedule edits retain their versioned history.

Claiming atomically checks:

- Current ownership epoch and worker incarnation.
- Job enabled state.
- Occurrence state is `READY`.
- Applicable concurrency and unresolved-effect barriers.

A replacement owner may reclaim a `CLAIMED` occurrence only if no dispatch authorization exists.

### Crossing the irreversible boundary

Immediately before dispatch, the worker requests a transaction that:

1. Checks current epoch and worker incarnation.
2. Checks occurrence eligibility and its exact payload.
3. Verifies no previous dispatch authorization exists.
4. Creates one immutable dispatch authorization and changes state.
5. Commits its audit event.

The worker sends the external request **only after positively receiving confirmation that this transaction committed**. If the commit response is lost, it does not send and does not recover dispatch eligibility by reading the record later.

Only that live execution path may consume the permission, once. Restarted processes, redelivered queue messages, and replacement owners must not execute an existing authorization. Disable retries below the application layer as well.

This sacrifices executions when a worker crashes after authorization but before sending. It also cannot prove whether a paused authorized worker will send later.

### Recording outcomes

Outcome reports reference the immutable dispatch ID, not merely the current epoch. An old owner may submit evidence about its earlier dispatch after ownership changes; it may not create another dispatch.

- `CONFIRMED_SUCCESS`: trustworthy provider evidence establishes success.
- `CONFIRMED_NO_EFFECT`: evidence establishes no effect **and no remaining request or authorized execution can produce one later**.
- `UNKNOWN`: timeout, lost response, crash, uncertain rejection, or incomplete evidence.

A transport error or generic HTTP error is not inherently proof of no effect.

## Invariants and fencing limits

1. **Single authoritative owner:** each committed ownership record contains one current epoch and incarnation.
2. **Monotonic fencing:** transactions using an obsolete epoch cannot claim work or obtain new dispatch authorizations.
3. **One automatic authorization per occurrence:** failover, restart, and timeout never create a second authorization.
4. **No uncertain automatic retry:** a possibly sent request cannot return to ordinary runnable state.
5. **Evidence survives ownership changes:** dispatch history and unresolved barriers are not reset by epoch increments.
6. **Resolution is attributable:** every manual decision retains evidence, identity, and the risk accepted.

Epochs fence the consensus database and any cooperative internal component that checks them. They **do not fence the external API**, because that API does not enforce epochs or idempotency.

In particular:

- A worker can receive authorization, pause, lose ownership, resume, and send.
- A request already in flight can complete after ownership replacement.
- Rechecking immediately before sending leaves a race between that check and the send.
- An egress gateway helps centralize enforcement, but still has a crash window between durable bookkeeping and the external request.

Consequently, this design permits a stale owner’s **previously authorized** request to execute. It prevents a replacement from automatically issuing the same occurrence again. If the requirement is “no old-owner effect after failover,” this architecture cannot satisfy it against an uncooperative external API.

## Quorum and degraded availability

| Condition | Behavior |
|---|---|
| All regions connected | Normal scheduling and ownership changes |
| One region isolated | The connected pair may commit; isolated workers cannot obtain new authorizations |
| Every region isolated | No authoritative mutations or new authorizations |
| One replica failed | Remaining connected pair may continue |
| Two replicas unavailable | Scheduling mutations stop |
| Worker paused or crashed | Ownership may change; authorized occurrences remain blocked or unresolved |

A minority worker with an authorization obtained before the partition may still send. Therefore, “minority regions cannot acquire new dispatch authority” is valid; “minority regions cannot produce any effects” is not.

Do not bypass quorum during an outage. Queue pending schedule evaluations and surface stale reads as stale. After recovery, apply an explicit catch-up policy—skip, coalesce, or execute a bounded backlog—without changing occurrence identities.

Arbitrary clock skew also means the system cannot guarantee dispatch within a fixed interval of true UTC. Canonical schedule evaluation needs a documented time source and error envelope if that guarantee matters.

## Ambiguity and manual reconciliation

For an ambiguous occurrence:

1. Block its retry and any required downstream occurrences.
2. Preserve payload, dispatch identity, ownership history, response fragments, and provider correlation data.
3. Investigate provider records or observable business state.
4. Establish whether the original executor and request can still produce an effect.
5. Record one of:
   - Effect established: close without retry.
   - No effect established and original path quiesced: approve a separately identified recovery attempt.
   - Unresolved: leave blocked or close as missed.
   - Business accepts duplicate risk: approve an explicit override, not an “exactly-once recovery.”

A negative provider search at one instant is insufficient if an old worker or delayed request could act later. Killing a worker alone is also insufficient for a request already accepted by the provider. When terminal non-execution cannot be established, safe retry may remain impossible indefinitely.

Require two-person approval for risk-bearing overrides. Recovery attempts link to the original occurrence; they must not erase its ambiguous history.

Commit audit records atomically with state transitions. Export them to separately protected, append-only storage. Distinguish authorization, observed send, provider acknowledgment, and inferred effect: none is interchangeable with the others. Worker timestamps are diagnostic, not authoritative ordering evidence.

## Guarantees that are impossible

Without external cooperation, the system cannot guarantee all of:

- Exactly-once irreversible effects.
- Eventual execution of every occurrence.
- Automatic failover after every ambiguous failure.
- No duplicate effects.
- Availability in every network partition.

There is no atomic transaction spanning the local consensus record and the external effect. A crash can leave “not sent” and “sent, response lost” indistinguishable. Retrying risks duplication; not retrying risks omission.

Even “at most one automatic dispatch” is conditional on protocol-compliant workers and disabled hidden retries. It is not proof of at-most-one provider-side effect.

## Acceptance traces and measurable checks

These are proposed acceptance checks, not executed results. Use a controllable external endpoint that records request arrivals and can delay effects and responses.

| Trace | Required pass condition |
|---|---|
| **Partition before authorization:** isolate owner A; B+C replace its epoch; A attempts dispatch authorization | A gets zero successful new authorizations. B+C may authorize the occurrence once |
| **Pause before authorization:** A claims, pauses; B takes ownership; A resumes | A’s old-epoch authorization fails; no external request from that path |
| **Pause after authorization:** A obtains permission, pauses; B takes ownership; A resumes | B creates no replacement dispatch. A may send once; the system does not assert that fencing stopped it |
| **Crash before sending:** authorization committed, worker crashes before request | Restart creates zero automatic sends for that authorization; occurrence becomes unresolved or missed |
| **Effect then crash:** provider applies effect; response is lost; worker crashes | Zero automatic retries; occurrence is ambiguous until evidence resolves it |
| **Commit acknowledgment lost:** authorization may commit, but worker receives no confirmation | Worker sends zero requests; failover does not replay the authorization |
| **Three-way isolation:** no pair can communicate | Zero committed acquisitions, renewals, or new dispatch authorizations; prior authorized sends remain possible |
| **Crash and rejoin:** A returns with stale epoch and old queue messages | All new authorization attempts using its stale incarnation fail; existing outcome evidence can still be recorded |
| **Large clock jumps:** skew worker and authority clocks forward/backward | No duplicate occurrence IDs or authorizations; premature ownership replacement may occur without safety violation |
| **Manual no-effect resolution while zombie remains:** provider currently shows nothing, but authorized worker is paused | Safe-retry approval is rejected unless late execution is ruled out; override records duplicate risk |
| **Old request completes during reconciliation** | Effect evidence is retained; original dispatch history is unchanged; no automatic retry follows |
| **Durability and audit recovery:** fail leader immediately after acknowledged commits | Every acknowledged authorization and its audit event survives; epochs never regress |

Global checks: authorization count per ordinary occurrence is at most one; stale-epoch authorization successes are zero; automatic retries after ambiguity are zero; every override has the required approvals and evidence references.

Set operational targets separately—for example, ownership detection time, backlog limits, and reconciliation response time. Their feasibility depends on deployment and provider behavior; no measurements are available here.

## Alternatives and next action

- **Favor completion:** retry ambiguous requests and explicitly accept duplicate effects.
- **Favor omission avoidance through cooperation:** obtain provider idempotency, fencing, or a durable operation-status API. Its precise semantics must be verified.
- **Single-region owner:** simpler operations, but neither crash ambiguity nor external fencing disappears.
- **Bounded-time leases:** useful with proven timing assumptions, but still cannot retract an external request.

The key missing dependency is the provider’s ability to establish a terminal outcome, including whether delayed requests can still execute. Next, document that contract and implement the listed fault-injection traces. Until then, treat uncertain effects as unresolved rather than claiming exactly-once behavior.

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

## Recommended design

Treat each scheduled job as a **single-writer state machine** in a durable, linearizable control store replicated across three regions. A job may be claimed or have its authoritative owner changed only with a **two-of-three quorum**. Workers execute outside that store; the store authorizes ownership but cannot make an external, non-idempotent API call atomic with a lease transition.

This design favors safety over availability: during a partition, only the side that can reach quorum can assign work. The minority side stops initiating jobs. If no quorum is reachable, ownership changes stop everywhere.

### Requirements and assumptions

- The control store provides durable linearizable transactions, monotonically increasing per-job epochs, quorum writes, and recovery that does not roll back acknowledged commits.
- Each job has a stable identifier, a schedule occurrence identifier, and a policy for whether missed occurrences are skipped, delayed, or manually reviewed.
- Workers may pause, resume, crash, or become partitioned at any point. Clocks are not authoritative.
- An external API may apply a request while its response is lost; it provides neither idempotency keys nor a fencing-token check.
- Jobs are non-safety-critical, so delaying or suspending execution is preferable to risking concurrent or duplicate irreversible effects.

If the control store cannot provide those properties, do not claim authoritative leases or safe epoch advancement across failover.

### State and ownership transactions

Persist per job: `epoch`, `owner`, `lease_deadline`, `state`, current occurrence, and an append-only transition/effect-attempt history. States include `READY`, `LEASED`, `RUNNING`, `EFFECT_UNKNOWN`, `SUCCEEDED`, and `RECONCILIATION_REQUIRED`.

1. **Claim or takeover:** In one quorum transaction, verify the job is eligible and either unowned or expired according to the control store’s clock; increment `epoch`; set owner and lease deadline; record the transition. Epochs never decrease or get reused.
2. **Renewal:** The current owner renews with a conditional transaction matching both owner and epoch. A stale owner cannot renew or update job state.
3. **Begin execution:** Before any external call, conditionally record the occurrence, epoch, and effect attempt as `RUNNING`. If that write is unavailable, do not call the API.
4. **Record outcome:** Record success only when the worker has evidence of success. A timeout, lost response, or crash after a request may have reached the API is `EFFECT_UNKNOWN`, not failure eligible for automatic retry.
5. **Expiry:** Expiry allows a quorum-authorized successor to take ownership; it does not stop, revoke, or fence a paused worker at the external API.

Use store time for lease comparisons; workers must not decide ownership from local clocks. Choose lease duration and renewal interval as operational configuration, not as correctness proof. Require a safety margin for expected store and scheduling delays; missed renewals make a worker lose authority to update the control state, not necessarily to act externally.

### Guarantees and limits

- **Guaranteed under assumptions:** At most one current owner/epoch is authorized by the control store; stale epochs cannot commit renewals or state transitions. Acknowledged ownership changes survive failover.
- **Not guaranteed:** A stale worker cannot make an external call after pausing past lease expiry; an external side effect occurs exactly once; success can always be distinguished from non-execution after an ambiguous response.
- Epochs are **control-plane fencing only** unless the external service validates them. They cannot fence an API that has no idempotency or fencing support.
- Do not claim exactly-once effects. Automatic retry after an ambiguous call can duplicate an irreversible effect; refusing retry can omit an effect that never occurred.

### Degraded behavior and reconciliation

Without quorum, workers may finish local bookkeeping only if it does not represent new ownership or authorize an external effect. Do not start new occurrences or retry ambiguous effects. On quorum recovery, reconcile from durable state and the audit log; do not infer that a lease expired merely because a worker’s clock says so.

For `EFFECT_UNKNOWN`, stop automatic execution for that occurrence. An operator checks provider records or other authoritative evidence where available and records a decision—confirmed applied, confirmed not applied, or unresolved—with evidence, actor, timestamp, and rationale. Retry only after confirmed non-application or explicit risk acceptance; if evidence cannot resolve the outcome, preserve the unresolved state and require an explicit skip/retry decision. Record every decision as an append-only, attributable audit event.

### Acceptance traces

1. **Partition:** Regions A+B retain quorum; C is isolated. A obtains epoch 7. C cannot claim or renew and must not start a new occurrence. If A pauses and its lease expires, A+B may transactionally assign epoch 8. On rejoin, C’s epoch-6 writes are rejected. Pass if no minority ownership change is accepted and the durable epoch never decreases.
2. **Pause/resume:** A starts an external call under epoch 7, pauses past expiry, and B obtains epoch 8. A resumes. Pass if A cannot renew or commit control-state updates. The API may still accept A’s call; the system must not assert that epoch 8 prevents it.
3. **Crash after send:** A sends a non-idempotent request and crashes before recording the response. Pass if recovery marks the attempt `EFFECT_UNKNOWN`, does not automatically retry, and exposes it for reconciliation. This is safe against an automatic duplicate, but may require manual action even if the request never applied.
4. **No quorum:** All regions are partitioned from one another. Pass if no region advances ownership or starts an effect; scheduling is delayed until quorum returns.
5. **Rejoin/audit:** Rejoining workers submit stale epoch updates and an operator resolves an ambiguous occurrence. Pass if stale updates are rejected and the audit trail identifies the occurrence, epochs, attempt, evidence, decision, actor, and time.

### Alternatives and missing evidence

A provider-supported idempotency key or provider-enforced fencing token would materially improve effect safety, but neither is assumed. An external transactional outbox alone does not solve the gap when the recipient lacks deduplication. A design that permits each partition to continue scheduling improves availability but cannot preserve single authoritative ownership.

No source evidence or implementation details were supplied, so store capabilities, provider observability, lease timings, and operational feasibility remain assumptions to validate. Next, select and verify the control-store guarantees and define per-job missed-run and reconciliation policies before implementation.

Primary judge's stated reason

B provides a more complete operational boundary between safe recovery and duplicate-risk acceptance, including a check that rejects safe-retry approval while an authorized worker remains paused. This supports a clear preference on the requested ambiguity-handling and measurable-assurance requirements, rather than on presentation or optional refinements. It establishes a substantive design-assurance advantage, not demonstrated implementation failure in A.

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

Battle wave: 4f1c6dfb-2901-4e06-85bf-7ed497044a25. Pair: brp1_b81b2049d65b413a4482353bb574750f45ff59b447a28c8fc162dfc354296e1b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.