← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / xhigh / xhigh effort preferred over xai / grok-4.7-efficient / high / high effort · close win.

Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.

Reviewed public evidence

Task goal

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 / xhigh / xhigh effort answer

## Recommendation and scope

Use PostgreSQL as the authoritative receipt ledger, dependency scheduler, lease authority, and effect-intent store. Workers execute **at least once**; database fencing prevents stale workers from committing database changes. External effects require downstream idempotency or reconciliation—this design does **not** claim exactly-once external execution.

This is an independent, reasoning-only assessment based on the supplied requirements. No source inspection or tests were performed.

### Required assumptions

1. Authentication determines a stable `sourceID`; the request body cannot choose it. The source is authorized for the canonical `accountID`.
2. `(sourceID, accountID, eventID)` identifies one immutable event.
3. The source retries non-successful or uncertain deliveries, or provides an authoritative reconciliation API.
4. **Dependencies are knowable.** A versioned adapter must derive complete prerequisite event identities from the payload or a trusted domain contract. Arbitrarily reordered `eventID`, `accountID`, and opaque payload alone cannot reveal causal order. Serializing receipt order does not solve this.
5. All relevant database business mutations use the fenced transaction protocol.
6. PostgreSQL uses durable WAL commits. An asynchronous failover may lose acknowledged events; zero acknowledged-event loss across failover requires an appropriately configured synchronous replication/failover policy.

The design below supports per-account dependency graphs. A source sequence can be translated into predecessor dependencies when that source guarantees a complete sequence and a known starting point.

## 1. Persistent model and invariants

| Record | Essential contents |
|---|---|
| `inbox_event` | Composite event key; immutable payload/digest; adapter version; acceptance time; state; processing phase; attempts; next eligible time; processing deadline; lease epoch; error/outcome |
| `event_dependency` | Child key and prerequisite key, including prerequisites not yet received |
| `account_gate` | Canonical account; monotonically increasing epoch; current event; lease owner; lease expiration |
| `effect_intent` | Event key and effect number; immutable operation; stable idempotency key; confirmation/ambiguity state |
| Deduplication tombstone | Event key, payload digest, receipt and terminal outcome after payload removal |

Use a unique constraint on `(sourceID, accountID, eventID)`. Dependencies may cross source namespaces but must remain within the same canonical account. Validate those references against the domain contract.

**Invariants**

- There is at most one logical inbox event per deduplication key.
- A receipt is acknowledged only after its database transaction commits durably.
- An accepted event’s payload and dependency set never change silently.
- An event is eligible only when every prerequisite is `SUCCEEDED`.
- Each account has at most one current database lease.
- Every worker mutation validates the current event, owner, epoch, and lease under the account lock.
- `SUCCEEDED` means the defined processing obligations have completed—not merely that a worker started or that an external request was sent.
- Poisoning or blocking a prerequisite never counts as successful dependency satisfaction.
- Every automatic execution has a finite attempt and time budget.

One account-wide epoch fences all workers for that account. Separate accounts can execute concurrently.

## 2. Admission and acknowledgement transaction

Before opening the transaction:

- Authenticate and authorize the source/account.
- Enforce bounded event identifiers, payload size, schema complexity, and dependency count.
- Apply a documented payload canonicalization rule. Without one, differing payload bytes are a conflict.
- Extract dependencies using the selected, versioned adapter.

For an already accepted key, compare the immutable payload digest:

- Same content: return the durable receipt, including when the event is poisoned or completed.
- Different content: return a conflict, such as `409`; retain the original event and record the conflict. Never overwrite it.

For a new event, one short transaction:

1. Lock applicable capacity reservations and the account, using a consistent lock order.
2. Recheck the unique key to handle concurrent duplicate deliveries.
3. Enforce admission quotas.
4. Insert the event, dependency edges, receipt, and quota accounting.
5. Check the bounded account dependency graph for cycles. Persist any necessary quarantine decisions.
6. Commit.

Only then return `2xx`. That response means **durably received**, not successfully processed.

No network calls or handler execution occur inside this transaction. Notifications may wake workers after commit, but durable polling is the recovery mechanism.

**Admission failures**

