← Model losses

Head-to-head comparison

openai / gpt-6-astra / low / low effort preferred over openai / gpt-6-luna / medium / medium 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

Correction-gate review of one frozen writer candidate. Do not treat a pass as delivery authorization. The operator forbids delivering or releasing this candidate. No scoring, recording, runtime, fixture, or data changes.

Scope is only the frozen diff in src/combined-season-store.js and test/combined-season-store.test.mjs, especially checkHistoricalCohorts and readActiveCombinedSeason.

Measured read-only fixture evidence, already taken, not an estimate: this candidate used 67 queries versus the 51-query baseline, median total 104.379 ms versus 73.471 ms, query time 23.242 ms versus 4.505 ms. Output SHA remained exact. Evidence record: [REDACTED: local path] The design pages a size index 49 keys at a time, then fetches only those exact (revision, public_id) pairs. At 965 ancestor cohort rows that is about 21 index queries plus 21 payload queries plus the version walk.

Integrity defect: combined_season_cohorts triggers reject UPDATE and DELETE, not INSERT into an existing revision. The comment that immutable versions/cohorts make separate index and payload reads one snapshot is unsupported. A row inserted after index planning and before the exact-key payload read is invisible, so the manifest row-count check can pass. The baseline per-revision SELECT public_json WHERE season_id=? AND revision=? returns every row present at query time and does not have this hole.

Decide whether this frozen candidate is safe to keep. Identify any fail-closed snapshot strategy that would both catch that insert window and avoid a query-count or latency regression versus 51 queries and 73.471 ms. If no such strategy is supported by the schema and D1/Workers limits (100 binds, 2,000,000-byte row, 128 MB isolate, buffered .all() results), say so. Do not suggest a second writer, a roster change, or delivery of this tree.

openai / gpt-6-astra / low / low effort answer

## Verdict: FAIL — unsafe to keep as an accepted candidate

Direct, independent review of the supplied frozen packet. No delivery or release authorization.

### Blocking findings

1. **Historical integrity can silently pass after an extra INSERT.**  
   `src/combined-season-store.js:31–37` plans keys, then fetches only those keys. Consider one ancestor with one valid row:
   - Index returns that row.
   - Another row is inserted into the same revision.
   - Payload query retrieves only the original key.
   - The short index page terminates pagination at line 47.
   - Count and digest at line 27 still match the original manifest.

   The database contains an extra row before the payload read, but validation succeeds. Given the supplied trigger semantics, the snapshot assertion at line 28 is unsupported. **Confidence: high.**

2. **Measured performance regresses materially.**  
   Supplied diagnostic evidence reports:
   - Queries: **51 → 67**, up **31.4%**.
   - Median total: **73.471 → 104.379 ms**, up **42.1%**.
   - Query time: **4.505 → 23.242 ms**, approximately **5.16×**.

   The 49-key ceiling at line 22 creates roughly 20 index pages plus 20 payload fetches for 965 rows, with byte-budget splitting potentially adding fetches. Exact output SHA establishes parity for the measured static fixture, not concurrency integrity.

3. **Tests omit the actual insert window.**  
   `test/combined-season-store.test.mjs:130–152` inserts extra rows **before** reading. Lines 180–183 mutate returned payload results, while lines 166–177 move the pointer. None inserts a cohort after index planning and before payload retrieval. Reported suite passes therefore do not resolve finding 1.

### Snapshot strategies and constraints

**No strategy is established by this evidence that simultaneously closes the insert window, preserves bounded retrieval, and meets both 51 queries and 73.471 ms.** This is an evidence conclusion, not a proof that every possible SQL design is impossible.

- **Final complete per-revision count validation:** Under the stated INSERT-only growth semantics, counts taken after payload retrieval would detect the described additions, including zero-cohort revisions. This can close that window without rereading payloads, but adds work to an already-regressing candidate. It does not establish latency parity.
- **Count validation within payload statements:** Could detect additions present at those statements without separate count queries, provided validation covers every pinned revision, including empty ones. It still leaves the candidate’s excessive query count and requires new correctness/performance evidence.
- **Transactional planning and fetching:** No shared transaction spans these adaptive reads in the candidate. A transaction starting only after planning is insufficient without validating complete membership again. Merely invoking snapshot terminology does not establish D1 support for this interaction.
- **Baseline per-revision SELECT:** Detects rows present at its statement snapshot and has the supplied baseline measurements. Its buffered response remains unbounded.
- **Unbounded multi-revision batching:** Neither 99 revision IDs nor 100 binds bounds returned bytes. With 2,000,000-byte rows and buffered `.all()` results, it can exceed the 128 MB isolate. Whole-revision digest retention also remains a separate memory limit.

### Evidence limits and next action

Trigger definitions, D1 transaction documentation, and digest implementation are outside this packet; trigger behavior and performance measurements are accepted as supplied evidence, not independently reproduced.

**Record the correction-gate conclusion as rejection in the review response; preserve the frozen evidence and maintain the operator’s delivery prohibition.** No code, fixture, runtime, data, or scoring changes are warranted by this review.

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

**Verdict: fail the correction gate; do not keep this candidate as safe.** This is a read-only review, not authorization to deliver or release it.

The candidate’s two-phase historical read has no supported snapshot guarantee. In `src/combined-season-store.js:28–37`, it pages a size index and later fetches only the planned keys; lines 28–29 incorrectly claim immutable cohorts make those separate reads “one snapshot.” As stated in the supplied evidence, the triggers reject cohort UPDATE and DELETE but allow INSERT into an existing revision. An inserted row can therefore be absent from the plan and payload fetch, leaving the manifest row-count check satisfied. The baseline per-revision `SELECT ... WHERE season_id=? AND revision=?` sees all rows present at that statement’s query time.

**No supported strategy is shown that both closes this window and beats the baseline’s query count and latency.** Reverting to one complete query per ancestor restores statement-level observation, but returns to 51 queries and the measured 73.471 ms baseline. Rechecking or paging the index adds reads and still does not establish a single snapshot without a transaction or an enforced no-INSERT invariant. A single broader fetch would also need a defensible response/memory bound: the supplied limits allow 2,000,000-byte rows, impose a 128 MB isolate limit, and buffer `.all()` results; 99 revision IDs do not bound returned rows.

The measured fixture confirms regression, not an estimate: 67 versus 51 queries, 104.379 versus 73.471 ms total, and 23.242 versus 4.505 ms query time. Output SHA remained exact, but that does not resolve the insertion race. The external fixture diagnostic is identified as `[REDACTED: local path]`; it was not part of this source packet, so I rely on the supplied measurements rather than independently verifying it.

**Next useful action:** retain the baseline behavior unless a separately supported snapshot or enforced immutability mechanism is established. No scoring, runtime, fixture, or data changes are recommended.

Primary judge's stated reason

A offers slightly better guidance on why plausible integrity corrections still lack evidence of meeting the joint integrity and performance requirement. The preference is forced and weak, not an established material quality difference; an independent review could reasonably favor B's otherwise equivalent decision.

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

Battle wave: 91244bdb-1010-4ff7-a786-70922ebcf7b5. Pair: brp1_69e58464ddb263ef0895321290f97194fb1c0e57fde3c2bd1fda4c44c52423af. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.