openai / gpt-6-astra / high / high 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-astra / high / high effort answer
## Recommendation
Use **quorum-authorized ownership plus a durable, single-use effect-dispatch gate**. Favor missed or delayed non-safety-critical jobs over automatic retries of ambiguous irreversible actions.
Lease epochs fence internal state changes. They **cannot fence an external API that does not enforce them**. Therefore, ownership transfer must never authorize a replacement call for an effect whose previous dispatch might have occurred.
This is an independent design assessment based solely on the supplied scenario. No implementation, source inspection, or tests were available.
## 1. Requirements and assumptions
### Required behavior
- Three regions share one authoritative ownership and execution ledger.
- At most one current owner is authorized for each job.
- Every scheduled occurrence has a stable identity.
- Workers may pause indefinitely, resume with stale state, or crash at any instruction.
- External requests may execute despite lost responses.
- Ambiguous irreversible effects stop automatic progress for the affected job.
- Other jobs continue wherever a quorum is reachable.
- Administrative overrides are explicit, attributable, and distinguishable from normal operation.
### Necessary assumptions
1. The ledger provides durable, linearizable transactions through crash-fault consensus, with one voting replica per region. Two votes form a quorum.
2. Replicas are non-Byzantine; acknowledged durable state survives the failures covered by the design.
3. Workers cannot bypass the effect gate: only the gate has external API credentials and permitted egress.
4. Clients, proxies, and gateways have automatic retries, request replay, and retrying redirects disabled for these calls.
5. Scheduling uses persisted UTC occurrence identities and explicit policies for time zones, daylight-saving transitions, lateness, and missed runs.
6. A provider “success” is treated as completion only if its documented semantics establish that completion. An acceptance response such as HTTP 202 is not sufficient by itself.
No bound on inter-region wall-clock skew is needed for ownership safety. Availability and scheduling punctuality require additional timing assumptions.
## 2. Authoritative ownership and quorum behavior
### Lease representation
Persist:
```text
Authority:
generation G
Job:
job_id
lease_generation
lease_epoch E
owner
lease_state: ACTIVE | REVOKED
blocked_effect_id?
```
The fencing token is `(G, E)`, compared lexicographically:
- `G` increases through a committed transaction after each consensus leadership change, before the new leader serves ownership operations.
- `E` increases on every acquisition or transfer within a generation.
- Old-generation leases require reacquisition.
- Tokens are never reused or reset during ordinary recovery.
A token is current only if its generation matches the authoritative generation and its epoch, owner, and active state match the job row.
### Lease expiry
A lease timeout is **eligibility for an authoritative revocation**, not an independently actionable wall-clock deadline.
- The leader measures renewal intervals using its monotonic clock.
- Expiry becomes effective through a committed revoke or transfer.
- Workers’ local timers are advisory.
- A paused worker cannot establish authorization from “my lease has not expired.”
- A leadership change invalidates old-generation leases through the committed generation barrier.
This avoids deriving safety from synchronized clocks. A stopped or unusually slow timer can delay failover; a fast timer can cause unnecessary revocation. Neither permits stale ledger writes. A bounded real-time failover guarantee would require explicit bounds on clocks, communication, and processing.
### Partition behavior
| Reachable topology | Behavior |
|---|---|
| All regions connected | Normal operation |
| Two regions connected, one isolated | The pair may operate after establishing leadership; the isolated region cannot authorize work |
| Three isolated regions | No new ownership grants or effect authorizations |
| Workers isolated from a reachable quorum | Those workers stop making authoritative progress |
| Quorum restored | Reestablish leadership, commit its generation barrier, then reacquire leases |
No local fallback, emergency minority leader, or cached authorization permits a new dispatch.
A request already authorized before quorum loss may still be transmitted or complete afterward. Quorum loss is not an instantaneous external-effect stop switch.
## 3. Scheduling, state, and transactions
### Stable identities
```text
Run:
run_id = (job_id, schedule_version, nominal_occurrence_utc)
status
Effect:
effect_id = (run_id, stable_step_id)
request_digest
request_payload_reference
status: READY | DISPATCH_CONSUMED | CONFIRMED_APPLIED |
CONFIRMED_NO_EFFECT | UNKNOWN
dispatch_id?
consuming_epoch?
outcome_evidence?
```
A unique constraint on `run_id` prevents duplicate run creation. A unique constraint on `effect_id` prevents duplicate logical-effect creation.
Choose a bounded catch-up policy—for example, execute occurrences within a configured lateness window and record older occurrences as skipped. The window is a product requirement, not a correctness constant.
### Transaction rules
**Acquire or transfer ownership**
A linearizable transaction checks eligibility and increments the epoch, recording the owner. A transfer preserves all run and effect records, especially consumed dispatches.
**Create or prepare work**
The transaction checks the current token and creates the run or effect idempotently by its stable identity. Pure computation may be repeated; external effects may not.
**Consume dispatch permission**
The gate performs one linearizable transaction that:
1. Verifies the current ownership token.
2. Verifies `effect.status == READY`.
3. Verifies that the job has no unresolved earlier effect.
4. Binds the immutable request digest and a unique `dispatch_id`.
5. Sets `effect.status = DISPATCH_CONSUMED`.
6. Sets the job’s unresolved-effect barrier.
Only the gate invocation that receives the successful commit result may initiate the request, and it may initiate it once.
If the commit result is lost, the gate **does not send**. Reading back `DISPATCH_CONSUMED` is not permission to reconstruct or replay the call. Restarted gates do not resume consumed dispatches.
This deliberately accepts a lost-effect window between consuming permission and sending the request.
**Record outcome**
- Definitive completion: `CONFIRMED_APPLIED`.
- Definitive evidence of no effect: `CONFIRMED_NO_EFFECT`.
- Timeout, lost response, uncertain provider status, or gate crash: `UNKNOWN`.
A consumed record without a terminal result remains blocking even before a watchdog labels it `UNKNOWN`.
Outcome reporting uses a dispatch-specific capability and checks the immutable dispatch identity. It may accept valid evidence from an old owner’s dispatch; that capability does not authorize another call or arbitrary job mutation.
### Core invariants
1. **One authoritative owner:** each job has at most one current ownership token.
2. **Stale-write rejection:** ordinary state mutations require the current token.
3. **Single consumption:** each effect transitions from `READY` to `DISPATCH_CONSUMED` at most once.
4. **No automatic replay:** consumption permanently removes normal permission to initiate that effect again.
5. **Job serialization:** an unresolved consumed effect blocks later external effects for that job, including later scheduled occurrences.
6. **Immutable request binding:** changing the payload requires a separately recorded decision; it cannot silently reuse the effect identity.
7. **Uncertainty preservation:** timeout and ownership transfer never imply “no effect happened.”
The job-wide barrier is intentionally conservative. It prevents a delayed old dispatch from overlapping a newer authorized effect for that job. Separate jobs can progress independently; shared external resources would require a broader barrier.
## 4. Fencing limits and impossible guarantees
### What this design provides
Under the stated assumptions and without a risk-accepting override:
- Unique authoritative ownership.
- Fenced internal mutations.
- At most one application-level request initiation per logical effect.
- Durable ambiguity instead of automatic duplicate-producing retries.
- Continued service for independent jobs on the quorum side.
The request-initiation guarantee is not a guarantee about how many business actions the provider itself performs.
### What it cannot provide
**Exactly-once external effects.** Consider two executions with identical durable local state:
1. The gate consumes permission, then crashes before sending.
2. The gate consumes permission, the provider performs the effect, and the response is lost.
Recovery cannot distinguish them from local state alone. Retrying risks duplication in case 2; refusing to retry risks omission in case 1.
**External fencing by epoch alone.** A gate can consume permission under epoch 8, pause, and send after epoch 9 takes ownership. The API does not understand the epoch, so it cannot reject that request. The durable consumed record and job barrier prevent a competing replacement call; they do not cancel the old call.
**Both partition-wide availability and exclusive authority.** An isolated minority must lose authorization availability.
**Bounded execution or failover under unbounded pauses and partitions.** Timeouts support operational decisions, not a universal deadline guarantee.
**Guaranteed recovery from ambiguity without external evidence.** Some jobs may remain blocked indefinitely.
**Atomic multi-step external workflows.** Each irreversible step needs its own effect record. Partial completion remains possible; compensation is a separate action, not rollback.
## 5. Manual reconciliation and auditability
For an ambiguous effect, expose:
- Exact request digest and protected payload reference.
- Run, effect, dispatch, and epoch identities.
- Whether dispatch consumption committed.
- Gate and transport observations, clearly labeled as observations.
- Provider request identifiers, responses, and any status-query evidence.
- All subsequent reconciliation decisions.
Use a correlation identifier even if the provider lacks idempotency support, when supported. Correlation assists investigation; it does not prevent duplication.
An authorized operator can:
1. **Confirm applied** using definitive evidence tied to the original request and its completed outcome.
2. **Confirm no effect and close/skip** only with evidence that no request can still produce the effect.
3. **Leave blocked** when evidence remains insufficient.
4. **Accept risk explicitly** to release the barrier or initiate a replacement attempt.
Killing a sender, waiting a chosen interval, or observing “nothing yet” is not generally proof of no future effect: a transmitted request may still be queued at the provider. A paused sender holding consumed permission must also be quiesced before claiming it cannot send later.
A risk-accepting replacement receives a distinct attempt identity linked to the original effect. Reports must then state that the normal no-replay guarantee was overridden and identify possible duplication or ordering violations.
Commit audit events with state transitions. Record actor, reason, previous/new state, ledger revision, epoch, request digest, evidence references, and override approval. Export committed events to retention-protected storage. Use consensus order for authoritative ordering; display wall-clock timestamps with their limitations.
## 6. Proposed acceptance traces and pass/fail checks
These are proposed fault-injection checks, not executed results. Count request initiations at a controlled external endpoint and inspect committed ledger history.
| Trace | Required outcome / pass criterion |
|---|---|
| **Concurrent acquisition:** all three regions acquire the same job | Exactly one current token; every successful mutation matches the token current at its commit point |
| **2–1 partition before dispatch consumption** | Majority can transfer ownership; minority consumption fails; the unconsumed effect has no minority-originated API initiation |
| **1–1–1 partition** | Zero new committed grants or dispatch consumptions; preconsumed calls are reported separately |
| **Clock skew and worker pause:** vary wall clocks, pause owner, transfer lease, resume owner | Zero successful stale ordinary mutations or stale dispatch consumptions; no expiry decision relies on a worker’s wall clock |
| **Leader crash during generation change** | New ownership operations occur only after a committed generation barrier; old-generation tokens fail afterward |
| **Crash before consumption commit** | No API call from that invocation; a new current owner can consume the still-ready effect |
| **Consumption commits, acknowledgement lost** | Gate sends zero calls; recovery does not replay; job remains blocked pending resolution |
| **Gate crashes after consumption but before sending** | Zero API calls; durable consumed record remains; no automatic replacement |
| **Provider applies, response is lost** | Exactly one gate initiation, provider outcome may be applied, ledger remains unresolved; no later job effect is consumed |
| **Gate pauses after consumption; ownership transfers; gate resumes** | The old call may occur once; the new owner cannot consume a replacement or later job effect while it is unresolved |
| **Success response arrives, gate crashes before recording it** | Recovery preserves uncertainty until definitive evidence is recorded; no replay |
| **Old region rejoins with stale cached state** | It catches up before authority use; stale tokens fail; consumed records are not reset |
| **Definitive reconciliation** | Evidence-linked terminal transition and audit event commit atomically; only then may the barrier clear |
| **Risk override** | Replacement/release is separately attributed and linked; reporting explicitly identifies the overridden guarantee |
| **Missed schedule and repeated catch-up scans** | At most one run record per occurrence; every overdue occurrence is queued or explicitly skipped according to policy |
Measure quorum-side recovery time, schedule lateness, blocked-job duration, reconciliation age, and rejected stale operations. Numeric service-level thresholds require agreed failure and timing assumptions; none are established by this assessment.
## 7. Alternatives, dependencies, and next action
### Alternatives
- **Automatic at-least-once dispatch:** improves completion probability but knowingly allows duplicate irreversible effects.
- **Provider-enforced idempotency or durable deduplication:** permits safer retries if its scope, retention, and semantics cover the full recovery window.
- **Provider-enforced fencing:** can reject stale epochs at the actual effect boundary.
- **Single-region authority:** simpler, with reduced regional-failure availability; the ambiguous-effect problem remains.
- **Per-effect rather than per-job blocking:** increases throughput but permits delayed effects to overlap or reorder unless independence is established.
### Missing dependencies
Provider completion semantics, status-query capabilities, transport retry behavior, enforceable egress restrictions, and tolerated omission rates are unspecified. They determine whether reconciliation can be conclusive and whether the dispatch assumptions are enforceable.
**Confidence:** high in the consistency and impossibility conclusions; implementation and operational suitability remain conditional on those dependencies.
**Next useful action:** agree explicitly that omissions and indefinite per-job blocking are acceptable, then build a fault-injection prototype around the consumption/send boundary and run the acceptance traces above.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
A provides a clearer, implementable dispatch/takeover boundary and acceptance checks for lost commit acknowledgements and pauses before sending. This materially strengthens the requested assurance about irreversible effects under pause and ownership transfer, while explicitly acknowledging the resulting availability loss. The preference rests on that substantive protocol coverage, not length or an assertion that B necessarily fails in execution.
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_f1dbb75cb6f23627f2ec3b245d91cf0ad1bb842b354d9e4459c608c294317054. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.