← Model losses

Head-to-head comparison

openai / gpt-6-sol / low / low effort preferred over claude-code-cli / claude-opus-5-5 / 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

From the supplied recorder compatibility source, SDK contracts, maintenance receipt, frozen-run admission proof and idempotency tests, design the smallest acceptance and recovery plan for same-root frozen-result recording. Trace ownership across the native receipt/run, adapter evidence transport, recorder journal and write-attempt fence. Specify exact preconditions, failure interleavings (reload, lost response after append, partial cohort, duplicate caller), authoritative reconciliation reads, rollback limits, and pass/fail checks. Identify what the current supported surface can execute deterministically and any minimal missing interface; distinguish source facts from proposals. Do not invoke tools, edit files, rerun workers/judge, manufacture root tool history, or publish. Return a prioritized plan with exact packet file/line references and explicitly unsupported claims.

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

## Priority 0 — Admit only the exact frozen run and consume the write fence first

**Source facts.** The native record RPC accepts a completed, first-request direct receipt and requires verified exact admission before calling the run owner (`platform-recording.packet.md:360–371`). Admission cross-checks the deterministic root session, request receipt, root-run pointer, directory, completed judge-only production run, and identical frozen, returned, and receipt scoring inputs and digest; it also requires distinct child sessions and at least two outcome rows (`:324–353`). The run owner independently checks root ownership, directory, completion, and digest (`:174–178`). Before invoking the registered scorer, `prepareScoreWrite` validates the exact frozen batch and purpose, acquires run scoring activity, decides admission, and durably marks the attempt; an already-consumed attempt is rejected (`:37–145`, `:204–212`). The native call then invokes the registered tool without fabricating session-message history (`:168–196`).

**Acceptance preconditions:** use the same authenticated root and directory; the completed exact `runID` and returned `payloadDigest`; unchanged raw frozen input; an available registered scorer; and no competing run activity or consumed attempt. Treat the adapter’s reference rejection as intentional: native `execute.before` resolves `{runID,payloadDigest}` into frozen outcomes *before* adapter execution, while direct invocation of the adapter with a reference fails (`:52–79`, `:168–194`, `:802–809`). Never reconstruct rows or treat a locator or hash alone as authority (`:330–353`, `:583`).

**Pass/fail:** pass admission only if all exact-point checks succeed and the fence is durable before scorer invocation. Fail closed on ownership/digest mismatch, missing scorer, conflicting activity, or consumed fence. The sample proof and receipt establish one completed six-outcome case, not permission to reuse its IDs or a general guarantee (`:522–579`).

## Priority 1 — Reconcile side effects, not transport status

**Source facts.** The adapter classifies quality versus availability, obtains session evidence, validates provenance, then calls the existing scorer or worker; validation and execution failures can instead produce response content, and metadata reports the operation (`:802–886`). `finishScoreWrite` marks a matching attempted receipt “returned” or “failed” based on tool transport, expressly warning that a returned response can contain skipped or uncertain rows (`:148–170`). Direct scoring writes its durable result *after* scorer execution and finish; a matching existing direct result is read back without reinvocation (`:165–196`).

**Proposed smallest reconciliation order:** read the exact direct request/root-run/run/frozen proof; the run’s score-finalization and legacy-attempt fence; the exact direct-score-result; then the authoritative recorder journal and scorer result for that run/digest and cohort. Count recorded, skipped, and uncertain outcomes and verify expected task-completed/evaluated pairs and journal prefix. Do not equate `state:"returned"`, HTTP/RPC success, or an adapter metadata field with six recorded scores. The supplied maintenance receipt reports 6 recorded, 0 skipped/uncertain, 12 appended rows, preserved prefix, and zero rows on repeat readback (`:548–579`); those are evidence for that case only.

**Pass/fail:** accept “recorded” only when authoritative journal/readback accounts for every eligible frozen row exactly once, with no extra or conflicting rows. A partial cohort, validation rejection, skipped/uncertain row, or unavailable authoritative read remains incomplete/uncertain—not a successful six-of-six record.

## Priority 2 — Exercise recovery interleavings without replaying an uncertain write

