← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / xhigh / xhigh effort preferred over openai / gpt-6-luna / max / max effort · clear 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 released BattleRanks recipe data integrity boundary in the named frozen source. Trace family identity, observation identity, verification, storage deduplication, and recovery on duplicate submissions. Identify concrete conditions that could merge distinct recipes, double count one observation, accept mismatched battle/configuration lineage, or partially persist state. For each finding cite the exact function and evidence, show a minimal counterexample or actor sequence, distinguish proven behavior from assumptions, assess severity, and propose the smallest regression scenario. Compare existing guardrails with each claimed gap. Return prioritized findings and a release follow-up decision. Do not edit files or claim tests ran.

openai / gpt-6.1-sol / xhigh / xhigh effort answer

## Conclusion

**Release follow-up is warranted, but this snapshot does not demonstrate production corruption or justify an emergency rollback.**

The strongest findings are permissive battle binding, incomplete canonical-record validation, and incomplete duplicate recovery. With the migration installed, storage prevents double counting under an unchanged `sourceRunID`. Partial persistence depends on the database adapter’s transaction guarantees, which are outside this packet.

Independent, direct static analysis only; no files edited or tests run. References below are relative to `inputs/recipe-data-integrity/source/`.

## Boundary trace

| Boundary | Implemented identity or guardrail |
|---|---|
| Family | `recipeFamilyID` validates configuration IDs and hashes sorted contributor IDs, synthesizer ID, rubric, protocol version, and instruction hash. Contributor ordering is deliberately discarded (`recipe-observations.js:42–48`). |
| Observation | `recipeObservationID` hashes battle ID, family ID, source run ID, and judge export hash (`recipe-observations.js:49–51`). Changes to other fields do not change this ID, but duplicate admission compares the complete normalized record. |
| Evidence verification | `deriveRecipeObservation` checks source hashes, judge receipts, profile and assignment hashes, worker configurations, timings, accounting, and synthesis bindings (`recipe-evidence.js:15–70`). `verifyRecipePublisherPayload` requires the submitted event to equal the derived record (`recipe-store.js:9–13`). |
| Canonical admission | `authenticatedCanonical:true` bypasses evidence derivation, retaining structural verification and an initial season/revision check (`recipe-store.js:28–35`). Whether callers can safely use this option is outside the packet. |
| Deduplication | SQL enforces season/observation uniqueness, season/battle/family uniqueness, global source-run uniqueness, and immutability (`0010_recipe_observations.sql:11–22`). Application checks reject conflicting records before insertion (`recipe-store.js:36–45`). |
| Reading | Stored JSON is revalidated against the selected public battle before aggregation (`recipe-store.js:19–23`). This is structural revalidation, not renewed evidence derivation. |

## Prioritized findings

### 1. P1 potential integrity defect: legacy manifests permit attribution to the wrong battle

**Evidence:** `deriveRecipeObservation` treats manifest battle and category bindings as optional. Archived public-battle equality is checked only when `m.complete===true` (`recipe-evidence.js:29–30`). The final record takes its battle ID and category from the supplied context (`recipe-evidence.js:68`).

**Minimal counterexample:**

1. Evidence belongs to battle **B1**.
2. Its manifest omits `battleID`, `category`, and `complete`.
3. Supply context battle **B2**, with a different ID or category but matching worker configurations, durations, and relevant costs.
4. Derivation can return a verified observation attributed to **B2**.

Even an included `publicAfter` describing **B1** is not compared with **B2** when `complete` is omitted.

**Guardrails versus gap:** Explicit manifest bindings reject mismatches; complete manifests require an equal archived public battle. Worker checks also constrain configuration/timing compatibility. They do not establish which battle the legacy evidence originally belonged to.

**Confidence and assumptions:** Acceptance is proven by the predicates. Production reachability depends on whether the trusted resolver independently enforces battle/run ownership; its implementation is absent.

**Smallest regression:** Otherwise-valid B1 evidence with omitted manifest binding fields, an archived B1 snapshot, and matching-cohort B2 context must be rejected.

---

### 2. P2: standalone/canonical verification does not enforce exact cohort membership everywhere

**Function:** `verifiedRecipeObservation`.

Two concrete omissions exist:

- **Public battle:** The check requires the correct array length and that every public config ID belongs to the recipe set, but not uniqueness or equality of the model/configuration descriptions (`recipe-observations.js:80`).
- **Combined baseline:** The check requires matching length and valid member IDs, but not unique IDs or complete coverage (`recipe-observations.js:83–85`).

**Minimal counterexamples:**

