← Model losses

Head-to-head comparison

openai / gpt-6-astra / high / high 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-astra / high / high effort answer

## Decision

**Request release follow-up before the next recipe publication.** The strongest gaps are incomplete battle/run lineage binding and duplicate recovery. The supplied code also admits malformed combined baselines through its privileged canonical path.

This was a direct, independent static review of the frozen packet. **No tests were run.** Findings below distinguish demonstrated code behavior from deployment assumptions.

## Boundary traced

- **Family identity:** `recipeFamilyID` hashes sorted contributor configuration IDs, synthesizer configuration ID, rubric version, protocol version, and instructions hash. It rejects repeated configurations and recomputes their identities (`recipe-observations.js:42–47`).
- **Observation identity:** `recipeObservationID` hashes battle ID, family ID, source run ID, and judge export hash (`recipe-observations.js:49–50`). It is not a digest of the entire observation.
- **Evidence admission:** `deriveRecipeObservation` checks source hashes, judge receipt and answers, profile/task consistency, configurations, timing, costs, and manifest exports (`recipe-evidence.js:15–69`). Normal publication additionally requires exact equality between the submitted event and derived evidence (`recipe-store.js:9–13,35`).
- **Structural admission:** `verifiedRecipeObservation` projects an explicit schema, recomputes identities, checks accounting, and canonicalizes arrays (`recipe-observations.js:64–110`). `authenticatedCanonical` bypasses evidence derivation but still invokes this validator (`recipe-store.js:28–35`).
- **Storage:** uniqueness covers observation and battle/family within a season, plus source run globally. Updates and deletes are prohibited (`0010_recipe_observations.sql:11–22`).
- **Recovery:** already-visible, identical rows in the selected season return `duplicate`; conflicting records fail. Inserts happen afterward in one `db.batch` call (`recipe-store.js:38–46`).

## Prioritized findings

### 1. High — Native evidence can be attributed to an unrelated public battle

**Functions/evidence**

In `deriveRecipeObservation`:

- Manifest battle/category/root bindings are optional (`recipe-evidence.js:29`).
- Archived public battle equality is required only when `m.complete === true` (`:30`).
- Profile task identity is checked against supplied task bytes, not against the public battle (`:27`).
- Root question comparison is conditional on that question being present (`:41`).
- The resulting record receives `battleID` and `category` directly from the supplied battle (`:68`).

`verifiedRecipeObservation` then checks battle ID/category and configuration membership, but no task/profile lineage (`recipe-observations.js:80`).

**Minimal counterexample**

1. Take otherwise-valid native evidence for task/battle A.
2. Its manifest omits `battleID`, `category`, and `complete`.
3. Supply public battle B, with the same contributor configurations, matching durations and compatible costs, but a different task.
4. Submit the observation derived for B.

The evidence continues to prove the supplied native task and sessions, while the returned record identifies B. No shown check compares B’s task identity with that evidence.

**Guardrails and remaining gap**

The worker configuration, elapsed-time, and cost checks (`recipe-evidence.js:45–55`) substantially constrain substitution. A complete archived snapshot also prevents this example. Nevertheless, matching operational metrics do not establish task or battle identity, and the stricter archival path is optional.

**Confidence/assumptions**

The missing binding is proven. Practical reachability depends on the trusted resolver admitting these incomplete/legacy manifests and on eligible battles with matching operational data. Resolver authentication and season validation are outside the packet.

**Smallest regression**

Use valid evidence with optional manifest bindings absent and two battles differing in ID/task but sharing worker data. Derivation against the unrelated battle should fail.

**Smallest correction**

Require an authoritative battle/task binding for every admitted evidence format. Legacy formats need an explicit trusted mapping rather than inference from cohort metrics.

---

### 2. High, conditional — One synthesis execution can count twice under different root run IDs

**Functions/evidence**

`deriveRecipeObservation` permits:

```js
m.runID === (metadata.runID ?? root.info?.metadata?.agentTeamsV2?.runID)
```

(`recipe-evidence.js:29`).

Consequently, when synthesis metadata lacks `runID`, the root determines the source run. The remaining checks establish:

- A root tool occurrence associated with that run (`:41`);
- Worker membership and hashes in the supplied manifest (`:34–36,58`);
- Synthesis export/result hashes (`:59`).