| Interleaving | Required check and limit |
|---|---|
| **Reload before admission** | Re-read exact admission and persistent fences; an in-memory activity lock alone is not durable (`:92–113`, `:204–212`). A demonstrably unconsumed, no-write case needs authoritative proof; the narrow availability-only proof branch exists, but its verification implementation is not included (`:98–113`). |
| **Reload after fence, before scorer call** | Treat `attempted` or legacy attempt as consumed. Do not infer absence of a journal row proves safe replay: invocation timing is not established by the fence alone (`:110–145`, `:583`). |
| **Append succeeds; response or durable direct-result write is lost** | Reconcile the journal and fence. Do not retry the scorer: `direct-score-result` may be absent even after side effects, and the consumed attempt rejects replay (`:179–196`, `:583`). |
| **Partial cohort or scorer-reported skips/uncertainty** | Preserve recorded rows; report exact per-row status and stop. No blanket batch retry or rollback of appended quality rows is supported (`:145–161`, `:842–885`, `:583`). |
| **Duplicate caller** | Same-owner RPC exclusivity and native activity/fence must admit at most one write; once the durable direct result exists, return its readback with zero new rows. A concurrent duplicate before that result must be rejected or remain uncertain, not receive a second attempt (`:92–145`, `:179–196`, `:360–371`). |

**Recovery boundary.** An exclusive run-recovery lock excludes collection, stop, and scoring while held (`:201–212`). A reviewed-recovery path checks a stored plan against payload digest, original receipt, and journal bytes/identity before special admission (`:107–122`); the packet does **not** include its plan-generation or admission implementation. Neither journal truncation nor deletion/reset of the attempt fence is justified. An append is not transactionally undone by a failed response.

## Minimal deterministic acceptance and missing interface

1. **Read-only preflight:** verify exact receipt/run/frozen admission and capture fence, direct-result, journal identity/digest, and expected frozen cohort (`:324–353`, `:522–545`). Reject mismatches before any scorer call.
2. **Single authorized write:** call the existing direct `record` route once, which verifies admission and reaches the native pre-call fence (`:360–371`, `:168–194`). No worker/judge rerun.
3. **Read-only postflight:** read durable result *and* authoritative recorder rows; require exact cohort, pair counts, no skips/uncertainty, preserved journal prefix, and no second append on an idempotent readback (`:548–583`). Report uncertainty rather than retry if any observation is missing.
4. **Recovery decision:** use exclusive recovery and independently reviewed exact journal/fence evidence for exceptional intervention only; do not replay merely because a response disappeared (`:107–122`, `:201–212`, `:583`).

The supported surface demonstrably executes exact native admission, one fenced registered-scorer invocation, and durable-result readback for a completed case (`:168–196`, `:360–371`, `:548–583`). **Proposal, not established interface:** a minimal authenticated, same-root, read-only reconciliation operation returning exact run/digest-bound fence state, direct-result state, journal identity/prefix and per-outcome recorded/skipped/uncertain counts would make crash and partial-cohort classification repeatable without exposing a retry button. The packet does not establish that such a public operation exists, that a missing direct result means no append, that returned transport means recorded quality, that partial writes can be rolled back, or that the special reviewed-recovery path safely applies to any particular crash. No tools or team review were used for this independent, packet-only assessment.

claude-code-cli / claude-opus-5-5 / high / high effort answer

# Same-root frozen-result recording: acceptance and recovery plan (one MoA lane)

I did this work directly and invoked no tools. The lane forbids tool use, so I did not write a plan file or call ExitPlanMode. References use the packet line ("pkt Lnnn") and, where useful, the original source line.

## 1. Conclusions and prioritized plan

### P0. Resolve the source-pin mismatch before attributing acceptance (blocker; high confidence)
- The readback receipt pins `native/src/native-run.js` to `d7dbdaf1…` (pkt L573).
- The packet's `native-run.js` excerpts declare SHA256 `358cc311…` (pkt L6, L34).
- Likewise, the receipt pins `direct-rpc.js` to `b414816f…` (pkt L574), while the packet declares `e0618db6…` (pkt L357).
- So either the code changed after recording, or the two hashes are computed differently. Until this is settled, the receipt cannot be said to prove behavior of the code reviewed here.
- **Pass:** both pins match the reviewed sources under one hashing rule, or a source diff shows no change to recording logic.
- **Fail:** treat the receipt as evidence about different code.

