xai / grok-4.7-efficient / high / high effort preferred over openai / gpt-6-luna / medium / medium 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.
xai / grok-4.7-efficient / high / high effort answer
The smallest safe plan is fail-closed reconciliation, not a second scorer call. Same-root frozen recording can deterministically admit once, fence before the scorer, and replay only a stored `direct-score-result`. It cannot deterministically recover a lost response after a journal append, roll back a partial cohort, or prove the included 6/6 receipt against these excerpts.
## 1. Conclusion and prioritized plan
**Ownership.** Four layers, one writer each. Do not let a later layer invent identity for an earlier one.
| Layer | Owner | Authoritative record | When it moves |
| --- | --- | --- | --- |
| Native receipt/run | `readDirectScoringAdmission` + `direct-rpc` `record` | `direct-bridge/v1/request/${requestID}`, `root-run/${rootSessionID}`, `runs/${runID}`, session `metadata.agentTeamsDirect` | Read-only during record |
| Write-attempt fence | `prepareScoreWrite` / `finishScoreWrite` | `score-finalization/${runID}`, `finalization-attempt/${runID}`, `scoreToolCallKey(session,id,messageID)`, in-memory `finalizationAttempts` + scoring activity lease | Before `tool.execute`; terminal state after return |
| Adapter transport | registered `record_agent_outcomes` | No durable score identity. Refuses `{runID,payloadDigest}` | After the native resolver expands input |
| Recorder journal | scorecard worker, not in this packet | `events.jsonl` under `OPENCODE_SCORECARD_DIR` or `[REDACTED: home-relative path]` | Side effect inside `execute`, outside native storage |
| Direct readback | `recordFrozenScore` only | `direct-score-result/${runID}` | After `finishScoreWrite`, not inside it |
Fact: the fence is acquired before any registered scorer call. `recordFrozenScore` calls `prepareScoreWrite` and only then `tool.execute` (`native-run.js:2573-2577`). `prepareScoreWrite` adds `finalizationAttempts` and writes `state:"attempted"` before returning (`native-run.js:2511-2530`). The adapter throws if it still sees `runID` or `payloadDigest` (`adapter/index.js:803-805`).
**P0 preconditions, all required, any miss is fail.** These are source-enforced, not proposed.
1. Entry is `direct-rpc` `record({requestID,payloadDigest})` (`direct-rpc.js:280-285`). Receipt `state==="completed"`, `runID` present, `previousRequestID===null`, `rootSessionID===ownedRoot(requestID)`. Follow-ups cannot record on this path.
2. `readDirectScoringAdmission` returns `state:"verified"` (`direct-scoring-admission.js:10-28`). Otherwise `{state:"unverified"}` and the RPC throws. Locators and hashes alone do not admit (`direct-scoring-admission.js:6-7`).
3. Verified conjuncts that matter for recovery: session id `ses_direct_` + 40 hex and equal to `ses_direct_${sha256(JSON.stringify(requestID)).slice(0,40)}`; same directory; bridge receipt version 1, `admission.ok`, `durableRunCreated`, pointer `runID` match, `inputHash` match; `purpose==="production"`; `synthesisMode==="judge-only"`; `moaJobSpec.source==="job"` and `version===2`; run version 1, `type==="analysis"`, `status==="completed"`, `finalResult.complete`, phase `judge-only`; `run.createdAt >= receipt.createdAt`; every non-question case field canonically equal; frozen, returned, and receipt scoring inputs canonically equal and all digests equal `scorePayloadDigest(frozen.input)`; outcomes length at least 2, unique `childSessionID`s, every `waveID===runID`.
4. `recordFrozenScore` rechecks analysis type, parent session, directory, and `authority(rootSessionID)` falsy (`native-run.js:2562`). Observed polarity: truthy `authority` denies. The function body is not in the packet.
5. `frozen.payloadDigest===payloadDigest===scorePayloadDigest(frozen.input)` (`native-run.js:2564`). No reconstructed rows. The packet’s operational sentence says the same; the code enforces it here and again at `native-run.js:2455-2460` and `2474-2477`.
6. Signal not aborted, and `record_agent_outcomes.execute` is a function (`native-run.js:2568-2570`). Otherwise no attempt is admitted.
7. Inside the fence, after expansion: `scoreRunForInput` returns that same `runID` (`native-run.js:1705-1716`, `2466-2469`); `canonicalJSON({outcomes})` equals the frozen input; every outcome `purpose` equals `run.purpose||"production"`; `validateScoreBatch` passes. One wave only.
`authority`, `ownedRoot`, `validateScoreBatch`, `admitScoreWrite`, `scorePayloadDigest`, and `canonicalJSON` are called but not defined here. Their required call-site results are facts; their other behavior is unknown.
**P0 happy path the current surface can execute.**
1. If `direct-score-result/${runID}` exists and root plus digest match, return it with `replayedReadback:true` and do not call the scorer (`native-run.js:2566-2567`). Mismatch throws `SCORE_INPUT_GUARD_REJECTION` and does not overwrite.
2. Otherwise build a synthetic call: `messageID` is deterministic (`msg_directscore_` + runID without dashes); `id` is `call_directscore_` + random UUID without dashes (`native-run.js:2571-2573`). No session transcript is written by this function. The comment says that; the function does not show a session append.
3. `prepareScoreWrite` snapshots `nativeCallInput` before async work (`native-run.js:2440`), expands the reference to `frozen.input` (`native-run.js:2464`), takes `acquireRunActivity(...,'scoring')` (`native-run.js:2435`, `run-operation-lock.js:7`), then writes the attempted receipt bound to `toolCallID`.
4. Adapter must see outcomes, not the reference. It may still return `recorded:0`, skipped/uncertain rows, or `executionFailure` content without throwing (`adapter/index.js:812-823`, `868-869`).
5. `finishScoreWrite` sets `returned` or `failed` only if `event.id` is a non-empty string, the tool-call binding exists, and `receipt.toolCallID===event.id` (`native-run.js:2537-2550`). Transport success is not score success (`native-run.js:2545-2546`).
6. Only then is `{state:"returned", rootSessionID, runID, payloadDigest, toolCallID, result}` stored (`native-run.js:2580-2581`). That object does not contain journal hashes, recorded counts, or `idempotentReadback`.
**P1 pass/fail checks.** Use frozen `outcomes.length` as N. Do not hard-code the sample’s 6.
Pass the first call only if every read agrees:
- Admission still `verified` for this root, run, and digest.
- `score-finalization/${runID}.state==="returned"`, `payloadDigest` matches, `toolCallID` matches `direct-score-result.toolCallID`, and the id matches `call_directscore_` + 32 hex.
- `direct-score-result` root and digest match, `replayedReadback` absent on the first return.
- **External content check, not enforced by `recordFrozenScore`:** result content has `recorded===N`, `skipped===0`, `uncertain===0`, and is not a validation or execution failure payload. Proposal, required because `native-run.js:2579-2581` stores whatever `execute` returned.
- Second sequential call returns the same stored result plus `replayedReadback:true` and does not execute the tool (`native-run.js:2567`).
- Scoring lease released in `finally` (`native-run.js:2551-2556`). Recovery may then take the in-memory lock only if no activity, flight, or collection remains (`run-operation-lock.js:8`).
- Publication is not part of this path. Do not publish.
Fail closed on guard rejection, idempotent rejection of the first call, adapter reference-form throw, missing tool, abort, authority denial, or any admission conjunct miss.
**P1 authoritative reads.** After reload, only durable keys count. In-memory `finalizationAttempts`, `scoringRunReleases`, and `runOperationLocks` are gone (`run-operation-lock.js:4-8`).
- R1 session metadata `agentTeamsDirect`
- R2 bridge receipt
- R3 `root-run/${rootSessionID}`
- R4 `runs/${runID}` frozen input, digest, `finalResult.scoring`
- R5 `score-finalization/${runID}`
- R6 `finalization-attempt/${runID}`
- R7 `direct-score-result/${runID}`
- R8 tool-call binding; key shape is not in the packet
- R9 `journalSnapshot` only if a reviewed-recovery row exists (`native-run.js:2498-2500`); snapshot implementation is not in the packet
- R10 `reviewed-recovery/${runID}/score-preparation`
Classification:
- R7 match: replay. Deterministic. Do not read the journal to decide this.
- No R5, no R6, no R7, admission still verified: first write still admissible. Deterministic retry.
- R5 `failed`, or R5 `attempted`/`returned`, or R6 present, and R7 absent: consumed. Do not call the scorer. Packet fact: a consumed attempt cannot be replayed.
- R5/R6 present, R7 absent, R10 `state==="ready"`, and journal bytes plus identity still equal the stored plan: the only source-supported replay door (`native-run.js:2497-2502`). `admitReviewedScoreRecovery` is not defined here. If the journal changed, the source throws and admits nothing (`native-run.js:2500`).
- R7 present but root or digest differs: conflict. Do not overwrite (`native-run.js:2567`).
**P2 failure interleavings.**
Reload. Locks do not survive. The durable fence does. A crash between `finalizationAttempts.add` and the storage set can look like “never attempted” after reload; that window is real and tiny (`native-run.js:2511-2513`). A crash after R5 `attempted` is consumed across restart even though the activity lock is gone.
Lost response after append. `execute` can append, then the process can die before R7. Two windows exist: after append and before `finishScoreWrite` (R5 stays `attempted`), and after `returned` but before R7 (`native-run.js:2579-2581`). Neither window stores a pre-execute journal digest. Post-crash attribution of new jsonl bytes to this `toolCallID` is unsupported. Retry hits the fence, not the replay short-circuit. No automatic repair.
Partial cohort. Admission requires at least two unique children, but the adapter can return zero quality rows or a caught worker failure as successful transport. `finishScoreWrite` will still mark `returned` if `execute` did not throw. If `execute` throws, the catch writes `failed` with the generic message `"Direct scorer failed after admission"` and does not write R7 (`native-run.js:2578`). A pre-append adapter throw still consumes the attempt. Partial jsonl rows have no delete path in this packet.
Duplicate caller. Sequential second call after R7 replays. Sequential second call after the fence and before R7 is rejected as already attempted (`native-run.js:2508-2509`). Same in-process `leaseKey` is rejected while the first call holds it (`native-run.js:2434`). Concurrent callers are not safe on the shown code: the activity lock allows multiple scoring activities (`run-operation-lock.js:7`), and admission is read-then-write, not a compare-and-set (`native-run.js:2492-2513`). `exclusively` wraps the RPC handler (`direct-rpc.js:280`) but is not defined, so RPC serialization is unproven. Do not run two recorders.
Recovery versus scoring. Recovery is exclusive and does not queue (`run-operation-lock.js:1-8`). Scoring refuses if recovery is held. After a crash both locks are empty, so the lock does not preserve the fence. R5/R6 do.
**Rollback limits, all source-backed.** None.
- No journal truncate, prefix restore, or row delete appears.
- A failed `score-finalization` write still best-effort writes the legacy attempt, which consumes the next admission (`native-run.js:2525-2527`, `2493`).
- `finishScoreWrite`’s terminal write swallows errors (`native-run.js:2550`), so `attempted` can stick forever.
- R7 is never replaced once present.
- The availability-only first-write exception is rechecked and cannot be shared with a consumed marker (`native-run.js:2486-2507`). It is not the direct-record happy path. `availabilityOnlyScoreReceipt` and `verifyScoreAvailability` are not in the packet.
- Reviewed recovery refuses on digest, original receipt, journal bytes, or journal identity drift (`native-run.js:2500`).
**Deterministic now:** fail-closed admission, same-root/directory/digest/exact-input guards, fence-before-execute, sequential R7 replay, sequential second-attempt rejection once R5/R6 is visible, adapter rejection of an unresolved reference, lease release, cancel-before-admission.
**Not deterministic on this surface:** lost-response repair, partial-cohort repair, concurrent exclusion, “transport succeeded” implying N scores, publication, and treating the sample receipt as a property of these excerpts.
**Minimal missing interface. Proposal, not present.** One read-only reconciler and one narrower completion record. No second scorer, no row rewriter.
`reconcileFrozenScore({rootSessionID,runID,payloadDigest})` should return admission, fence, readback, and `replayable | admissible-first-write | blocked-consumed | uncertain-appended | conflict`, using only R1-R10, without `tool.execute`. `uncertain-appended` cannot be computed until the fence itself stores `journalBytesDigest` and `journalIdentity` before `execute`. Smallest write-side addition: before `execute`, persist `{phase:"admitted", toolCallID, payloadDigest, journalBytesDigest, journalIdentity}`; after `execute`, persist R7 only when content has `recorded===N`, `skipped===0`, `uncertain===0`; otherwise persist `{phase:"uncertain"}` and stop. A human reviewer may later bind that uncertain row to a proven suffix. The current R10 door does not do that job unless someone has already written a still-matching plan by a mechanism absent from this packet.
Confidence: high on excerpted control flow; medium on recovery outcome because `admitScoreWrite`, `admitReviewedScoreRecovery`, and the journal writer are outside the packet; low on transferring the sample 6/6 result onto these excerpts.
## 2. Alternatives, discarded hypotheses, likely false positives
- Discarded: replay the scorer after a crash because the journal might be idempotent. The native fence forbids a second sample even if the worker would have appended zero rows (`native-run.js:2508-2509`). Worker idempotency is not in the packet. The sample’s `secondCallAddedRows:0` is a sequential readback claim, not a crash-recovery proof.
- Discarded: treat `finishScoreWrite` `returned` as recorded quality. The source explicitly rejects that (`native-run.js:2545-2546`), and the adapter can return failure content without throwing.
- Discarded: use the in-memory recovery lock as the cross-restart fence. It is process-local and rejects rather than queues.
- Discarded: reconstruct outcomes from journal rows or from the admission `taskInput`. Admission returns only a task-input subset (`direct-scoring-admission.js:28`). Operational text forbids reconstructed rows. Journal row schema is absent.
- Discarded: require 12 journal rows as a general pass check. The sample says 12 appended rows for 6 outcomes and 6 task-completed plus 6 evaluated rows. Two rows per outcome is a hypothesis, not a contract in these excerpts.
- False positive: `state:"recorded-readback-verified"`, `prefixPreserved`, `idempotentReadback`, and `appendedJournalRows` look like native receipts. `recordFrozenScore` writes none of those fields (`native-run.js:2580`). They are external harness claims.
- False positive: a ready R10 record authorizes a fresh scoring sample. It can only admit through `admitReviewedScoreRecovery` when the journal snapshot still matches, and that function’s effects are unknown.
- The minified guard at `native-run.js:2425-2427` duplicates `2442-2448`. It runs before the lease. It does not change admission. Not a second fence.
## 3. Missing evidence and consequence
Not in the packet, so these claims are unsupported: `admitScoreWrite` reasons; `availabilityOnlyScoreReceipt`; `verifyScoreAvailability`; `admitReviewedScoreRecovery`; `journalSnapshot` fields beyond the four comparisons at `native-run.js:2500`; `scoreToolCallKey`; `finalizationKey`; `authority`; `exclusively`; `ownedRoot`; `validateScoreBatch`; `SCORE_INPUT_GUARD_REJECTION`’s string; the scorecard append path and whether it is the same file recovery reads; how `directAdmission.get` is attached to the worker client (`recorder/root-admission.js:2-8` only says the adapter supplies it); journal row schema; any publisher.
Consequence: a crash after a possible append must be classified `blocked-consumed` or `uncertain-appended`, never retried. If the worker journal path and the recovery `events.jsonl` path differ, R10 will fail closed or, worse, snapshot the wrong file. That split is unproven and must be treated as unresolved before any recovery admission. The sample receipt cannot be used as a regression oracle for these excerpts until the pin algorithm is defined and matches.
The included sample is instance evidence only: root `ses_direct_ab7a3ebdaee184931f6eb3e147eeac4fe426758a`, run `f1f06d7f-e063-470d-b7cb-20c74c8223f5`, digest `sha256:77731a2e4245500baddd6f2f8b4438e8d4ec17eef22d8643417c1e2aebe0676c`, request `uti26-admission-repair-review-20261013-v2`, recorded 6, skipped 0, uncertain 0, publication false. This lane did not recompute `questionSHA256` or the session-id derivation.
## 4. Next useful action
Add the read-only reconciler over R1-R10 and the pre-execute journal identity on the attempt receipt. Until that exists, the accepted operator action after any ambiguous crash is: read R5, R6, and R7; if the fence exists and R7 does not, stop; do not call `record`, do not recover the journal, do not publish. A first write is acceptable only when admission is verified and R5, R6, and R7 are all absent.
MATERIAL_EVIDENCE_CONFLICT: packet Source SHA256 for `native-run.js` is `358cc311b26d688656dd2fed2a3569997d3cf0a36eae8e3f1f3e4d94be729a5b` and for `direct-rpc.js` is `e0618db69450eacfb5ebd7d47ad6898b34cf1553ed82f1d8eb93dc899ce1cae4`, while the recorded/readback receipt `sourcePins` are `native/src/native-run.js` `d7dbdaf18a2e0c2684a70871a20e217a9d7c6a1eac9eaaa530a94e14bbe8bc9d` and `native/src/direct-rpc.js` `b414816f7b17fe5d051e4a0fa9bb555786f8c2171e08761a11fb468f6e1e8c7b`. The packet does not define the pin algorithm, so the 6/6 readback cannot be attributed to these excerpts.openai / gpt-6-luna / medium / medium effort answer
## Prioritized acceptance and recovery plan
**Recommendation:** Treat same-root frozen-result recording as a one-shot, fenced side effect—not as an automatically retryable request. Accept a result only when the exact native run and frozen payload are verified, the recorder append is reconciled against authoritative journal reads, and the durable native readback agrees. A successful tool response alone is insufficient.
### 1. Preconditions and ownership
1. **Verify the native owner and exact run.** The scoring batch must resolve to one analysis run owned by the root; mixed wave IDs are rejected (`platform-recording.packet.md:9–21`). The frozen-result reference must identify that run and match its complete judged result, frozen input, and payload digest (`:37–83`). The native direct-admission proof further binds root, request, run, purpose, completed judge-only result, and digest (`:321–354`).
2. **Transport only the frozen input.** Pass the unchanged `scoring.input` from the admitted run; do not rebuild or modify outcome rows. The native hook checks canonical equality against the frozen input (`:87–96`). Recorder root-admission evidence is supplied by authenticated native exact-point reads, not caller-supplied tool arguments (`:503–520`).
3. **Acquire the native write fence before invoking the scorer.** The native preparation hook records the attempt and tool-call binding before execution (`:97–145`). The direct path also checks exact admission, then calls the registered scorer and persists a returned readback (`:174–197`). Treat the fence as consumed even if the scorer response is lost.
4. **Keep the native receipt and recorder journal distinct.** Native `attempted`/`returned`/`failed` state records the write attempt and tool outcome; the scorecard JSONL journal records actual appended rows. Neither alone proves the other. The supplied receipt documents six recorded outcomes, zero skipped/uncertain, 12 appended rows, and a successful repeated readback adding no rows (`:548–579`).
### 2. Smallest acceptance checks
For a clean execution, require all of these:
- Exact direct request receipt and admission proof verify for the same root, run, and digest (`:321–354`, `:362–371`).
- Native preparation succeeds and the scorer is invoked only after the attempt fence is durable (`:123–145`, `:174–197`).
- Scorer result reports the expected recorded/skipped/uncertain counts; do **not** infer successful recording from transport success (`:148–164`; packet caveat `:583`).
- Reconcile journal before/after using an authoritative snapshot: verify the original prefix is preserved and the appended rows correspond to the frozen cohort, with no duplicate rows. The example receipt records before/after hashes and prefix preservation (`:548–564`), but the packet does not include the journal snapshot implementation or row-matching algorithm.
- Persist and read back the native result receipt; a repeat is accepted only as a readback and adds zero rows (`:174–197`, `:565–568`).
### 3. Recovery by interleaving
| Interleaving | Required handling |
|---|---|
| **Reload before admission/fence** | Re-read the exact native request/run/admission and current native attempt receipt. Proceed only if the exact frozen payload still verifies and no attempt was consumed. |
| **Reload after fence, before/during scorer** | Treat as uncertain unless authoritative native state proves no scorer call/side effect occurred. Do not replay merely because the caller has no response; the attempt fence intentionally blocks a second write (`:97–123`, `:583`). |
| **Response lost after journal append** | Read the native attempt/result receipt and the authoritative recorder journal. Match exact cohort rows and counts against the frozen payload, verify prefix preservation, then record/read back reconciliation. Do not call the scorer again. The packet explicitly says a crash after scorer side effect but before durable returned readback is uncertain and the consumed attempt cannot be replayed (`:583`). |
| **Partial cohort or skipped/uncertain rows** | Fail acceptance as complete recording. Preserve the uncertain/partial outcome for investigation; do not replay the full batch because that can duplicate already-appended rows. The adapter can return skipped/uncertain outcomes despite successful transport (`:148–164`, `:583`). |
| **Duplicate caller / concurrent call** | Serialize through the native RPC’s exclusive operation and run-activity/fence checks; reject a second attempt. For the direct path, an existing durable result is returned as replayed readback only when root and digest match (`:174–183`). Do not interpret that readback as a new write. |
**Authoritative reconciliation reads:** native direct request receipt and root→run pointer plus durable run/frozen judgment; native score-finalization/attempt and tool-call binding; exact recorder journal snapshot and rows; and durable direct result receipt. The admission proof’s exact-point reads bind request, run and digest (`:321–354`); the recorder adapter’s admission resolver validates that proof against root metadata (`:503–520`). Caller memory, tool transport status, and a digest supplied without authenticated reads are not authoritative.
**Rollback limits:** No rollback or compensation interface is shown. Once rows append, the packet supports neither deleting them nor safely replaying the batch. Preserve the journal prefix; stop on discrepancy and require a separately authorized/manual repair process. Public publication is separate and must remain out of scope (`:578–583`).
### 4. Deterministic supported surface and gap
The packet demonstrates a deterministic **clean path**: authenticated direct admission, exact frozen payload, native pre-call fence, scorer execution, durable readback, and idempotent repeated readback with zero additional rows (`:548–579`). The compatibility adapter’s ordinary batch path transports outcome evidence into the scorer, but rejects frozen references unless the native `execute.before` resolver handles them (`:397–418`); root-admission proof is transported through the adapter client (`:503–520`).
**Minimal missing interface for deterministic crash recovery:** a durable recorder-side reconciliation/readback operation keyed by `(rootSessionID, runID, payloadDigest)` that returns the exact committed cohort and append identity, and can distinguish “no append” from “fully/partially appended.” The packet gives a recorded/readback receipt and journal hashes but does not establish that this interface exists for recovery after a lost response. Without it, that interleaving remains uncertain and must not be retried.
### Unsupported claims and confidence
The packet does **not** establish atomicity across native storage and the recorder journal, a journal transaction ID, exactly-once append across crashes, rollback capability, or deterministic recovery from partial appends. It also does not provide the journal reconciliation implementation, so exact row-level reconciliation criteria are a proposal, not a source fact. Confidence is high for the one-shot fence and demonstrated clean-path readback; limited for crash recovery because the needed cross-system reconciliation contract is not evidenced.
Primary judge's stated reason
Forced, weak preference for A: its explicit warning against relying on unverified concurrent exclusion makes the duplicate-caller acceptance plan slightly safer to apply, and its recovery classifications expose more of the supplied admission machinery. This is not an established material quality difference; A also overstates the concurrency conclusion and treats source-version differences too strongly. An independent review could reasonably prefer B's better-calibrated treatment of the demonstrated clean path.
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_2867c4d0469b5c768496cddb34501ad0ac1d89dc230566d304612a8e580eb41b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.