← Model losses

Head-to-head comparison

openai / gpt-6-luna / max / max effort preferred over xai / grok-4.7-efficient / medium / medium effort · clear 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

Review the installed native BattleRanks recipe capture and publication lifecycle in this frozen source. Trace capture admission through finalization, write durability, unique run bindings, retry/recovery, and combined-sink handoff. Find concrete crash windows, duplicate publication risks, missing source bindings, or terminal-state handling errors. For each finding cite exact functions, give a minimal event sequence, state severity and preconditions, explain which existing guard fails or succeeds, and propose the smallest recovery or regression check. Keep provider authorization, admission gates, live controls, Terra judge, Sol synthesis and rating formulas unchanged. Do not edit files, launch models, or claim tests ran.

openai / gpt-6-luna / max / max effort answer

## Conclusion

The packet shows solid **pre-prompt admission checks** and **frozen dispatch/retry identity checks**, but it does not include finalization, durable artifact writes, scorecard publication, or startup recovery. I can identify two concrete conditional recovery/binding windows; I cannot establish a duplicate-publication bug or a terminal-state error from the supplied code.

## Findings

1. **Precreated sessions receive weaker identity checks — Medium, conditional.**  
   In the unnamed collection path in `native-run.capture-excerpt.txt`, lines 40–47, the `lane.precreated` branch checks only the child ID, worktree directory, and project ID before marking the lane `session-created`. By contrast, the `reuseCreated` branch at lines 27–39 checks run/lane/role/parent metadata, agent, model, parent project, and whether the child already has user or assistant messages.  
   **Sequence:** a precreated child belongs to the same worktree but has another run/lane/role/model binding or existing conversation → the limited checks pass → the path proceeds toward assignment admission at lines 123–130. The excerpt ends before showing whether inference is sent.  
   **Smallest check:** reject a precreated child with mismatched expected identity or disallowed prior messages; add a regression case for a same-worktree child with wrong metadata and one with existing context.

2. **Abrupt process exit can leave session creation between its side effect and recorded state — Medium, recovery unverified.**  
   The same collection path saves `create-attempting` before `session.create` (lines 49–55), then saves `session-created` only after it returns (lines 98–100). Its `reconcileSession` logic (lines 101–114) handles a caught error, not an abrupt process exit.  
   **Sequence:** the native session is created → the process exits before the second `saveRun` → persisted run state may remain `create-attempting`. Whether restart recovery reconciles the child, retries creation, or leaves the lane stuck is not shown. `saveRun` durability is also unspecified.  
   **Smallest check:** inject a restart after successful `session.create` but before the second save; verify recovery finds the same child and does not create or prompt a duplicate. This is an exposed window, not proof that recovery is absent.

3. **Combined-sink import order is documented but not enforced — Medium, conditional.**  
   `bindCombinedScorecardDirectory` in `combined-sink.js:5–18` validates and binds a process-wide directory. Its comment says the binding must precede importing the recorder because the journal path is captured on import, but the function cannot detect that the recorder was already imported.  
   **Sequence:** import recorder → bind directory → recorder may retain its earlier path despite the environment update. The recorder implementation and actual call order are not in this packet, so a wrong-path publication is conditional, not established.  
   **Smallest check:** exercise the real entrypoint and verify the recorder’s effective journal path after binding; ensure binding occurs before recorder import.

4. **Dispatch-to-receipt seat binding depends on a separate guard — Medium, conditional on call order.**  
   `bindResolvedRoster` in `moa-job-spec.js:357–382` checks explicit-job reviewer logical keys and synthesizer logical key, but does not itself compare receipt seats to the frozen job seats. `seatFromReceipt` (lines 265–313) also does not compare `receipt.seat` with `specSeat.seat`. The separate `assertDispatchMatches` function (lines 523–543) does enforce ordered logical keys and seats.  
   **Sequence:** a receipt has the expected logical key but a different qualified seat → `bindResolvedRoster` alone can freeze it → `assertDispatchMatches` would reject it if called. Call sites are absent, so whether this occurs in the installed flow is unknown.  
   **Smallest check:** regression-test the actual binding call sequence with a swapped seat and require rejection before any phase launches.

## Source-binding and recovery observations

