← Model losses

Head-to-head comparison

openai / gpt-6-luna / medium / medium effort preferred over cursor / composer-2.5 / Composer 2.5 default / unknown 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

Review the production BattleRanks publisher behavior for correctness and recovery. Supplied evidence (same for every reviewer): an immutable JSONL journal commits only newline-terminated records; an export cursor records line number, journal device/inode identity and last-line SHA256; batches contain at most 12 whitelisted evaluated-outcome and supporting evidence events; HTTP ingest is idempotent per event identity, with a 30-second request timeout; the cursor advances atomically only after a verified HTTP ACK. Existing canonical cursor is behind deliberately excluded historical qualification/incomplete records. New selected cohorts must use a scoped journal and scoped cursor rather than broad backlog replay. Public payload permits approved model IDs, integer judge metrics, timing, usage and evaluation summaries, but forbids raw prompts, code, private notes and paths. Task: independently identify concrete failure modes for crash before/after ACK, partial HTTP success, timeout with uncertain acceptance, journal replacement/truncation, filtering that breaks complete cohort evidence, and cursor updates racing another publisher. Propose a minimal safe execution/recovery procedure for publishing only exact new cohort IDs and readback verification. Rank findings by impact, state assumptions, and distinguish proven guarantees from missing evidence. Do not edit files or dispatch models. This is read-only implementation analysis; no objective tests are registered or claimed.

openai / gpt-6-luna / medium / medium effort answer

## Independent assessment

**Assumptions:** This is based only on the supplied description; no implementation was inspected. “Verified HTTP ACK” is unspecified, and HTTP idempotency protects only the event identities and scope the ingest service actually recognizes.

### Ranked failure modes

1. **High — ambiguous or partial HTTP success.** A timeout can occur after the server accepts some or all events but before the publisher receives an ACK. Retrying is safe only if the same event identities and payloads are idempotent at the server. If a batch partially succeeds and the publisher retries the whole batch, already accepted events must deduplicate; otherwise duplicates are possible. If it advances past the batch without verifying every event, events can be lost. The stated idempotency and ACK-gated cursor advancement help, but do not establish partial-batch semantics or what constitutes a verified ACK.

2. **High — concurrent publishers race cursor updates.** Two publishers can read the same cursor and submit overlapping batches. Idempotent ingest may prevent duplicate records, but does not ensure ordered progress or prevent one publisher from atomically overwriting a newer cursor with stale progress. No locking, compare-and-swap, or single-writer guarantee is supplied.

3. **High — cohort evidence lost through filtering.** Filtering out an event needed to complete a cohort can publish an incomplete or misleading cohort, even if every transmitted event is individually whitelisted and accepted. Conversely, broad replay risks publishing deliberately excluded historical records. The requirement for a scoped journal/cursor addresses replay scope, but the evidence does not define cohort-completeness rules or prove the selection filter preserves all required supporting evidence.

4. **High — journal replacement or truncation.** Device/inode identity plus last-line hash can detect some replacements or changes, but behavior on mismatch is unspecified. Continuing from a stale line number can skip or misattribute records; restarting without strict cohort filtering can replay excluded history. Truncation or replacement between validation and reading also needs protection. Halt and reconcile on identity/hash mismatch rather than silently resetting or continuing.

5. **Medium — crash before ACK.** If the cursor has not advanced, recovery should resend the batch. This is safe only if retries preserve event identity and the server deduplicates them. The description supports ACK-gated cursor advancement, but does not establish retry behavior.

6. **Medium — crash after ACK, before cursor commit.** The batch will be resent on recovery. This is safe under reliable per-event idempotency; otherwise duplicates result. Atomic cursor update prevents a torn cursor, but cannot make the remote ACK and local cursor commit one transaction.

7. **Medium — cursor commit without a genuinely complete ACK.** “Verified HTTP ACK” is a stated safeguard, but its verification criteria are not supplied. An ACK for only part of a batch, or an unvalidated response, could cause skipped events if cursor advancement is based on it.

### Minimal safe procedure

1. Define the exact new cohort IDs and required event types/supporting evidence. Build a scoped journal/cursor containing only those cohorts; do not reuse the broad cursor or replay historical backlog.
2. Before publishing, validate newline-terminated records, cohort completeness, event identities, and payload allowlisting. Reject prompts, code, private notes, paths, and any unapproved fields; publish only approved model IDs, integer judge metrics, timing, usage, and evaluation summaries.
3. Enforce a single publisher for the scoped cursor. Snapshot and verify journal device/inode and last-line hash before reading; stop on replacement, truncation, or mismatch.
4. Send batches of at most 12. On timeout, partial response, or uncertain ACK, **do not advance the cursor**; retry the same events with identical identities and payloads. Proceed only after verifying acknowledgment of every event in the batch.
5. Atomically advance the scoped cursor after full ACK verification. On restart, revalidate journal identity and resend from the committed cursor.
6. Read back by exact cohort/event IDs and compare the accepted event set and payloads with the intended set. Resolve missing, duplicate, or unexpected events before declaring publication complete.