They do **not** require those child sessions to identify that root run or enforce cross-observation uniqueness of the synthesis execution.

Storage and aggregation deduplicate run strings and battle/family pairs—not synthesis session IDs or export hashes (`recipe-store.js:36–40`; SQL `:11–18`; `recipe-observations.js:129–136`).

**Minimal actor sequence**

1. A synthesis export lacks `metadata.runID` but otherwise has valid profile, dispatch, prompt, and instruction metadata.
2. Two root/manifest packages identify different runs R1 and R2, each referencing the **same worker and synthesis exports**.
3. Both root admission timestamps precede those workers; all supplied hashes and result references match.
4. Publish against two matching public battles B1 and B2 using the incomplete-manifest path from finding 1.

The records have different observation IDs, battle/family pairs, and source run IDs. Both can persist and contribute separate samples despite sharing the same synthesis execution.

**Guardrails and remaining gap**

An explicit synthesis `metadata.runID` prevents this particular fallback substitution. The global source-run index prevents reuse of the *same* run identifier, including concurrent submissions. Neither guard establishes that different root IDs refer to different synthesis executions.

**Confidence/assumptions**

The accepted fallback and missing execution-uniqueness checks are proven. Availability of such packages through the trusted resolver is unproven. This is not a claim that an unauthenticated client can freely manufacture trusted exports.

**Smallest regression**

Two otherwise-valid bundles with different root run IDs and battle IDs, but identical worker/synthesis exports and no synthesis run ID. The second admission should fail as reused execution evidence.

**Smallest correction**

Require authoritative synthesis-to-run binding. If legacy fallback remains supported, separately prevent attribution of the same synthesis execution to multiple observations.

---

### 3. Medium — Identical duplicate submissions are not reliably recoverable

**Function/evidence**

`insertRecipeObservations` reads existing rows before inserting (`recipe-store.js:38–46`). There is no catch/re-read reconciliation after an insert uniqueness failure.

Its global replay scan rejects a matching source run only when the canonical evidence differs (`:39–40`), whereas its duplicate lookup is restricted to the selected season (`:38,41–43`).

#### A. Concurrent identical submissions

**Sequence**

1. Publishers P and Q both read before either has inserted V.
2. Both classify V as new.
3. P inserts successfully.
4. Q receives a uniqueness error instead of `duplicate`.

A later same-season retry can recover because the row is then visible.

#### B. Identical retry after a season change

**Sequence**

1. V is persisted in S1.
2. S2 becomes active and contains the same compatible battle.
3. Resubmit exactly V.
4. The global scan accepts its equality; S2’s maps contain no V.
5. Insert fails on the global source-run index.

Repeated retries cannot resolve this while S2 remains active.

**Guardrails and remaining gap**

The database correctly prevents duplicate storage. This is a recovery/API gap, **not demonstrated double counting**. The SQL comment says identical retries are handled before the unique index (`0010_recipe_observations.sql:15–18`), but the shown admission logic does not cover these cases.

**Confidence**

High for both control-flow outcomes, assuming the declared unique indexes are installed.

**Smallest regressions**

- Synchronize two identical submissions immediately after their reads; verify one insertion and one resolved duplicate response.
- Insert in S1, activate compatible S2, retry V; verify a deliberate, stable cross-season outcome rather than a raw constraint failure.

**Smallest correction**

Reconcile uniqueness conflicts by re-reading and comparing canonical evidence. Define cross-season replay behavior explicitly; acknowledge the existing attribution or return a specific replay result without attempting another insertion.

---

### 4. Medium — Canonical validation permits duplicate contributors in the combined baseline

**Function/evidence**

`verifiedRecipeObservation` validates combined-baseline length and membership but does not require unique or complete configuration coverage (`recipe-observations.js:83–85`).

This contrasts with explicit uniqueness checks for primary individuals, worker costs, and worker timing (`:76–78,93,99`).

**Minimal counterexample**

For contributors A and B, retain valid primary quality and accounting data, but use:

```js
comparisonBaseline.individuals = [
  {configID: A, eligible: true, scorePoints: 40},
  {configID: A, eligible: true, scorePoints: 40}
]
comparisonBaseline.combined = {
  recipePoints: 80,
  bestIndividualPoints: 40,
  pointDelta: 40,
  relativeUpliftPct: 100
}
```

Both entries have allowed IDs, the length is correct, and `checkedPair` computes the maximum from this malformed list. B is omitted.