- Synthesis provenance is partially captured: `synthesisPromptSHA256` hashes the exact prompt (`recipe-capture.js:6–9`), and `synthesisInstructionsSHA256` hashes `prompts.js` bytes (`:12–14`). The native session metadata stores both for synthesis (`native-run.capture-excerpt.txt:74–76`). The helper hashes bytes but does not archive them; the comment asks that exact source bytes be retained. Without a separate archive, the hash cannot recover the prompt implementation.
- The assignment `messageID` is passed to `nativeEventObserver.begin` (`native-run.capture-excerpt.txt:123–125`) but is not among the shown session metadata fields. The observer may durably retain it; that implementation is absent, so this is a metadata-level gap rather than a proven loss of binding.
- Retry identity has meaningful guards: `continuationJobSpec` requires the exact frozen job spec (`moa-job-spec.js:546–560`); `assertRecoveryDispatch` checks a bound roster’s current authorization or recomputes an unbound dispatch digest (`:569–579`); and `retainFrozenRoster` compares role, route, variant, effort, and seat (`:396–406`). These protect dispatch continuity, but do not establish capture-write durability or publication idempotency.
- The supplied code does **not** show result finalization, terminal-state transitions, journal writes, atomicity/fsync, combined-sink handoff, or publication deduplication. Therefore duplicate scorecard rows and terminal-state handling cannot be assessed from this evidence. `bindCombinedScorecardDirectory` binds a directory, not a visible per-run publication key.
- `moa-job-spec.js` imports `./moa-quality-routing.js`, which is outside the packet. Its policy behavior cannot be independently assessed here.

No tests or external checks were run.

xai / grok-4.7-efficient / medium / medium effort answer

Direct review of the frozen packet only. No tests ran, no files were edited, and no models were launched. The admitted lifecycle never seals a recipe publication. It can admit a session, send work, and retry without a durable run-unique capture binding.

## Findings

### 1. Precreated admission does not bind the run
Severity: high. Preconditions: `lane.precreated` is true and the session id, realpath directory, and `projectID` match. Metadata, agent, model, and existing prompts are unchecked.

`reuseCreated` in `source/native-run.capture-excerpt.txt` rejects a foreign `runID`, wrong agent/role/lane, model drift, and any user/assistant message (lines 26–38). The precreated branch (lines 40–47) does not. That weaker check is the one that succeeds. The stronger guard never runs because the branches are exclusive.

Sequence: a precreated session already has prompts or `metadata.agentTeamsV2.runID` for another run; id, directory, and project match; admission becomes `session-created`; `saveRun` persists it; execution falls through toward prompt send.

Smallest check: one regression where those three fields match but `runID` or a user message does not. Expect the same throw as the reuse path, before `saveRun`. Do not weaken the reuse checks.

### 2. Reconciled create continues without an identity check
Severity: high. Preconditions: `session.create` throws, and `reconcileSession` returns truthy. `reconcileSession` itself is outside this packet.

Lines 101–114 set `createReconciled` and `session-created-reconciled`, save, then fall through to writer validation and `begin` (lines 116–125). There is no second pass over lines 30–36.

Sequence: create fails after a session with that id exists; reconcile succeeds; a dirty or cross-run session is prompted.

Smallest check: reconcile a session whose metadata `runID` differs or whose context is non-empty, and assert admission stays uncertain and no prompt observer starts. Keep the existing create-uncertain return for a false reconcile.

### 3. `reuseCreated` can prompt before admission is durable
Severity: high. Preconditions: `reuseCreated` is true, `continuedFrom` is false, and a crash or second worker occurs before some later save that this excerpt never performs.

`continuedFrom`, precreated, and successful create all `saveRun` before the prompt section (lines 25, 47, 100). The reuse branch sets `lane.admission = "session-created"` in memory only (line 39). The outer branch also never reads `lane.admission`. A persisted `session-created` lane that is not `continuedFrom`, `reuseCreated`, or `precreated` falls into `create-attempting` (lines 48–52).

Sequence: reuse verifies identity, process dies before a later save, restart does not reload `reuseCreated`, `session.create` runs again for the same `childSessionID`.

Smallest check: crash after line 39 and before `begin`. Restart must not call `session.create`, and must not call `begin` until `session-created` is durable. This is persistence ordering, not an admission-gate change.

### 4. `create-attempting` is an unreconciled crash window
Severity: high. Preconditions: `saveRun` at line 52 succeeds, native create commits, then the process dies before line 100. The catch at line 101 does not run on process death.

Sequence: durable admission is `create-attempting`; a live child exists with recipe metadata; restart takes the `else` create path unless a flag outside this excerpt prevents it.

Smallest check: fixture with durable `create-attempting` plus an existing child id. Recovery may only reconcile, and only along the reuse identity checks. It must not issue a second create.

