← Model losses

Head-to-head comparison

xai / grok-4.7-efficient / high / high effort preferred over xai / grok-4.7-efficient / xhigh / xhigh 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

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.

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

The visible lifecycle never finalizes a run-unique recipe into the combined sink. It can persist authority and `session-created` before a single prompt, and several branches can prompt again or strand retry. Direct review of the frozen packet only. No tests were run.

## Findings

1. Reconciled create skips identity and prompt guards, then falls through to prompt. High.  
   Functions: create `catch` in the native excerpt (`reconcileSession`, admission `session-created-reconciled`) versus `reuseCreated` checks.  
   Sequence: `session.create` throws after a session with that id exists → `reconcileSession` returns truthy → admission saved as `session-created-reconciled` → no `runID` / lane / empty-context check → `nativeEventObserver.begin` → `admitPrompt`.  
   Preconditions: create throws; reconciled session is a leftover, another run, or already has a user/assistant message.  
   Guard that fails: identity and empty-context checks at the `reuseCreated` branch are not applied on the reconciled path. The only visible prompt guard is `role === "analysis"`, and it is not reached before this fall-through. `create-uncertain` does return before prompt; that guard succeeds only when reconcile is falsy.  
   Check: reconcile a session whose `metadata.agentTeamsV2.runID` differs or which already has a user message; expect throw before prompt, one inference max.

2. `precreated` can double-prompt. High for synthesis recipe capture.  
   Functions: `precreated` branch versus `reuseCreated`; synthesis hashes only inside `session.create` metadata (`synthesisInstructionsSHA256`, `synthesisPromptSHA256`).  
   Sequence: precreated session prompted → crash before any prompt-sent record → retry with `lane.precreated` → checks id/directory/projectID only → `session-created` saved → prompt again. Hashes are not rewritten on this path.  
   Preconditions: `lane.precreated`; session already contains a prompt; role is not protected by a later guard. Synthesis/judge/writer guards are not in the excerpt.  
   Guard that fails: `reuseCreated` rejects any user/assistant message; `precreated` does not.  
   Check: inject a user message into a precreated session and re-enter; expect the same fail-closed error as `reuseCreated`, and exactly one scorecard row per `runID`.

3. No terminal published state; `create-attempting` is durable before the session exists. High.  
   Functions: native create branch (`admission = "create-attempting"` then `saveRun`, then `session.create`).  
   Sequence: `saveRun(create-attempting)` → process crash after native create commits and before `saveRun(session-created)`. The `catch` does not run on process death.  
   Preconditions: crash or kill in that window. Restart logic for `create-attempting` is not in the packet.  
   Guard that fails: intent is persisted before the effect; visible states stop at `create-uncertain` / `session-created` / `session-created-reconciled` / `session-resumed`. None means prompt-admitted or sink-finalized.  
   Check: kill after `create-attempting` is durable and the native session exists; resume must reconcile that same `childSessionID` and send one prompt, not allocate a second id.

4. Authority is saved before create, and `create-uncertain` does not roll it back. Medium.  
   Functions: `saveAuthority` before the create branch; `create-uncertain` return.  
   Sequence: `saveAuthority` → create throws → reconcile falsy → `create-uncertain` + `saveRun` → return. Authority remains for a session that may not exist.  
   Preconditions: new-session path; create throws; reconcile falsy; a collector treats authority as admitted.  
   Guard that succeeds: this function returns before `admitPrompt`.  
   Guard that fails: no authority rollback and no publication fence on `create-uncertain`.  
   Check: force that sequence; authority must be absent or marked non-publishable; a second entry must not prompt a different `childSessionID`.

5. `reuseCreated` sets `session-created` and does not `saveRun` before prompt. Medium.  
   Functions: `reuseCreated` branch versus `precreated` / successful create, which do `saveRun`.  
   Sequence: empty-context check passes → admission set only in memory → crash during prompt.  
   Preconditions: `reuseCreated` and a crash before some later save.  
   Guard that succeeds on retry: the empty-context check should then fail closed if the prompt landed.  
   Guard that fails: admission durability before side effect.  
   Check: `saveRun` of `session-created` must happen before prompt; a landed prompt must not pass admission again.

