← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / low / low 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 a durable webhook inbox for one PostgreSQL database and multiple workers. An authenticated source supplies eventID, accountID and payload; deliveries are duplicated and reordered. Persist acknowledgement before returning success, deduplicate by source/account/eventID, process with expiring leases and fencing, preserve per-account dependencies, bound retries and poison events, and recover crashes without claiming exactly-once external effects. Define state transitions, transaction boundaries, backpressure and acceptance failure cases.

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 assumptions

Use PostgreSQL as the durable inbox, scheduler, and authority for worker ownership. A successful HTTP acknowledgement means **the delivery is durably recorded**, not processed. Processing is retryable; database effects can be atomic with completion, but arbitrary external effects are not exactly once.

This is an independent design based only on the supplied requirements; no source inspection or tests were performed.

Assumptions and required contracts:

- Authentication determines `source_id` and authorizes the supplied `account_id`; neither is trusted merely because it appears in the payload.
- Deduplication identity is `(source_id, account_id, event_id)`.
- PostgreSQL commit durability is configured to match the promised failure model. If success must survive primary loss, synchronous replication and failover fencing are required; local durable WAL alone is insufficient.
- **Delivery order cannot establish causal order.** Require a source-provided account sequence or explicit predecessor IDs. The design below uses explicit predecessor IDs. If neither exists, only serial processing in an arbitrary observed order is possible—not preservation of unknown dependencies.
- Dependency IDs use the same source/account scope, and handlers have versioned, validated payload contracts.
- External calls have bounded deadlines. Downstream idempotency or fencing support is used where available.

## Persistent model and invariants

An `inbox_event` row contains:

- Identity, immutable payload, canonical payload digest, receipt time, handler version.
- State: `waiting`, `ready`, `running`, `retry_wait`, `succeeded`, `dead`, or `skipped`.
- Attempt count, next eligible time, first-attempt time, error classification.
- Current owner, lease expiry, and account fencing token.

Additional tables:

- `event_dependency(event, predecessor_identity)`: predecessor identities can exist before their events arrive.
- `account_lane`: one row per source/account, holding current event, owner, lease expiry, and monotonically increasing fencing token.
- Optional transactional outbox for external commands.
- Compact deduplication tombstones if completed payloads are removed.

Constraints and invariants:

1. A unique constraint enforces deduplication identity.
2. Duplicate delivery never changes payload or dependencies.
3. An event is runnable only when every prerequisite has succeeded or has been explicitly waived by an audited policy.
4. At most one **current database-authorized** worker exists per account.
5. Every claim increments the account fencing token; every worker mutation checks that token and an unexpired lease.
6. Terminal states are not changed by automatic retries.
7. A worker may still execute code after losing ownership; database fencing does not physically stop it.
8. Deduplication lasts only as long as identity records are retained. Define a replay horizon, or retain tombstones indefinitely.

Multiple independent ready events within an account may be processed in deterministic receipt/identity order. This does not assert causal ordering between them.

## Transactions and state transitions

### 1. Receive and acknowledge

Before opening a transaction, authenticate, authorize account scope, enforce size limits, and perform cheap structural validation.

In one transaction:

1. Create the account lane if needed.
2. Insert the event and its immutable dependency records.
3. On unique conflict, compare canonical digest and dependency metadata:
   - Identical: treat as a duplicate.
   - Different: return an identity-conflict error; do not overwrite.
4. Commit.

Return `2xx` only after confirmed commit. A duplicate may receive `2xx` even if the original is still waiting or already dead: it has been durably accepted.

A commit timeout or lost response has an **unknown** outcome. Return a retriable failure, never assert rollback; the sender repeats the same identity.

Authenticated, structurally valid events with invalid business content can be durably recorded as `dead`. Clearly malformed requests can instead receive a permanent `4xx`; document this distinction.

### 2. Claim

Workers poll; notifications are optional wake-up hints, never the source of truth.

In a short transaction:

1. Select and lock an eligible account lane using `FOR UPDATE SKIP LOCKED`.
2. If its current event has expired, reclaim that event before starting another account event.
3. Otherwise choose a due `ready`/`retry_wait` event, or a `waiting` event whose prerequisites now satisfy the rule.
4. Check retry and age limits.
5. Increment the lane token, increment the attempt count, set owner and lease expiry using database time, and transition the event to `running`.
6. Commit, then execute outside the transaction.