### 5. Recipe capture is write-only and not run-sealed
Severity: high. Preconditions: role is `synthesis` on the create path, or any non-create admission path.

`synthesisPromptSHA256` and `synthesisInstructionsSHA256` in `source/recipe-capture.js` only hash. The instructions comment says to retain `prompts.js` bytes; nothing writes those bytes, a run id, or a dispatch digest. The only store site is create metadata at line 76 of the native excerpt. Resume, reuse, precreated, and reconciled paths do not read the hashes back. Analysis, judge, and writer prompts are not hashed. `prompts.js` is outside the packet, so the instructions hash cannot be recomputed here.

Sequence: create stores `synthesisPromptSHA256(prompt)`; resume sends a different prompt; publication still cites the old metadata hash. Or `prompts.js` changes after create; the hash is not recoverable to bytes.

Smallest check: resume a synthesis child with a different prompt string and assert refusal before send. Separately assert an archive record exists whose bytes hash to the stored instructions digest and whose key includes `runID` and `laneID`. Do not change the hash functions.

### 6. Combined-sink handoff has no publication identity
Severity: high. Preconditions: two runs in one process, or a crash after bind and before a journal write. The journal is not in this packet.

`bindCombinedScorecardDirectory` in `source/combined-sink.js` only checks a canonical absolute path, then writes `process.env.OPENCODE_SCORECARD_DIR` and `globalThis[Symbol.for(...)]` (lines 5–18). It does not take `runID`, recipe hash, dispatch digest, or an idempotency key. No admitted caller links it to native `combinedProfile`, `combinedApplicabilitySource`, or `combinedTaskDeclaration` (native lines 78–81). Those fields are copied only into create metadata.

The conflict guard (lines 14–15) succeeds only after a binding already exists. The first bind overwrites a pre-set env and does not fsync a publication. `resolve` is not `realpath`, and existence is not checked.

Sequence: run A binds directory D; run B rebinds the same D; both are allowed; a crash leaves no sealed scorecard record distinguishing them.

Smallest check: same directory, two run ids, one crash between bind and any later write. Expect at most one sealed record per run id, and refuse a second seal with the same run id. Do not change the conflict-requires-restart rule.

### 7. Judge re-selection ignores revocation
Severity: high. Preconditions: `snapshot.moa.jobDispatch.source === "job"`, the judge or fallback still matches provider, model, mode, tools, and advertised variant, but `enabled === false`, `available === false`, or `retired === true`.

`chooseJobJudge` (lines 581–601) returns that seat. `assertMoaSeatAuthorization` (lines 425–426) would throw. It is not called. `fail` succeeds only when no non-conflicting seat remains (line 601).

Sequence: frozen job judge is retired; identity fields still match; `chooseJobJudge` returns it; a new judge phase can start.

Smallest check: retired route with unchanged identity must throw before return. Leave `assertMoaSeatAuthorization` and catalog qualification as they are; call the existing revocation checks from this path.

### 8. Retry drops the unique bound identity
Severity: high. Preconditions: a previous `moaDispatchSpec` exists.

`continuationJobSpec` (lines 546–559) returns `frozen.jobSpec` or `{ source: "preset" }`, not the bound roster. Receipt and assignment ids are dropped. Unbound `assertRecoveryDispatch` (lines 569–578) re-resolves and compares digests only. Preset `presetSpec` (lines 131–161) does not include variant or effort, so a variant change can keep the same digest. Bound `retainFrozenRoster` (lines 384–405) compares role, logicalKey, provider, model, variant, effort, and seat only. It ignores `assignmentID`, `receiptID`, mode, tools, and budget. It is not used by continuation.

Sequence: bound job crashes after roster bind; continuation re-resolves `jobSpec`; a new assignment id is launched under the same logical keys. Preset variant: unbound digest matches, a different variant is launched.

Smallest check: continuation must refuse when the launched roster’s assignment ids differ from the bound frozen roster, and an unbound preset digest match must still refuse a variant or effort change. Do not change `qualify` or provider checks.

### 9. Receipt binding can fabricate eligibility and reseal a bad spec
Severity: medium. Preconditions: preset source, or a recovery snapshot produced by `overlayJobSnapshot` / `snapshotFromDispatch`.

