openai / gpt-6-astra / high / high effort preferred over openai / gpt-6.1-sol / 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-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.
openai / gpt-6.1-sol / low / low effort answer
## Conclusion
**Recommend a read-time, fail-closed attachment built exclusively from the pinned season snapshot and its authenticated original evidence.** It must not change stored history, estimates, scores, ranks, or Elo.
This assessment is independent and reasoning-only: no repository contents or tool results were supplied. The locations below are **inspection targets**, not verified findings.
## Implementation plan and trace targets
| Location / function | Required behavior to verify or implement |
|---|---|
| `src/combined-public-read.js`: `readActiveCombinedSeason(s)` | Preserve the existing pinned snapshot selection. Derive the attachment from that same snapshot; do not select a newer season, cohort, profile, or annotation. Preserve existing integrity failures as **503**, rather than catching them as reference-cost unavailability. |
| `src/combined-reference-cost.js`: new helper | Own exact evidence resolution, authorization, calculation, and public-safe projection. Return an unavailable attachment when authorization cannot be established. Do not write or mutate snapshot inputs. |
| Private `combined_season_cohorts` lookup | Resolve the exact cohort identifier committed by the pinned snapshot. Verify the `cohortSHA` against the body using the repository’s existing canonicalization/hash rules. No “latest” lookup or fallback to another cohort. |
| Verified original profile | Establish which original profile the frozen cohort authenticates. Do not substitute the current profile or current annotations. Whether this requires an additional exact lookup depends on the existing cohort format. |
| `outcomesFromRecords` / `prospectiveCombinedCohort` | Trace their actual authorization and provenance checks. Reuse the relevant validation semantics without invoking mutation paths. A digest match alone does not establish authorization. |
| `sourceOutcomeKeys` / `public_events` | Resolve only the committed keys through exact, bounded reads. Check missing records, duplicates, identity mismatches, and provenance using existing schema rules. Do not scan event history or use a latest-event query. |
| `recovery` / `accountingRecovery` | Determine whether recovered outcomes remain authenticated original evidence and which representation governs cost accounting. Preserve existing behavior; do not silently replace failed evidence with recovery or count both representations. |
| Exported `designInput` validation / `costFraction` | Locate and reuse the authoritative exported validator and cost calculation. Establish accepted units, denominator, rounding, zero handling, and recovery treatment before calculating anything. Do not reconstruct a similar formula independently. |
| Public serializer / UI | Add an explicit allowlisted attachment. Never expose cohort bodies, original private profiles, authorization material, or private lookup diagnostics. Verify the existing UI can consume the additive field without changing ranking or historical displays. |
| Optional `src/combined-season.js` | Change only if necessary to expose an existing pure validator/calculator or preserve the pinned input contract. Do not alter season production, persistence, or scoring. |
### Failure boundary
Keep two outcomes distinct:
- **Existing snapshot integrity failure:** retain the existing 503 behavior.
- **Attachment authorization failure:** return the otherwise-valid public snapshot with an unavailable attachment.
Avoid a blanket catch around both snapshot loading and attachment construction. The treatment of unavailable source records and attachment-only evidence corruption needs confirmation from the existing integrity contract; it should not be guessed.
## Meaningful tests
1. **Frozen selection:** newer annotations, profiles, cohorts, and events cannot change the attachment.
2. **Exact bounded reads:** assert requested cohort identity and event keys; reject unexpected records and prove no scans/latest queries occur.
3. **Integrity:** mismatched cohort SHA/body and existing snapshot corruption retain the required 503 behavior.
4. **Authorization:** absent or invalid original-profile authorization produces an unavailable attachment, with no private diagnostics.
5. **Recovery:** cover ordinary, recovered, and accounting-recovered outcomes, including prevention of double counting.
6. **Cost semantics:** exercise authoritative `designInput` validation and `costFraction` boundary cases supported by the actual implementation.
7. **Noninterference:** compare prior public fields exactly; verify scores, ranks, Elo, and estimates remain unchanged. Assert no writes and no mutation of frozen inputs.
8. **Serialization:** successful and unavailable attachments expose only allowed fields; private sentinel values never appear.
9. **Plural reads:** each pinned season gets its own evidence, without cross-season reuse.
## Alternatives and uncertainties
- Recomputing from current annotations is incompatible with a frozen reference.
- Hash verification without original-profile authorization is insufficient.
- Returning 503 for every attachment failure would conflict with the specified authorization-failure behavior.
- Exact helper signatures, cohort commitments, recovery semantics, serializer shape, and UI compatibility remain unverified. In particular, UI changes outside the allowed files may require additional authorization.
**Next useful action:** inspect the named call chain and existing tests read-only, establish its integrity-versus-authorization boundary, then implement the narrowly scoped helper and serializer integration.
Primary judge's stated reason
B offers a slightly safer implementation handoff by avoiding an unsupported expected status for an unresolved failure class. This is a forced, weak preference, not an established material quality difference; A's own caveat and concrete accounting coverage make the comparison close, 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_e6f05e0529990acc58a254c2d15928adcd6bec0c0576a3762693d6c12acec1d1. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.