← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / max / max effort preferred over openai / gpt-6-astra / low / low effort · close 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

Independently inspect the repository and advise implementation plan for the user's requested additive display-only frozen reference cost attachment. Trace pinned readActiveCombinedSeason(s), private combined_season_cohorts exact lookup, cohortSHA/body and verified original profile, outcomesFromRecords/prospectiveCombinedCohort auth, sourceOutcomeKeys/public_events exact bounded reads, recovery/accountingRecovery behavior, exported designInput validation/costFraction and public serializer/UI. Scope only new src/combined-reference-cost.js, src/combined-public-read.js, optional src/combined-season.js and meaningful tests. Preserve immutable stored/public history, estimates, scores/ranks/Elo; never write; never query latest annotations or leak private metadata; auth failure yields unavailable attachment, snapshot integrity failures keep 503. Return file/function findings, test plan, uncertainty; do not edit or dump private evidence.

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

## Recommendation

Add a **fail-closed, read-only attachment** after existing snapshot validation, without changing historical data or ranking calculations.

This is a direct, source-independent assessment. No repository contents were supplied, so the locations below are requested inspection points—not verified implementation findings.

### Proposed file/function plan

| Location | Required behavior |
|---|---|
| `src/combined-public-read.js`: `readActiveCombinedSeason(s)` | Capture each active snapshot once. Carry its pinned identifiers through attachment resolution; never reread “active” or select a newer cohort/profile. Preserve existing integrity checks and their **503** behavior. |
| New `src/combined-reference-cost.js`: cohort resolution | Read `combined_season_cohorts` using the snapshot’s exact identity. Verify `cohortSHA` against the authoritative body using existing canonicalization/hash rules. Obtain and verify the **original profile**, not a current replacement. |
| New helper: event resolution | Derive `sourceOutcomeKeys` only from authenticated frozen evidence. Validate their shape and limits, then perform exact, bounded `public_events` reads. Preserve any order or multiplicity required by existing authentication. No scans, latest annotations, or fallback searches. |
| `outcomesFromRecords` / `prospectiveCombinedCohort` | Reuse existing authorization rules to establish that the retrieved records and original profile belong to the pinned cohort. Authentication failure yields an unavailable attachment—not partially trusted costs. |
| Optional `src/combined-season.js` exports | If needed, export and reuse the existing `designInput` validator and `costFraction` calculation. Do not duplicate validation, relax accepted inputs, change arithmetic, or alter existing callers. |
| Public serialization | Explicitly allowlist the minimal display attachment. Exclude cohort bodies, original profiles, source keys, hashes, private metadata, and internal failure details. Preserve every preexisting public field. |
| Public UI contract | Available and unavailable states must be distinguishable; unavailable must not appear as zero cost. Verify existing UI compatibility. UI implementation outside the permitted files requires separate authorization. |

**Critical authentication question:** Do the existing hash/profile/reconstruction rules bind the **cost-relevant `designInput`**, or only outcome identities and scores? An exact event lookup and a matching reconstructed cohort do not authenticate fields omitted from that reconstruction. If cost inputs remain mutable or unauthenticated, return unavailable rather than claim a frozen reference.

### Error and recovery boundaries

- Preserve **503** for authoritative snapshot/body/hash integrity failures. Do not wrap the entire reader in a catch that converts these into unavailable attachments.
- Convert attachment-specific authorization or provenance failures into unavailable, using narrow error handling.
- Preserve existing `recovery` and `accountingRecovery` output and behavior. A recovery marker alone neither authorizes nor necessarily disqualifies the attachment.
- For recovered reads, require the same frozen provenance. If recovery lacks that evidence, return unavailable; do not reconstruct history from latest data.
- Do not invoke write, repair, publication, annotation-update, or snapshot-materialization paths.
- Validate `designInput` before calculation. Preserve existing `costFraction` semantics, including legitimate zero values; do not invent defaults, clamps, or replacement estimates.

## Meaningful test plan