- Authentication/authorization failure: `401`/`403`.
- Structurally invalid request: `400`/`422`; oversized request: `413`.
- Capacity exhausted: `429` or `503`, normally with `Retry-After`.
- Database unavailable, transaction failed, or commit outcome uncertain: no success acknowledgement.

If commit succeeds but the response is lost, redelivery finds the same receipt. Uncertainty is resolved by the unique key, not by inserting another event.

## 3. State machine and dependency handling

Use these processing states:

| State | Meaning and transitions |
|---|---|
| `WAITING` | Accepted; may await prerequisites. Eligible events can become `LEASED`. |
| `LEASED` | A worker owns the current execution attempt. Can become `SUCCEEDED`, `RETRY_WAIT`, or `POISON`. |
| `RETRY_WAIT` | Retryable failure or expired lease; becomes eligible after backoff, subject to dependencies and budgets. |
| `SUCCEEDED` | Required processing completed; terminal under normal operation. |
| `POISON` | Permanent failure, invalid dependency cycle, or exhausted execution budget. |
| `BLOCKED` | Cannot proceed because of a failed prerequisite or an unresolved dependency deadline. |

Persist a separate processing phase, such as `PREPARE` or `DISPATCH`, so retrying an external operation does not recreate its effect plan.

An event with missing prerequisites remains durable but ineligible. Later arrival of a prerequisite can make it eligible after that prerequisite succeeds. Independent ready events on the same account may proceed; descendants of a poison event may not.

Use bounded dependency counts and bounded unresolved graphs per account. Detect cycles under the account lock. A missing prerequisite exceeding its configured deadline becomes `BLOCKED` and generates an alert or reconciliation task; it is not assumed successful.

If the domain requires a strict account sequence, express it as a dependency chain. A missing or poisoned predecessor then blocks later events deliberately. Gap skipping requires authoritative, audited domain resolution.

## 4. Claim, heartbeat, completion, and recovery

### Claim transaction

Workers select eligible accounts with `FOR UPDATE SKIP LOCKED`, then:

1. Lock the account and candidate event.
2. Read database time **after acquiring the lock**.
3. If the previous lease expired, transition that attempt to retry or poison according to its budgets.
4. Verify prerequisites, retry time, attempt limit, and deadline.
5. Increment the account epoch.
6. Set the current event, owner, and lease expiration.
7. Mark the event `LEASED`, record the epoch, and increment its attempt count.
8. Commit.

Every granted lease—including one lost to a crash—consumes an attempt.

### Heartbeats

A heartbeat is a short transaction that locks the account and verifies the current event, owner, epoch, and an unexpired lease.

- Valid: extend the lease.
- Expired or superseded: reject the heartbeat. The worker must stop trying to mutate database state.
- Renewal cannot extend beyond a configured maximum attempt duration.

Use PostgreSQL time, not worker clocks. Avoid transaction-start timestamps for expiration checks in transactions that may have waited for locks.

### Completion

For database-only processing:

1. Compute outside the transaction where possible.
2. Lock the account and event.
3. Validate ownership, epoch, lease, and prerequisites.
4. Apply business mutations and mark `SUCCEEDED` in the **same transaction**.
5. Clear the account lease and commit.

The account lock serializes completion against takeover. If expiration passes while this short transaction holds the lock, a new owner must wait; expiration makes reclamation eligible, not permission to bypass the locked transaction. Enforce transaction and lock timeouts.

### Crash recovery

Polling workers or a reaper reclaim expired leases using the same account-lock protocol. Expiration invalidates the old attempt; the next grant receives a new epoch.

A resumed old worker cannot renew, fail, complete, or write business state with its previous token.

`SKIP LOCKED` improves concurrency; it does not itself provide fencing or fairness.

## 5. External effects without an exactly-once claim

For an event requiring external work:

1. Under its valid lease, commit an immutable `effect_intent` and any necessary staged local data.
2. Persist phase `DISPATCH`, retaining the event lease.
3. Make the external call **outside** the transaction.
4. In another fenced transaction, record confirmed outcomes.
5. Once all required effects are confirmed, atomically finalize local business state, mark `SUCCEEDED`, and release the account.

After a crash, another worker resumes the persisted phase and effect plan. There is no unfenced, independent outbox consumer: dispatch uses the same account lease protocol.

Use a stable idempotency key derived from event identity and effect number. It must **not** change with the lease epoch.