6. Continuation stamps `session-resumed` then falls through to prompt, without refreshing write-once recipe metadata. Medium.  
   Functions: `continuedFrom` path; create metadata (`turn`, synthesis hashes, `combinedProfile`, `combinedTaskDeclaration`, `judgeSerializationRecovery`). Comment says template identity and assignment provenance cannot be backfilled.  
   Sequence: resume → `saveRun(session-resumed)` → prompt on the old session. `run.turn` may have moved; metadata `turn` and recipe hashes stay at create time.  
   Preconditions: `lane.continuedFrom`; publication reads session metadata rather than the live run.  
   Guard that succeeds: continuation parent policy compare fails closed if project-read binding changed.  
   Guard that fails: resume does not update recipe/turn bindings, and still enters `admitPrompt`.  
   Check: synthesis continuation on turn 2 must not publish turn-1 metadata as the turn-2 recipe, and must not send a second prompt if a user message is already present.

7. Judge recovery attempt is fixed at 2. Medium.  
   Function: create metadata `judgeSerializationRecovery` (`attempt: 2` literal).  
   Sequence: first judge retry stamps attempt 2 → another retry creates again with attempt 2 and a longer `judgeRejectedAttempts` list.  
   Preconditions: `role === "judge"` and `run.judgeRetry` set for more than one recovery; dedupe key includes attempt.  
   Guard that fails: no monotonic attempt counter. The stamp exists only on the create path, not on resume/precreated/reuse.  
   Check: two serialization recoveries yield distinct attempt numbers and distinct sink keys; neither overwrites the other.

8. Synthesis recipe hash is not a durable source binding. High for unreproducible publication.  
   Functions: `synthesisPromptSHA256`, `synthesisInstructionsSHA256`; called only from synthesis `session.create` metadata.  
   Sequence: hash `./prompts.js` bytes and prompt string → store hex in session metadata → no archive write, no `runID` in the hash, no handoff into `bindCombinedScorecardDirectory`.  
   Preconditions: synthesis create. `prompts.js` is outside this packet.  
   Guard that fails: comment requires retaining exact source bytes; no function writes them. Hash and later `admitPrompt` send are not shown to be the same bytes.  
   Check: after create, archived prompt and `prompts.js` bytes match the two metadata digests and `runID`; crash between hash and archive must not publish.

9. Combined-sink handoff is a process-global env bind, not a run publication. High.  
   Function: `bindCombinedScorecardDirectory`.  
   Sequence: first call ignores a pre-set `OPENCODE_SCORECARD_DIR`, assigns env, then `globalThis[Symbol.for(...)]`. Recorder path is captured on import (comment only). No run id, generation, rename, or fsync.  
   Preconditions: recorder evaluated before bind, or env already pointed at another directory; two runs share the process.  
   Guard that succeeds: a second bind of a different directory throws until host restart; non-absolute, non-canonical, `/`, and NUL paths throw. `combinedSeasonEnabled` is required.  
   Guard that fails: first bind does not compare the recorder’s already-captured path; symlink vs `resolve` is not `realpath`, so “canonical” is only string-canonical.  
   Check: import recorder, then bind a different directory, must throw; journal path must equal the bound directory; two `runID`s must not overwrite one journal row.

10. Bound preset with a judge backup cannot recover. High for relaunch duplicates.  
   Functions: `presetSpec` fallback `{ role, logicalKey, bound: false }`; `bindResolvedRoster` copies preset fallbacks unchanged; `assertFrozenIdentity` / `assertMoaSeatAuthorization`.  
   Sequence: preset backup set → `bindResolvedRoster` sets `bound: true` → retry `assertRecoveryDispatch` → thin fallback lacks provider/model/mode/tools → throw `identity drifted`.  
   Preconditions: `source === "preset"`, `bound === true`, `judge.control.backup` set.  
   Guard that fails: authorization is applied to unqualified preset fallbacks, not only to `judgePolicy.allowed` seats already built by `seatFromReceipt`. Job fallbacks are qualified; this path is not.  
   Check: bind that preset and call `assertRecoveryDispatch`; it must not throw on the thin fallback and must not start a second run. Do not change the authorization predicate.

