xai / grok-4.7-efficient / high / high effort preferred over xai / grok-4.7-efficient / xhigh / xhigh 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.
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.
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 earns a slight forced preference because its crash-effect contract avoids a misleading acceptance failure for a legitimate idempotent integration. This is not an established material quality gap: B's surrounding idempotency guidance substantially limits the criticism, and its input-compatible ordering design is a countervailing benefit. 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_69a9da1d3f96ebd329484bc732cc46572e086f21ce45a09074c3b8ec21ea84c2. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.