openai / gpt-6-sol / high / high effort preferred over cursor / grok-4.7 / Grok 4.7 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
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-sol / high / high effort answer
## Assessment
**Highest-impact risk: publishing the wrong cohort or an incomplete cohort.** The canonical cursor is behind deliberately excluded historical records, so using it to replay the broad journal could publish those records. Advancing it past them could instead hide records from other consumers. Publish exact new cohort IDs from a **scoped journal with its own scoped cursor**, and confirm that the selected evaluated outcomes have all required supporting evidence before sending anything. A whitelist alone does not prove that evidence is complete: filtering may remove a required event, and a 12-event batch limit may split related evidence across requests.
| Rank | Failure mode | Safe interpretation and recovery |
|---|---|---|
| 1 | **Partial HTTP success or incomplete filtering.** An ACK for a request is not necessarily proof that every event was accepted. | Advance the cursor only when acceptance of **every event identity in that batch** is verified. If acceptance cannot be established, leave the cursor unchanged, reconcile by readback, and retry unresolved events with the same identities. Do not treat a partially accepted batch as committed. |
| 2 | **Concurrent publishers race on the scoped cursor.** Atomic replacement prevents a torn cursor file, but does not prevent two publishers from reading the same position and overwriting each other’s progress. | Use a single-publisher lock held across selection, sending, verification and cursor update, or an equivalent compare-and-swap protocol that checks the expected cursor and journal identity. Stop and reconcile if that check fails. |
| 3 | **Crash or timeout near acceptance.** A crash before ACK leaves acceptance unknown; a crash after verified ACK but before cursor advancement causes replay. A 30-second client timeout does not prove that the server rejected the request. | Preserve the cursor on uncertainty. Reconcile by event identity and retry with unchanged identities and payloads. Per-identity idempotency makes replay *potentially* safe, but does not by itself establish that differing payloads under one identity are rejected or that all events became visible. |
| 4 | **Journal replacement, truncation or rewrite.** The cursor’s device/inode and last-line hash can detect some mismatches; they are not a complete integrity proof for earlier lines or same-inode rewrites. | Before each read and cursor update, validate identity, recorded line/hash and a stable, newline-terminated read boundary. Stop on mismatch or unexpected shortening; reconstruct against an authoritative journal rather than guessing a new offset. |
| 5 | **Public-data leakage.** The permitted fields do not authorize arbitrary strings inside an evaluation summary. | Validate the serialized outbound payload against an explicit, recursive allowlist; exclude raw prompts, code, private notes and paths, including when embedded in summaries. |
**Minimal execution procedure:** Freeze the exact new cohort-ID set and its expected event/evidence inventory. Create or select a scoped journal containing only eligible, complete records for those IDs, and initialize its separate cursor without touching the canonical cursor. Under exclusive publisher ownership, read only newline-terminated records; validate journal continuity and the outbound allowlist; send batches of at most 12 with stable event identities. Advance the scoped cursor atomically only after every event in the batch has a verified ACK. On any uncertainty, stop advancing, read back by identity and retry only unresolved events. Finally, read back the exact cohort IDs and compare the expected event identities, types and available payload digests; check that no excluded cohort was published through this run.
**What the supplied evidence proves versus what remains open:** The stated design provides newline-delimited commit boundaries, bounded batches, per-identity ingest idempotency, and cursor advancement after a verified ACK. It does **not** establish ACK granularity, payload-conflict behavior for duplicate identities, readback completeness or consistency, durable cursor writes across power loss, an exclusive-publisher mechanism, or a complete definition of required cohort evidence. Those details determine whether the proposed recovery checks can be fully automated; absent them, stop for reconciliation rather than infer success. No source files were inspected and no objective tests were run or claimed.
cursor / grok-4.7 / Grok 4.7 High / high effort answer
The stated design can publish an exact new cohort safely only when that cohort is copied into a new scoped journal with its own cursor, the cursor moves only after a full-batch durable ACK, and retries reuse the same event identities. Those guarantees are stated, not verified in code. The highest-impact failures are publishing from the lagging canonical cursor, advancing a prefix cursor across a hole, and treating an uncertain ACK as success.
## 1. Findings and safe procedure
Impact order:
1. **Wrong-scope replay.** The canonical cursor sits behind excluded historical qualification and incomplete records. A publisher that resumes it will read that backlog. A fail-open filter publishes records that were meant to stay excluded. A skip-and-advance filter consumes them so they can never be reconsidered. A skip-without-advance filter stalls on the same prefix. New cohort IDs belong on a scoped journal and a scoped cursor whose line numbers are not the canonical file’s.
2. **Prefix cursor across a hole.** The cursor is a line number plus journal device/inode plus the SHA256 of the checkpoint line. It can represent only a contiguous prefix. In a batch of at most 12, a partial HTTP success, a whitelist drop, or a missing supporting-evidence event leaves a hole. Advancing past that hole makes the omitted line unrecoverable. Retrying only the rejected suffix leaves the hole behind the checkpoint. Completeness is a property of the cohort, while the checkpoint is a property of the file prefix.
3. **Uncertain acceptance.** The 30-second timeout does not distinguish “server committed, ACK lost” from “server did not commit.” Advancing the cursor on timeout, transport reset, or a body that does not name every submitted event ID drops any event the server did not retain. Minting a new event identity on retry defeats per-event idempotency and can double-count a cohort. Crash after a verified ACK and before the cursor write is the designed replay case, and it is safe only when the retry identity is unchanged and the server’s idempotency record outlives the retry.
4. **Public-field leakage.** The public payload allows approved model IDs, integer judge metrics, timing, usage, and evaluation summaries. It forbids raw prompts, code, private notes, and paths. An event-type whitelist does not enforce that field rule. Nested summaries, error strings, and supporting-evidence objects can still carry forbidden content. A scoped journal that copies raw records inherits the same requirement at projection time.
5. **Journal identity mismatch.** Device/inode detects replacement. It does not detect truncation or rewrite of the same inode. The checkpoint hash detects a change only on the checkpoint line, and only when resume hashes that line number rather than whatever line is currently last in a growing file. A shortened file whose cursor line is past EOF is a failed identity check. Inode reuse after delete and recreate is caught by a content hash mismatch except in the negligible case of a hash collision.
6. **Cursor race.** An atomic cursor write after ACK serializes one publisher’s own commit. It does not fence two publishers. Both can read the same checkpoint, and the later write can rewind the line number or skip ahead under a different filter. A scoped cursor removes the race only when the other process cannot open that same cursor.
7. **Crash windows the design already covers, if the unstated durability holds.** Crash before send, or after send and before ACK, leaves the cursor in place; the newline-terminated journal line remains to retry. Crash after a durable cursor update resumes after that line. A torn cursor write, an ACK issued before the server’s own durable commit, or an append resumed onto a partial trailing line are outside that guarantee.
**Minimal procedure for an exact cohort-ID set**
- Build a new scoped JSONL of only those cohort IDs. Keep each cohort’s evaluated outcome and supporting evidence contiguous. Project each record to the public field set and drop any cohort that is incomplete, contains a non-integer judge metric, uses an unapproved model ID, or has more than 12 public events. Seal the file before the publisher reads it.
- Create a new cursor file. Start at line 0 on this journal’s device/inode. Leave the canonical cursor untouched.
- Take an exclusive lock on the scoped cursor for the whole run. Before every batch, recheck device/inode, file length, and, once the line is greater than 0, the SHA256 of that exact checkpoint line. On mismatch, stop.
- Send at most one complete cohort per request, at most 12 events, with stable event identities. Accept only a response that ACKs every submitted identity. On timeout, partial acceptance, or any other outcome, rewrite nothing and resend the same batch.
- After a full ACK, write the new line number, device/inode, and SHA256 of that checkpoint line to a temporary file, fsync it, rename it over the scoped cursor, and fsync the directory.
- Read back each cohort ID. Require the same event identities, integer metrics, and counts, and require the absence of prompts, code, private notes, and paths. A readback miss halts the run. It does not move the cursor backward and it does not allocate new event IDs.
Confidence in these consequences, given the stated mechanics: high. Confidence that production implements those mechanics: none. No implementation was inspected.
## 2. Discarded hypotheses
- Crash before ACK does not by itself lose a journalized event. Loss requires a cursor advance without a durable server commit, or a journal line that never became a newline-terminated record.
- Idempotent ingest does not make it safe to advance past a rejected or filtered line. Idempotency protects exact retries of the same identity. The prefix cursor will not return to a hole.
- The inode check does not detect same-file truncation. The checkpoint-line hash and an EOF check do.
- A batch ceiling of 12 does not prove that a cohort fits in one request. Cohorts over that ceiling, or cohorts whose evidence was removed by the whitelist, fail the completeness preflight and stay out of the scoped journal.
- Atomic rename is not mutual exclusion against a second publisher. Exclusive lock plus compare-and-swap on the previous checkpoint is the missing fence.
## 3. Missing evidence
No source was in scope, so none of the following is established: ACK shape and whether ACK means durable server commit; idempotency key formula and retention; cursor fsync, rename, and compare-and-swap; publisher locking; consumer rule for partial cohorts; readback API and its consistency window; maximum events per cohort; whether “last-line SHA256” is the checkpoint line or the file tail; and whether filtering advances, stalls, or fails open. Until those are known, a canonical replay can publish excluded history or skip required evidence permanently.
## 4. Next useful action
Inspect the publisher’s journal read, filter, HTTP client, and cursor commit against the procedure above, and publish only a sealed scoped journal for the exact cohort IDs.
Primary judge's stated reason
B has a slight practical advantage because its procedure does not unnecessarily narrow the exact selected cohort set based on a batch-size restriction. This is a weak, forced preference, not a proven material quality gap: A's conservative restriction could be appropriate if consumers require whole-cohort requests, and no actual cohort sizes or consumer semantics are supplied. An independent review could reasonably favor A's more explicit durability procedure.
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_29dd24d7b7d18a65d1768768127c7c67e8ccbda36276eb69bf40df11d99e704d. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.