#1 [high] PR #715 Round-2 Adjudication at caaef5a
Verified at PR #715 head caaef5a (20 files, +1638/-56; rebased since Round 1 84f789a, dropping cache_memory.rs stale-base artifact; zero human reviews or post-Round-1 code fixes).
BLOCKERS (verified):
- Gate 1 — Unapproved extended captured-graph operation contract: docs/design-review.md:22-26 & AGENTS.md:376-381 require prior explicit approval from Luke Alonso for a new operation contract even when reusing a graph kind/enum. Verified in manifest.rs:860-878, packing.rs:113-126 & 169-179, helios/model-contract.md:188-209. No approval recorded on #715 (request sign-off; priority contributor @original-el8).
- Gate 3 — Testing-hierarchy Layers 2 & 3 unmet (docs/design-review.md:195-251):
- Layer 2 (:195-208): cohort algorithm (policy.rs:1301-1426, 1623-1747) & timing changes (cost.rs:581, 606, 644-659, 969) have zero scripts/scheduling_sim/ or learning.py coverage; scripts/scheduling_sim/scheduler.py:30-35 currently models at most one prefill lane per graph.
- Layer 3 (:226-228, :241-246): calibrated from Round 1 — CI runs TLC/Kani on helios/, so raw unrun claim is withdrawn, but zero verification/helios-lifecycle/ or helios/src/scheduler/lifecycle_tests.rs updates cover the widened B>=2 geometry, and check.py --mutations was not run on the new guards in packing.rs:422-439 and scheduler.rs:436-465.
SHOULD FIX (verified):
- ignition/preparation/execution.py:80-92 omits P <= prefill_chunk_size (verified: zero prefill_chunk refs in execution.py), while Helios enforces it at selection.rs:281,293 (failing with "invalid or duplicate serving graph variant" at :324), catalog.rs:279, and scheduler.rs:910.
- docs/scheduling-runtime-design.md contradicts shipped behavior (:466-469 states all pure prefill graphs use 6-stratum PrefillCostModel & slope borrowing, vs cost.rs:581,606,969 restricting to key.batch == 1; :21-23 & :455-457 omit packed prefill catalog & cost key; no link to docs/packed-prefill-design.md).
- Headline A/B baseline non-isolability (docs/design-review.md:109-115): compares different signed cores from different FlashInfer revisions (887785ad vs 4aea5c54 on FlashInfer 5a8ceed80) with C=1 control 111.2 -> 118.7 ms (0.94x). Honestly disclosed, but needs an equivalent same-revision/same-core baseline before quoting 1.68x-4.15x.
MAJOR UPSTREAM FALSE POSITIVES DROPPED ON VERIFICATION:
- Code Correctness Finding 1 & Round 1 Should Fix #1 ("packed_prefill_lane_compatible short-circuit on TerminalPrefill emits spurious tokens / corrupts deferred_prefill"): FALSE. Verified inputs.rs:87-91 gates SampleEnabled on start_position + tokens == prompt_tokens; scheduler.rs:3093-3094 keeps mid-prompt lanes in RequestPhase::Prefill; model-contract.md:176-180 confirms TerminalPrefill computes full continuation state so clearing deferred_prefill (scheduler.rs:3065-3066) and allowing capture (checkpoints.rs:935-936) is sound; policy_tests.rs:9709-9746 & model/tests.rs:2762-2804 explicitly test mixed finishing+continuing lanes on packed TerminalPrefill; and for Prefill with !non_terminal, rejecting r.deferred_prefill then returning true matches solo resolve_prefill_kind_from (scheduler.rs:994-999).
- Code Correctness Finding 2 ("packed loop sits inside consider closure"): FALSE. policy.rs:1273 closes consider, :1300 drops it, :1301 runs outside once per continuation_candidate call.
- Code Correctness Finding 6 ("promoted_count == capacity compares lane count against token capacity"): FALSE. capacity is continuation_candidate's first-stage batch capacity (policy.rs:1052, passed from add_candidate:1796).
- Gates & Contracts M3 & Round 1 Should Fix #3 ("undeclared --packed-verification CLI change in serve.py:466"): FALSE. Declared in PR body ("Scopes --packed-verification checks to speculative signatures"); execution.py:93-96 previously forbade nonzero packed_token_capacity on non-speculative graphs so no existing recipe can newly fail; required to stop packed prefill from spoofing speculative packed verification.
- Code Correctness Finding 4 ("execution.py:109-111 rejects draft_tokens=0"): FALSE. selection.rs:318 also requires draft_tokens to be None (absent) on non-speculative graphs; execution.py:428 serializes draft_tokens whenever not None, so accepting 0 would break Helios loading.
- Code Correctness Finding 5 ("PackedToken tail rows not zeroed"): FALSE. Matches pre-existing PackedToken contract across solo Prefill/Mixed/Speculative; QueryLength (SubmissionRow, zero-padded) bounds active rows.
- Code Correctness Finding 7 ("--max-concurrency drops B > max_batch"): FALSE. Matches Decode/Speculative/Mixed selection policy and is explicitly tested at selection.rs:2178-2202.
- Dossier/Value Prop ("undeclared checkpoint-pricing rewrite in checkpoints.rs"): FALSE. Stale-base artifact; pr_files shows checkpoints.rs is +12/-3 (only lines 925-936).
- Subtract S3 partially narrowed: scheduler.rs:2614-2616 (lanes.len() > batch_capacity) is NOT dead for Decode/Init/Restore/Snapshot/solo-Prefill (validate_mixed doesn't check those); only 2617-2632 is dead.