11. Job bind is set-equality, so review/challenge can swap before freeze. High for mis-bound recipe.  
   Functions: `bindResolvedRoster` job match; `jobSpecFrom` `qualitySeats.phases`; `assertDispatchMatches`; `overlayJobSnapshot` contestant index.  
   Sequence: spec reviewers `[A, B]` → receipts `[B, A]` → bind succeeds → `reviewers` becomes `[B, A]` while `qualitySeats.phases.review` stays A → digest freezes the swap. `assertDispatchMatches` would reject index mismatch but is not called by bind.  
   Preconditions: `source === "job"`; receipt order differs; publication uses `reviewers[0]` or `frozen-${index}` when `assignmentID` is absent.  
   Guard that fails: bind’s `includes` check. Guard that would succeed: `assertDispatchMatches`, if invoked before freeze.  
   Check: reversed receipts are rejected or reordered to spec order before `freeze`; published review/challenge keys stay on the spec seats.

12. Receipt bind can mark a seat eligible, then recovery revokes it. Medium.  
   Functions: `seatFromReceipt` `admittedBy: "resolved-receipt"`; `assertMoaSeatAuthorization` pool check.  
   Sequence: route exists, candidate pool miss → bind sets `eligible: true` → later `assertFrozenIdentity` throws `role eligibility was revoked` because `matches.length` is 0.  
   Also: if two pool rows share `logicalKey` and one has `eligible !== true`, `matches.some(...)` revokes even when another row is eligible.  
   Preconditions: bind via receipt; retry uses `assertFrozenIdentity`.  
   Guard that fails: bind does not apply the recovery eligibility rule, so the run starts and retry cannot continue.  
   Check: unknown or mixed-eligibility logicalKey fails at bind, before launch. On revocation, do not relaunch; leave the capture unpublished. Do not weaken the existing gate.

13. Frozen retain and dispatch digest are not run-unique. Medium.  
   Functions: `rosterIdentity` / `retainFrozenRoster`; `moaDispatchDigest`.  
   Sequence: same provider/model/variant/effort/seat, different `assignmentID` or `runID` → retain returns the old frozen object. Digest covers spec body only, not `runID` or prompt hash.  
   Preconditions: retry gate is retain or digest; sink dedupes on digest.  
   Guard that succeeds: digest mismatch and unbound `bound !== true` fail closed.  
   Guard that fails: identity omits `assignmentID`, `receiptID`, and `runID`.  
   Check: same seats, different `runID`, must yield two sink rows and must not satisfy retain as one execution.

14. Unbound preset recovery is digest-only. Medium.  
   Function: `assertRecoveryDispatch` (`bound === true` calls `assertFrozenIdentity`; otherwise re-resolve and compare digest, return original frozen).  
   Sequence: unbound preset, logicalKey stable, provider/model changed underneath → digest matches → provider drift not checked.  
   Preconditions: `bound !== true`, `source === "preset"`.  
   Guard that fails: existing `assertMoaSeatAuthorization` is not reached.  
   Check: document this as digest-only; if product intent is fail-closed, call the existing gate. Do not add a new authorization formula.

15. `qualitySeats` drops reviewers after the second. Medium.  
   Function: `jobSpecFrom` phases `review`/`challenge` use only `reviewers[0]` and `reviewers[1]`.  
   Sequence: job with three qualified reviewers → `reviewers` and `budgets` include all three → `qualitySeats` does not.  
   Preconditions: explicit job, `reviewers.length > 2`; publisher keys off `qualitySeats`.  
   Guard that succeeds: `assertIndependent` covers the full list.  
   Guard that fails: phase map does not.  
   Check: a 3-reviewer job’s published roster lists all three logicalKeys. Do not change Sol/rating formulas.

16. Second `bindResolvedRoster` can leave `comparison: true`. Low.  
   Function: `bindResolvedRoster` conditional spread.  
   Sequence: first bind with duplicate logicalKeys sets `comparison: true` → second bind with unique reviewers spreads `body` and does not clear `comparison` → overlay keeps contestant ids.  
   Preconditions: double bind.  
   Check: unique rebind omits or sets `comparison` false before digest.

## Alternatives and discarded hypotheses