- Recipe contributors are `{A,B}`; public battle models are `[A,A]`. The cohort predicate passes despite missing B. Correct IDs with inconsistent model/configuration details also pass this standalone check.
- Recipe individuals cover `{A,B}`; combined-baseline individuals are `[A:40,A:40]`. A combined pair of recipe `50`, best `40`, delta `10`, uplift `25%` passes `checkedPair`, although B is absent. This can distort comparison summaries.

**Guardrails versus gap:** Actual recipe individuals, worker costs, and contributor timings receive stronger coverage/uniqueness checks (`recipe-observations.js:76–79,93,99`). Normal evidence derivation checks public worker configurations and produces unique rows (`recipe-evidence.js:55,59,66`). Thus an ordinary publisher cannot simply alter these fields: full event/derived equality rejects the change.

The gap matters for canonical admission and structural rereading. The season reader might independently exclude malformed public battles, but that guarantee is unknown.

**Smallest regressions:** Reject an `[A,A]` public cohort for an `{A,B}` recipe; reject mismatched public configuration details; reject `[A,A]` combined-baseline individuals.

---

### 3. P2: identical retries are not fully recovered after concurrency or season changes

**Function:** `insertRecipeObservations`, particularly `recipe-store.js:38–46`.

**Concurrent actor sequence:**

1. Publishers A and B submit identical observations.
2. Both read the table before either inserts.
3. Both classify the observation as new.
4. One commits; the other receives a uniqueness failure.

There is no catch, reread, or comparison after the failed `db.batch`. A later same-season retry can return `duplicate`, but the racing request itself is not reconciled.

**Cross-season actor sequence:**

1. Record V exists in S1.
2. S2 becomes active and contains the same public battle.
3. Identical V is submitted to S2.
4. The global replay scan permits it because the normalized records are equal (`recipe-store.js:40`).
5. S2’s local lookup finds no duplicate, so insertion reaches the global source-run unique index and fails.

Repeating that submission in S2 follows the same failing path.

**Guardrails versus gap:** SQL prevents duplicate persistence. Sequential same-season retries are correctly returned as duplicates, and changed payloads are rejected. The defect concerns reliable classification/recovery, not demonstrated double counting.

**Smallest regressions:** Barrier-controlled concurrent identical submissions should produce one stored row and reconciled outcomes. An identical cross-season retry should receive either a deliberate duplicate result or an explicit pre-insert replay rejection—not an incidental constraint failure.

---

### 4. P2 protocol-validation defect; conditional family merging of behavioral variants

**Evidence:**

- With runtime evidence present, `deriveRecipeObservation` constructs the protocol label from `runtime.name` and `runtime.version` without validating either field (`recipe-evidence.js:31–33`).
- It does not compare that label with `metadata.synthesisProtocolVersion` when runtime evidence is present.
- Family identity excludes synthesis-prompt identity and runtime-package bytes (`recipe-observations.js:47`). Runtime hashes appear only in lineage; synthesis-prompt hashes are checked but not retained in the record (`recipe-evidence.js:26,68`).

**Minimal counterexamples:**

- Otherwise-valid complete evidence with runtime JSON `{}` yields the nonempty label `"undefined-undefined"`, which satisfies the protocol-string predicate.
- Two observations have identical configurations, rubric, instruction hash, and protocol label, but different synthesis prompts or runtime packages sharing the same name/version. Across different battles, they receive the same family ID and pass the aggregate’s recipe-equality check (`recipe-observations.js:135`).

**Guardrails versus gap:** Configuration identities, declared instruction identity, and protocol labels are included. Those protect the declared family definition, but not every possible behavioral variation.

**Confidence and assumptions:** Malformed protocol acceptance and grouping are proven. Calling the latter a merge of *distinct recipes* depends on whether the differing prompts/runtime bytes change the recipe method. Task-dependent prompt differences are ordinarily legitimate family members; contributor-order canonicalization is not inherently a bug.

**Smallest regressions:** Reject missing runtime name/version and contradictory protocol declarations. Separately define whether method-changing prompt/runtime variants require different family IDs, then test that contract. Hashing entire task prompts indiscriminately would incorrectly split cross-task families.

---

### 5. P2 conditional double-count risk: native execution identity relies on truthful run attribution

**Evidence:** Storage deduplicates `sourceRunID`, not synthesis session/export identity. `aggregateRecipeObservations` deduplicates observation IDs and battle/family pairs, not source runs or native sessions (`recipe-observations.js:129–136`; `0010_recipe_observations.sql:18`).

**Minimal actor sequence:**

1. A canonical upstream produces V1 for battle B1/run R1.
2. It produces V2 for matching-cohort battle B2/run R2, reusing the same synthesis session/export, worker exports, and judged execution.
3. V2’s observation ID is recomputed.
4. Structural admission and all SQL uniqueness keys can accept both; aggregation counts two samples.