All paths lock lane before event to avoid inconsistent lock order. Eligibility indexes should cover state and retry time; dependency lookups need predecessor identity indexes.

### 3. Renew

Renew in a short transaction using a conditional update matching lane, event, owner, token, `running` state, and `lease_until > clock_timestamp()`.

Renew both lane and event atomically. Zero affected rows means ownership is lost; stop initiating effects. An expired worker cannot resurrect its lease even if nobody has reclaimed it.

Use database time, not worker clocks. Set renewal cadence comfortably below lease duration; enforce an overall processing deadline so heartbeats cannot preserve a hung attempt forever.

### 4. Finish successfully

Lock the lane and verify current ownership, fencing token, and lease.

- **Database-only effects:** apply business changes and set `succeeded` in the same transaction; release the lane atomically. A stale worker’s entire transaction must roll back.
- **External work via outbox:** commit the business transition, unique outbox command, and event completion atomically. Here, `succeeded` means “command durably scheduled,” not “remote action confirmed.”
- **Direct external call:** perform it outside a database transaction, then conditionally record completion. An unknown remote outcome remains possible.

Do not hold lane locks across network calls.

### 5. Fail or expire

A current worker records a classified failure and either:

- Sets `retry_wait`, computes capped exponential backoff with jitter, and releases the lane.
- Sets `dead` when the failure is permanent, attempt limit is reached, or maximum processing age is exceeded.

Lease expiration permits reclamation with a **new** token. Expired claims count toward the attempt budget, including crashes before handler execution. A recovery worker marks exhausted expired events dead rather than leaving them stranded.

Retry limits, age limits, lease duration, and error classifications are explicit configuration—not unbounded defaults.

## Dependencies and poison events

A missing predecessor keeps an event in `waiting`; later arrival makes it eligible. Periodic reconciliation is necessary even if notifications are lost.

- A dead prerequisite blocks its dependents by default.
- A deadline for missing prerequisites triggers an alert and quarantine reason; it must not silently authorize processing.
- Cycles are invalid. Validate self-dependencies immediately and detect larger cycles through transactional validation or reconciliation.
- Poison events do not monopolize workers through tight retry loops.
- Independent events may continue; descendants remain blocked.
- Operators may explicitly waive a dependency, skip an event, or authorize a bounded replay. Record actor, reason, prior state, and replay generation; never reset the fencing counter.

If strict contiguous account sequence is required instead, use an account cursor and source sequence numbers. Gaps then block all later sequence entries, and an explicit gap-resolution policy is mandatory.

## External effects and crash recovery

Use a stable external idempotency key derived from event identity and effect name—not the retry attempt. Multiple effects need separate persistent effect records.

A downstream service can enforce fencing only if it checks tokens atomically with its effects. A token included merely as request metadata provides no protection. The downstream idempotency retention window must cover possible retries and replays.

Without downstream guarantees:

- A worker can perform an external effect and crash before recording success.
- A retry can repeat that effect.
- A stale worker can act after its lease expires.

Therefore the guarantee is durable intake and retryable processing, with possible duplicate external effects. An outbox closes the database-to-command persistence gap, but its dispatcher still needs downstream idempotency or reconciliation.

Crash recovery follows stored state:

| Crash point | Recovery |
|---|---|
| Before intake commit | Sender retries; no acknowledgement was promised. |
| After intake commit, before response | Duplicate delivery finds the existing row. |
| After claim, before completion | Lease expires; bounded retry with a new token. |
| During database-effect transaction | Effects and completion commit together or roll back together. |
| After external effect, before completion | Retry/reconcile an ambiguous outcome; duplication is possible. |
| After completion commit | Event is terminal and not automatically reprocessed. |

## Backpressure and operations

Set explicit limits for request size, admitted event count/bytes, per-account backlog, worker concurrency, database connections, and external-call concurrency.

For race-free admission, reserve bounded capacity inside the intake transaction—for example through locked capacity counters. Check an existing duplicate before denying a new capacity reservation.

- Reject new work with `429` or `503` and `Retry-After` when capacity is exhausted.
- Never acknowledge an unpersisted event.
- Reserve headroom for duplicate acknowledgements, recovery, terminal-state updates, and operational access.
- Separate per-account limits from global limits and schedule lanes fairly to avoid noisy-account starvation.
- Require sender retries or reconciliation for rejected work; admission rejection can otherwise lose events permanently.