- Env assign then `globalThis` assign is not a durable crash window: no await, and process death drops both. The real handoff bug is import order and a missing run write.
- `create-uncertain` returning before prompt is a successful in-process guard, not a duplicate-prompt bug, unless the caller ignores admission or changes `childSessionID`.
- Continuation policy compare (parent project-read binding) fails closed; that gate should stay.
- `chooseJobJudge` skipping participants with `qualityEligible === false` may be intentional. Same model can become judge if the reviewer row is not `completed`. Treat as a binding risk only if publication claims independence from that filter. Do not change the Terra judge selection rule in this pass.
- Preset synthesizer substitution (`specSeat` null when logicalKey differs) is real only if `assertDispatchMatches` is not on that path. Job source already rejects set mismatch. Lower confidence than the order swap.
- `path.resolve` without `realpath` is a canonicalization gap, not by itself a double publish, because a second different string already throws.

## Missing evidence

- `./moa-quality-routing.js` (`policyReason`) is outside the packet. Policy veto text is unverified.
- `./prompts.js`, the recorder that captures `OPENCODE_SCORECARD_DIR` on import, `saveRun` / `saveAuthority` / `reconcileSession`, childSessionID allocation, and `admitPrompt` after the analysis check are outside the packet. Duplicate-prompt claims for synthesis/judge/writer are proven only up to the visible fall-through.
- No scorecard write, fsync, or idempotency key appears in these files. Cross-process journal behavior is unknown.
- Terra judge, Sol synthesis, and rating formulas are not in the packet and were not inferred.

## Next useful action

Add fail-closed regression checks for findings 1, 2, 10, and 11 before any sink write: reconciled and precreated sessions with an existing prompt or foreign `runID` must not prompt; a bound preset with judge backup must recover without a second launch; reversed job receipts must not swap `qualitySeats`. Keep provider authorization, admission gates, live controls, and those formulas unchanged. Do not publish from `session-created` or authority alone until a run-keyed archive of the hashed prompt and `prompts.js` bytes is durable.

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

Direct review of the frozen packet only. No tests were run, and no files outside the packet were opened.

## 1. Conclusion

The admitted snapshot does not close a capture-to-publication lifecycle. Recipe identity is hashed only inside the fresh `session.create` argument, is not written onto the run, is not part of the MoA frozen digest, and is never passed to `bindCombinedScorecardDirectory`. The excerpt ends at prompt admission, so finalization is absent here. The concrete failures are false `create-uncertain` terminals, a reconcile path that skips the reuse guards, non-atomic authority handoff, and a process-global sink bind with no run id.

### F1. Pre-create failures are persisted as `create-uncertain` (high, confidence high)
Functions: native-run excerpt lines 48–114; `synthesisInstructionsSHA256` and `synthesisPromptSHA256` (`recipe-capture.js` lines 6–14). No in-packet reader of `create-uncertain`.

Sequence:
1. Lines 51–52 set `lane.admission = "create-attempting"` and `saveRun`.
2. Line 21 has already called `saveAuthority`.
3. Inside the create callback, `synthesisInstructionsSHA256()` (`readFileSync` of `./prompts.js`) or `synthesisPromptSHA256(prompt)` throws before `session.create`, or `session.create` / the following `saveRun` (line 100, still inside the `try`) throws and `reconcileSession` returns falsy.
4. Lines 106–109 persist `create-uncertain`, set `lane.error`, and `return lane` instead of throwing.

Preconditions: synthesis role with missing `prompts.js`, empty prompt, or a durable-write failure after a create the reconciler does not see. Judge create has the same shape if `run.judgeRetry` is set and `run.judgeRejectedAttempts` is nullish (lines 84–91, `.map` during argument evaluation).

Guard: the `reconcileSession` branch is the wrong classifier for an exception that happens before the native call. It succeeds only when a session truly exists and is visible. It fails open into an ambiguous terminal state for deterministic local errors. Unlike reuse/precreate identity failures, this path does not throw. Nothing in the packet transitions `create-uncertain` to reconciled, failed, or finalized.

Smallest check: force `synthesisInstructionsSHA256` to throw and force `saveRun` to throw after a successful create with a blind reconciler. Assert the persisted admission is a definitive pre-create or needs-reconcile failure, authority is not left published for a session that was never created, and a retry does not emit a second scorecard row. Do not change provider authorization or admission gates.

### F2. Reconcile, precreate, and resume do not bind the recipe or the run (high, confidence high)
Functions: excerpt lines 23–47 and 104–130; hash helpers above. `reuseCreated` lines 30–36 are the stricter guard.