1. **Pinned happy path:** exact cohort and event records, verified original profile, authorized inputs, expected attachment.
2. **Pinning race:** active season/profile changes after the initial read; attachment still uses the captured snapshot. Cover plural reads independently.
3. **Authentication failures:** missing events, incorrect source associations, invalid original profile, and reconstruction mismatch produce unavailable where they are attachment-only failures.
4. **Integrity failures:** tampered cohort body/SHA and existing snapshot invariant violations retain 503.
5. **Cost-input binding:** alter only cost-relevant `designInput`. Authentication must reject it, or the attachment must be unavailable if those fields are not authenticated.
6. **Validation:** exercise existing boundary rules, malformed inputs, and valid zero cost. Invalid inputs must not reach calculation.
7. **Recovery:** cover `recovery` and `accountingRecovery`, both with adequate provenance and without it; assert no repair writes.
8. **Bounded access:** instrument storage calls to reject scans, latest-annotation queries, unexpected IDs, excessive reads, and all write methods.
9. **Regression/privacy:** compare public output before and after, excluding only the attachment. Estimates, scores, ranks, Elo, history, and recovery fields remain unchanged; serialized output contains no private evidence.
10. **Display contract:** unavailable does not render as zero, `NaN`, or an authoritative historical estimate.

## Alternatives and discarded approaches

- **Latest annotations:** incompatible with a frozen attachment.
- **Persisting or backfilling costs:** incompatible with read-only scope and immutable history.
- **Recomputing rankings with reference costs:** exceeds display-only scope.
- **Blanket exception suppression:** incorrectly hides snapshot-integrity failures.
- **Treating exact IDs as sufficient authentication:** unsafe unless cost inputs are demonstrably bound to frozen evidence.

## Missing evidence and next action

Unverified dependencies are the snapshot/cohort schema, canonical hashing rules, original-profile verification, reconstruction coverage, recovery implementation, validator exports, and serializer/UI contract.

Next, inspect those definitions and their tests read-only. **First establish whether frozen evidence authenticates cost inputs**; that determines whether an available attachment is implementable within the permitted scope. Confidence is high in these boundaries, but repository-specific conclusions remain conditional.

openai / gpt-6-astra / low / low effort answer

## Conclusion

**Recommended design: a read-only, fail-closed attachment computed from the active snapshot’s exact frozen provenance.** Authentication or reference-cost failures should make only the attachment unavailable; existing snapshot-integrity failures must retain their 503 behavior.

This was an independent, direct assessment. No repository source or tool results were supplied, so the locations below are **inspection targets, not verified findings**. Confidence is high in the required boundaries, conditional in implementation details.

## Implementation plan and trace targets

| Location / function | Required trace and proposed behavior |
|---|---|
| `src/combined-public-read.js`: `readActiveCombinedSeason(s)` | Identify where active season identifiers and snapshot contents become pinned. Resolve reference costs using those same pinned values, without rereading an active pointer or mixing generations. Preserve existing integrity validation and 503 propagation before adding the attachment. |
| Private `combined_season_cohorts` lookup | Derive an exact document lookup from authenticated snapshot provenance. Never search for the latest cohort or annotations. Confirm document identity, season binding, and the relationship between its body and `cohortSHA` using the existing canonicalization rules. |
| Cohort body / original profile | Authenticate the original frozen profile through the established provenance chain. A matching body hash alone does not establish authorization or prove that the profile is the original one. Do not substitute a current profile. |
| `outcomesFromRecords` / `prospectiveCombinedCohort` | Determine whether these functions provide the necessary reconstruction and authorization checks and whether they are pure. Reuse applicable checks without invoking publishing, persistence, or ranking mutation. A reconstructed cohort must be bound to the pinned cohort, not merely internally consistent. |
| `sourceOutcomeKeys` / `public_events` | Validate the frozen key list before I/O; perform exact, bounded document reads only. Enforce existing identity and provenance relationships, limits, duplicate rules, and required ordering. Missing or unauthenticated inputs yield an unavailable attachment, with no broader-search fallback. |
| `recovery` / `accountingRecovery` | Inspect how recovered outcomes represent original records and accounting evidence. Follow established authenticated recovery semantics; do not assume a recovered record has the same public-event correspondence as an ordinary outcome. Never supplement missing evidence from recent annotations. |
| Exported `designInput` validation / `costFraction` | Locate and reuse the actual exported validation and cost calculation contracts. Compute only from authenticated original inputs. Reject invalid or non-finite results according to that contract; preserve legitimate zero values. Do not independently invent fraction units, denominator rules, or rounding. |
| Public serializer / UI | Add an explicitly allowlisted attachment to the response. Expose only approved display values and availability state—not cohort bodies, profiles, source keys, authorization evidence, or diagnostic errors. Confirm whether existing UI code can display it within the allowed file scope. |