**Supported by supplied evidence:** newline-terminated journal commit rule; batch limit; stated event allowlist and idempotency; 30-second timeout; atomic cursor advancement only after verified ACK; deliberate exclusion of historical records; need for scoped journal/cursor for new cohorts.

**Not established:** implementation of ACK validation, server behavior on partial success and retries, idempotency key stability/scope, cursor concurrency control, mismatch/truncation recovery, cohort-completeness filtering, or readback mechanism. These are dependencies for claiming the procedure is implemented or verified.

**Next useful action:** Inspect the publisher and ingest contracts for those missing guarantees, especially partial-batch ACK semantics, cursor locking, and behavior on journal identity mismatch. No tests or source inspection were performed.

cursor / composer-2.5 / Composer 2.5 default / unknown effort answer

# BattleRanks publisher — independent failure-mode and recovery analysis

## 1. Conclusion, recommendations, and confidence

**Overall assessment:** The described design (append-only journal, cursor tied to device/inode + line + last-line hash, ACK-gated cursor advance, idempotent ingest by event identity, scoped journal/cursor for new cohorts) is a sound baseline for **at-least-once publish with safe retry** and **no advance on unverified success**. Correctness and recovery still depend on properties not fully specified in the evidence: whether ACK is tied to durable server-side commit, whether readback uses the same identity key as ingest, and whether cohort completeness is defined outside the 12-event batch whitelist.

**Ranked failure modes (by impact)**

| Rank | Failure mode | Typical outcome | Recovery lever (from evidence) |
|------|----------------|-----------------|--------------------------------|
| **P0** | **Timeout with uncertain acceptance** (30s, no definitive response) | Cursor not advanced → safe retry; **or** server accepted but client timed out → duplicate POSTs (should be OK if idempotent per event identity); **or** server still processing → ambiguous | Retry same batch; verify via readback by event identity; do not advance cursor until ACK **and** (if required) readback confirms all identities |
| **P0** | **Crash after verified HTTP ACK, before atomic cursor write** | Same lines re-published on restart | Idempotent ingest; risk only if idempotency is weaker than “same identity → no duplicate public row” |
| **P0** | **Journal replacement or truncation** (new file, rotated path, copy without preserving inode) | Cursor (device/inode + line + hash) **invalid or misleading** | Treat inode/hash mismatch as **hard stop**; re-bootstrap scoped cursor from verified export/readback, not blind line replay |
| **P1** | **Partial HTTP success** (multi-event batch, some ACKed some not—if API allows) | Cursor must not advance past last **fully** verified unit of work | Evidence says cursor advances after “verified HTTP ACK” for the export step—not whether ACK is per-batch or per-event; **assume per-batch ACK means all-or-nothing** unless proven otherwise |
| **P1** | **Filtering breaks complete cohort evidence** (whitelist drops required supporting events; historical qual/incomplete excluded; cursor “behind” by design) | **Silent under-publish**: cohort IDs marked done locally while public rank set is incomplete or inconsistent | Scoped journal must contain **closed** cohort slices; preflight checklist: for each cohort ID, count whitelisted event types expected vs journal slice |
| **P1** | **Two publishers racing on cursor update** | Lost update, double advance, or cursor skipping lines | Atomic cursor update **after** ACK helps one writer; **no evidence** of distributed lock or single-writer enforcement—second publisher is **high impact** if allowed |
| **P2** | **Crash before ACK** | No cursor advance; full batch retry | Safe by design |
| **P2** | **Duplicate lines or non-atomic journal append** (violates “immutable JSONL” assumption) | Last-line SHA256 mismatch → cursor refuse or re-read | Hash gate is the detection mechanism **if** enforced on every read |
| **P3** | **Batch cap (12 events)** splits one cohort across multiple HTTP calls | Partial cohort visible publicly between calls | Idempotency + readback per cohort ID; ordering/read consistency not specified |

**Proven guarantees (from supplied evidence only)**

- Journal commits **only** newline-terminated records (append semantics implied).
- Cursor records **line number**, **journal device/inode**, **last-line SHA256**.
- Cursor advances **atomically** only after **verified HTTP ACK**.
- HTTP ingest is **idempotent per event identity**; **30s** request timeout.
- Batches ≤ **12** whitelisted event types (evaluated-outcome + supporting evidence).
- Public payload rules reduce leakage risk; they do **not** by themselves guarantee publish correctness.
- New cohorts must use **scoped journal + scoped cursor**, not broad backlog replay.

**Not proven / missing from evidence**

