← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / max / max effort preferred over openai / gpt-6-astra / high / high 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 / high / high effort answer

## Conclusion

**Direct, read-only assessment; no source inspection occurred.** No source contents or tool results were supplied, so the file/function mappings below are implementation targets, not verified findings.

Implement the reference cost as an optional, authenticated **read-time attachment**, derived exclusively from the frozen provenance of the pinned combined-season snapshot. Preserve existing snapshot-integrity failures as **503**; insufficient attachment authorization yields **unavailable**.

## Proposed implementation

### `src/combined-public-read.js`

Trace `readActiveCombinedSeason` and `readActiveCombinedSeasons` through their existing snapshot validation and public serialization.

Recommended integration:

1. Resolve and validate the existing pinned snapshot.
2. Retain its exact frozen references throughout attachment construction; never resolve “active” again.
3. Look up the private `combined_season_cohorts` record by its exact pinned identity.
4. Authenticate attachment evidence through the new helper.
5. Add only an allowlisted public attachment to a newly constructed response object.

Keep the existing integrity-validation boundary outside any attachment fallback. A broad catch around the entire read would risk converting required 503 responses into apparently valid snapshots.

For plural reads, independently preserve each snapshot’s provenance. Any deduplication must use complete frozen identities, not merely season IDs.

### New `src/combined-reference-cost.js`

Prefer a narrowly scoped read-only loader plus a pure verification/calculation function:

- **Cohort provenance:** verify that the exact retrieved cohort body matches the pinned `cohortSHA`, using the repository’s existing canonicalization and hashing rules.
- **Original profile:** require the verified original profile associated with that frozen cohort. Do not substitute a current profile or trust an embedded profile without verification.
- **Outcome authorization:** establish how `outcomesFromRecords` and `prospectiveCombinedCohort` authenticate the relationship among the cohort, profile, and contributing outcomes. Reuse established verification semantics; a matching hash alone does not establish authorization.
- **Exact event evidence:** obtain `sourceOutcomeKeys` only from authenticated frozen evidence. Validate their format and cardinality before issuing bounded, exact `public_events` reads. Verify returned records against the requested identities and required authorization fields.
- **No substitutions:** missing records or failed authorization must not trigger collection scans, latest-annotation reads, current-price lookups, or reconstruction from unrelated records.
- **Cost calculation:** consume the exported `designInput` validator and `costFraction` semantics where available. Confirm required fields, units, rounding, zero handling, and valid numeric bounds before implementing arithmetic. Do not infer these contracts from their names.
- **Output:** return a small public result or an unavailable result. Keep cohort bodies, profiles, source keys, private identifiers, and detailed verification diagnostics out of public responses.

The helper must neither mutate its inputs nor invoke persistence-capable recovery paths.

### Optional `src/combined-season.js`

Change this file only if needed to export existing pure validation/calculation logic or expose authenticated frozen provenance already available during reads.

Inspect `recovery` and `accountingRecovery` specifically for:

- whether they preserve verified original inputs;
- whether they synthesize incomplete or differently authorized evidence;
- whether invoking them can write;
- whether existing snapshot-integrity errors already map to 503.

Recovered data should qualify only when it satisfies the same attachment authorization contract. Recovery status alone should neither authorize nor disqualify it.

## Public serializer and UI

Expose the attachment through an explicit allowlist. Keep stored/public historical records, estimates, scores, ranks, and Elo unchanged.

Display it as a separately labeled frozen reference cost, with an unavailable state that cannot be confused with zero. Whether a serializer addition is sufficient for the UI is unverified: if actual UI changes require files outside the permitted scope, identify that dependency before implementation.

## Meaningful tests

- **Authenticated success:** a frozen cohort, verified original profile, and exact source events produce the expected reference cost.
- **Pinning:** changing the active-season pointer during a read cannot change attachment provenance; plural reads cannot mix cohorts.
- **Authorization failures:** mismatched profile, unauthorized outcome linkage, missing events, or invalid source keys produce unavailable.
- **Integrity preservation:** existing snapshot corruption still produces 503, including when attachment lookup also fails.
- **Bounded reads:** enforce exact cohort/event lookup arguments and read limits; unexpected scans or latest-annotation queries fail the test.
- **Recovery:** representative `recovery` and `accountingRecovery` fixtures qualify only with complete authenticated evidence; no repair writes occur.
- **Calculation contract:** test independently established expected values and relevant invalid/zero boundaries of `designInput` and `costFraction`.
- **Noninterference and privacy:** freeze inputs; compare historical fields before and after; assert no writes and no private metadata in serialized output.

## Alternatives and uncertainty

- Reusing a cost already stored in an annotation is acceptable only if that exact annotation and its authority are frozen and verified. “Latest” is incompatible with the requirement.
- Reconstructing a prospective cohort is useful only if it is pure and reproduces the relevant authorization contract.
- It remains unknown whether a cohort hash mismatch belongs to existing **snapshot integrity** or attachment-only verification. Preserve the existing classification; do not silently downgrade an integrity failure.
- Actual signatures, schema relationships, read limits, recovery behavior, and cost semantics require source evidence.

**Next action:** inspect the named functions and their callers, then document the exact frozen identity chain and failure classification before implementing the helper.

Primary judge's stated reason

B receives a slight forced preference because its explicit cost-input binding question and targeted test help prevent a frozen-looking attachment from using unauthenticated cost fields. This is not an established material quality gap: both are conditional plans without repository evidence, and A handles uncertain failure classification more cautiously. An independent review could reasonably reject this 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_5830b3d898d628801ce86fb025f0aa152c67a5e4335742cb62aa2d57e9893315. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.