### Proposed responsibilities

**New `src/combined-reference-cost.js`**
- Own frozen-reference resolution, authentication, input validation, and cost computation.
- Accept pinned provenance and narrow read dependencies.
- Return a minimal available/unavailable result.
- Keep internal diagnostics separate from the public result.
- Expose no write path.

**`src/combined-public-read.js`**
- Invoke the helper after existing snapshot verification.
- Attach the result to a newly constructed public response.
- Preserve stored snapshots, existing public history, estimates, scores, ranks, and Elo.
- Isolate attachment failure handling from snapshot-integrity handling; avoid wrapping both in a catch that converts 503 into success.

**Optional `src/combined-season.js`**
- Change only if a necessary pure validator or authentication helper needs exporting.
- Verify exports have no effect on generation or persistence behavior.

## Meaningful tests

1. **Authenticated frozen reference:** expected display cost using the verified original profile and exact source events.
2. **Pinning race:** change the active pointer during a read; the result remains tied to the initially pinned snapshot. Cover singular and plural readers.
3. **Authentication failures:** wrong profile binding, inconsistent reconstructed cohort, missing event, or unauthorized outcome produces an unavailable attachment without exposing evidence.
4. **Integrity boundary:** existing snapshot corruption still produces 503. Explicitly classify cohort hash/body failures according to the established integrity contract.
5. **Exact bounded reads:** record requested document paths; assert no collection scan, latest-annotation query, fallback lookup, or unbounded fan-out.
6. **Recovery fixtures:** cover authentic `recovery` and `accountingRecovery` cases plus missing or mismatched recovery evidence.
7. **Validation and calculation:** exercise the actual exported validator and `costFraction` contract, including zero and invalid/non-finite inputs.
8. **Noninterference:** freeze input objects, compare all pre-existing response fields, and assert zero writes. Estimates, ranking fields, and historical payloads remain identical.
9. **Serialization:** verify the public attachment allowlist and absence of private provenance in successful and unavailable responses.

## Alternatives and unresolved evidence

- **Reject:** computing from current annotations, trusting public-event existence alone, or treating a self-consistent cohort hash as sufficient authentication.
- **Reject:** recomputing stored results or persisting the attachment; these exceed display-only scope.
- **Unresolved:** exact field names, lookup identifiers, hashing rules, authorization contracts, recovery semantics, and public attachment schema require source inspection.
- **Important boundary:** whether cohort body/hash corruption is already a snapshot-integrity failure cannot be determined here. Preserve the existing classification rather than automatically downgrading it.
- **UI dependency:** if rendering requires edits outside the allowed files, the permitted scope may support API attachment only. Confirm before claiming end-to-end display completion.

**Next useful action:** inspect the named read, authentication, recovery, calculation, and serialization paths; document the provenance chain and error classification before implementing the helper.

Primary judge's stated reason

A receives a forced, slight preference because its explicit cost-input binding question and mutation test help determine whether a genuinely frozen attachment can safely be offered. This is not an established material quality gap; B's more conditional error classification is a meaningful counterweight, and an independent review could reasonably reject the preference.

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

Battle wave: 7ed5e30c-95ca-4a57-b019-598cba78d0b9. Pair: brp1_dbaf61a40b58757b6ff160008389f9f4d471cebf238432a5baf076c2bc9ce745. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.