← Model losses

Head-to-head comparison

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

## Prioritized findings

1. **The family identity may merge recipes that differ in contributor order.**  
   `recipeFamilyID` sorts contributor configuration IDs in place before hashing (`recipe-observations.js:42–47`). This deliberately treats contributor order as irrelevant. If recipe roles or execution order are meaningful, two recipes with the same contributors but different assignments/order receive the same family ID. The validator preserves contributor configurations but does not establish that order is semantically irrelevant (`recipe-observations.js:104–105`).  
   **Counterexample:** submit the same two contributors in reversed role/order, with all other family fields equal. They hash to the same family. Whether that is a real collision depends on omitted execution semantics.  
   **Guardrails:** configuration IDs are validated and duplicates rejected; aggregation rejects different serialized recipe configurations within one family (`:135`).  
   **Severity:** medium, conditional on order/role mattering.  
   **Regression:** verify either that reversed order must produce different families, or explicitly assert it is equivalent.

2. **An observation can be accepted without matching the active season’s revision at database insertion.**  
   `insertRecipeObservations` checks season/revision before verification only for `authenticatedCanonical` input (`recipe-store.js:31–35`). The insert uses a subquery for the active matching revision (`:46`), but no affected-row check is shown. If the active revision changes between the initial read and batch insert, the subquery may yield `NULL` for a `NOT NULL` column and fail; if the database’s batch behavior is not atomic, earlier inserts may remain.  
   **Actor sequence:** read active revision R1, another actor activates R2, batch attempts inserts bound to R1. Exact persistence outcome depends on database/batch transaction semantics, not supplied here.  
   **Guardrails:** canonical submissions compare revision (`:33`); insertion binds both season and revision (`:46`).  
   **Severity:** medium; partial persistence is plausible but not proven.  
   **Regression:** force a revision change between read and batch; assert no rows persist and a retry can succeed.

3. **Duplicate recovery is strict equality, not unconditional idempotence.**  
   Existing rows are checked by observation ID or `(battle, family)`; a matching row is returned as duplicate only if the full verified evidence is stable-equal (`recipe-store.js:41–44`). Thus a retry with changed non-identity evidence conflicts rather than recovering as a duplicate. This is defensible protection against altered evidence, but means retries are idempotent only when the complete canonical record is unchanged.  
   **Counterexample:** same battle, family, run, and judge export, but a changed lineage field; it hits the prior pair/ID and fails as “Conflicting recipe observation.”  
   **Guardrails:** observation identity includes battle, family, source run, and judge export (`recipe-observations.js:49–51`); cross-season source-run replay is checked (`recipe-store.js:38–40`), and SQL uniquely constrains source run (`0010_recipe_observations.sql:15–18`).  
   **Severity:** low to medium operational risk.  
   **Regression:** submit identical payload twice, then a same-identity payload with one changed lineage field; assert duplicate for the first retry and explicit conflict for the altered retry.

4. **Potential double-counting from same-batch family conflicts is guarded, but source-run uniqueness races remain database-dependent.**  
   Incoming events are aggregated before insertion, rejecting repeated observation IDs or the same battle/family (`recipe-observations.js:129–136`; `recipe-store.js:36–37`). Existing source-run reuse is checked across stored rows (`recipe-store.js:38–40`), and SQL has a global unique index on `sourceRunID` (`0010_recipe_observations.sql:18`). Concurrent publishers can still race past the read checks; the unique index prevents both rows from persisting, but the caller’s failure/rollback behavior depends on `db.batch` semantics.  
   **Severity:** low for integrity; medium for partial-write risk.  
   **Regression:** concurrent inserts for one source run; assert at most one row and no partial batch residue.

## Lineage and verification assessment

The evidence derivation binds judge receipt, packet, contestants, scores, profile, task, run, manifest, worker exports, configurations, timing, and published worker entries (`recipe-evidence.js:18–59`). It also verifies the battle ID/category when present in the manifest and checks completed public-battle snapshots (`:29–30`). The standalone verifier checks battle ID/category and cohort membership (`recipe-observations.js:73–80`).

A specific limitation: the manifest’s `battleID` and `category` checks are conditional on those fields being present (`recipe-evidence.js:29`); the later battle check binds the derived record to the supplied battle, but does not prove the manifest itself carried those fields. This is not evidence of accepting mismatched lineage when fields are present; it is weaker provenance when they are absent. The outside-packet dependencies (configuration derivation, canonical digest, season read, and database batch implementation) prevent confirming their internals or atomicity.

## Release follow-up

**Do not block release solely on a demonstrated recipe merge or double count:** the supplied code has strong identity, validation, and uniqueness guardrails, and no unconditional integrity break is proven. Before release, add regression coverage for concurrent source-run submissions and active-revision changes during insertion, and document whether contributor ordering is semantically irrelevant. Treat database batch atomicity and the family-order assumption as unresolved until verified.

Primary judge's stated reason

B provides a clear task-relevant advantage: maintainers receive reproducible unchanged-retry failure scenarios and a concrete canonical-validation gap, each paired with existing protections and small regressions. This is a supported coverage and actionability difference, not merely a forced slight preference. It does not prove production corruption or make B's conditional lineage risks unconditional.

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