**Guardrails versus gap:** Unchanged-run replay is blocked globally. Normal evidence derivation and full-event equality also prevent a publisher from merely editing run IDs. This counterexample therefore requires canonical-upstream misattribution or a resolver that supplies aliased lineage.

**Confidence and assumptions:** The checker’s acceptance is established; the packet does not establish that genuine native runs can share or alias this execution. This is **not a demonstrated ordinary-publisher exploit**.

**Smallest regression:** If one synthesis execution must represent only one observation, submit two otherwise-valid canonical records sharing its session/export identity under different run labels and require rejection. Otherwise document the permitted reuse and sample-count semantics.

---

### 6. Potential P1 partial persistence, but only if `db.batch` is nontransactional

**Evidence:** `insertRecipeObservations` submits multiple independent INSERT statements through one `db.batch`; its atomicity contract is not supplied (`recipe-store.js:46`).

**Minimal actor sequence:**

1. Batch A contains X and Y and passes preflight.
2. Another publisher inserts Y.
3. A executes X successfully, then Y fails uniqueness.
4. With a nontransactional adapter, X remains persisted although A receives a failed request.

**Guardrails versus gap:** All application validation occurs before writes. The revision subquery plus `admitted_revision NOT NULL` prevents an individual insertion from accepting a missing/stale matching revision (`recipe-store.js:46`; SQL line 5). Neither mechanism alone proves whole-batch rollback.

**Confidence and assumptions:** Partial persistence is **not proven**. A documented transactional adapter closes this concern.

**Smallest regression:** Force the second statement to fail and assert that no first-statement insertion remains.

## Uncertainties and discarded hypotheses

- No same-source double-count path is demonstrated through storage **with the released global unique index installed**.
- Changes outside observation-ID inputs are not silently accepted as identical retries: full normalized-record comparison rejects them (`recipe-store.js:40,43`).
- `configuration.js` and `combined-season-profile.js` are outside the packet; configuration-hash coverage, digest behavior, and canonical serialization cannot be independently audited here.
- `combined-exact.js`, `task-declaration.js`, and `combined-season-read.js` are also outside the packet. Exact scoring behavior, category definitions, and upstream battle/revision validation remain uncertain.
- Catalog reads ignore `admitted_revision` and do not bind frozen task/profile hashes to the current selected revision (`recipe-store.js:19–22`). Whether this permits stale lineage depends on whether revisions can change those meanings while retaining a battle ID.
- Resolver provenance, authorization of the canonical bypass, and database transaction guarantees are necessary external contracts.

## Release follow-up decision

**Require corrective follow-up before wider rollout or a claim of fully verified, idempotent ingestion.** Prioritize battle binding, exact cohort/baseline validation, protocol validation, and duplicate reconciliation. Resolve transactionality and execution/family identity contracts with the proposed regressions.

Audit existing rows before tightening validation: records are immutable, and stricter catalog verification could expose historical inconsistencies. This snapshot alone does not show that any such records actually exist.

MATERIAL_EVIDENCE_CONFLICT: `0010_recipe_observations.sql:15–18` says identical retries are handled before the global source-run index is reached, but `insertRecipeObservations` (`recipe-store.js:38–46`) permits an identical cross-season retry to reach that index and has no post-conflict reconciliation for concurrent retries.

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

## Prioritized findings

1. **P1 — Evidence can be attributed to the wrong battle when manifest bindings are omitted.**  
   `deriveRecipeObservation` in `recipe-evidence.js` line 29 checks `m.battleID` and `m.category` only if they are truthy. Line 30 requires archived public-battle and runtime evidence only when `m.complete === true`. Thus a manifest with no battle/category fields and `complete` false or absent is accepted without binding the run’s task to the supplied battle.

   **Counterexample:** Take valid evidence produced for battle A with those manifest fields omitted. Submit it for active battle B, whose contributor configurations, model rows, timings, and costs match A’s. The worker checks at lines 44–55 can pass; the record is then built using B’s ID and category at line 68. `verifiedRecipeObservation` checks that record against B at `recipe-observations.js` line 80, but that only confirms the attribution constructed by the verifier—it does not bind the source run to B.

   **Existing guards:** Present manifest IDs/categories must match; complete manifests require an archived battle match; contributor configs are checked against public battle models. These protect configuration matching, but not run-to-battle/task identity when the optional manifest fields are absent.

   **Severity:** High: can place valid evidence in the wrong battle’s catalog. Whether released evidence actually omits these fields is not established by the snapshot.  
   **Smallest regression:** Submit evidence with omitted `battleID`/`category` and `complete` unset against a different battle with the same model cohort; require rejection. Make the binding mandatory, or require verifiable archived-battle evidence.

