claude-code-cli / claude-haiku-5-5 / medium / medium effort preferred over xai / grok-4.7-efficient / high / high 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 complete proposed admission-repair diff and regression files in uti26-admission-repair-review.packet.md. Find actionable defects in deferred pre-root validation, ambiguous create outcomes, concurrent/idempotent receipts, bounded evidence scope, and explicit judge-only terminal handling. Cite severity and exact file/line evidence from the packet. Distinguish implementation facts from test gaps; if none, say so. Do not edit files, run tests or claim broader untouched code was reviewed.
claude-code-cli / claude-haiku-5-5 / medium / medium effort answer
## Evidence packet: admission-repair review (static, packet-only)
No tests were run and no code outside `uti26-admission-repair-review.packet.md` was reviewed. Several conclusions depend on unseen engine code, noted below.
### 1. Conclusion: findings in priority order
**F1. High (conditional): returned non-throw failures after root creation are classified as definitive rejections.**
- Evidence: packet lines 112–114 set `admission-rejected` when `launched.ok !== true` or `durableRunCreated !== true`. Lines 118–124 apply the root-created uncertainty fence only to thrown errors. The root is created at line 97–98 via `beforeAdmissionCommit`, which the engine invokes at packet line 53, before trial reservations (line 55) and worker admission.
- Fact: nothing in the packet prevents the engine from returning a non-throw `{ok:false}` or `durableRunCreated:false` after line 53. The reservation loop's returns are not visible.
- Consequence: the receipt reports a rejection while a root session exists, and `rootCreated` is never recorded (line 124 covers only the preflight case).
- Fix: once the callback has run, treat any non-ok return as `admission-uncertain`, or record `rootCreated: true`.
**F2. Medium: judge-only terminal completion is not bound to the receipt's mode.**
- Evidence: line 133 completes on `["synthesized","judge-only"].includes(result?.phase)` for any receipt. Line 86 persists `synthesisMode` on the receipt, but nothing compares it to `result.phase`.
- Consequence: a judge-only request whose run dispatched synthesis (`phase: "synthesized"`) completes silently. A non-judge-only receipt with `phase: "judge-only"` also completes.
- Fix: require `phase === (receipt.synthesisMode === "judge-only" ? "judge-only" : "synthesized")`, and check that the synthesis state is skipped/not-dispatched.
- Test coverage: test 3 (lines 194–199) covers only the happy path.
**F3. Medium (unverified): bounded evidence scope is not enforced in any shown implementation.**
- Evidence: `matchedEvidencePaths` is validated for count and length at packet line 65 (schema), lines 74–75 (`validateInput`), and lines 152–157 (Python), then passed through (line 157).
- Fact: none of the `native-run.js` hunks (lines 9–56 of the packet) read `input.matchedEvidencePaths`. The only consumption shown is the existing `matchedEvidence.lanes` at lines 42–43, whose derivation is not shown.
- Gaps: no path containment or normalization (absolute paths, `..` segments) and no uniqueness check. Duplicates pass.
- Consequence: either the pinned engine already consumes the field (unverified) or the field is inert and the "bounded evidence" requirement is unmet.
**F4. Medium (unverified): receipt idempotency may not cover the evidence packet.**
- Evidence: the receipt at lines 84–87 does not include `matchedEvidencePaths`. The `hash` computation (line 84) is not shown.
- Consequence: if the hash excludes the new field, a replayed `requestID` with a different packet returns the stale receipt silently. No test covers same-ID-different-packet.
**F5. Low–Medium: test 1 can pass while its path assertion fails.**
- Evidence: line 182 runs `assert.deepEqual(i.matchedEvidencePaths, ...)` inside the mock engine. Any `AssertionError` is caught by the `catch` at line 118 and converted to `admission-rejected`. Lines 184–187 then still pass.
- Consequence: the path transport is not actually verified by test 1.
**F6. Low: test 4 expects an error string that no shown code produces.**
- Evidence: line 203 expects `/explicit task declaration/` for `synthesisMode:'ignored'`. The schema enum at line 65 would more likely reject the value at the framework layer with a different message.
- Consequence: possible false failure. Unverifiable from the packet.
**F7. Low: transition sequencing and dependency risk.**
- Evidence: lines 90, 96, 99, and 103 call `transition(receipt,"admitting")` repeatedly, including admitting→admitting. If the transition helper rejects same-state transitions, every admission fails. Test 3 would catch this.
- Evidence: lines 102–103 mutate `admissionStage` before persisting. If the persist at line 103 fails, the catch at line 120 classifies from in-memory state while the durable state is the prior one, and the transition at line 126 may also fail.
**F8. Low: behavior change in difficulty stamping.**
- Evidence: stamping moved from before planning (line 45, removed) to after the qualification-hold check (lines 50–52, then line 54).
- Consequence: requests rejected by the hold are no longer stamped. This is likely intended, but no test asserts it. A stamp failure after root creation yields an uncertain state with an orphaned root.
**F9. Low: the callback is optional and invoked at one site.**
- Evidence: `beforeAdmissionCommit = null` defaults at lines 16 and 37. `launchMoAAfterPreflight` guards the callback (line 27), but `launchMoA` does not.
- Consequence: any other success path, or any future caller, that saves a run without invoking the callback creates a run with no root.
**F10. Low: misleading error message in Python.**
- Evidence: lines 153–156 return "invalid matched evidence paths" when `previous_request_id` is set, so a follow-up rejection is reported as a path-validation error.
### 2. Alternatives, discarded hypotheses, likely false positives
- Setting `admissionStage` to `root-create-started` before `ctx.session.create` (line 95) is consistent with the existing fail-closed fence. Treating a definite pre-commit create failure as uncertain is conservative, not a defect.
- Test 2 (lines 188–193) passing even when the create fails before commit is the intended fence behavior.
- The `flights` "already in flight" error (line 18) on the deferred path is correctly classified as a rejection, because it fires before the callback and no root is created.
- Per-request root session IDs make cross-request flight-key collisions unlikely, so I did not rate the flight guard as a defect.
### 3. Missing evidence and dependencies
Each item below is needed to confirm or rule out the findings above:
- The full pinned `launchMoAExclusive` body, especially every return after line 53 and the trial-reservation loop. Needed for F1 and F9.
- The engine's consumption of `input.matchedEvidencePaths`. Needed for F3.
- The `hash` computation, `transition()`, `owner()`, and the `exclusively` wrapper around `submit`/`advance`. Needed for F4 and F7.
- Reconnect behavior for persisted `admitting` receipts, including the crash window between `root-create-started` and `root-created`.
- The `submit.input` wiring to `directInput` (test line 201 depends on it), `DIRECT_REQUEST_ID`, and `_direct_rpc`.
- The engine's `collect` phases beyond `synthesized`/`judge-only`.
### 4. Test gaps (fact-based)
- No test that the callback runs once and that `stampTaskDifficulty` is not called on preflight rejection (F8).
- No concurrent same-`requestID` submit test; the existing tests are sequential.
- No test for a non-throw `ok:false` after the callback (F1).
- No test for a legacy (non-deferred) root-create failure regression.
- No JS test that a follow-up carrying `matchedEvidencePaths` is rejected (line 78).
- No judge-only phase/mode mismatch test (F2).
- No persisted-`admitting` restart or reconnect test.
- Harness-only tests with mocked engine: no engine-level test of `launchMoAExclusive` with the callback in place.
### 5. Next action
Before activation: fix F1 and F2, add the missing engine-level and ordering tests, and fix the masked assertion in test 1 (F5). Obtain the unseen engine and transport code listed in section 3 to resolve F3, F4, and F7.
Confidence: high for F2, F5, and the test-coverage gaps (direct evidence in the packet). Medium for F1 (depends on engine return paths). Low to medium for F3 and F4 until the engine and hash code are visible.xai / grok-4.7-efficient / high / high effort answer
The patch has actionable correctness defects. The deferred path can turn infrastructure failures into sticky denials, and post-create outcomes are classified inconsistently. Judge-only completion and evidence bounds are weaker than the new fields imply. Native callback order is only partly visible and is not exercised by the new tests.
## Findings
1. **High — every pre-root throw becomes a sticky semantic rejection.** In `direct-rpc.js` (packet lines 118–124), `rejectedBeforeRoot` is only `receipt.admissionStage === "preflight"`. Any throw in that stage is persisted as `admission-rejected` with a synthetic `{rootCreated:false, modelDispatched:false, stage:"preflight"}`. The test at lines 181–186 makes that denial non-replayable. Confirmed triggers that are not semantic preflight failures: missing `launchMoAAfterPreflight` (line 106) and the in-flight throw in `launchMoA` (lines 17–18), which happens before `createRoot`. Capability mismatch and lock collision permanently consume `requestID` and look like a known no-root denial. Implication: operators can treat an engine/skew or concurrency fault as a final evidence rejection.
2. **High — create outcome is not reconciled with receipt state.** `createRoot` (lines 94–100) sets `root-create-started` and persists it before `session.create`, then sets `root-created` without reading the create result. The catch (lines 120–123) then treats every later throw as `admission-uncertain`, including a definite pre-commit adapter failure. The success path (lines 112–113) does the opposite: any returned `ok !== true` becomes `admission-rejected`, and `running` does not require `admissionStage === "root-created"`. A return after the callback can be a clean rejection even though a root exists; a throw before any host commit cannot be a clean rejection; a success return without calling the callback can still be `running`. Ambiguous create is not actually distinguished.
3. **High — difficulty stamping moved on every launch, not only deferred admission.** `stampTaskDifficulty` is removed from before `runID = randomUUID()` (lines 45–46) and placed after the optional callback (lines 53–54), inside `launchMoAExclusive` for legacy and continuation callers too. `launchMoAAfterPreflight` (lines 25–28) only checks V2 job shape, `continueRunID`, and callback type, then enters that same function. Visible fact: run identity is allocated, and an unshown region runs, before root creation and before stamping. A stamp or reservation failure now happens only after `createRoot` on the deferred path, so it orphans a root and is uncertain rather than a pre-root rejection. Whether the omitted region persists or dispatches is outside the hunk.
4. **Medium — judge-only completion is an unscoped phase allowlist.** Line 133 completes when `complete === true` and `phase` is `synthesized` or `judge-only`. `synthesisMode` is copied onto the receipt (line 86) but is not consulted. A judge-only receipt whose collect result is `synthesized`, or a non-judge-only result with `phase: "judge-only"`, is `completed` even if `synthesis.usageStatus` is not `not-dispatched`. The test at lines 194–198 only covers the matching happy path.
5. **Medium — evidence scope is bounded only by count and string length.** Schema (line 65), `validateInput` (line 75), and `server.py` (lines 152–157) allow 1–64 strings of length 1–1000, reject empty/whitespace-only and follow-up use, and do not reject `..`, absolute paths, NUL/newlines, duplicates, or paths outside `directory`. Whitespace-padded paths such as `" src/a.js "` pass. The `native-run.js` diff never reads `matchedEvidencePaths`. If unchanged guards do not already consume that field, the new bound is transport-only.
## Implementation facts vs test gaps
Facts from the diff: sticky preflight catch; stage set before create and not checked on the running/rejected return path; stamp call moved for all exclusive launches; terminal predicate ignores `synthesisMode`; path checks are length/count only.
Test gaps, not implementation proofs: `tests/admission-repair.test.mjs` mocks `launchMoAAfterPreflight` and never imports `native-run.js`, so callback placement, stamp order, flight-lock classification, and post-create launch failure are untested. No case for missing engine method, `{ok:false}` after create, `phase:"synthesized"` on a judge-only receipt, or unsafe paths. `tests/test_evidence_bridge.py` only checks transport and an empty list; it does not check follow-up, overlong, or non-string paths even though `server.py` implements those checks.
## Discarded
- The new `server.py` check is not dead code: it is indented with `else`/`try` (lines 150–158), so it runs on the success fall-through.
- Follow-up does not accept packet paths: line 78 rejects `matchedEvidencePaths` even though that key is filtered out of `keys`.
- The flight check-then-set is not a same-turn race: `flights.set` runs in the caller before the event loop can re-enter.
- `"judge-only"` is the phase the prompt and the test both use; the defect is the missing cross-check, not the spelling.
## Missing evidence
`transition()` same-state re-entry and field preservation, `owner()` versus `rootSessionID`, the unshown region between run construction and the callback, `stampTaskDifficulty`, and `advance()` short-circuit are outside the packet. Consequence: findings 2 and 3 may be worse if that region commits or dispatches, and finding 1’s flight collision depends on whether session ids are shared. Pinned code may already read `matchedEvidencePaths`; the packet does not show it.
## Next action
Do not activate this patch. Classify only typed semantic preflight failures as `admission-rejected`; keep infrastructure faults uncertain and retryable. Require `admissionStage === "root-created"` before `running`, and treat any post-callback failure, thrown or returned, as uncertain. Confine evidence paths to the submitted directory. Add tests that drive real `launchMoAExclusive` callback order, not only a mocked wrapper.Primary judge's stated reason
Weak, forced preference for B: its treatment of ambiguous creation avoids one unsupported defect claim, and its masked-assertion finding gives a directly useful regression-test repair. B's speculative findings substantially offset those benefits; this is not an established material quality gap, and an independent review could reject the preference.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: f1f06d7f-e063-470d-b7cb-20c74c8223f5. Pair: brp1_54c704cdb14bb8c15585a2fa0bb5e206f007cdc61b319486be744f495ecbd766. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.