openai / gpt-6-luna / max / max effort preferred over xai / grok-4.7-efficient / xhigh / xhigh 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-luna / max / max effort answer
## Design: quorum-backed leases, fail-closed effects
**Assumptions.** The three-region control plane is a crash/partition-tolerant consensus group with one durable voter per region and a two-of-three commit quorum. It is not Byzantine fault tolerant. Its clocks are monotonic, account for suspend/resume, and have a known maximum error of `ε`; if that bound is lost, lease changes fail closed. Internal state transitions use a linearizable, durable store. External APIs offer neither idempotency nor fencing. Jobs may pause for reconciliation because they are non-safety-critical.
### Authority and lease state
For each job, store `{epoch, holder, lease_until, acquisition_nonce}` in the consensus log. A lease or renewal is authoritative only after quorum commit. Workers’ cached state, local leaders, and minority replicas are not authority.
- A committed acquisition increments the job’s epoch, including reacquisition by the same region. A renewal keeps the epoch. A stable nonce lets a caller resolve a timed-out acquisition without accidentally creating another lease.
- A new acquisition requires a quorum and a committed check that the prior lease has expired past a guard. Set guard `G` above the worst-case relative clock error, drift, and scheduling uncertainty; with clocks each bounded to `±ε`, this includes at least `2ε`, plus the other uncertainty margins.
- The old holder stops work by its conservative local deadline, `lease_until − G`. The authority will not grant a successor until its trusted time is past `lease_until + G`. Uncertain or out-of-bound time means no renewal or takeover.
- Every internal authoritative mutation checks the current epoch, holder, and lease validity **in the same linearizable transaction**. Merely remembering the greatest epoch a resource has seen is insufficient: it may not yet have seen the new epoch.
- Renewals and mutations require quorum. A partitioned worker cannot extend a lease or commit authoritative state. Set renewal cadence `R` and worst-case renewal/commit delay `D` so `R + D + G < L`, where `L` is the lease duration; validate that condition under the deployment’s actual clock and network bounds.
The epoch fences stale workers from integrated internal state. It does **not** fence an external API that does not accept and enforce the epoch.
### Effects and ambiguous outcomes
Use a durable run key such as `(job_id, scheduled_fire_time)` and a per-effect stable ID. Before any external call, persist an immutable intent containing the run/effect IDs, epoch, payload hash, and audit metadata. A quorum transaction validates the current lease and changes the intent from `PREPARED` to `DISPATCHING`. Only then may a restricted egress service submit it. Deny workers direct API egress, disable automatic client/service-mesh retries, and never automatically resend a `DISPATCHING` intent.
The transaction and epoch change are ordered by consensus: if dispatch authorization commits first, it is an outstanding old-epoch attempt; if the epoch change commits first, authorization fails. But a process or request can pause after authorization and reach the provider after takeover. The provider cannot reject the stale epoch, and a timeout or crash after submission cannot distinguish “not applied” from “applied, response lost.” Treat such cases as `UNKNOWN`, block automatic replay of that effect and its dependants, and preserve the possibility of a late result.
This reduces duplicate submissions by our scheduler; it does **not** promise at-most-once effects at the provider. Do not claim exactly-once effects, exactly-once job completion, or that lease transfer prevents stale external effects. A human-authorized retry may duplicate an effect.
### Quorum and degraded availability
A two-region partition can make progress only on the side that can commit with two voters; the minority cannot grant leases or commit renewals. In a one-one-one partition, no side can commit. Even a current holder that has not reached its expiry cannot authorize a new effect without quorum. Pure local computation may continue, but it has no authoritative commit until quorum returns. This deliberately trades availability for a single authoritative history.
A committed dispatch authorization may still produce a late external effect after quorum is lost. Mark it unresolved; do not interpret loss of quorum as proof that the provider did nothing. If clock uncertainty is unbounded, automatic lease expiry and safe takeover are impossible without an additional trusted timing assumption or an operator-confirmed shutdown of the old holder.
### Reconciliation and audit
On takeover, mark old-epoch `DISPATCHING` intents unresolved. An operator workflow should freeze dependent work; quiesce the old worker and egress path; inspect provider records and relevant business state; then append an auditable decision to confirm applied, confirm not applied, retry, compensate, or leave blocked. If the result cannot be established, leave it `UNKNOWN`, or require an explicitly documented, authorized duplicate-risk decision to proceed. “Confirmed not applied” should require evidence that the old request cannot still arrive, not just a worker timeout.
Keep an append-only, quorum-durable record of lease grants, renewals and epochs; run/effect IDs and payload hashes; dispatch authorizations and available provider responses/references; uncertainty; and operator identity, evidence, ticket, decision and approvals. Never silently rewrite prior outcomes. Avoid storing secrets in the audit record.
### Acceptance traces and pass/fail checks
These are proposed checks, not executed tests; thresholds must use the deployed `L`, `G`, `R`, `D`, and clock-error bounds.
1. **Two-versus-one partition:** Start with region A holding epoch `e`, then isolate it from the other two voters. The majority may grant `e+1` only after the guarded expiry. A cannot renew or commit internal mutations; any old-token mutation after the successor grant is rejected. Pass if the consensus history contains no overlapping committed holders and the minority commits no authority.
2. **One-one-one partition:** No lease acquisition, renewal, or effect-dispatch authorization commits. A holder stops by its conservative deadline. Pass if every attempted new authorization fails without quorum. A previously authorized API request may still complete; the check must not treat that as proof of no effect.
3. **Skew and clock uncertainty:** Inject offsets up to the declared bound and verify guarded handover; exceed or invalidate the bound and verify fail-closed behavior. Pass if the lease protocol does not grant a successor before the guard and no out-of-bound clock is used for takeover.
4. **Pause, takeover, rejoin:** Pause an epoch-`e` worker past expiry, commit `e+1` elsewhere, then resume it. Its internal writes and new dispatch authorizations must fail. An old `DISPATCHING` effect remains `UNKNOWN`; the new owner must not automatically replay it. Pass even if the provider outcome remains indeterminate.
5. **Crash windows:** Crash after intent creation, after `DISPATCHING` commit but before sending, and after provider acceptance but before recording the response. `PREPARED` has no dispatch authorization; either `DISPATCHING` crash window is unresolved and is not automatically resent. Pass if audit state distinguishes these cases and recovery does not claim to know whether the provider applied the effect.
6. **Rejoin and reconciliation:** A returning region reloads committed state, discards cached epochs and cannot renew or mutate with an old token. Pass if any retry follows a recorded reconciliation decision and the audit trail shows who authorized it and why.
**Alternatives and dependencies.** If the API later supports idempotency keys or epoch fencing, pass stable effect IDs or epochs to it and verify its documented semantics; this can improve external guarantees but is not assumed here. If clock bounds cannot be established, use operator-confirmed failover instead of automatic timed takeover, or accept lower availability. No source or implementation evidence was supplied, so these are design recommendations, not claims about an existing system. The next useful step is to validate the clock bound, consensus behavior, egress retry behavior, and provider reconciliation evidence, then run the acceptance checks. This is independent reasoning only; no source review or tests were performed.xai / grok-4.7-efficient / xhigh / xhigh effort answer
The design below is fail-closed epoch leasing with a quorum-committed pre-effect barrier and ambiguity quarantine. It is reasoning from the problem statement only. No system was inspected, and nothing here was executed.
## 1. Design
**Recommendation:** For each scheduled occurrence, a 3-region quorum is the only authority that may grant a monotonic lease epoch. A worker may transmit the irreversible call only after that epoch’s pre-effect record has committed. If the process may already have put bytes on the wire and the success ack is missing, the occurrence is quarantined. No later epoch is granted until a human certifies no effect. Delay is accepted. Automatic duplicate dispatch is not.
**Confidence:** Medium-high on the protocol invariants under crash faults and partitions. Low on fit to any existing scheduler or API, because no source, API contract, or store was provided.
### Requirements
1. Identity of an occurrence is `(job_id, nominal_slot)`, not “whichever region clock fired first.”
2. At most one epoch may be authorized to dispatch that occurrence, and at most one automatic dispatch may be attempted, unless a human later certifies that no effect happened.
3. A minority partition must not grant, renew, or dispatch.
4. Wall-clock skew must not create, extend, or transfer execution rights.
5. Pause, crash, lost ack, or lease expiry after a possible send must not be treated as “safe to retry.”
6. Every grant, fence, dispatch authorization, outcome, and human close is append-only auditable.
7. Without quorum, new execution stops. Stalling is acceptable because the jobs are non-safety-critical.
8. The design must not be described as exactly-once, effectively-once, or duplicate-free in the external system.
### Assumptions
- Three regions, crash faults only. A buggy or Byzantine worker can still call the API; fencing does not restrain the external service.
- A majority store can commit compare-and-swap transitions (Raft or equivalent). The log is the authority.
- The external API has no idempotency key, no fence-token check, and no reliable “did this occurrence already happen?” query. A success response is evidence only of a response, not of uniqueness.
- Operators can sometimes determine the external outcome out of band, and can act on a quorum-committed reconciliation.
- Clock skew is assumed bounded by an operator parameter `ε`. That bound is an assumption, not a measurement.
- “Non-safety-critical” is interpreted as “stall and repair by hand,” not “duplicates are cheap.” If product owners prefer duplicates over delay, this design is the wrong one.
### Authoritative lease epoch
An epoch is `(occurrence_id, fence)`, where `fence` is a quorum-assigned integer that only increases. The holder is `(region, worker_generation)`. A paused process keeps its old generation; a restarted worker must CAS a new generation before it can act. In-memory lease state is never authority.
Lease lifetime is a committed record plus renewals, not a local timer. The holder may continue only while it holds a fresh quorum renew ack for that same fence. A fast local clock cannot extend a lease. A slow local clock may only cause an early abort, which is safe.
### Fencing limits
These are operator parameters, not measured values: lease `TTL`, renew period `Tr`, assumed skew `ε`, dispatch budget `Dmax`, local freshness `Tf`.
- Require `TTL >= 3*Tr + 2*ε` so one lost renew and skew do not look like a second owner.
- Dispatch is allowed only when all of the following hold: applied log shows this holder and fence; pre-effect for this fence is committed; no local send record exists yet; last renew ack is younger than `Tf`; remaining committed window is greater than `Dmax`.
- If remaining window is too small, do not send. Renew or release.
- Fence expiry stops a worker from starting a call. It does not recall a call already sent. The external API will not see the fence.
- After pre-effect commit, a superseded or expired epoch is not reassigned. It becomes ambiguous.
### Quorum and degraded availability
`N=3`, grant/renew/pre-effect/outcome/reconcile require 2. One region down: the other two may still lease. A singleton partition: no grant, no renew, no dispatch. Total partition: no new calls; occurrences stay pending or, if pre-effect already committed, ambiguous.
A holder that loses quorum stops starting calls immediately. It does not wait out a local TTL if renew has failed. If it had not committed pre-effect, a later majority may expire and reassign that fence. If pre-effect had committed, the majority already sees it and must not reassign.
Reachability does not override quorum. A region that can reach the API but not a majority still must not call. Before pre-effect, a holder that cannot reach the API releases the lease so another region may take it. After pre-effect, it cannot hand off.
### State, invariants, transactions
States: `PENDING`, `LEASED`, `ATTEMPTING`, `DONE_ACK`, `FAILED_NO_EFFECT`, `AMBIGUOUS`, `RECONCILED_EFFECT`, `RECONCILED_NO_EFFECT`, `WAIVED`.
Invariants:
- One row per `(job_id, nominal_slot)`, inserted idempotently.
- `fence` never decreases. At most one `PRE_EFFECT` exists until a human sets `RECONCILED_NO_EFFECT`.
- `DONE_ACK` is allowed only for the fence that committed pre-effect, and only as an observation of an ack, including a late ack after rejoin.
- Automatic transition back to leasable requires `FAILED_NO_EFFECT` or human `RECONCILED_NO_EFFECT`.
- `ATTEMPTING` and `AMBIGUOUS` are not leasable.
Transactions, each a quorum CAS:
1. **Grant.** From `PENDING` or `RECONCILED_NO_EFFECT`, if fence is the expected value: increment fence, set `LEASED`, holder, generation, leader-time expiry. Append audit.
2. **Renew.** Same fence and holder only. Extends committed expiry. Rejected if fenced or expired.
3. **Pre-effect.** From `LEASED`, same fence and holder, window still covers `Dmax`: set `ATTEMPTING`. This commit is the point of no automatic return.
4. **Local send barrier.** After applying pre-effect, the holder durably records `SEND_STARTED` locally, then transmits once. Crash before that local record, with local disk intact and this generation the only sender: may commit `FAILED_NO_EFFECT`. Crash after it, lost disk, lost ack, or pause across the send: `AMBIGUOUS`.
5. **Ack.** Same fence, from `ATTEMPTING`: `DONE_ACK` plus response digest. A late ack after expiry attaches to that same fence; it is not permission to send again.
6. **Expire without pre-effect.** Majority may fence and return the occurrence to leasable.
7. **Expire or suspect with pre-effect.** Majority sets `AMBIGUOUS`. No new fence is granted.
Grant is refused until nominal slot time is reached on the quorum leader’s clock, minus `ε`. Early regional clocks cannot open the slot. Late clocks only delay proposals.
### Ambiguous effects
Ambiguous means: pre-effect committed, or local send may have started, and no trustworthy terminal observation exists. Timeouts, partitions, pauses, and crashes are the same state. The system does not guess. It does not start a compensating call. It alerts and waits.
`FAILED_NO_EFFECT` is narrow. “The API timed out” is not in it. “TCP connected” is not in it. Only a holder that still owns the fence and can show it did not start the send may use it. If that proof is gone, the state is ambiguous.
### Manual reconciliation and audit
The decision log is the audit log. Each entry has occurrence, fence, from/to state, actor, consensus index, leader time, local time, and reason. Human time and leader time may disagree; the index is the order.
An operator closes `AMBIGUOUS` with exactly one quorum entry: effect observed, no effect observed, or waived. Each carries operator id, ticket id, and an evidence note. Effect or waive is terminal. No-effect sets a retry bit and allows a later grant to take a new fence. The gap between automatic quarantine and human close must remain visible. There is no silent auto-close.
### Guarantees that are impossible
- Exactly-once external effects. A crash or partition between send and ack cannot be distinguished from “never arrived” or “arrived and will complete later” (two generals). Leases do not cross that boundary.
- Recalling an in-flight call by incrementing a fence, unless the API itself enforces the token. It does not.
- Proving a dead worker did not send, if its disk or process state was lost after pre-effect.
- Progress during a quorum loss, while also preventing a minority from dispatching.
- Using wall clocks to order or own work across regions under skew.
- A bounded execution delay. Partition delay is unbounded by choice.
- Making `DONE_ACK` mean “the external world observed this once.” It means “this epoch observed one success response.”
What is possible: at most one quorum-authorized automatic attempt; no minority grant; ambiguity preserved instead of retried; every authorization and human override audited.
### Acceptance traces
These are pass/fail predicates on the log and on whether a worker transmitted. They were not run.
**Partition, no pre-effect.** R1 holds fence 7. R1 becomes a minority and its renew fails. Pass: R1 transmits nothing further; after expiry the majority may grant fence 8; the log shows fence 7 ended without `PRE_EFFECT`. Fail: any send from R1 after failed renew, or two `PRE_EFFECT` rows.
**Partition after pre-effect.** Fence 7’s pre-effect is committed, then R1 is isolated and may still be inside the call. Pass: majority sets `AMBIGUOUS` and grants no fence 8; R1 on rejoin may attach an ack to fence 7 only. Fail: a second grant, a second send, or an automatic move to `PENDING`.
**Crash before local send record.** Pass: recovery commits `FAILED_NO_EFFECT` or leaves it leasable after fence expiry, and a later epoch may run. Fail: recovery transmits again under the same fence.
**Crash or pause after send started, ack missing.** Pass: state becomes `AMBIGUOUS`; resumed worker does not transmit again; new generation is refused for that fence. Fail: resume retries the call, or a peer treats timeout as `FAILED_NO_EFFECT`.
**Clock jump.** One region’s clock jumps forward by more than `TTL`. Pass: it neither self-grants nor extends the committed expiry; dispatch still requires a fresh quorum renew. Fail: local time alone opens a slot or keeps a fence alive.
**Total partition, then rejoin.** Pass: zero new pre-effects during the split; on rejoin, a single majority history remains; stale renews for an old fence are rejected. Fail: two committed grants for the same occurrence, or a stale holder’s success path opening a new attempt.
**Human close.** Pass: `RECONCILED_NO_EFFECT` is the only path from `AMBIGUOUS` to a new fence, and the audit entry has a human actor. Fail: a timer, a worker vote, or a region rejoin clears ambiguity.
## 2. Alternatives discarded
- Active-passive VIP or “region with the newest timestamp wins”: split brain under partition and pause. No fence.
- At-least-once relay or outbox: durable intent only. Without an idempotent API it still duplicates.
- Two-phase commit with the API: the API is not a participant.
- CRDT ownership: concurrent owners under partition.
- Auto-retry on timeout: directly violates the irreversible-effect constraint.
- Human approval before every dispatch: safe but rejects the scheduling goal. Humans are reserved for ambiguity.
- Sticky home region with no failover: simpler and avoids cross-region lease races, but a home-region outage stalls its jobs even when another region has quorum and API reachability. Reasonable fallback if quorum operations are unavailable. It does not meet multi-region takeover.
- Invert the policy to at-least-once duplicates: coherent only if duplicate external effects are explicitly cheaper than delay. The problem statement does not say that.
## 3. Missing evidence
No scheduler, store, API, clock-sync, or operator workflow was in evidence. Consequences: `ε`, `TTL`, `Dmax`, and “definitive no-send” depend on an unstated runtime; a hidden idempotency key or effect query would allow a weaker quarantine; a Byzantine worker is outside this design; safety-critical jobs would need a different availability choice. Conclusions about an existing codebase would be unsupported.
## 4. Next useful action
Write the occurrence CAS table and the seven predicates above as an executable log checker against a fault-injected quorum prototype. Do not score a run as exactly-once, and do not treat a successful ack as proof that no duplicate effect occurred.
Primary judge's stated reason
B provides a materially more defensible failure model and acceptance target for paused workers and delayed irreversible requests. This is not merely a forced preference over optional refinements: A's immediate-stop condition could reject an unavoidable execution while its reconciliation instructions leave a consequential late-arrival prerequisite unstated. B's advantage does not establish implementation correctness; both are proposed designs.
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_04d2b2edd208a2f60fcaedeeeaf1a3fdc02c9e905c6b10cd9d71398b9b2c146b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.