Sequence (reconcile):
1. `session.create` throws after a prior attempt already created or prompted the child.
2. `reconcileSession` returns truthy.
3. Lines 111–113 save `session-created-reconciled` with no check of id, `realpath`, project, agent, `agentTeamsV2.runID` / `laneID` / role, model, empty context, or recipe hashes.
4. Execution falls through line 116 to observer `begin` and `admitPrompt`.

Sequence (precreate): lines 41–45 compare id, directory realpath, and projectID only, then save `session-created` and fall through. `runID` and synthesis hashes are not checked. `reuseCreated` does check `agentTeamsV2.runID` (line 33).

Sequence (resume): lines 23–25 save `session-resumed` and fall through. No visible re-read of `synthesisPromptSHA256` / `synthesisInstructionsSHA256` / `combinedJudgeEvidence`.

Preconditions: retry re-enters the `else` create branch; or `lane.precreated` / `lane.continuedFrom` for a synthesis or combined judge lane. The visible prompt-context check (lines 128–130) is analysis-only and truncated.

Guard: `reuseCreated` identity/context checks succeed only on that branch. They are not applied after reconcile. `assertContinuationSession` may add checks, but that body is not in the packet.

Smallest check: existing prompted session, create throws, reconciler returns the session. Assert no second prompt and no publication unless metadata `runID`, lane id, and both recipe hashes match the current prompt and `synthesisInstructionsSHA256()`. Same assertion for precreate when metadata `runID` differs. Do not weaken the reuse checks.

### F3. Recipe identity is not durable and is not a retry binding (high, confidence high)
Functions: `synthesisPromptSHA256`, `synthesisInstructionsSHA256`; excerpt line 76; `assertFrozenDispatch`, `assertRecoveryDispatch`, `moaDispatchDigest`, `retainFrozenRoster`.

Sequence:
1. Hashes are computed only as metadata fields of the fresh create object (line 76). They are not assigned onto `run` or `lane` before either `saveRun`.
2. `synthesisInstructionsSHA256` hashes `prompts.js` at call time and returns hex only. The comment says to retain the source bytes; no archive write exists.
3. Crash after native create and before line 100 leaves hashes only in session metadata, while the durable admission is still `create-attempting`.
4. Retry calls `assertRecoveryDispatch`. Unbound specs re-resolve the MoA digest only. Bound specs call `assertFrozenIdentity`. Neither input includes the prompt hash, instructions hash, or instructions bytes.
5. A rebuilt prompt can be created under the same frozen digest and published again.

Preconditions: synthesis create; retry after catalog-stable MoA freeze; `prompts.js` edited or prompt rebuilt. `prompts.js` is outside the packet.

Guard: `assertFrozenDispatch` succeeds for any digest-matching spec and does not see recipe drift. The “cannot backfill” comment (lines 74–75) succeeds at blocking backfill and fails as a substitute for a run-level binding.

Smallest check: freeze a bound spec, change the prompt or `prompts.js`, retry. Assert the retry is refused or explicitly a new run id, and that the original instructions bytes are required to reproduce `synthesisInstructionsSHA256`. Do not change Sol synthesis selection or rating formulas.

### F4. `reuseCreated` success is not persisted before prompt (medium, confidence high)
Function: excerpt lines 26–39, then 116–125.

Sequence:
1. Identity checks pass.
2. Line 39 sets `lane.admission = "session-created"` in memory only. Precreate (line 47), fresh create (line 100), and reconcile (line 113) all `saveRun`.
3. Line 125 `begin`s the assignment and `admitPrompt` starts.
4. Crash before a later save drops the admission mark. A retry that does not take `reuseCreated` can enter F2. A retry that does, after the prompt was sent, hits the context check and fails closed, leaving a stuck paused child rather than a single finalized publication.

Preconditions: `reuseCreated` truthy; kill or throw in `validateWriterProfileExecution` or prompt admission before the next `saveRun`.

Guard: the reuse context check succeeds only if the same branch is used and the prompt already landed. It does not make the success mark durable.

Smallest check: pass reuse checks, throw before prompt, reload from the last `saveRun`. Assert admission is unchanged and prompt count is zero. Then complete one retry and assert one prompt.

### F5. Authority and permission side effects commit before continuation is re-checked (medium, confidence high)
Function: excerpt lines 5–21.