Where supported, also send the account epoch. A downstream fence must check and persist its highest observed epoch atomically with the mutation. Checking only at request start is insufficient.

**Important limits**

- Remote fencing does not revoke an old request merely because its PostgreSQL lease expired. It can reject stale mutations after a newer epoch is established downstream.
- Fencing alone does not deduplicate repeated effects.
- A timeout after sending a request means **unknown outcome**, not known failure.
- If the remote system supports durable idempotency or authoritative lookup, retry or reconcile the stable key.
- Without either capability, retries may duplicate effects. Ambiguous events must enter reconciliation/quarantine rather than being declared successful.

A dependent event waits for its prerequisite’s required external outcomes—not merely for creation of an outbox row.

## 6. Retry, poison, and retention policy

Configure finite limits:

- `K`: maximum automatic lease grants per event.
- `A`: maximum event processing age.
- `D`: maximum duration of one attempt.
- Capped exponential backoff with jitter.
- Maximum required effects and dependency count.

Classify failures:

- Temporary database/network/provider failure: retry within the budgets.
- Permanent handler or domain failure: poison immediately.
- Expired lease: retry or poison; the consumed attempt remains counted.
- Unknown external outcome: reconciliation-aware retry, then quarantine if unresolved.
- Missing or failed prerequisite: block, never bypass.

Keep error categories, attempt history, effect identities, and reconciliation information. Avoid sensitive payloads in logs.

Operator replay must be authenticated, audited, explicitly bounded, and fenced. It must reconcile previously attempted external effects before repeating them. Skipping an event cannot silently release its dependents.

**Deduplication retention is a correctness requirement.** If redeliveries can occur indefinitely, retain event keys, digests, and dependency outcomes indefinitely. Payloads can have a shorter retention policy. Finite key retention is safe only with a trustworthy redelivery horizon or source watermark. Unbounded identities imply eventual storage growth; backpressure cannot be eliminated by silently forgetting them.

## 7. Backpressure and operational bounds

Apply:

- Per-source request-rate limits.
- Per-account pending-event and byte limits.
- Global retained-storage admission limits, with WAL and maintenance headroom.
- Bounded worker concurrency, effect concurrency, payloads, and dependency graphs.
- Fair scheduling across ready accounts.

Capacity reservations for new events are charged atomically with insertion. An identical duplicate should receive its existing receipt without consuming additional quota, even when new admissions are paused, provided the database remains available.

Use a consistent lock order—capacity records, account, event—when a transaction touches all three. Transactions not touching capacity omit those locks.

Track:

- Intake rejection rate and database storage headroom.
- Ready-event age and dependency-wait age.
- Lease expirations and fenced-write rejections.
- Retries, poison events, and blocked descendants.
- External ambiguity and reconciliation backlog.

Do not promise acceptance during an unbounded outage or guaranteed delivery when the source stops retrying rejected requests.

## 8. Proposed pass/fail acceptance checks

These are **test specifications**, not executed results. Choose limits and timing bounds before testing.

| Check | Pass criterion |
|---|---|
| Concurrent duplicate intake | Many concurrent identical deliveries create exactly one event and one quota charge; acknowledged requests identify that receipt. |
| Identity conflict | Same key with changed payload cannot overwrite the original; conflict is returned and recorded. |
| Crash during admission | Crash before commit leaves no receipt. Crash after commit leaves a recoverable receipt; redelivery does not create another event. |
| Acknowledgement durability | Every successfully acknowledged test event survives restart within the declared durability/failover failure model. |
| Reordering | Deliver child before parent. No child business mutation or external dispatch occurs before parent success. |
| Missing dependency/cycle | Missing prerequisites reach the configured blocked policy; cycles are quarantined; neither releases descendants. |
| Account concurrency | Only one current lease exists per account; unrelated ready accounts progress under the declared workload. |
| Lease fencing | After expiration and takeover, old-worker heartbeat, completion, and business mutations all fail without changing business state. |
| Completion/reaper race | Expiration during completion cannot allow competing fenced database commits. |
| Renewal bounds | Heartbeats cannot extend an attempt past `D`. |
| Atomic database completion | Inject a failure between business writes and success update; both commit or both roll back. |
| Retry bounds | Repeated errors and crashes never exceed `K` grants or the configured age budget. |
| External uncertainty | Kill the worker after remote acceptance but before local confirmation. Recovery reuses the same effect identity and retains uncertainty until resolved. |
| Downstream contract | With supported idempotency, replay causes no additional logical effect within its declared retention period. With supported fencing, a lower epoch cannot mutate after a higher epoch is established. |
| Unsupported external guarantees | Non-idempotent, non-queryable ambiguous effects are quarantined or explicitly permit duplicates; they are never labeled exactly-once. |
| Backpressure | New admissions stop at configured limits without overshoot; existing duplicates add no quota charge; unrelated accounts are not monopolized by one backlog. |
| Long-delayed duplicate | After payload cleanup, retained identity still prevents reinsertion. Unsafe key deletion fails acceptance. |
| Recovery liveness | Under healthy database and worker availability, expired eligible work is reclaimed within the configured polling, scheduling, and bounded-lock-delay allowance. |