### P1. Ownership map (source facts)

| Layer | Durable/in-memory state | Writer | Lines |
|---|---|---|---|
| Native request receipt | `direct-bridge/v1/request/<requestID>`, `root-run/<root>` | submit path (not shown) | pkt L339–340 |
| Native run | `runs/<runID>`: `frozenJudgment`, `finalResult.scoring` | not shown | pkt L344–349 |
| Admission proof | Derived only, not stored; requires a three-way digest match and ≥2 rows with unique `childSessionID` and `waveID===runID` | `readDirectScoringAdmission` | pkt L332–352 |
| Activity lease | `scoringRunReleases` and `runOperationLocks` (in-memory only) | `prepareScoreWrite` / `finishScoreWrite` | pkt L46–50, L166–170, L211 |
| Write-attempt fence | `score-finalization/<runID>`, `finalization-attempt/<runID>`, in-memory `finalizationAttempts`, and the score tool-call binding | `prepareScoreWrite` | pkt L125–143 |
| Transport result | `direct-score-result/<runID>` | `recordFrozenScore` | pkt L179–196 |
| Adapter transport | Rejects raw `runID` references (pkt L415–417); relies on `prepareScoreWrite` mutating `event.input` to the frozen outcomes (pkt L78), then the same `event.input` reaching `tool.execute` (pkt L191) | adapter | pkt L414–498 |
| Recorder journal | `<scorecard dir>/events.jsonl` (append-only, shared across runs) | scorer (not shown) | pkt L112, L556–564 |
| Recorder admission | `client.directAdmission.get({rootSessionID, runID})` | `resolveRootAdmission` | pkt L507–519 |

Key fence invariant (source fact): `tool.execute` runs only after the attempted receipt is durably written to `score-finalization/<runID>`, because that write is awaited before `prepareScoreWrite` returns (pkt L127–135).
- If either the receipt write or the binding write fails, the code writes the attempt key with an error and throws.
- That throw releases the lease (pkt L139–141, L145).
- Therefore: **no fence key ⇒ no scorer call happened**. This assumes `storage.set` is durable once it resolves, which is not shown.

### P2. Preconditions to verify, read-only, before any record call
1. The request receipt is completed, has a `runID`, is owned by this root, and has no preceding request (pkt L366).
2. `readDirectScoringAdmission` returns `verified` for `{root, runID, payloadDigest}` (pkt L367–369, L334–352).
   - The payload digest in the admission receipt (pkt L532) equals the one in the readback receipt (pkt L554). This already passes in the supplied receipts.
3. Run ownership holds: same parent session, same directory, `authority()` is falsy, `finalResult` is complete, and the frozen digest recomputes (pkt L176–178).
4. `record_agent_outcomes` is registered with an `execute` function.
   - This check comes before admission, so a missing adapter consumes no fence (pkt L182–183).
5. No recovery lock is active on the run (pkt L211).
6. Single-server ownership of the storage and journal.
   - There is no compare-and-set in the get/set sequence (pkt L97–127). In-process races are closed only by `direct-rpc`'s `exclusively` wrapper (pkt L365) and by the synchronous region between the admission decision and adding the run to `finalizationAttempts` (pkt L117–125).
   - That region is not synchronous when the reviewed-recovery branch is taken (pkt L115).
7. The journal path the native code reads equals the adapter's scorecard directory.
   - Native reads `OPENCODE_SCORECARD_DIR` or a default (pkt L112). The adapter uses a separate scorecard-directory variable that is not shown (pkt L437, L859).

### P3. Authoritative reconciliation reads, by question
- **"Is the attempt consumed?"** Read the fence: `score-finalization/<runID>`, then `finalization-attempt/<runID>` (pkt L97–98, L106–107).
- **"What did transport return?"** Read `direct-score-result/<runID>` (pkt L179–181).
  - "Returned" does not mean "recorded" (pkt L159–160, L583). The adapter folds scorer errors into returned content (pkt L868–869).
- **"What was written?"** Only the journal answers this. Look for rows with `waveID === runID` and the frozen `childSessionID`s.
  - The expected shape is 2N rows: N task-completed plus N evaluated-outcome (pkt L558–560).
  - Check that the prefix is preserved against the before-hash (pkt L561–562).
  - The journal row schema is not in the packet.