Monitor queue depth/bytes, oldest runnable and waiting ages, missing prerequisites, dead count, retries, expired leases, fencing rejections, intake commit failures, outbox age, and storage headroom. Retention must preserve identities and dependency-resolution evidence.

## Measurable acceptance checks

These are proposed checks, not executed results. Set concrete operational thresholds before testing.

| Test | Pass condition |
|---|---|
| Concurrent identical deliveries | Exactly one identity row; all successful responses follow a durable commit. |
| Same identity, different content | Original remains unchanged; conflicting delivery receives the documented non-success response. |
| Crash around acknowledgement | Every observed `2xx` has a recoverable row under the stated durability model; uncertain outcomes deduplicate on retry. |
| Reordered dependencies | Dependent handler never starts before its prerequisite satisfies the declared completion rule. |
| Missing predecessor/cycle | No unauthorized processing; configured deadline produces a visible quarantine/alert. |
| Multi-worker contention | Never more than one current valid lane owner; no duplicate committed database effect. |
| Lease-expiry race | Old-token renewal, failure, and completion mutations affect zero rows after expiration/reclaim. |
| Database-effect crash injection | Every tested interruption leaves both effect and completion committed, or neither. |
| External ambiguity injection | No exactly-once claim; documented duplicate/reconciliation behavior occurs. With downstream idempotency, repeated keys produce one logical effect. |
| Poison event | Handler claims never exceed configured automatic limits; descendants remain blocked; independent work progresses. |
| Notification loss/restart | Polling recovers eligible and expired work within the configured recovery bound. |
| Capacity exhaustion | New admissions stop at configured reservations; duplicates remain serviceable within reserved headroom; no rejected request is acknowledged as accepted. |
| Retention/replay | Replays within the promised horizon deduplicate and dependencies remain resolvable. |
| Fairness | A continuously eligible account receives service within a specified bound under the declared load envelope. |

## Alternatives, uncertainties, and next action

- Strict sequence cursors are simpler when the source supplies complete ordering; explicit dependencies allow independent progress but require cycle and missing-parent handling.
- Long transactions around external calls are rejected: they consume connections and do not solve remote atomicity.
- In-memory deduplication and locks are insufficient across crashes and workers.
- Unbounded retries or silently skipping poison predecessors violate the durability/dependency contract.

**Confidence:** high in the transaction and fencing pattern; actual durability, capacity, and downstream-effect guarantees depend on deployment and source contracts.

**Next action:** establish the source’s ordering metadata, PostgreSQL failure model, external idempotency contract, and numeric limits; then implement and run the acceptance matrix with crash and lease-race injection.

xai / grok-4.7-efficient / xhigh / xhigh effort answer

The inbox should durably accept each webhook before it acknowledges it, totally order work by first acceptance within each source and account, and let workers compete through expiring leases and fencing tokens. External side effects remain at-least-once across crashes. No repository source was supplied, so nothing below is an inspected implementation or an executed pass.

## 1. Design

### Conclusion
Use one Postgres table as the system of record, with stateless workers coordinating only through short conditional updates. Acknowledgement is exactly-once durable acceptance. Processing is at-least-once. Do not claim exactly-once external effects.

**Confidence:** high that this satisfies the stated invariants with the assumptions below; low that it matches any unstated existing contract, because no schema, handler, or source ordering field was supplied.

### Requirements
- An authenticated credential maps to `source`. `source` is not client-supplied. The credential must be allowed to write the given `accountID`.
- The client supplies `eventID`, `accountID`, and `payload`. `eventID` is an opaque dedup key, stable across retries, not an order key.
- Return success only after the accepting transaction commits. A lost response after commit is recovered by retry plus dedup, not by a second business row.
- Dedup key is `(source, account_id, event_id)`. Identical retries do not change state.
- Deliveries may be duplicated and reordered. Processing order is first-commit order per `(source, account_id)`, not arrival order of retries.
- Many workers, one Postgres primary. Workers are stateless. Lease time uses `now()` in the database, never a worker clock.
- A live worker finishes only with the current fence. Lease expiry is how another worker may take the row; the fence is what makes the old worker’s finish a no-op.
- Per-account dependency means FIFO: a higher `seq` is not claimable while a lower `seq` for the same `(source, account_id)` is not `succeeded` or `skipped`.
- Different accounts, and different sources for the same account, proceed independently.
- Handler failure and expired-lease reclaim are bounded. Exhaustion or a non-retryable error poisons the row and blocks that stream until an operator acts.
- Crash recovery reclaims expired leases and retries. It must not report that external effects happened once.
- Backpressure rejects new keys without inserting them. It must not reject an already-committed key.