## Alternatives, missing evidence, and next action

**Alternatives**

- **Strict source sequence:** simpler than a dependency graph, but requires a reliable sequence contract and explicit gap handling.
- **Explicit dependency graph:** the recommended general model; permits independent events but needs complete dependency metadata.
- **One transaction per handler:** excellent for database-only effects, but must not include remote calls.
- **Receipt-order FIFO:** rejected as a substitute for causal ordering under reordered delivery.

**Missing evidence**

The source’s dependency contract, retry horizon, downstream idempotency/fencing capabilities, PostgreSQL failover policy, and required capacity/latency limits are unspecified. These determine whether the design can meet its ordering, durability, and external-effect guarantees.

**Confidence:** high in the database receipt and fencing design under the stated assumptions; semantic ordering and external-effect guarantees remain conditional on those contracts.

**Next useful action:** establish those contracts and numerical limits, then implement the transactions and run the acceptance matrix with crash and network fault injection.

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

The coherent design is a primary-only PostgreSQL inbox: acknowledge a delivery only after a committed deduplicated row, then let workers claim one per-account head at a time with expiring, fenced leases. Acceptance is exactly-once for the retention window; handling is at-least-once. This does not provide exactly-once external effects.

## 1. Design

### Requirements
- Authenticate the source before any write. Persist `source_id`, `account_id`, `event_id`, and exact payload bytes, then commit, then return success.
- Deduplicate on `(source_id, account_id, event_id)`. Identical redeliveries ack again and create no second obligation. Same key with different bytes is a conflict and must not overwrite.
- Deliveries may be duplicated and reordered. Per-account source order is still the processing order.
- Many workers may run. At most one live lease exists per account. A lease expires, and a later claim fences the crashed holder.
- Retry attempts, including claims that crash, are bounded. Exhausted or non-retryable events become poison and block only that account.
- Crash recovery must not leave a permanent lease and must not be described as exactly-once downstream execution.
- Backpressure rejects new keys without persisting them. Already-accepted duplicates still succeed so the source can stop retrying.

### Assumptions
- One PostgreSQL primary is the only coordination store. Accept, claim, renew, and complete use the primary. Accept transactions run with `synchronous_commit=on`. Durability means local WAL flush before commit returns, not a proven replicated standby.
- Workers are fail-stop and cooperative, not Byzantine. A worker with unrestricted write credentials can bypass fencing SQL. Enforcement is the conditional `UPDATE`, not trust in worker memory.
- The authenticated source supplies a contiguous per-account `sequence` starting at 1, in addition to `eventID`, `accountID`, and payload. Opaque `eventID`s alone cannot reconstruct order after reordering.
- Payload identity is the exact received bytes, hashed with SHA-256. Semantic JSON equality is not used.
- Database time (`clock_timestamp()`) is authoritative. Worker wall clocks are not.
- Downstream handlers are idempotent on `(source_id, account_id, event_id)`, or they tolerate duplicates. The inbox does not run two-phase commit with the effect destination.
- Terminal rows are retained at least as long as the source’s retry horizon. Workers use a new incarnation id after restart.
- Isolation is Read Committed. Ownership is decided only by single-row `UPDATE ... WHERE` predicates, never by a prior `SELECT` kept in application memory.