- Exact ACK semantics (HTTP 200 vs body hash vs per-event ack list).
- Server-side durability at ACK time (accepted in memory vs committed).
- Readback API shape and whether it keys on same **event identity** as ingest.
- Cursor file locking, fsync order, crash between ACK log and cursor write.
- Whether multiple publisher processes are forbidden or coordinated.
- Formal cohort-closure rule (which event types must co-exist for a valid rank).
- Behavior when last-line hash matches but line content was maliciously swapped (same line number)—inode binding mitigates replace-in-place **if** journal is truly append-only on same inode.

**Minimal safe execution / recovery procedure** (new cohort IDs only)

**Assumptions:** Single active publisher per scoped cursor; event identities stable and globally unique; readback available for verification.

1. **Scope:** For each target cohort ID set, build or select a **scoped journal** containing only those cohorts’ whitelisted events (and nothing else). Initialize **scoped cursor** at start of slice (or at last known good export point for that scope)—do **not** advance canonical/global cursor via full backlog replay.
2. **Preflight:** Verify journal **device/inode** and **last-line SHA256** match cursor expectations; on mismatch, **stop** and reconcile (re-export from readback or re-slice journal).
3. **Plan batches:** Group events by cohort ID; respect 12-event cap; ensure each cohort’s required supporting + outcome events are present in the slice (filtering audit).
4. **Publish loop:** Read up to 12 events from cursor line; transform to public payload (strip forbidden fields); POST with 30s timeout.
5. **Success gate:** Advance scoped cursor **only** on **verified HTTP ACK** for that unit of work; persist cursor atomically (evidence claims atomic advance—order vs fsync unspecified).
6. **Timeout / transport error:** Do **not** advance cursor; retry same batch with backoff; optionally **readback** each event identity in the batch—if all present, treat as success and advance (only if readback is authoritative in implementation; **not proven** here).
7. **Post-cohort verification:** For each published cohort ID, readback public (or internal) store: all expected event identities present; judge metrics integers; no forbidden fields; cohort set equals **exact** target ID list (no extras).
8. **Completion:** Record scoped cursor final position + inode/hash; only then optionally link to canonical cursor policy (evidence: canonical is deliberately behind excluded history—do not “catch up” excluded records via this path).

**Confidence:** **Medium** on failure-mode taxonomy (standard distributed-ingest patterns). **Low–medium** on recovery step 6 (readback-as-ACK substitute) without implementation proof. **High** that inode/hash + no advance without ACK addresses truncation/replace and crash-before-ACK.

---

## 2. Alternatives, disagreements, discarded hypotheses

- **Discarded:** “30s timeout always means failure”—server may complete after client abort; idempotency + no cursor advance is the safe client stance; readback resolves ambiguity.
- **Discarded:** “Idempotency removes all duplicate risk”—duplicate **side effects** (e.g. billing, downstream triggers) may still exist if idempotency is only dedupe on public rank row.
- **Alternative:** Per-event HTTP posts (batch size 1) shrink partial-success ambiguity at cost of throughput; still need cursor granularity per line or per event.
- **Likely false positive:** Assuming whitelist filtering always drops only “bad” history; deliberate exclusion of qual/incomplete means **cursor behind** is correct, but scoped slices must not accidentally omit **required** supporting events for **new** cohorts.

---

## 3. Missing evidence and consequences

| Gap | Consequence |
|-----|-------------|
| ACK verification definition | Cannot prove crash-after-ACK vs cursor gap is always harmless |
| Readback contract | Cannot prove end-to-end “exact new cohort IDs only” without implementation |
| Multi-writer cursor policy | Racing publishers remain **unmitigated** in procedure |
| Cohort completeness schema | Filtering failure mode stays **operational** (needs human/tool audit) |
| Partial batch API behavior | Partial HTTP success severity unknown |

---

## 4. Next useful action

Obtain implementation-level answers (still read-only): (a) what constitutes “verified HTTP ACK”, (b) readback query by event identity and cohort ID, (c) single-writer enforcement on cursor, (d) whitelist vs minimum event set per cohort. Then dry-run one scoped cohort ID: publish → kill process after ACK before cursor write → restart → confirm idempotent readback and no cursor skip.

---

**Observation:** No material conflict within the supplied evidence packet; conflicts would arise only if live behavior diverges from the described ACK/cursor/idempotency rules (not observable in this lane).

Primary judge's stated reason

B slightly better turns a known recovery hazard into a condition that must be satisfied before publishing. This is a forced, weak preference between substantially equivalent analyses, not an established material quality gap; an independent review could reasonably prefer A's additional recovery detail.

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

Battle wave: 1c2a4cca-7ccd-4020-87d6-e335b0ffc385. Pair: brp1_b74bf254e7b18e9acef22efe98a0e599b8a718b9138e4b19415c109dfae74366. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.