### Assumptions
- Payload bytes are immutable for a key. A canonical hash detects mutation. Duplicate detection compares that hash, not a re-parsed structure.
- No predecessor id or source sequence exists in the given inputs, so source business order cannot be reconstructed. Accept order is the dependency order.
- Handler decisions that can be staged write an outbox row in the same transaction as local success. The dispatcher is a second at-least-once sender, keyed by the same dedup key, and is not exactly-once.
- A direct external call before local completion is allowed only if the callee dedupes on that key or duplicate effects are acceptable.
- `succeeded` and `skipped` are terminal for the source. Only an operator can leave `poisoned`.
- One Postgres primary is the linearization point. Read replicas are not used for claim or ack.

### Data model
`account_gates(source, account_id, last_seq, queued_count)` serializes first acceptance and holds the per-account cap.

`inbox_events` holds `id`, `source`, `account_id`, `event_id`, `seq`, `payload`, `payload_hash`, `state`, `fence`, `failure_count`, `lease_owner`, `lease_expires_at`, `handler_started`, `next_attempt_at`, `last_error`, `received_at`, `updated_at`. Unique `(source, account_id, event_id)` and unique `(source, account_id, seq)`.

`effect_outbox` has a unique idempotency key `source/account_id/event_id`. Insert it only in the success transaction. Dispatch uses its own lease and fence. A unique outbox row records intent once; sending it can still happen more than once.

A global `admission(depth)` row enforces the global cap in the same transaction as insert and terminal transition. That row is a serialization point. Sharded or approximate global caps are a later alternative, not the acceptance rule.

States: `received`, `leased`, `retry_wait`, `succeeded`, `poisoned`, `skipped`.

### State transitions
| From | To | Who | Guard |
|---|---|---|---|
| absent | `received` | ingest | auth, shape, size, and caps pass; key unseen |
| any non-absent | same | ingest | same key and same hash; no write |
| `received` | `leased` | claim | this row is the stream head; `failure_count < max_failures` |
| `retry_wait` | `leased` | claim | `next_attempt_at <= now()` and it is the head |
| `leased` | `leased` | reclaim | `lease_expires_at <= now()`; `fence` increments; `failure_count` increments |
| `leased` | `poisoned` | reclaim | expired and failure budget already exhausted |
| `leased` | `succeeded` | owner | conditional update matches `fence` and `state='leased'`; outbox insert in that same transaction |
| `leased` | `retry_wait` | owner | retryable failure, budget remains, fence matches |
| `leased` | `poisoned` | owner | non-retryable failure, or budget exhausted, fence matches |
| `leased` | `received` | owner | graceful release, fence matches, `handler_started=false`; failure count unchanged |
| `poisoned` | `received` | operator | audited requeue; reset failure fields; `fence` increments |
| `poisoned` | `skipped` | operator | audited skip; `fence` increments; successors may proceed |

No source retry leaves `succeeded`, `skipped`, or `poisoned`. Fence increases on every claim, reclaim, and operator transition. A finish whose fence does not match updates zero rows.

Lease expiry does not by itself forbid the current owner to finish. Expiry only permits reclaim. If nobody has incremented the fence, the owner may still complete. That avoids a spurious second attempt when work finished after the deadline but before theft. Safety is the fence, not the clock.

### Transaction boundaries
Authentication, authorization, and payload-size checks happen before any accepting write. No outbound call runs inside the ack transaction.

**Accept.** Open a transaction. If the key exists, compare hash and commit without modification: same hash becomes success, different hash becomes conflict. If absent, lock `account_gates` for that source and account, recheck the key, enforce per-account and global caps, increment `last_seq` and queued counters, insert `received` with that `seq`, commit. Only then return success. Lock-then-assign-seq makes commit order match `seq` order; a rollback leaves a gap, not an inversion. `nextval` is the wrong allocator because it is not transactional.

**Claim.** A short transaction selects the oldest eligible head with `FOR UPDATE SKIP LOCKED`: `received`, due `retry_wait`, or expired `leased`, and no lower `seq` in that stream is outside `{succeeded, skipped}`. It then sets `leased`, increments `fence`, sets owner and `lease_expires_at`, and returns the new fence. The handler runs only after that commit. The row lock is not held during the handler.