- **"Is it still admissible?"** Re-run `readDirectScoringAdmission` (pkt L332).

### P4. Failure interleavings and current outcomes

| # | Interleaving | Durable state after | Retry via `record()` today | Disposition |
|---|---|---|---|---|
| a | Crash or reload before the fence write (pkt L127) | none | Fresh admit (lease and in-memory set are gone) | Safe retry; deterministic |
| b | Fence written, crash before `execute` | fence `attempted`; journal unchanged | Rejected as idempotent (pkt L508–509) | Needs reviewed recovery (pkt L494–501). The writer of `reviewed-recovery/<runID>/score-preparation` is **not in the packet**. |
| c | `execute` appends all 2N rows, then crash before `finishScoreWrite` or the result write | fence `attempted`; no result record | Rejected | Uncertain-but-complete. Reconcile from the journal; **no replay** (pkt L583) |
| d | Lost response after the result write (pkt L195) | result record present | Replay with `replayedReadback:true` and 0 new rows (pkt L181, L567) | Deterministic pass path |
| e | The result write throws (pkt L195) after rows are appended | fence `returned`, but result content is not persisted anywhere (`finishScoreWrite` stores no result, pkt L161–164) | Rejected | Content lost; journal-only reconciliation |
| f | `finishScoreWrite` write swallowed (pkt L164) | fence stays `attempted`; result record `returned` | Replay works | The fence/result mismatch is benign; treat the result record as authoritative for transport |
| g | Partial cohort (0 < rows < 2N), or content reports skipped/uncertain > 0 | consumed fence | Rejected or replayed | Terminal. Escalate for review; reconstructed subsets are forbidden (pkt L583) |
| h | Adapter validation failure returned as content, 0 rows | result record `returned` with failure content | **Replays the failure forever.** The early return at pkt L181 precedes `prepareScoreWrite`, so the reviewed-recovery branch (pkt L494–501) is unreachable on the direct path | Gap; see P6 |
| i | Duplicate caller, same process | Serialized by `exclusively` (implementation not shown) and the fence | Second call replays or is rejected | Pass. Lease keys differ per call because the call ID is random (pkt L187), so the lease itself does not dedupe. |
| j | Duplicate caller, native hook path, same run | Same fence key | Rejected | Pass |
| k | Duplicate caller across processes sharing storage | Possible double admit | Unsupported | Must be excluded by precondition 6 |
| l | `execute` hangs | Lease held; `acquireRunRecovery` refused (pkt L212). The signal is checked only before admission (pkt L184). | Blocked until restart | Operational risk |

### P5. Rollback limits (source facts plus inference)
- No shown code deletes or resets `score-finalization`, `finalization-attempt`, or `direct-score-result`. The result record is write-once.
- The journal is append-only and shared across runs (28.8 MB, pkt L564). Truncating it is not a supported interface and could destroy other runs' appends.
- Rollback is therefore limited to the no-write case (b), via reviewed recovery. After any append, the only option is forward reconciliation.
- Publication is separate (pkt L578, L583) and outside this plan.

### P6. Acceptance pass/fail checks for the existing recording
A run passes only if **all** of the following hold:
1. P0 is resolved.
2. The admission proof is `verified`, and its digest equals the digest in the frozen judgment, the returned scoring, the request receipt, and the readback receipt (pkt L349, L532, L554).
3. `direct-score-result/<runID>` has state `returned`, matching root, run and digest, and `toolCallID === call_directscore_8340…` (pkt L565).
4. The fence receipt has the same `toolCallID`, with state `returned` (pkt L547–548).
   - A state of `attempted` together with check 3 passing is acceptable only as case f.
5. The stored result content reports `recorded = N`, `skipped = 0`, `uncertain = 0`, and no validation failure. N must be the count of quality rows.
   - Availability rows are split out by `classifyOutcomes` (pkt L421), so N may be less than the frozen row count. This needs confirmation.
6. The journal holds exactly 2N rows for the run (one of each kind per `childSessionID`), has a preserved prefix, and its before/after hashes match pkt L561–562.
7. One replay `record()` returns `replayedReadback:true` and leaves the journal bytes and digest unchanged.
   - Make this call **only after** check 3 is confirmed by a storage read. Without a result record, `record()` is not a read-only probe.
