← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / xhigh / xhigh 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.1-sol / xhigh / xhigh effort answer

## Conclusion

**The packet supports admission and hash-binding analysis, but not an end-to-end publication verdict.** It contains no capture finalizer, journal-write implementation, publication acknowledgement, or combined-sink handoff implementation. Duplicate publication and terminal-state errors therefore remain unproven.

This was a direct, independent review of the supplied evidence only. No tests, models, or external actions ran.

## Observed lifecycle

- `resolveMoaDispatchSpec` creates a digest-bearing dispatch; `bindResolvedRoster` adds resolved seats and receipt/assignment identifiers (`source/moa-job-spec.js:120–129,265–313,357–381`).
- The native admission routine—its enclosing function name is not supplied—saves authority, checks collection admission, and checkpoints `create-attempting` before requesting session creation (`source/native-run.capture-excerpt.txt:20–55`).
- Fresh synthesis sessions receive instruction-source and exact-prompt hashes, alongside run/lane/parent metadata (`source/native-run.capture-excerpt.txt:61–94`).
- Creation is checkpointed afterward; errors enter reconciliation or persist `create-uncertain` (`source/native-run.capture-excerpt.txt:98–114`).
- Observation starts before assignment admission, but the excerpt ends inside `admitPrompt`, before dispatch completes (`source/native-run.capture-excerpt.txt:123–130`).
- `continuationJobSpec`, `assertRecoveryDispatch`, and `retainFrozenRoster` protect frozen configuration and roster identity. They do not establish publication idempotency.
- `bindCombinedScorecardDirectory` establishes process-local sink configuration; actual handoff is not shown.

## Findings

### 1. Creation-time hashes do not bind every later assignment

**Severity:** Medium provenance risk; downstream impact conditional.  
**Confidence:** High for the shown omission, limited for the complete lifecycle.

**Locations:** `synthesisPromptSHA256` and `synthesisInstructionsSHA256`, `source/recipe-capture.js:6–14`; native admission branches, `source/native-run.capture-excerpt.txt:23–47,55–97,125`.

**Minimal sequence**
1. A synthesis session is created for prompt **P₀**, recording its hashes.
2. Collection pauses before inference, or the session is subsequently continued.
3. Admission uses `reuseCreated` or `lane.continuedFrom` with assignment **P₁**.
4. The shown branches do not calculate or associate new hashes with `messageID`.

**Preconditions:** P₁ differs from P₀, and omitted assignment/capture code does not create an assignment-specific binding.

**Guard assessment:**  
The fresh-session hash correctly commits to P₀. The reuse guard verifies session identity, execution model, and absence of previous user/assistant messages; it does **not** compare the stored synthesis hashes against the current assignment (`:27–37`). Continuation checks may provide additional protection, but their implementations are not supplied.

**Smallest recovery/check:** Keep creation metadata unchanged, but record capture provenance per `{runID, childSessionID, assignmentMessageID}`, including the exact prompt hash and instruction-source hash. Proposed regression: pause before inference, regenerate a different prompt, resume, and verify that capture cannot attribute P₁ to P₀’s hashes.

### 2. Instruction hashing can describe different source than the loaded implementation

**Severity:** Medium, conditional on in-place package changes.  
**Confidence:** High for the hashing behavior; conditional for runtime mismatch.

**Locations:** `synthesisInstructionsSHA256`, `source/recipe-capture.js:12–14`; invocation during session creation, `source/native-run.capture-excerpt.txt:76`.

**Minimal sequence**
1. The host loads prompt implementation **A**.
2. Its installed `prompts.js` is replaced with **B**, without restarting the host.
3. A prompt produced using loaded implementation A is dispatched.
4. `synthesisInstructionsSHA256()` reads and records B’s current disk bytes.

**Preconditions:** Prompt generation uses an already-loaded implementation, and installed files can change during that host’s lifetime. The prompt implementation itself is outside this packet.

**Guard assessment:**  
`synthesisPromptSHA256` still correctly binds the exact assignment string. It does not prove which implementation produced that string. The instruction helper rereads the file on every call rather than using an immutable source snapshot. It also returns only a digest; source-byte archival is not evidenced here.

**Smallest recovery/check:** Bind the instruction digest and archived bytes to the immutable installed implementation loaded by the host. Proposed regression: replace the source between prompt construction and metadata creation; the recorded implementation identity must remain A or explicitly report a source-binding conflict.

### 3. Frozen roster identity is not a unique execution or publication binding