**Heartbeat.** A separate short transaction extends `lease_expires_at` only when `id`, `fence`, owner, and `state='leased'` still match. Zero rows means abort locally. Heartbeat cannot undo an external call already made.

**Finish.** One conditional update, not a read-then-write in the app. Success inserts the outbox row and sets `succeeded` only if `fence` still matches. Failure sets `retry_wait` or `poisoned` under the same fence predicate, stores `last_error`, and sets `next_attempt_at` from the configured backoff policy. Zero rows means the worker lost the lease: do not retry that finish and do not claim the external effect was unique.

**Release.** On quiet shutdown, if the handler has not started, return the row to `received` under the fence predicate without incrementing `failure_count`. If the handler has started, finish normally or let the lease expire.

Backoff parameters are configuration: base, cap, and jitter. The testable rule is that a claim before `next_attempt_at` does not take the row. No delay value is asserted here.

### Ordering and crashes
Claim eligibility ignores delivery order. Retries of an accepted event do not move its `seq`. A stream with a `leased`, `received`, `retry_wait`, or `poisoned` head cannot have a later row claimed. Other streams remain claimable, so one poisoned account does not stop the database.

Crash before accept commit: no row and no success response; source retry is safe. Crash after commit but before response: retry finds the row and does not create another. Worker kill while leased: after expiry another worker claims with a higher fence; the old finish matches nothing. Crash after an external effect but before finish: the new attempt repeats the effect. Pass condition for that case is a repeated effect, followed by one local `succeeded` row. A design or test that expects the second effect to be absent has failed the requirement.

### Backpressure
Reject before insert, so rejection is not an ack.

- Per-account non-terminal count at the configured cap: reject that account’s new keys.
- Global non-terminal count at the configured cap: reject all new keys.
- Payload over the configured size: reject without insert.
- Optional age trigger: if the oldest non-terminal row is older than the configured lag, reject new keys. That check must use the database clock and an index limited to non-terminal states.

Already-stored keys still take the duplicate path and return success when the hash matches. Workers also cap how many unexpired leases they hold so one crash cannot expire the whole table at once. When the effect sink is failing, workers stop claiming; depth then rises until ingest rejection. That is the coupling between downstream failure and source backpressure.

### Response and failure cases
Success means the key is already committed or was committed by this request, and the payload hash matches. Do not return success for a hash mismatch.

Failure cases that must leave no new row and must not return success:

- Missing credential, bad credential, or account not allowed for that credential.
- Missing `eventID`, `accountID`, or payload.
- Payload over size.
- Same key, different payload hash. First row remains. This is a conflict, not a retryable acceptance.
- Per-account cap, global cap, or configured age lag.
- Database unavailable, statement cancellation, or commit failure.

Processing failure cases:

- Conditional finish matches zero rows: stale owner, no state change by that owner.
- Retryable handler error with budget left: `retry_wait`, not claimable early.
- Non-retryable error, or failure budget exhausted, including reclaim of an expired lease: `poisoned`, stream blocked.
- Operator skip unblocks successors without running the handler. Operator requeue resets the failure budget and returns the head to `received`. Both are audited and bump `fence`.

### Invariants
- At most one row per `(source, account_id, event_id)`.
- Success response implies a committed row. A committed row does not imply the client saw the response.
- `seq` increases with commit order inside a stream. Visible rows of a stream are processed in `seq` order.
- At most one current owner can change a row, and only with the current fence while it is `leased`.
- Terminal source states are not reopened by delivery.
- `failure_count` does not increase on identical retries, graceful pre-handler release, or fence-mismatch finish.
- A poisoned or otherwise unfinished head has no leased successor in that stream.
- Outbox uniqueness is per event key. Dispatcher delivery is still at-least-once.
- Caps change in the same transaction as the insert or terminal transition they account for.

### Acceptance checks
These are pass/fail conditions, not measured results. Caps, lease length, heartbeat interval, and failure budget are configured inputs. No latency, cost, or throughput number is part of acceptance.