### Data and invariants
`inbox_events` stores the identity, `sequence`, `payload_bytes`, `payload_hash`, `state`, `attempt_count`, `max_attempts`, `available_at`, `lease_owner`, `lease_token`, `lease_expires_at`, and error class. Uniqueness: `(source_id, account_id, event_id)` and `(source_id, account_id, sequence)`. A partial unique index on `(source_id, account_id) WHERE state = 'leased'` enforces single-flight.

`account_cursors` stores `(source_id, account_id)`, `next_sequence` starting at 1, and `nonterminal_count`. Hashed `ingress_gate` rows hold exact bucket counts so a global cap does not require one counter row for every insert. Lock order is gate bucket, then account cursor, then event insert.

Invariants:
- A 2xx for a new key occurs only after that key’s commit. A crash before commit yields no success response and no row.
- `lease_token` increases by one on every claim or reclaim and is never reused.
- A leased row changes to `succeeded`, `retry_wait`, or `poisoned` only when id, token, owner, `state='leased'`, and `lease_expires_at > clock_timestamp()` all match.
- `next_sequence` advances by exactly one in the same transaction that marks that sequence `succeeded` or operator-`skipped`.
- No sequence greater than `next_sequence` can be leased. A missing head stalls the account and does not consume attempts.
- `attempt_count` increments only when a claim or reclaim is committed. Poison is not claimable. Other accounts remain claimable.
- External I/O never runs inside a database transaction.

### States
`accepted` means durably stored and not the claimable head, or waiting for backoff. `leased` means a token holder owns it until database expiry. `retry_wait` means a fenced retryable failure is waiting for `available_at`. `succeeded` means a fenced handler completion was committed, not that the external effect happened once. `poisoned` means attempts are exhausted or the error class is non-retryable; this blocks the account. `skipped` is an audited operator break of that dependency. Auth, validation, capacity, and payload-conflict failures are not stored as events.

Transitions: insert to `accepted`; claim of `sequence = next_sequence` to `leased`; fenced success plus cursor advance to `succeeded`; fenced retryable failure to `retry_wait`; fenced exhaustion or non-retryable failure to `poisoned`; expired `leased` is reclaimed with a new token or becomes `poisoned` if attempts are already exhausted; operator action moves `poisoned` to `accepted` with attempts reset, or to `skipped` with a one-step cursor advance. Duplicates and stale fence writes do not change state.

### Transaction boundaries
- **Authenticate outside a write transaction.** Failure returns 401 or 403 and writes nothing.
- **Accept:** lock the gate bucket and account cursor; reject a new key over the global or per-account cap; insert the event and increment counters; commit; only then return 200. On event-id conflict, read the committed row, return 200 for the same hash, or 409 for a different hash. If the concurrent inserter aborted and the row is absent, retry the insert. A new event id whose sequence is already taken returns 409 and does not ack success.
- **Claim:** one short transaction selects the eligible head `FOR UPDATE SKIP LOCKED`, increments token and `attempt_count`, sets owner and expiry, and commits. If this claim would exceed `max_attempts`, set `poisoned` instead of leasing. No handler call is inside this transaction.
- **Renew:** conditional expiry extension with the same fence. Zero rows means stop and do not rely on a later complete.
- **Effect:** outside any transaction, call the handler with the idempotency key. A lease expiry here means another worker may also run the handler.
- **Complete or fail:** one short fenced transaction. Success sets `succeeded` and advances `next_sequence` only if it still equals this sequence. Retryable failure sets `retry_wait` and `available_at` from database time using bounded exponential backoff plus jitter, without a second attempt increment. Non-retryable failure or exhausted attempts sets `poisoned` and does not advance the cursor.
- **Reclaim** is another claim of an expired lease, not a background unlock service. Correctness does not depend on `LISTEN/NOTIFY`; notification may wake workers, but polling is required because notifications are not durable.
- **Operator skip or replay** is a separate audited transaction. Skip advances the cursor once. Replay resets attempts and does not advance it.

Backoff parameters, lease length, caps, poll interval, and retention are named policy, not measured capacities.

### Backpressure
- New keys over the per-account cap or a gate-bucket global cap return 429 with `Retry-After` and are not inserted.
- Payload over the configured byte limit returns 413 and is not inserted.
- Missing identity, non-positive sequence, or invalid sequence returns 400 and is not inserted.
- Pool exhaustion or database unavailability returns 503 and is not success.
- Identical duplicates of a stored key still return 200 while over cap; otherwise the source would retry forever.
- Each worker has a fixed claim concurrency. Empty polls sleep with jitter. A poisoned or gapped account occupies no worker slot. Only that account’s later sequences wait.
- Terminal rows are deleted only after the configured retention. Poisoned rows are not auto-deleted.