**Impact**

The comparison can show inflated uplift by omitting the stronger contributor. This duplicates a baseline entry, **not an observation sample**.

**Guardrails and reachability**

Normal `deriveRecipeObservation` constructs its baseline from rows with unique configuration IDs (`recipe-evidence.js:59,66,68`), and submitted/derived equality protects that path.

The demonstrated gap applies to `authenticatedCanonical` admission (`recipe-store.js:35`) and structural validation of persisted rows (`:22`). Who may invoke that privileged path is outside the packet.

**Smallest regression/correction**

Submit `[A,A]` for an `[A,B]` recipe through canonical validation; require rejection. Add set-size/set-equality checks matching the primary-individual validation.

---

### 5. Conditional semantic gap — Family identity collapses role/order differences

**Functions/evidence**

`recipeFamilyID` sorts contributor IDs before hashing (`recipe-observations.js:44–47`), and admission sorts contributors before aggregation (`:104`).

No contributor role, worker assignment, or worker-prompt identity is represented in the family schema (`:20–24`). Evidence derivation checks worker answers and operational data but does not bind their user assignments (`recipe-evidence.js:43–58`).

**Minimal counterexample**

- Recipe X: A reviews correctness; B reviews performance.
- Recipe Y: A reviews performance; B reviews correctness.
- Same configurations, synthesizer, rubric, protocol version, and synthesis-instructions hash.

Both produce the same family ID. Their canonical recipe objects can also be identical, so aggregation’s within-family equality check does not distinguish them (`recipe-observations.js:135`).

**Assessment**

The collision is proven; whether it merges *distinct recipes* depends on the intended recipe definition. If contributors are deliberately an unordered configuration set, this is expected behavior. The packet supplies no role-sensitive identity contract.

Task/profile omissions alone are not defects: families reasonably span different tasks and observations.

**Smallest regression/follow-up**

Create the role-swapped pair and settle the expected identity. If roles define recipes, include a stable role/assignment-protocol identity. Otherwise document that family statistics pool such variations.

## Partial persistence: not established by this packet

`insertRecipeObservations` validates the entire batch before making its sole write call (`recipe-store.js:35–46`). This prevents validation errors from leaving earlier rows inserted.

However, atomic rollback depends on the external `db.batch` contract. The SQL constraints and `RAISE(ABORT)` triggers do not themselves prove rollback of earlier statements in a multi-statement operation.

**Conditional counterexample:** a sequential, nontransactional adapter inserts A, then B fails because another publisher just inserted B; the call rejects with A already persisted. With a transactional batch implementation, this counterexample rolls back.

**Smallest regression:** force a uniqueness failure on the second statement of a two-row batch and confirm the first is absent. Confirm the production adapter’s transactional contract before classifying this as a defect.

## Limits and rejected stronger claims

- No demonstrated cryptographic family-hash collision exists.
- The shown normal publisher path cannot freely substitute arbitrary scores: evidence derivation and exact event equality are substantial guardrails.
- Same-source-run duplicate persistence is blocked by the global unique index when installed.
- Configuration digest coverage, canonical serialization, arithmetic, permitted categories, and active-season validation depend on the supplied packet’s external dependencies: `configuration.js`, `combined-season-profile.js`, `combined-exact.js`, `task-declaration.js`, and `combined-season-read.js`.
- Resolver provenance, canonical-path authorization, installed migration state, and database transaction guarantees are not shown. These limit exploitability conclusions, not the identified local checks.

## Next useful action

Prioritize lineage regressions **1–2**, then duplicate recovery **3**. Add the small baseline uniqueness correction, confirm batch atomicity, and settle role-sensitive family semantics.

For released data, inspect repeated synthesis execution identities across different source runs and identify admissions lacking authoritative battle bindings. The packet demonstrates acceptance gaps; it does **not** establish that stored production observations are already corrupted.

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 more actionable coverage of the requested integrity boundary, especially a demonstrable canonical-validator counterexample and persistent cross-season duplicate-recovery failure. This supports a clear preference rather than merely a forced stylistic choice. The judgment does not establish deployed corruption or prove every conditional scenario reachable; A's runtime identity analysis remains a substantive countervailing benefit.

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_0294cb71caf00efe02993c6ab32ab2589a8d2c0046093596a6802912f1027a89. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.