xai / grok-4.7-efficient / 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.
xai / grok-4.7-efficient / high / high effort answer
The recipe ranking boundary is not integrity-closed. Do not sign off released observations as BattleRanks evidence until admission is fail-closed for judgment binding, native cohort coverage, and battle snapshot lineage. Unique indexes and immutability triggers stop same-season row duplication; they do not fix corrupted or mis-attributed rows already admitted.
Work was direct review of the frozen packet only. No files were edited and no tests were run.
## Prioritized findings
### 1. High — one judgment can be applied to two configurations
`deriveRecipeObservation` in `recipe-evidence.js` does not require a bijection from worker/synthesizer answers to contestants.
Guardrails that do exist: `unique(contestants,'alias')` and `unique(contestants,'answer')` (line 22); `aliases.length===1` (line 48); `contestants.length===workers.length+1` (line 22). Those stop two contestants sharing an answer. They do not stop two agents sharing one contestant answer. No consumed-alias set is tracked. `unique(rows,'configID')` (line 59) still passes.
Proven: if two agent terminal texts equal one contestant answer, both receive that alias’s metrics and one contestant score is dropped. `bestQualityIndividualConfigID`, `quality`, and the comparison baseline are then computed from the copied score (lines 48 and 66–68). Family id still covers both config ids, so the bad sample joins that recipe family.
Counterexample: workers W1 and W2 both emit text A; synthesizer emits B; packet contestants are A, B, and C. Admission succeeds. W1 and W2 share A’s score; C is ignored. A repeated refusal string is enough.
Assumption: identical terminal answers occur in production. The accept path does not depend on that frequency.
Smallest regression: two worker exports with the same terminal text and a packet of unique answers with length `workers+1`. Expect reject. Current path accepts.
### 2. High — a partial native cohort is stored as a different recipe family
`deriveRecipeObservation` (lines 16 and 34–36).
Guardrail: if any manifest child title contains `/effort-`, those children must match the provided workers. `children.length>=workers.length` only prevents a short manifest. Worker hashes are checked only for workers the caller supplied (line 58). There is no check that the synthesis input omitted dropped workers.
Proven fail-open: if no title contains `/effort-`, the cohort check is skipped. `'complete workers required'` only enforces length 2..31. A subset whose size matches `battle.models` and the judge packet becomes the recipe. `recipeFamilyID` (recipe-observations.js lines 42–47) is only the sorted contributor config ids plus synthesizer config id, rubric, protocol version, and instructions hash. That subset id is the same id as a real two-contributor recipe, so the partial run is merged into that family and ranked with it.
Counterexample: manifest children are three workers with titles that do not contain `/effort-`. Evidence and the public battle list two of them. Packet lists those two plus the synthesizer. Admission succeeds. The third native worker is not in `recipe.contributors` or `lineage.workerExports`. A later legitimate two-config observation with the same configs aggregates with it (`aggregateRecipeObservations`, lines 134–136).
Assumption: production manifests always use `/effort-` titles. The code treats that convention as optional.
Smallest regression: three manifest children, none titled `/effort-`, evidence for only two, battle length 2. Expect `incomplete native worker cohort`. Current path accepts.
### 3. High / conditional — evidence derivation can be skipped
`insertRecipeObservations` (recipe-store.js line 35): `authenticatedCanonical ? event : await verifyRecipePublisherPayload(...)`.
Publisher guardrail: `verifyRecipePublisherPayload` (lines 9–13) requires `stable(derived)===stable(event)` after `recipeEvidenceVerifier` re-derives from resolver bytes (`recipe-evidence.js` line 71). `verifiedRecipeObservation` still runs on the canonical path.
Proven: the flag skips that compare. `verifiedRecipeObservation` also does not require `lineage` (line 77 is only `if(v.lineage&&...)`), does not require judge provider/model/variant/session, and does not re-hash exports. A canonical caller can store scores and config ids with empty or unrelated lineage. Observation id does not cover those fields (`recipeObservationID`, lines 49–51), so the row looks valid.
Assumption: only a trusted caller can set the flag. That caller is outside the packet. If the flag is reachable from an untrusted publisher, this is a direct fake-observation path.
Smallest regression: `authenticatedCanonical:true` with an internally consistent record, `lineage` omitted, judge model omitted. Expect reject. Current path accepts if the numeric checks pass.
### 4. Medium-high — battle lineage is optional on the publisher path
`deriveRecipeObservation` lines 29–30.
Guardrails: if `m.battleID` / `m.category` are present they must match; if `m.complete===true`, `publicAfter` must stable-match `battle` and a runtime package is required; worker config id must equal `deriveConfigurationID(workerConfig)` and published elapsed must match native idle-created within 250ms (lines 45–50 and 55).
Proven: omitted `battleID`, omitted `category`, and omitted `complete` all pass the run-binding check. `complete:false` is rejected; `complete` undefined is not. Snapshot binding never runs. The stored `battleID` is `context.battle.id`, not a manifest claim. `recipeObservationID` does not include a battle-snapshot hash.
Counterexample: resolver returns a run whose manifest has no `battleID` and no `complete`. Workers match the publisher-selected active battle’s model, variant, config id, and elapsed within 250ms. No `publicAfter`. Admission attributes that run to the selected battle. A second run with a new `sourceRunID` and the same family is then a conflicting observation on that battle, so the first bind sticks.
Assumption: `resolveEvidence(battleID, sourceRunID)` might already enforce the pair. That resolver is outside the packet. This function does not.
Smallest regression: manifest without `battleID` and without `complete`, no `publicAfter`, workers matching the claimed battle. Expect reject. Current path accepts.
### 5. Medium — current battle list is not the admitted snapshot; cohort check is not bijective
`readRecipeCatalog` (recipe-store.js lines 19–22) and `verifiedRecipeObservation` (recipe-observations.js line 80). Insert stores `admitted_revision` (line 46) and never reads it back.
Guardrails: missing battle id throws on insert (line 35). Read re-checks id, category, `battle.models.length===recipeConfigs.size`, and battle config ids ⊆ recipe config ids. Immutability triggers block SQL updates.
Proven gaps:
- Read uses the current season battle map. `if(!battle)continue` drops rows with no error and no skip count. Dropped rows never reach the family-stability check.
- Duplicate battle ids: `new Map(selected.battles.map(...))` (read line 21, insert line 34) keeps the last object only.
- Line 80 does not require recipe config ids ⊆ battle config ids. `battle.models=[{configID:A},{configID:A}]` has length 2 and passes against contributors `{A,B}`.
Publisher derive still looks up each worker config id in `battle.models`, so the duplicate-id accept is not the normal publisher path. It is proven for read revalidation and for `authenticatedCanonical`.
Counterexample: admit `{A,B}` while the battle lists A and B. Replace the active battle id with two A rows, or drop the battle id. First case revalidates as a match. Second case omits the sample and still returns `available:true`.
Assumption: season battles are immutable for a season id. `combined-season-read.js` is outside the packet. The code does not enforce that.
Smallest regression: `verifiedRecipeObservation` with `battle.models` config ids `[A,A]` and recipe config ids `{A,B}`. Expect cohort mismatch. Current check accepts. Second case: stored row whose `battleID` is absent from `selected.battles`. Expect hard failure or an explicit omission. Current read skips it.
### 6. Medium — duplicate recovery does not match the storage comment; concurrent insert is check-then-act
`insertRecipeObservations` lines 36–46 versus SQL lines 15–18.
Guardrails that hold for a sequential same-season identical retry: batch source-run uniqueness (line 37); season-scoped `byID` / `byPair` (lines 41–44); stable compare before `status:'duplicate'`; SQL primary key `(season_id, observation_id)`; unique `(season_id, battle_id, recipe_family_id)`; global unique index on `json_extract(evidence_json,'$.sourceRunID')`; update/delete triggers. `aggregateRecipeObservations` (lines 131–132) throws on a duplicate id or battle:family pair, so a read does not silently double-count duplicate rows.
Proven recovery holes:
- Existing-row lookup is season-scoped. Replay does not treat a stable-equal cross-season source run as a duplicate (line 40 only throws when stable differs). Insert then hits the global unique index and throws. The SQL comment says identical retries are handled before that index. That is false for another season and for two concurrent callers that both observe no existing row.
- Constraint failures are not mapped to `duplicate`.
- The select-check-insert sequence is not one transaction. Overlapping batches rely entirely on the unique indexes.
- Family recipe equality is enforced on the incoming batch and on catalog read, not on incoming versus stored rows (line 36 versus lines 134–135). A later read throws `Recipe configuration changed within family` and fails the whole catalog, or skips the conflicting row if its battle was dropped (finding 5).
No proven same-season double insert of one observation id while those unique indexes are present. Partial row writes are not possible: one INSERT writes the columns and `evidence_json` together. Partial batch commit is unproven and depends on `db.batch` atomicity, which is outside the packet.
Counterexample: admit run R in season S1; activate S2 that still contains that battle id; resubmit the same payload. Expect `duplicate` per the SQL comment. Current code attempts INSERT and the source-run index aborts. Parallel identical submits: one insert, the other an unhandled constraint error rather than `duplicate`.
Assumption: battle ids can recur across seasons. If they cannot, the cross-season case fails earlier with `Recipe battle missing from active season`.
Smallest regression: two overlapping `insertRecipeObservations` calls with the same verified payload, and one cross-season resubmit. Expect one `inserted` and one `duplicate`, no second row.
### 7. Medium-low — distinct task, profile, and cost contexts share one family and one headline rank
`recipeFamilyID` lines 42–47. Aggregate lines 138–147.
Proven exclusions from family id: `taskSHA256`, `profileSHA256`, category, judge export, `policyVersion`, `costScenarioID`. `deriveRecipeObservation` hardcodes `rubricVersion:'quality-metrics-v3'` and does not set `costScenarioID` or `policyVersion` (line 68). Within-family stability compares `recipe` only (contributors, synthesizer, protocol), not `frozen`.
Proven pooling: top-level `quality` summarizes every category, and row sort uses that pooled uplift (line 147), while `byCategory` keeps the split. Mean reference cost averages stored USD values with no rate-card id. Detail rows still carry per-observation `frozen` via `publicObservation`.
This is identity as implemented, not a hash collision. It becomes a wrong merge only if a recipe is supposed to be task- or price-specific. Quality weights are pinned to 90/5/5 on the derive path (recipe-evidence.js line 28), so score pooling is narrower than cost pooling.
Smallest regression: two observations, same config ids and protocol, different `taskSHA256` and categories. Expect two families, or a headline rank that does not blend categories. Current code returns one family and sorts on the blend.
## Working guardrails
- Publisher path re-derives and stable-compares before trust (`verifyRecipePublisherPayload`).
- Family id rejects duplicate contributor config ids and a synthesizer config id that collides with a contributor.
- Observation id recomputation rejects a mismatched id (`verifiedRecipeObservation` line 75).
- Same-season sequential identical retry returns `duplicate` and does not insert.
- One observation per season, battle, and family, plus one global `sourceRunID`, when the released indexes exist.
- Read aggregation throws on duplicate ids rather than summing them twice.
- Derive is all-or-nothing before any write. A dual-typed `configurationDispatch` array fails the synthesizer config check rather than binding the array as a model.
- SQL update/delete abort. Insert bind order matches the column list (recipe-store.js line 46).
## Discarded
- Silent merge of two different observation ids for one source run: replay or the unique index rejects the second.
- Score-only changes under the same observation id: stable conflict throws rather than merging.
- Insert column/JSON swap: bind order matches the SQL column list.
- In-memory sort changing family id: the digest sorts config ids itself; observation id does not depend on array order.
- Practical SHA-256 collisions: not treated as a bug. `digest` and `deriveConfigurationID` are outside the packet, so injectivity is an assumption, not a proof.
## Missing evidence
`configuration.js`, `combined-season-profile.js` (`digest`, `stable`), `combined-exact.js`, `combined-season-read.js`, and `task-declaration.js` are outside the packet. Consequences: config-id injectivity, canonical equality, season immutability, and whether battle ids survive a season change are unverified. `db.batch` atomicity and the caller that sets `authenticatedCanonical` are also unverified. Those gaps affect reachability of findings 3, 5, and 6, not the control-flow facts above.
## Release follow-up
No-go for integrity sign-off. Keep the immutable table and unique indexes, but do not use admitted rows for ranking until these are fixed and covered by regressions: bijective answer binding; fail-closed native cohort coverage without a title-substring opt-in; mandatory manifest battle id and published-snapshot match; bidirectional cohort check against the admitted revision’s battle snapshot, with read failing closed on a missing battle; admission-time family-body check against stored rows; duplicate recovery that returns `duplicate` for concurrent and cross-season identical source runs without depending on an unhandled unique-index abort. Treat `authenticatedCanonical` as an internal trust boundary and keep it off any publisher surface.
Next useful action: add the regression scenarios above and fix findings 1–2 before any catalog consumer treats `averageRelativeUpliftPct` as recipe evidence.
MATERIAL_EVIDENCE_CONFLICT: SQL lines 15–17 say identical retries are handled by publisher admission before the global source-run unique index; `insertRecipeObservations` lines 38–46 only dedupe against the active season, so a cross-season identical source run and any concurrent identical submit reach that index and throw instead of returning `duplicate`.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 offers materially more useful integrity assurance by exposing a supported score-to-configuration misattribution path and specifying a focused regression that A omits. Its broader coverage of concurrent and cross-season duplicate recovery further supports the choice. This is a clear comparative advantage, not merely a forced slight preference, although an independent review could reasonably narrow B's severity assessments and release-blocking scope.
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_6d42e1dbe534ab5b21d8a3d3c5cd8328061e4b33483ee004b1b7b3fc86f6c327. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.