openai / gpt-6.1-sol / xhigh / xhigh effort preferred over xai / grok-4.7-efficient / high / high 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 / 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.Primary judge's stated reason
A is preferred for a materially more reliable review boundary: its findings and proposed regressions can guide recovery work without presenting absent lifecycle code or unknown persistence guarantees as established failures. B offers valuable additional local findings, but its repeated unsupported lifecycle conclusions reduce practical trust in its prioritization. This is a clear comparative preference, not a claim that A completes the unavailable end-to-end assurance.
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_bd179667e83f3b9d821176660f5593d17110ceff769c3312a2b8b1c697d8f64c. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.