2. **P2 — Family identity trusts declared versions where content identity is available.**  
   `recipeFamilyID` in `recipe-observations.js` lines 42–47 hashes configuration IDs, rubric version, synthesis protocol version, and synthesis-instructions hash. In `deriveRecipeObservation` (`recipe-evidence.js` lines 31–33, 68–69), a runtime package’s declared name/version supplies the protocol version; its byte hash is stored in lineage, but is not part of the family ID.

   **Counterexample:** Two runs have the same contributors, synthesizer, instructions, rubric label, and runtime package name/version, but different runtime package bytes that change synthesis behavior. They receive the same family ID and are grouped together by `aggregateRecipeObservations` at `recipe-observations.js` lines 134–145. The same version-label limitation applies to rubric changes that retain the same `rubricVersion`.

   **Existing guards:** Configurations are validated and their IDs rederived; instruction bytes are hashed; runtime bytes are recorded for provenance. Those guards do not distinguish changed runtime contents under an unchanged version label.  
   **Severity:** Conditional—depends on whether package contents and rubric semantics are guaranteed immutable per version.  
   **Smallest regression:** Use two behavior-distinct package snapshots with identical declared name/version and verify whether they should form separate families. If so, include the runtime hash in family identity; otherwise enforce and document immutable versioning.

3. **P2 — Concurrent identical retries are not reliably recovered as duplicates.**  
   `insertRecipeObservations` in `recipe-store.js` lines 38–46 reads existing rows and then inserts separately. The duplicate result at line 43 is produced only if a retry sees the earlier committed row. SQL uniqueness guards at `0010_recipe_observations.sql` lines 11–18 prevent double storage, but the insert path does not catch a uniqueness conflict and re-read.

   **Counterexample:** Publishers A and B submit the same event concurrently. Both read no existing row, both queue it, and one commits first. The other hits the primary-key, battle/family, or source-run unique constraint and propagates an error instead of returning `status: 'duplicate'`.

   **Existing guards:** Sequential exact retries in the same season are recognized at line 43; conflicting source-run contents are rejected at line 40; database uniqueness prevents double counting.  
   **Severity:** Reliability/recovery issue, not a demonstrated double-count issue.  
   **Smallest regression:** Synchronize two identical submissions after their existing-row reads; require one `inserted` and one `duplicate`, with no uncaught uniqueness error.

## Partial persistence and other guardrails

**Partial persistence is not proven by this snapshot.** `insertRecipeObservations` sends all new rows in one `db.batch` call (`recipe-store.js` line 46), and SQL uniqueness constraints reject conflicts. The snapshot does not establish whether the database adapter guarantees all-or-nothing batch execution. If it does not, a batch containing multiple rows where a later insert violates a unique constraint could leave earlier rows persisted despite the call failing. **Follow-up:** verify the adapter’s transaction guarantee and test rollback on a deliberate later-row constraint failure before release.

No normal-path double count is demonstrated: verified IDs are recomputed (`recipe-observations.js` line 75), aggregation rejects repeated observation IDs and battle/family pairs (lines 129–136), and the database enforces corresponding uniqueness plus global source-run uniqueness. Likewise, contributor configurations are checked against public battle models in `recipe-evidence.js` lines 44–55; the finding above concerns battle/task attribution, not a demonstrated acceptance of mismatched contributor configs. Sorting contributor IDs in the family key treats contributor order as irrelevant; whether that is a false merge depends on whether order is intended to affect recipe semantics.

The `authenticatedCanonical` path in `insertRecipeObservations` line 35 bypasses publisher-evidence derivation. It still checks the record and active season/revision, but its safety depends on that option being restricted to a trusted caller; caller authorization is outside this packet.

## Release follow-up

**Hold release pending resolution of the optional battle-binding gap** and confirmation of batch atomicity. Add the concurrent duplicate-retry regression as a recovery fix. Treat runtime-content identity as a policy decision: either bind its hash into family identity or establish immutable package/rubric versioning.

The supplied snapshot omits the database adapter and relevant dependency implementations, so transaction behavior, caller authorization, and the semantics of derived configuration IDs cannot be independently confirmed here. No tests were run.

Primary judge's stated reason

B provides materially broader supported coverage of the requested integrity boundary, especially persistent cross-season retry failure and incomplete canonical cohort validation, with minimal regressions and guardrail comparisons. This supports a clear preference rather than merely a forced slight choice; it does not establish observed corruption or implementation failure beyond the shown predicates.

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

Battle wave: c45fb52e-f319-4911-b8d9-47ec80be5c0c. Pair: brp1_15fe698df045d0c35f3b56d10e55752b311bc27c2fe68a7560e671baa3fc76cf. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.