Sequence:
1. For `lane.continuedFrom`, line 11 `assertContinuationSession` passes.
2. Line 13 `saveAuthority`, then lines 14–15 `session.update` permissions.
3. Line 19 asserts continuation again. A concurrent session change throws here.
4. Line 21 writes the same authority again on every continuation.

Preconditions: `continuedFrom`; session or authority changes between the two asserts. `saveAuthority` append-vs-upsert is outside the packet, so duplicate publication is confirmed as a double call, not as a proven double ledger row.

Guard: the second assert fails closed for the rest of the function and does not roll back the permission update or the first authority write. The runID overwrite in the line 8 comparison looks intentional and is not counted as a defect.

Smallest check: mutate the child between the two asserts and assert permissions and authority remain at the pre-update binding. Assert one authority record per `(runID, childSessionID)` after a successful continuation.

### F6. Combined-sink handoff is unbound and can overwrite an existing directory (high for disconnection, confidence high; env overwrite confidence high)
Function: `bindCombinedScorecardDirectory` (`combined-sink.js` lines 5–18). No call site exists in the packet. The excerpt stamps `combinedProfile`, `combinedApplicabilitySource`, `combinedTaskDeclaration`, and `combinedJudgeEvidence` only on the create metadata (lines 79–83) and never binds a scorecard directory.

Sequence:
1. Combined session metadata is created without a sink bind.
2. First bind with `globalThis` unset skips both conflict checks and assigns `process.env.OPENCODE_SCORECARD_DIR` even if that env already names another directory (lines 14–16).
3. The bind has no `runID`, recipe hash, or digest argument. `path.resolve` does not `realpath` symlinks, unlike the excerpt’s `realpathSync` session checks.
4. The module comment requires bind-before-recorder-import. The function does not enforce that. There is no unbind, marker fsync, or supersede of a previous run’s publication.

Preconditions: `combinedSeasonEnabled === true` and a directory argument; or a combined run that omits `scorecardDirectory` and gets `null` (lines 5–6) while create metadata still claims a combined profile. Recorder import order is outside the packet.

Guard: the conflict checks succeed only after `globalThis` is already bound. They fail on first bind. The enabled-flag check succeeds when a directory is present and is not applied when the directory is omitted.

Smallest check: pre-set `OPENCODE_SCORECARD_DIR` to directory A, bind B, assert throw and A unchanged. Bind once, symlink the directory, assert the stored path equals `realpath`. Publish two run ids and assert the sink key includes run id plus recipe hash. Do not change live controls.

### F7. No exactly-once finalization barrier (high, confidence high that it is absent)
Functions: none in the packet. Trace ends at excerpt line 130.

Sequence:
1. Durable admissions include `create-attempting`, `session-created`, `session-created-reconciled`, `session-resumed`, and `create-uncertain`.
2. No function finalizes, acks, or idempotency-keys a scorecard write.
3. `create-uncertain` returns the lane after authority was saved. An outer publisher that treats a returned lane as complete will publish an uncertain capture; a later retry can publish again.
4. MoA `freeze` changes the digest when bind adds `bound`, receipt ids, and `judgePolicy`, with no tombstone of the unbound digest.

Preconditions: any retry after a successful native create, or a publisher hooked to every `saveRun` / returned lane. Publisher behavior itself is outside the packet; the missing barrier is inside it.

Guard: no guard. `assertRecoveryDispatch` prevents digest drift and does not prevent a second publication of the same run.

Smallest check: crash matrix at create-attempting, post-create pre-save, `create-uncertain` return, and post-prompt. Assert at most one sink record per run id, and assert `create-uncertain` is not publishable. Do not change rating formulas.

### F8. Retry roster identity drops phase order and assignment id (medium, confidence high)
Functions: `retainFrozenRoster` lines 396–405; `rosterIdentity` lines 384–393; `bindResolvedRoster` lines 363–368; `assertDispatchMatches` lines 523–541.

Sequence:
1. Job reviewers are ordered review then challenge (`qualitySeats.phases`, lines 192–194).
2. `bindResolvedRoster` accepts receipts by set membership, not index, so order can flip and still freeze.
3. `retainFrozenRoster` sorts identities and compares logicalKey, provider, model, variant, effort, and seat. Both phases are `role: "reviewer"`. Assignment id and receipt id are omitted. Swapped reviewers match.
4. `assertDispatchMatches` requires index order and would reject that swap, but `retainFrozenRoster` does not call it.