**Severity:** Medium capture-integrity risk; duplicate-publication consequences unproven.  
**Confidence:** High for the primitive’s behavior.

**Locations:** `bindResolvedRoster`/`seatFromReceipt`, `source/moa-job-spec.js:304–307,357–381`; `rosterIdentity`/`retainFrozenRoster`, `:384–405`.

**Minimal sequence**
1. Bind a roster containing receipt and assignment identifiers.
2. Supply replacement receipts with identical role, logical key, provider, model, variant, effort, and seat—but different receipt/assignment identifiers.
3. `retainFrozenRoster` accepts them and returns the original frozen dispatch.

Reviewer reordering also passes because comparison sorts the identity rows.

**Preconditions:** Capture or publication treats this roster check—or the dispatch digest—as sufficient execution-source identity.

**Guard assessment:**  
The digest protects the frozen dispatch’s contents. Roster retention intentionally compares a narrower identity that omits receipt IDs, assignment IDs, native session IDs, message IDs, and result references. Thus it cannot independently distinguish separate executions of the same roster. Order-insensitive comparison is harmless if phase bindings are maintained elsewhere; that evidence is absent.

**Smallest recovery/check:** Preserve roster authorization unchanged and add a separate capture/publication identity containing run, lane, child session, assignment message, and accepted result reference. Proposed regressions:
- Identical rosters in two runs remain distinct.
- Recollecting the same accepted result does not publish twice.
- Reordered receipts cannot silently exchange phase provenance.

### 4. Combined-sink binding relies on unenforced import ordering

**Severity:** Medium misrouting risk, conditional on the recorder’s documented behavior.  
**Confidence:** High for the binder’s missing ordering check; recorder behavior is not independently verified.

**Location:** `bindCombinedScorecardDirectory`, `source/combined-sink.js:3–18`.

**Minimal sequence**
1. A recorder imports while the environment selects directory **D₀**.
2. It captures D₀ as described by the comment.
3. `bindCombinedScorecardDirectory` is first called with **D₁**.
4. The binder successfully updates the environment and global symbol, while that recorder continues using D₀.

**Preconditions:** Recorder import precedes binding, and its path is captured on import as documented.

**Guard assessment:**  
Canonical-path validation and the singleton prevent conflicting **subsequent bindings**. They do not detect a recorder initialized before the first binding. No supplied handoff verifies agreement between the recorder’s cached path and the bound directory.

**Smallest recovery/check:** Use one bootstrap that binds before importing the recorder, and verify cached/bound sink agreement at handoff. Proposed regression: early recorder import must either be impossible or produce an explicit mismatch—not silently publish to D₀.

## Concrete crash window requiring recovery evidence

**Location:** Native admission routine, `source/native-run.capture-excerpt.txt:49–114`.

**Sequence:** Save `create-attempting` → native session creation succeeds → process dies before saving `session-created`.

**Severity:** Medium recovery/availability risk; duplicate inference is not established.

The deterministic `childSessionID` and reconciliation path are useful guards. However, `saveRun` durability, native create idempotency, recovery routing, and `reconcileSession` validation are not supplied. Its truthy result is accepted without another identity check visible in this branch; the helper may perform that check internally.

**Smallest regression:** Interrupt immediately after successful creation. Recovery should retain one child, send at most one assignment, validate its identity, and keep genuinely uncertain creation nonterminal. The shown `create-uncertain` return is **not evidence** that callers incorrectly mark it completed or failed.

## Limits and next useful action

The supplied evidence does not establish:

- atomicity, flush/fsync, or ordering of `saveRun` and `saveAuthority`;
- capture-finalization states or treatment of completed, failed, cancelled, and uncertain runs;
- journal deduplication keys, retry rules, or publication acknowledgements;
- durable combined-sink handoff.

Accordingly, append-before-finalization losses, acknowledgement-loss duplicates, and terminal-state mishandling cannot be attributed to an exact supplied function.

The next useful action is **fault-injection coverage of the existing capture/publication boundary**, especially native-create acknowledgement, journal append, finalization, and sink acknowledgement. This can preserve provider authorization, admission gates, live controls, Terra judge, Sol synthesis, and rating formulas unchanged.

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

B provides a more reliable actionable review: its proposed checks target observed boundaries without presenting missing finalization, recovery, or publication code as demonstrated failure. This is a clear evidentiary-grounding advantage, not merely a forced slight preference, despite A's useful additional admission observations.

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_0c07ce54134aaa4e009090ef6e00ee0473b3d803eb08dfb527210c173f57e835. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.