1. Kill the session after insert and before commit. The client must not observe success, and the key must be absent.
2. Commit, then drop the response. A retry must succeed, leave one row, and not start a second business attempt.
3. Concurrent identical deliveries produce one row; every response after that commit is success; payload and state are unchanged.
4. Same key with a different hash leaves the first payload and state untouched and does not return success.
5. Unauthenticated, unauthorized, malformed, and oversized requests insert nothing and do not return success.
6. At either configured cap, a new key is absent after the rejected request. An existing key still succeeds on identical retry.
7. If stream events commit in order A then B, every interleaving of duplicate deliveries still finishes A before B is claimed. B arriving first is a different stream order: B gets the lower `seq`.
8. While one stream is unfinished, another account’s head can be leased.
9. Two concurrent claims never both return the same `id`. A second claim of an unexpired, heartbeating lease returns no row for that id.
10. After lease expiry without heartbeat, a second worker gets a strictly greater fence and can finish. The first worker’s finish updates zero rows.
11. A retryable failure is not claimable before `next_attempt_at`. After the configured failure bound, the state is `poisoned` and is not claimed again.
12. With a poisoned head, a later `seq` in that stream is never leased. An audited skip makes the successor claimable. An audited requeue can finish the head, and only then the successor.
13. Kill the worker after an external effect and before finish. After reclaim, the handler or dispatcher runs again, the inbox ends as one `succeeded` row, and the effect count is greater than one. Treating that second effect as forbidden is a fail.
14. A finish statement that only rechecks fence in application memory, or that uses worker-local time for lease validity, is a fail.
15. `EXPLAIN` of claim and of the non-terminal age probe must not require a sequential scan of terminal history. That is a plan-shape check, not a performance measurement.

## 2. Alternatives and discarded hypotheses
- **Source-order buffer** would be right if the contract had a predecessor or monotonic source sequence. With only `eventID`, buffering for a not-yet-seen predecessor cannot be defined. Accept-order FIFO is the implementable reading of per-account dependency.
- **Account-wide FIFO across sources** was discarded. It couples unrelated producers. The chosen scope is `(source, account_id)`.
- **Mutual exclusion without FIFO** was discarded. It allows a later accepted event to pass an earlier one, which breaks dependencies.
- **Checking lease expiry on finish** was discarded. It turns a late but unstolen owner into a false failure and forces another external attempt. Fence match is the completion guard.
- **Holding `FOR UPDATE` for the whole handler** was discarded. A crashed worker would hold the row lock until its session dies, and lease fencing would be redundant and slower to recover.
- **Incrementing attempts on every identical HTTP retry** was discarded. Retries are deliveries, not processing attempts.
- **Exactly-once external effects via two-phase commit** were discarded. Arbitrary webhook side effects do not enlist in Postgres transactions, and the requirement forbids the claim.
- **200 on payload mismatch** was discarded as the default. It hides a changed body. The alternative is acceptable only if a specific source cannot handle conflict and operators prefer an alert while keeping the first payload.
- **NOTIFY as the only wakeup** was discarded. Notifications are not durable. Poll plus `SKIP LOCKED` remains required; notify can only be a hint.
- **A separate queue table** is viable but not needed at this scope. One event table plus an effect outbox keeps dedup, order, and lease state in one place.
- **Global `nextval` without an account lock** was discarded because a later transaction can commit a higher sequence first and invert visible order.

## 3. Missing evidence and dependencies
No source schema, authentication mechanism, payload schema, handler effect list, operator audit store, or existing cap values were supplied. The ordering rule is therefore conditional: if the real source already sends a sequence or predecessor, accept-order FIFO is the wrong dependency and must be replaced before implementation. If handlers cannot stage effects and cannot dedupe, crash recovery will repeat irreversible external actions; the inbox cannot prevent that. Cap and lease numbers are policy inputs; choosing them here would fake a measurement. Consequence: this is an implementable contract, not a validated system.

## 4. Next useful action
Confirm whether any source sequence or predecessor exists, and whether every external effect can be staged in the outbox. Then implement the schema and the fifteen acceptance checks as tests. Do not treat this design as an executed pass.

Primary judge's stated reason

A is preferred with a clear task-relevant advantage: its eligibility rule prevents a dependent handler from starting before its declared prerequisite succeeds. B's chosen rule can process that dependent first if it commits first. This is a material difference in the proposed guarantee, not evidence of an observed implementation failure; neither answer can reconstruct unknown dependencies without additional information.

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

Battle wave: 1fb32bda-9041-4f2e-818c-0fd4669031e2. Pair: brp1_99494b93ddf586645cdbd8f4e9e3c00b281408042edc58f6084f5bb6536bfa46. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.