`seatFromReceipt` (lines 293–297) sets `eligible: true` with `admittedBy: "resolved-receipt"` when the catalog candidate is missing. `assertMoaSeatAuthorization` accepts any preset pool row with `eligible === true` (lines 443–444) and does not read `admittedBy`. `overlayJobSnapshot` writes those rows back into `moa.resolved` (line 489). A later auth check on that overlay snapshot passes. Job source still requires `manualEligible === true`, so that guard holds for jobs.

`bindResolvedRoster` (lines 357–381) does not call `assertFrozenDispatch`. It strips `digest` and freezes a new one (lines 370–381). Its job match is set membership of logical keys only (lines 364–368). `assertDispatchMatches` (lines 523–544) is order- and seat-sensitive, but returns immediately when `spec.enforced` is false (line 524), which is every preset without `qualitySeatOverride`.

Sequence: preset receipt for a logical key absent from the eligible pools; bind seals `eligible: true`; overlay; auth on the overlay succeeds. Parallel sequence: reviewers swapped; bind seals them; `assertDispatchMatches` is not called.

Smallest check: preset bind must fail closed when `original.eligible !== true`. A second check must reject swapped reviewer order even when `enforced` is false, without changing the job qualification rules. Treat an overlay snapshot as an untrusted input to `assertFrozenIdentity`.

### 10. `create-uncertain` is not a sealed terminal failure
Severity: medium. Preconditions: create throws and reconcile returns false, including when `synthesisInstructionsSHA256()` throws inside the create argument before `session.create` runs.

Lines 105–109 set `create-uncertain`, save, and `return lane` without throwing. Hash failure, create failure, and reconcile miss share that state. No admitted function maps it to a final “not published” record. A caller that publishes any returned lane can publish uncertainty. That caller is outside the packet.

Continuation also `saveAuthority` and may `session.update` (lines 13–15) before admission `session-resumed` is saved (line 25). A crash in between leaves authority and permissions ahead of admission. `saveAuthority` runs again at line 21. If that store is append-only, authority rows duplicate. Durability of `saveRun` is outside the packet.

Smallest check: `create-uncertain` must not be publishable, and a hash throw must not be labeled as an uncertain create. Restart from authority-saved plus admission not `session-resumed` must be idempotent and must not send a prompt.

### 11. Reuse can keep stale session permissions
Severity: medium. Preconditions: `reuseCreated` is true, the lane is not `continuedFrom`, and it is not `(precreated && !policyAlreadyInstalled)`.

Permissions are computed (line 2) and applied in the side-effect block (lines 5–16) or in `session.create` (line 96). The reuse branch does neither.

Sequence: policy tightened after the session was created; reuse admits it; old permissions remain.

Smallest check: reuse with a changed permission object must update or refuse before prompt. Leave the continuation parent-policy comparison (lines 6–10) unchanged.

## Discarded
- Overlay replacing catalog input limit with seat budget is a tighten after `qualify`, not a limit bypass, if the original qualify already passed.
- Env write then `globalThis` write in `bindCombinedScorecardDirectory` is synchronous. It is not an in-process crash window.
- Case-only logicalKey mismatches are fail-closed on the exact `===` auth path. Not a duplicate-publication path.
- Duplicate `assignmentID` assignment in `seatFromReceipt` (lines 305 and 307) is redundant, not a second bind.

## Missing evidence
`source/moa-quality-routing.js` is outside the packet, so `policyReason` is unverified. Also absent: `prompts.js`, the scorecard recorder, `saveRun` / `saveAuthority` fsync and idempotency, `reconcileSession`, `assertContinuationSession`, `assertCollectionRequest`, and every native line after 130. Consequence: journal durability, prompt-send idempotency, and whether any caller actually invokes `retainFrozenRoster` before launch cannot be confirmed. Terra judge, Sol synthesis, and rating formulas are not in the packet and were not inferred.

## Next useful action
Add regression fixtures for findings 1–4 and 7–8 against the frozen functions. Do not launch models, and do not change provider authorization, admission gates, live controls, or those formulas. Wire publication only after a durable admission plus a run-scoped recipe digest that continuation cannot drop.

Primary judge's stated reason

A is more reliable for deciding which recovery defects are evidenced and which require verification, reducing the risk of unnecessary changes to protected admission or authorization behavior. This is a clear comparative advantage in evidentiary correctness, not a claim that A completes the unavailable lifecycle trace or that all B observations are wrong.

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

Battle wave: 705ae38b-ca93-4775-b806-02cf89120b55. Pair: brp1_745763cc986b960c593f1240039ed7b31ac427c8e6fc9eb21864b81bb3f152b8. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.