### Crash and effect contract
If the effect succeeds and the worker crashes before the fenced complete, expiry causes another claim and the handler can run again. If complete commits and the worker crashes before its own bookkeeping, the row stays `succeeded` and ingress duplicates only ack. A stale holder’s late complete matches zero rows and must not advance the cursor. No path claims exactly-once external effects.

### Acceptance checks
These are pass/fail criteria, not executed results.
- Pass iff every 200 has a committed matching row after primary recovery, and a pre-commit crash has neither 200 nor a row.
- Pass iff concurrent identical deliveries create one row and all return 200, including when the unique-conflict inserter loses.
- Pass iff a same-key different payload returns 409 and leaves the original bytes and hash unchanged.
- Pass iff sequences delivered as 3, then 1, then 2 are handled in order 1, 2, 3.
- Pass iff withheld sequence 2 prevents 3 from being leased, consumes no attempts, and a late 2 unblocks it without an operator skip.
- Pass iff killing a holder and waiting past database expiry lets another worker reclaim with a greater token, while the old token’s complete or fail updates zero rows.
- Pass iff ten workers produce never more than one `leased` row per account, while another account can still finish while the first is poisoned.
- Pass iff repeated retryable failure or crash-before-complete reaches `poisoned` at `max_attempts` and produces no further claims; a non-retryable class poisons even when attempts remain.
- Pass iff a new key at either cap is absent and not 200, while an existing duplicate is still 200.
- Pass iff auth failure and oversize payload persist nothing.
- Pass iff a lease renewal and reclaim race leaves exactly one winner under Read Committed conditional updates.
- Pass iff no handler call holds an open or idle transaction, and expiry math does not use worker-local time.
- A replay after terminal deletion may create a new obligation. That is a failure of the retention assumption, not recovery of exactly-once delivery.

## 2. Alternatives and discarded hypotheses
- Receipt order per account was discarded as the primary order. It is simple and avoids gaps, but reordered delivery becomes reordered processing, so it does not preserve source dependencies. It is the fallback only if no sequence or predecessor exists.
- A predecessor graph is viable when dependencies are partial rather than a total account order. It needs cycle rejection and a rule for multiple roots; contiguous sequence is the tighter, testable special case.
- Advisory locks, expiry without a token, and check-then-act ownership were discarded. None stops a stale commit after lock loss or reclaim.
- Incrementing attempts only on an explicit failure was discarded. A crash loop would never reach poison.
- Overwriting conflicting payload, treating gap timeout as an automatic skip, and using a global FIFO were discarded. They break identity, silently break dependencies, or let one account block others.
- `LISTEN/NOTIFY`, Redis, or SQS as the durability path was discarded. Notifications are lossy, and a second queue creates a dual-write the single-database requirement does not need.
- Two-phase commit or an “exactly-once handler” claim was discarded. Generic webhook destinations do not provide that transaction.

## 3. Missing evidence
No source, schema, provider retry contract, or handler contract was supplied. The ordering field, byte-identical payload rule, local-WAL durability bar, fail-stop worker model, and retention horizon are therefore assumptions. If any is false, the corresponding guarantee is unsupported: in particular, unordered event IDs cannot preserve source order, and retention shorter than source retries cannot preserve deduplication. No latency, cost, or capacity figure is asserted.

## 4. Next useful action
Confirm, from the source contract, whether a contiguous per-account sequence or an explicit predecessor exists, how long the source retries, and whether payload equality is exact bytes. Those three facts decide whether this primary design can be implemented or must fall back to serial receipt order without a source-order claim.

Primary judge's stated reason

B receives a slight forced preference because its explicit attempt-duration bound and renewal acceptance check make one recovery edge case easier to implement and verify. This is not an established material quality gap: A's simpler conditional design remains substantially equivalent on the requested outcome, and an independent review could reasonably reject this preference.

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_e7c987402019ee2b87588b81b962a517b2381177879f1d706f02866240e72ed3. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.