8. `active` is `{}` (no leftover lease), model reruns are 0, and publication is false (pkt L569, L577–578).

The supplied receipt asserts checks 2 and 5–8. Checks 3–4 and the journal row breakdown are not independently shown.

### P7. Supported versus deterministic surface

**Deterministic today:**
- Fresh admit when no fence exists (case a).
- Replay when a result record exists (case d).
- Idempotent rejection when the fence is consumed.
- The admission proof read.
- Reviewed recovery when a `ready` record already exists with an unchanged journal digest.

**Smallest missing interfaces (proposals, not source):**
1. **Read-only `scoreStatus` RPC.** It would return the proof state, the fence, attempt, binding and result records, and journal row counts for the run.
   - Only `record` and `submit` handlers are shown (pkt L279–300).
   - Today, the fence and journal can be checked only by out-of-band reads.
2. **Journal snapshot in the attempted fence receipt.** Record `bytesDigest`, identity and size at pkt L127–134.
   - This lets case b prove "no write since attempt" rather than only "unchanged since the plan was reviewed".
   - That weaker guarantee is all the snapshot check at pkt L114 can give today.
3. **Persist result content at least as early as the fence transition**, or write the result record before `finishScoreWrite`. This closes case e.
4. **Route recovery around the early return at pkt L181.** When a reviewed `ready` recovery exists for a zero-row failure, the direct path should be able to reach the recovery branch. This closes case h.
5. **Bind the recorder to the payload digest.** `resolveRootAdmission` checks only the format of `proof.payloadDigest` (pkt L515), and calls `get` without a digest (pkt L514), whereas the native reader requires one (pkt L334).
   - The native fence already binds the digest, so this is lower priority.

## 2. Alternatives and discarded hypotheses
- **"The lease prevents duplicate callers."** Discarded. `acquireRunActivity` allows concurrent activities and blocks only recovery (pkt L211). Lease keys include a random call ID.
- **"An in-process race can double-admit."** Discarded for the non-recovery path, because the admission decision and adding the run to `finalizationAttempts` are synchronous (pkt L117–125). It remains possible on the reviewed-recovery path if `exclusively` is not global.
- **"The readback receipt was produced by `recordFrozenScore`."** Discarded. That function writes only `state:"returned"` (pkt L194). The receipt's `recorded-readback-verified` state and its journal hashes come from an external verifier that is not in the packet.
- **Rollback by journal truncation.** Rejected as unsupported and unsafe on a shared, append-only journal.

## 3. Missing evidence and its consequences
The following are not in the packet:
- `admitScoreWrite`, `admitReviewedScoreRecovery`, `verifyScoreAvailability`, `journalSnapshot`
- `exclusively`, `sessionEvidence`, `scorecardClient`, `runScoreWorker`
- the recorder append logic and journal row schema
- `storage` durability and atomicity semantics
- whoever writes `reviewed-recovery/…`

Consequences:
- The admission/rejection matrix, the atomicity of partial cohorts, the cross-process safety, and the journal row-count checks are inferred, not proven.
- Checks 3, 4 and 6 in P6 cannot be confirmed from this packet.

## 4. Next useful action
1. Settle P0 (the source-pin hash domain and any code diff).
2. Run the read-only reads in P3, then the P6 checks in order.
3. Call `record()` once, and only if the result record exists.
4. Raise missing interfaces 1 and 2 as the minimal change set before relying on recovery for cases b, c and e.

MATERIAL_EVIDENCE_CONFLICT: The readback receipt pins native-run.js to d7dbdaf1… and direct-rpc.js to b414816f… (pkt L573–574), but the packet's reviewed sources declare 358cc311… (pkt L6, L34) and e0618db6… (pkt L357).

Primary judge's stated reason

A offers a slightly safer minimal operational recommendation: preserve consumed attempts and reconcile without treating an incompletely evidenced recovery branch as deterministically available. This is a forced, weak preference, not an established material quality gap; B's deeper interleaving analysis could reasonably support an independent contrary judgment.

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

Battle wave: 39551589-cd0d-49dd-92e2-40e197bd1da5. Pair: brp1_77f11fa323b12a875ee5683098024af0a011f9e964f707d7176d0ab771a8603f. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.