Preconditions: bound job spec, two reviewers, retry receipts swapped or reused under a new assignment id. Same-model relaunch is not an authorization bypass; it is mis-attribution and a duplicate publication under the frozen digest.

Guard: `assertDispatchMatches` would fail the swap and is not on this path. `retainFrozenRoster` succeeds incorrectly. Judge exclusion is not by itself a defect: `chooseJobJudge` is the judge guard and must be the one invoked. `originalCandidate` trims pool keys (line 101) while `assertMoaSeatAuthorization` uses exact `===` (line 442), so an admitted seat can later fail closed and stick retry. That guard fails closed; it does not duplicate publication.

Smallest check: swap reviewer receipt order and assert `retainFrozenRoster` throws without launching. Assert assignment id is part of the retained identity. Do not change `qualify` or seat authorization rules.

Related gate note, not a proposed policy edit: `seatFromReceipt` lines 293–297 sets `eligible: true` with `admittedBy: "resolved-receipt"` when the live candidate is missing. `candidate()` then accepts it. `assertMoaSeatAuthorization` still fails closed if recovery passes the live catalog snapshot; it does not if recovery passes `snapshotFromDispatch(spec)`, which copies the seat into `routes` and eligible pools (lines 223–254, 450–519).

## 2. Alternatives, disagreements, discarded hypotheses

- Continuation `canonicalJSON` overwriting `runID` (excerpt line 8) is treated as intentional policy equality, not a missing run binding.
- Line 34’s non-optional `metadata.agentTeamsV2` access is safe in non-degenerate cases because earlier `||` checks already fail closed when metadata is missing.
- The env write and `globalThis` write in `bindCombinedScorecardDirectory` are synchronous. That pair is not a crash window.
- `retainFrozenRoster` omitting the judge is not counted as a bug while `chooseJobJudge` remains the judge selector, including its ordered fallback.
- Frozen retry not re-calling `qualityPolicyReason` may be intentional freeze semantics. Policy source is outside the packet, so this is not a finding.
- Sticky `comparison: true` on a hypothetical second bind is latent only. No caller in the packet rebinds.
- A kill-after-create duplicate session is only a defect if an unshown caller re-enters the create `else` branch. The same-invocation `saveRun`-throw path in F1 does not depend on that caller.

## 3. Missing evidence

- `source/moa-quality-routing.js` (`qualityPolicyReason`), declared missing. Policy revocation on retry cannot be judged.
- `./prompts.js`, read by `synthesisInstructionsSHA256`. Instructions-byte recovery cannot be checked.
- Not in the packet: `reconcileSession`, `saveRun`, `saveAuthority`, `assertContinuationSession`, `observeNativeSideEffect`, the recorder that captures `OPENCODE_SCORECARD_DIR` on import, prompt construction, and the excerpt after line 130.
- Consequence: duplicate scorecard rows and reconcile identity checks cannot be proven end to end. Call-site gaps and missing finalization still hold. If `saveRun` or `saveAuthority` is append-only, F5 and F7 get worse; if they are idempotent upserts, the double call is less severe.

## 4. Next useful action

Add a crash-matrix regression around the excerpt’s admission states and `bindCombinedScorecardDirectory`, without editing authorization, admission gates, live controls, Terra judge, Sol synthesis, or rating formulas. First assertions to lock: pre-create hash exceptions must not persist `create-uncertain`; reconcile/precreate/resume must re-check run id and both recipe hashes before prompt; `reuseCreated` must `saveRun` before prompt; first sink bind must refuse a conflicting env directory; one run id plus recipe hash maps to one sink record across retry.

Primary judge's stated reason

B receives a slight forced preference because its preset-backup finding provides a directly traceable recovery regression that A misses. This is not an established material quality gap: A offers valuable exception-classification analysis and better restraint on some hypothetical paths, while B's broader findings include speculative consequences. 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: 705ae38b-ca93-4775-b806-02cf89120b55. Pair: brp1_6680fe3be296cf79f33452bc6b4a4d9733181bbb4cc34e4f4235bf7a59fe2e5a. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.