openai / gpt-6-astra / high / high 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-astra / high / high effort answer
## Conclusion
Independent, read-only analysis found **three synthesis-provenance gaps and one conditional combined-sink initialization risk**. The supplied code does not expose publication, finalization, journal durability, or terminal-state recovery, so it cannot establish an actual duplicate-publication defect or end-to-end crash safety.
No files were edited, models launched, or tests run.
## Findings
### 1. Continued synthesis sessions do not receive a new prompt binding
**Severity:** Medium; high if publication treats session metadata as authoritative provenance.
**Precondition:** A synthesis lane follows the `lane.continuedFrom` path with a new assignment prompt.
**Evidence**
- The native admission excerpt resumes an existing session at `source/native-run.capture-excerpt.txt:23–25`.
- Both synthesis hashes are written only inside the alternative `session.create` branch, at lines `55–97`, specifically line `76`.
- `synthesisPromptSHA256()` hashes exact assignment bytes: `source/recipe-capture.js:6–9`.
**Minimal sequence**
1. Synthesis session receives prompt A and metadata containing hash(A).
2. A subsequent synthesis assignment resumes that session with prompt B.
3. The continuation branch bypasses metadata creation.
4. Session metadata still describes A, while any later execution of B needs a separate binding.
**Guard assessment:** `assertContinuationSession()` and the parent-policy comparison protect continuation identity and authority, according to their call sites. The visible code does not bind the new synthesis prompt. Their implementations and subsequent prompt admission are outside the packet.
**Smallest recovery/check:** Persist `{runID, childSessionID, assignmentMessageID, promptSHA256, instructionsSHA256}` for every synthesis assignment before dispatch, including continuations. A regression check should resume a synthesis session with a different prompt and require distinct, correctly linked assignment provenance.
**Confidence:** High for the branch omission; downstream publication consequences remain conditional.
### 2. Reusing a created-but-unprompted session does not validate its synthesis hashes
**Severity:** Medium; high if recovered publication relies on stale metadata.
**Precondition:** Recovery takes `reuseCreated`, and the reconstructed prompt or installed prompt implementation differs.
**Evidence**
- Initial creation records synthesis hashes at `source/native-run.capture-excerpt.txt:76`.
- The `reuseCreated` checks at lines `26–39` validate session, project, agent, lane, role, run, parent, execution model, and absence of user/assistant messages.
- They do **not** compare either synthesis hash.
- The excerpt does not provide the enclosing function’s name; these citations identify its exact admission branches.
**Minimal sequence**
1. Create a synthesis session with metadata for prompt A.
2. Crash or pause before sending its first prompt.
3. Recover with prompt B, or a different installed prompt-source version.
4. `reuseCreated` accepts the empty session because all checked identities match.
5. The visible admission path leaves the old synthesis hashes intact.
**Guard assessment:** The empty-context check successfully prevents reuse after a visible conversation turn. It does not establish that the next prompt matches the provenance already attached to the session. The later prompt-dispatch implementation is not supplied, so a subsequent safeguard cannot be ruled out.
**Smallest recovery/check:** Before accepting a reused synthesis session, compare both stored hashes against the frozen assignment. Recover the original bytes or fail closed on mismatch. Inject a restart between session creation and first prompt; change only the prompt bytes and require rejection.
**Confidence:** High for the missing comparison in this branch.
### 3. The instruction hash can describe disk contents rather than the executing implementation
**Severity:** Medium provenance-integrity risk.
**Precondition:** `prompts.js` changes while the process retains an already-loaded prompt implementation.
**Evidence**
- `synthesisInstructionsSHA256()` reads `./prompts.js` from disk on every call: `source/recipe-capture.js:12–14`.
- It is called during session creation: `source/native-run.capture-excerpt.txt:76`.
**Minimal sequence**
1. The process loads prompt implementation V1.
2. An installation update replaces the file with V2 without restarting that process.
3. The process constructs an assignment using retained V1 code.
4. `synthesisInstructionsSHA256()` reads V2 and labels the session with V2’s source hash.
**Guard assessment:** `synthesisPromptSHA256()` still accurately binds the supplied prompt string. It does not prove that the separately recorded source digest identifies the implementation that generated that string. The comment requesting retention of source bytes is not an archival implementation.
**Smallest recovery/check:** Bind the source digest and retained source bytes to the loaded prompt implementation’s lifecycle, rather than rereading a replaceable file at dispatch. A regression check should replace the source after loading and verify that execution provenance remains tied to the loaded version.
**Confidence:** High under the stated update condition; the actual prompt-loading and archive mechanisms are outside the packet.
### 4. Combined-sink binding cannot enforce its required import order
**Severity:** High if an already-initialized recorder subsequently writes to the wrong season directory.
**Precondition:** The recorder captures its journal directory before the first successful binding.
**Evidence**
- `bindCombinedScorecardDirectory()` explicitly requires binding before recorder import: `source/combined-sink.js:3–5`.
- The function only validates configuration, checks its own global binding, and sets the environment variable: lines `6–18`.
- No recorder-initialization acknowledgment is checked.
**Minimal sequence**
1. Recorder initializes against directory A.
2. First call to `bindCombinedScorecardDirectory({combinedSeasonEnabled:true, scorecardDirectory:B})` occurs.
3. No prior global binding exists, so the function accepts B.
4. A recorder that captured A on import continues writing there while the binding reports B.
**Guard assessment:** The conflicting-directory and environment-drift checks at lines `14–15` succeed for repeated bindings. They cannot detect an earlier recorder import. The recorder’s import-time capture is documented here but its implementation and actual initialization order are not supplied.
**Smallest recovery/check:** Require recorder initialization to acknowledge the bound directory, and reject a mismatch before accepting publications. Check both import orders and require the late-binding case to fail rather than silently split destinations.
**Confidence:** High that this function does not enforce ordering; occurrence in installed wiring is unproven.
## Lifecycle and unique-binding assessment
| Stage | What the evidence establishes |
|---|---|
| Dispatch identity | `moaDispatchDigest()` hashes stable spec content (`moa-job-spec.js:20–23`); `assertFrozenDispatch()` detects content drift (`562–567`). This is not, by itself, a unique execution/publication ID. |
| Resolved roster | `bindResolvedRoster()` incorporates receipt-derived seats (`357–381`). `seatFromReceipt()` permits null `receiptID` and `assignmentID` (`304–307`). |
| Retry identity | `retainFrozenRoster()` compares an unordered roster of role, route, model, variant, effort, and seat (`384–405`). It deliberately does not compare receipt IDs, assignment IDs, run IDs, or prompt hashes. This guards roster identity, not unique capture provenance. |
| Live authorization | `assertRecoveryDispatch()` and `assertFrozenIdentity()` revalidate frozen identity and current authorization (`408–447`, `569–579`). These guards should remain unchanged. |
| Native admission | Run/lane/parent metadata and synthesis hashes are attached at session creation (`native-run.capture-excerpt.txt:61–94`). Observer setup also receives run, child, and assignment-message identities (`123–125`). |
| Persistence | `saveRun()` is awaited before creation, after creation, and after reconciliation (`49–52`, `99–113`). Atomic replacement, flush/fsync, and persistence semantics are not shown. |
| Finalization/publication | No publication commit, acknowledgment, deduplication key, terminal-state transition, or recovery scanner appears in the packet. |
**Important distinction:** Missing run IDs in a roster comparator are not themselves proof of a defect: retries may legitimately have new receipt IDs. The unresolved question is whether publication separately binds an immutable run/assignment identity and enforces idempotency.
## Crash windows requiring verification
These are **unresolved checks, not demonstrated publication defects**:
- **Session creation succeeds; `saveRun()` fails:** the catch invokes `reconcileSession()` (`native-run.capture-excerpt.txt:99–113`). Whether reconciliation verifies exact metadata and safely recovers after process death is unknown.
- **Sink append succeeds; publication acknowledgment is lost:** inspect whether replay uses a durable unique publication key. No append or acknowledgment implementation is supplied.
- **Terminal state persists before publication, or vice versa:** inspect whether recovery independently repairs the missing side effect without reopening completed inference. Terminal-state handling is not supplied.
- **Host/power failure after a successful write:** awaited calls alone cannot demonstrate durable journal and run-state storage.
The imported quality-policy dependency, prompt implementation/archive, native persistence/reconciliation methods, recorder, and lifecycle finalizer are outside this packet. Consequently, claims about their safeguards would be speculation.
**Next useful action:** Review the finalizer and recorder against these precise failure boundaries, then add narrowly scoped crash-injection checks for assignment-hash recovery and idempotent publication. Preserve provider authorization, admission gates, live controls, judge/synthesis selection, and rating formulas.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 provides the more dependable basis for recovery work: it identifies actionable provenance and sink-order risks while avoiding unsupported conclusions about absent finalizers, caller behavior, or publication uniqueness. This is a clear evidence-grounding advantage, not merely a preference for fewer findings; it does not establish that A completed an end-to-end lifecycle audit.
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_bf817ba6b2e703fe5c2f22c2fe6ae7aa6fd5b79eea1649a0fcd458526e915d52. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.