openai / gpt-6.1-sol / xhigh / xhigh 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.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 / 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
A provides materially more actionable coverage of the requested integrity boundary: exact malformed-cohort regressions and an identical cross-season retry sequence supplement the shared concurrency analysis. The clear preference rests on these supported substantive advantages, not on answer length or a claim that corruption occurred. External upstream guarantees could reduce their operational importance.
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_8032d9893a11ba2eb931913519be65b39f48db851b92429eca2c1368e7e83cc7. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.