#1 [high] Change: scope of PR #715 and a stale-base caveat for the diff
PR #715 "helios,ignition: implement additive packed multi-request prefill (Contract 3)", author original-el8 (COLLABORATOR), branch docs/packed-prefill-rfc -> main, head 84f789afb7a4b48b7c3e8c514a330dbe9edb5531 (84f789a), opened 2026-12-04 00:36, updated 2026-12-04 05:56, state: open DRAFT, no labels, no reviews, CI passed on head.
Authoritative change set (pr_files / read_item #715): 21 files, +1639 -56: docs/packed-prefill-design.md (new +155), helios/manifest.md +8/-2, helios/model-contract.md +23/-0, helios/src/execution/manifest.rs +33/-4, helios/src/execution/tests.rs +39, helios/src/model/catalog.rs +19/-1, helios/src/model/packing.rs +28/-4, helios/src/model/testing.rs +20/-5, helios/src/model/tests.rs +238, helios/src/runtime_core/cache_memory.rs +1, helios/src/runtime_core/selection.rs +178/-3, helios/src/scheduler.rs +112/-4, helios/src/scheduler/checkpoints.rs +12/-3, helios/src/scheduler/cost.rs +21/-3, helios/src/scheduler/policy.rs +342/-17, helios/src/scheduler/policy_tests.rs +312, helios/src/server/runtime.rs +43/-5, ignition/cli/serve.py +3/-1, ignition/direct/scheduler.py +3/-1, ignition/preparation/execution.py +18/-3, tests/preparation/test_execution.py +31.
CAVEAT for anyone re-reading the diff: the pr_diff tool renders against the local copy of main, which is STALE (predates merged PRs #697 by FujitsuPolycom, #711 and #720 by lukealonso). Therefore pr_diff shows unrelated hunks (AGENTS.md, docs/api.md, docs/cli-design.md, docs/core-design.md, docs/TODO.txt, .github/workflows/native-serving.yml, preserve_message_anchor, pool_vram_limit/pool_ram_limit, RowRestoreLatency, async_transfer, external_extents, partition_conditioned_windows, refresh_admission_plan_in_place, measured_duration) that are NOT part of this PR. Verified: preserve_message_anchor exists in pr head but not in local main (search_code), and it is the subject of merged #697; pool_vram_limit also exists at pr head but not local main and belongs to merged #711/#720. Only the 21 files above and the packed-prefill subject matter should be attributed to #715.
Note: the PR description itself only claims the 21 files, so there is no undeclared-file problem — the discrepancy is a tooling artifact, not a PR defect.
#2 [high] Change: what additive packed multi-request prefill actually does
Plain terms: before this PR, a PREFILL/TERMINAL_PREFILL graph had to be batch_capacity == 1, so N concurrent short prompts cost N full model replays; GraphKind::Mixed allows only one prefill lane per step. This PR lets a prepared core additionally declare batch_capacity B >= 2 prefill graphs with an explicit 64-aligned aggregate packed_token_capacity P, and teaches Helios to pack 2..B text-only prefill lanes into one replay.
Verified mechanics at pr head (84f789a):
- Validation: helios/src/execution/manifest.rs:850-885 (new
else ifbranch for Prefill|TerminalPrefill B>=2: draft_tokens==0, B<=P<=B*W, P>=64, P%64==0, P<=i32::MAX) and :911-928 (token_capacity/packedrelationship per kind). helios/src/model/catalog.rs:263-285 (shape selection: B==1 requires packed==0, B>=2 packed checks incl. P<=prefill_chunk_size). helios/src/runtime_core/selection.rs:257-300 (core selection geometry incl.packed_token_capacity <= config["prefill_chunk_size"]) and :339-350 (--max-concurrency-drivenactive < 2drops B>=2 packed prefill like Mixed). - Packing: helios/src/model/packing.rs:111-130 (vision bindings ImageFeatureSlot/Index/LeftContext/RightContext now rejected when
graph.kind.is_prefill() && batch_capacity >= 2), :170-176 (InputIndexing::PackedTokenextent =packed_token_capacitywhen nonzero), :419-437 (pack_steprejects lane.tokens > token_capacity, image_slot lanes, and sum > packed_token_capacity). - Scheduler: helios/src/scheduler.rs:891-919
packed_prefill_graphs()registers (kind,B,W,P) shapes; :937-954is_non_terminal_prefill_step; :433-473validate_mixedpacked geometry; :2611-2640commitlane/sum checks; helios/src/server/runtime.rs:846-900 now filtersbatch_capacity == 1solo catalogs and feeds B>=2 graphs topacked_prefill_graphs. - Policy: helios/src/scheduler/policy.rs:1297-1424 (packed cohort inside
packed_round_candidates, includes promoted/continuation lanes and requirespromoted_count > 0), :1585-1645 (is_text_only_prefill_request,packed_prefill_lane_compatible), :1623-1789 (packed_prefill_candidatesgreedy by value and value-density,host_lengthsmaterialization), :1827 registration inadd_candidate, :2026-2075 validation of multi-lane Prefill candidates, :2230-2245 lanetokensfromhost_lengths. - Cost: helios/src/scheduler/cost.rs:644-661
packed_prefill_duration; prefill context-slope refresh scoped tokey.batch == 1. - Ignition: ignition/preparation/execution.py:78-95 (GraphSignature geometry + vision-input rejection for packed prefill), ignition/cli/serve.py:462-468 (
--packed-verificationcheck now only countskind == "speculative"), ignition/direct/scheduler.py:197-200 + :288-292 (B>=2 packed prefill keys isolated from solo catalog inLayout.capacities). - Tests: helios/src/execution/tests.rs:1407, helios/src/model/tests.rs:2584 & :2726, helios/src/runtime_core/selection.rs:2069, helios/src/scheduler/policy_tests.rs:9511 & :9625/:9799, tests/preparation/test_execution.py.
#3 [high] Related work: merged prefill-scheduling PRs this builds on (#645, #479, #426, #661, #663, #681)
Closest prior art on the same problem, all merged, all by other authors, and this PR builds on them rather than competing:
- #645 (merged 2026-11-30, lukealonso, +1886/-204, closes #485) "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining": added
PrefillCostModel(stratified fill/context NNLS),coalescing_horizon_tokensdefault 64.0, two-frameGraphKind::Prefillpipelining (GraphKind::pipelines()= Decode|Speculative|Prefill). It attacks the SAME problem (burst prefill latency) but by batching prefill into decode and chunk sizing, NOT by multi-request prefill graphs. #715's own description says "Mixed admits at most one prefill lane per step", which is the residual #645 left. #715 touches 6 of #645's files (manifest.rs, scheduler.rs, checkpoints.rs, cost.rs, policy.rs, policy_tests.rs) => rebase risk on the cost model and policy candidate plumbing. Charters: #645 passed with a simulator + live SM120 A/B. - #479 (merged, voipmonitor) introduced
TerminalPrefillgraph kind and theterminal_prefill_graphscatalog that #715 extends to B>=2; 13 files in common. This is the contract this PR extends. - #426 (merged, original-el8, same author) "Rebase prefill service prices, fix checkpoint interval pricing, and guard deferred TerminalPrefill state" — added
is_non_terminal_prefillanddeferred_prefill; #715 extendsis_non_terminal_prefillintois_non_terminal_prefill_step(kind, batch, capacity, packed)(helios/src/scheduler.rs:937-954) and reusesdeferred_prefill/terminal_prefill_windowinpacked_prefill_lane_compatible. - #661 (merged, FujitsuPolycom) "explore smaller prefill chunks under active age-priced streams"; #663 (merged, yatesdr) "price first-output waiting age"; #681 (merged, FujitsuPolycom) "active cohort mean in coalescing horizon"; #697 (merged, FujitsuPolycom) "preserve interior anchor for open-reasoning prompts"; #655 (merged, yatesdr) "retain measured snapshot cost after expiry and discover unmeasured cost once". All are scheduler-policy/cost work whose helpers #715's new policy code calls (
lane_value_for_tokens,prefill_slot_state,prefill_work_through,is_non_terminal_prefill,measured_duration). None of them overlap the packed-cohort idea. - #410 and #408 (closed, same author original-el8) and #352 (closed, same author) are earlier original-el8 mega-PRs that changed 14-18 of the same files; #410/#427 mention "TERMINAL_PREFILL PR pending @lukealonso's Principle 1" — evidence the terminal-prefill contract was gated on maintainer approval before.
Searches that returned nothing: issues about "packed prefill", "prefill batching", "batch_capacity 1 prefill"; there is no open or closed issue requesting multi-request prefill. The rationale is self-generated rather than a maintainer request.
#4 [high] Project fit: charter/design-review gates — owner approval for a new graph op contract is not recorded
Facts from the repo's own rules, both where #715 lines up and where it is exposed:
ALIGNED:
- docs/design-review.md:27-33 ("Ignition alone owns which graph catalogs and batch capacities to prepare. Helios and direct-execution scheduling must enumerate available graphs, batch capacities, and shapes directly from prepared model core metadata; they must never hardcode... fixed enumeration of expected or desired batch capacities"). #715 does exactly this:
packed_prefill_graphs()takes shapes from the manifest (helios/src/server/runtime.rs:846-900), and ignition/direct/scheduler.py:197-200 keys packed prefill by declaredpacked_token_capacity. No power-of-two list is introduced. - docs/design-review.md:58-61 (reject per-model booleans/
supports_*flags). #715 introduces none; text-only eligibility is derived from the absence of vision bindings (helios/src/model/packing.rs:111-130) and fromimage_slot/prompt_logprobsrequest state (policy.rs:1585-1591). - docs/design-review.md:116-123 / charter principle 13 (preserve model core compatibility; previous cores must load without re-export). Description claims the pre-change 151-graph core
887785adloads and serves on the updated binary. Code keepsbatch_capacity == 1catalogs unchanged (runtime.rs filtersbatch_capacity == 1for solo catalogs; selection.rs requirespacked_token_capacity == 0when B == 1). - Charter "Bring real evidence... benchmarks showing an actual speedup over
mainon a served workload (#210)". #715 supplies a 15-row barrier-synchronized A/B matrix viaflare runon 4x GB10 SM121 TP4, median of 3 rounds, plus a C=1 control.
EXPOSED / TENSION:
- docs/design-review.md:22-26: "Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso lalonso@gmail.com. Shape and capacity variants are allowed within an unchanged operation contract. A new operation contract requires approval even if it reuses a graph kind or enum value." Charter line: "Captured-graph op contracts: Adding a new one—even if it reuses an existing graph kind—requires owner approval before you write it." The PR extends
PREFILL/TERMINAL_PREFILLtobatch_capacity >= 2with a newpacked_token_capacity-on-prefill semantic and parityPACKED_TOKENlayout — arguably a new operation contract reusing an existing graph kind. NOTHING in the PR description, body or comments records an owner approval (Design-Signed-Off-By:trailer absent; no comment from lukealonso). Precedent: original-el8's #410 states the separate TERMINAL_PREFILL PR was "pending @lukealonso's Principle 1" approval, i.e. this project does gate such extensions. - docs/design-review.md:195-208 + 232-251: changes to graph selection, service pricing, cohort algorithms AND timing estimation must be evaluated against
scripts/scheduling_sim/, and timing-estimation changes must runlearning.pyscreening + 64-seed validation; "Disclosure does not excuse skipping runnable CPU checks... noting it as a limitation does not make the omission acceptable." #715 adds a new cohort algorithm inpacked_round_candidates/packed_prefill_candidates(policy.rs:1297-1424, 1623-1789) and newActionCosts::packed_prefill_durationtiming keys but the description lists NO simulator run and NOlearning.pysweep. Its limitation section only names tla2tools.jar and cargo-kani as unavailable. - docs/design-review.md:209-230: TLA+ lifecycle conformance and mutation testing are required when changing admission/fences/cache compaction/snapshot aliases. #715 changes commit/validation/checkpoint tracking (scheduler.rs:2611-2640, checkpoints.rs:922-935) yet only reports in-crate Rust lifecycle conformance suites ran; standalone TLC not run.
- Charter "Don't silently ignore API fields"/"Keep the runtime small". No API field is ignored; footprint is ~+1398 lines in helios/src.
- Note the PR description never mentions
docs/design-review.mdor approval, and the branch name isdocs/packed-prefill-rfcwhile the change is code.
#5 [high] People: original-el8 is a charter-named priority contributor; #715 has zero engagement
Author: original-el8, GitHub association COLLABORATOR, listed in the charter as a "priority contributor" (@voipmonitor, @original-el8, @lukealonso) who "carry extra weight—we never close their PRs out of hand". Charter Respect-for-Contributors section.
History (from orientation packet): 25 merged, 29 closed, 10 open in the last 180 days. Recent: #712 (open, RoCE hairpin defaults, 2026-12-03), #710 (open, coalesce host VMAs / speculative cost, 2026-12-03), #666 (merged, roce_fabric), #604 (merged, deepseek-recipe lock sync). Merged PRs touch docs (15), helios/src (14), helios (5), ignition/preparation (5), ignition/recipes (4).
Pattern relevant to this PR: original-el8 ships very large multi-area PRs (e.g. #410/#408 closed mega-PRs at 18 files shared with #715; #426 merged +? on prefill pricing). #715 continues that pattern: one PR spanning manifest validation, core selection, input packing, scheduler policy, cost model, checkpoints, ignition preparation, direct scheduler, docs and tests.
Domain ownership: original-el8 owns the DeepSeek V4.1 / SM103 Parallax line and the prefill/terminal-prefill pricing changes (#426, #352, #311/#312). The TerminalPrefill graph kind itself came from voipmonitor's #479.
Who else works in these files (from items_touching / related_items): lukealonso (project owner) dominates helios/src/scheduler/policy.rs, manifest.rs, scheduler.rs (#645, #644, #620, #619, #613, #510, #656; also #711, #720); FujitsuPolycom on scheduler policy/cost (#661, #681, #697, #538, #542, #540); yatesdr on cost/checkpoint/cache (#655, #663, #674, #694, #459, #357); voipmonitor on manifest/capacity/packing (#479, #555, #566, #485); jcartu on manifest/packing validation (#621, #688, #505, #404); fakoli on prefill KV handoff (#718).
Engagement so far: ZERO. Only one comment on #715, by the author himself (2026-12-04 05:56) summarising highlights. No reviews, no maintainer comment, no labels, no flare-autobot case file/review posted yet (unlike #645/#655/#697, which each got an Autobot review within ~30 min). No reactions visible. This is the least-engaged of the recent scheduler PRs.
Open overlapping PRs that may need ordering (from related_items / items_touching):
- #621 (open, jcartu) "Validate scheduler admission against the core parameter declarations" — 8 files in common incl. manifest.rs, packing.rs, scheduler.rs, model/tests.rs, server/runtime.rs, ignition/direct/scheduler.py. Likely conflicts with the new packed geometry validation.
- #718 (open, fakoli) "prefill-only KV handoff, announce barrier, bounded pool-only capture" — 5 files in common (model/tests.rs, scheduler.rs, checkpoints.rs, policy_tests.rs, server/runtime.rs); touches the same prefill/checkpoint scheduling surface.
- #693 (open, jcartu) "cache per-lane powered survival curves across candidate pricing" — same policy.rs hot spot, touches
lane_value_for_tokensandresize_prefillthat #715's packed cohorts call. - #694 (open, yatesdr) touches scheduler/cache_memory.rs and
estimated_prefill_saved_ns. - #571 (open) "force a wide round after persistent width-one selection" — policy.rs.
#6 [high] Claims and evidence: strong served A/B, but confounded baseline and missing mandatory CPU gates
CLAIMED (all from PR #715 description/author comment):
- Benchmark setup: 4x NVIDIA GB10 SM121 TP4, DeepSeek V4.1 Flash,
flare run, "identical runtime binary84f789af", "identical binary and flags", 15-cell barrier-synchronized burst matrix, median of 3 rounds, temperature=0. - Headline: p95 TTFT 1.68x–4.15x better; prefill throughput 1.75x–4.23x better;
3,590 ms -> 865 msat C=16 93-token chat;1,656 -> 455 msat C=16 69-token completions;383 -> 1,622 tok/s;1,996 -> 3,559 tok/s. - Backward compatibility: pre-change 151-graph core
887785ad(7,631,232 logical KV tokens/rank) loads and serves on the new binary vs 157-graph core4aea5c54(7,310,848 tok/rank), i.e. -4.2% KV capacity cost. - Test suites: helios runtime-core lib 1,284 passed/37 ignored; runtime-core+server 1,894 passed/49 ignored with 6 failures "solely from unset FLARE_TEST_TEMPLATE_DIR"; heliopause 230 passed; flare/flare-cli all passed; Python 905 passed/2 skipped with 3
tests/clifailures blamed on an older installedflare_heliopausewheel; companion recipes PR 6/6 CUDA+CPU and 112/112 DeepSeek CPU tests. - Claim "Without per-model flags... existing cores load and serve unchanged" (see below for the moved
--packed-verificationcheck).
WHAT BACKS IT:
- Real, detailed, self-disclosed A/B with a C=1 solo control. Honest negative cells are included:
comp_w60_c10.94x (regression on the control),comp_w105_c8p50 0.96x,comp_w185_c4p50 0.98x,comp_w185_c16p50 1.01x,chat_w185_c16p50 1.62x. That is more honest than most PRs here. - The PR body follows the charter's required four-part scheme (why / what / claimed result / evidence) and carries
Discord: el8.
WHAT IS WEAK OR MISSING:
- Baseline confound, self-disclosed: the two arms are DIFFERENT exported cores from DIFFERENT FlashInfer revisions (
887785adearlier FlashInfer vs4aea5c54against FlashInfer5a8ceed80). So the A/B is not an isolated measurement of packed prefill; the 0.94x C=1 control confirms a ~6% systematic overhead in the packed arm. Charter/docs/design-review.md:109-111 requires "equivalent baselines" and "benchmarks showing an actual speedup over main on a served workload". A same-core, flag-only comparison (recipe--packed-prefillon/off with one binary AND one FlashInfer pin) is not provided. - No
scripts/scheduling_sim/result and noscript/scheduling_sim/learning.py64-seed sweep, although the change adds a cohort algorithm and new timing estimates (docs/design-review.md:195-208, 247-251 make these mandatory and say disclosure does not excuse omission). - No standalone TLA+ TLC run and no
cargo kani, disclosed as a limitation, though docs/design-review.md:247-251 says disclosure does not make skipped runnable CPU checks acceptable. - The 6 GB10 CUDA tests live in the companion recipes repo (local-inference-lab/hyperflare-recipes#153), NOT in this repo, so no in-repo multi-lane numerical-parity evidence exists here.
- Two of the three claimed "test failures" are attributed to environment (unset FLARE_TEST_TEMPLATE_DIR, stale wheel), not root-caused.
- Claimed FFN motivation numbers (3,947.3 us/layer at 64 rows vs 7,625.4 us/layer at 1,024 rows, printed to 0.1 us) come from a single layer-3 TP4 shard microbenchmark, not from a served measurement; they justify the idea but do not measure the change. The design doc's "8.3x lower per-layer FFN latency" and "est. 3-6x worse p95/p99 TTFT" (docs/packed-prefill-design.md section 1) are estimates, presented alongside measurements without a separate label.
#7 [high] Change: behaviour changes and limits the description does not fully say
Undeclared / partially declared behaviour changes found by reading the diff (none of these appear in the "What changed" list):
ignition/cli/serve.py:462-468— the--packed-verificationpreflight check changed fromany(signature.packed_token_capacity ...)toany(signature.kind == "speculative" and signature.packed_token_capacity ...). This is a real behaviour change for any recipe whose only non-zeropacked_token_capacitywas on a non-speculative graph: previously the check passed, now it raisesUsageError("this prepared recipe does not declare packed verification capacities"). It is described ("Scopes--packed-verificationchecks tospeculativesignatures") but its user-visible failure mode is not.helios/src/scheduler.rsScheduledStep::validate_mixedgained, for ALL steps, two new general checks:step.lanes.len() > step.batch_capacity=> "scheduled step exceeds batch capacity" (scheduler.rs:2611-2614) and, incommit, the same lane-count/sum validation (scheduler.rs:2611-2640). These apply beyond packed prefill and are not mentioned.helios/src/scheduler/cost.rs:fresh_durationwas replaced bymeasured_durationandprefillcost models are now created only forkey.batch == 1;refresh_prefill_context_slopesis now gated onkey.batch == 1. This changes cost model behaviour for every prefill key, not only packed ones. The diff hunk is in a listed file but the semantic change to solo paths is not described.helios/src/scheduler/policy.rs:167-170:Candidateequality for prefill now also requiressmaller.host_lengths == larger.host_lengths. Solo prefill candidates carryhost_lengths: None, so behaviour is preserved, but this is a shared predicate change.helios/src/scheduler/checkpoints.rs:prefill_catalog_costswas refactored intoprefill_catalog_costs_for(prompt_logprobs),interval_prefill_nsintointerval_prefill_ns_for(window_ends, prefill_spans, ...), andterminal_only/bound/is_terminalnow compare againstlimitinstead ofend, plus a newbound = bound.min(limit.saturating_sub(max_terminal_cap)). This is a substantive rewrite of checkpoint interval pricing for ALL prefill, only loosely covered by the description's "tracks non-terminal packed prefill steps during checkpoint planning".packed_prefill_candidatesregisters a candidate but ALSO requirespromoted_count > 0in thepacked_round_candidatesvariant (policy.rs ~1380-1385): a packed cohort with two plain ready prefills and no promoted/continuation lane is dropped there, and instead relies on the separatepacked_prefill_candidatespath. Worth noting because it means two code paths build packed cohorts with different acceptance rules.
DEVIATIONS FROM WHAT THE DESCRIPTION SAYS:
- The description says
P <= prefill_chunk_sizeis validated; that is enforced inruntime_core/selection.rs(core selection) andmodel/catalog.rs, but NOT inexecution/manifest.rs(which cannot see the chunk size) and the newvalidate_mixed/commitchecks do not re-check it either. So the bound is a selection-time gate, not a manifest invariant. Consistent with the design table, but a reader of only the description would assume manifest-level validation. - docs/packed-prefill-design.md section 4 (Recipe Integration) describes work in
hyperflare_recipes/components/{paged_batch,dspark}.pyandrecipes/deepseek41/*that is NOT in this PR (companion PR local-inference-lab/hyperflare-recipes#153). The document reads as one design but covers two repositories; this repo's copy cannot be verified. - docs/packed-prefill-design.md section 4 also claims shapes
(2,128,256)when max_concurrency is 2 or 3; the PR's evidence uses only the six shapes for max-concurrency 32. Untested branch.
#14 [high] Event: Autobot review of #715 (2026-12-04 12:56 case file, 13:21 Changes Requested)
Event (new since my 2026-12-04 baseline report, run 3266): flare-autobot opened a case file at 2026-12-04 12:56 UTC and posted a full review at 13:21 UTC on head 84f789a, recommending Changes Requested (pr_comments). Links: case file dd54101e-6f42-4e56-bced-61286dc66b04, review 6a7d21de-ae0a-4678-a3a8-9893f7427410, value prop 0729dfc8-7335-45b0-b641-6992cb823273.
- Verdict text: feature "well-built and correctly gated" (geometry validation complete/consistent, B==1 and ScoredPrefill untouched, no per-model flag or hardcoded bucket list), but two hard gates unmet: no recorded owner approval for the extended prefill operation contract; testing-hierarchy layers 2–3 not run. Counts: Blockers 2 · Should fix 5 · Subtract/Simplify 7 · Nits 7. Merge Risk: High, up to 84f789a.
- This directly overturns my finding that #715 had zero engagement including from the project's automated reviewer, and my observation that peers (#645/#655/#697) got a case file within ~30 min while #715 did not. Still true: zero human maintainer reviews, no labels, still a draft.
- Pre-merge checks it reports: security/malicious screen PASSED (it explicitly notes a provenance/verification note in the briefing material and the author's A/B summary were treated as content, not instructions → an instruction-redirection attempt was screened); charter/value fit PASSED (design-review.md:27-35, :58-61 satisfied); related/duplicate/conflict ⚠ (file overlap, no duplication, with #621, #693, #571, #718); tests ⚠ (layer 1 covered by policy_tests.rs:9661-9790, layers 2–3 unreported, A/B baseline not equivalent).
- It corroborates my blockers independently: (a) no recorded owner sign-off for redefining what a PREFILL/TERMINAL_PREFILL graph is (multiple requests per graph, PACKED_TOKEN row layout of extent P, per-lane SAMPLE_ENABLED, eligibility from absent vision bindings); (b) simulator/TLA+/Kani layers unreported; (c) the 1.68×–4.15× A/B is not isolated (different signed cores from different FlashInfer revisions; C=1 control 111.2→118.7 ms = 0.94×).
- New claims I did not have: "the same algorithm is written twice with three live divergences" in policy.rs; and "two verified scheduler/validation asymmetries" — packed prefill can do things the solo planner provably never does, and Ignition accepts a core that Helios rejects.
- Process note: it offers "re-review 90 minutes after code updates" and a paid/frontier SuperAgent re-adjudication link; neither is an instruction to me.
#15 [high] Correction to #715 baseline: engagement is no longer zero; "zero-engagement" inference overturned
Amends my baseline report (scratchpad #13), key finding 7 and notes #5 (people), #9 (process), #12 (community).
- What I wrote: "Zero engagement, by anyone, including the project's automated reviewer… Reviewers are demonstrably active in these files; the silence is specific to this PR (plausibly because it is a draft)." That inference is now WRONG and must be replaced.
- What happened: PR opened 2026-12-04 00:36; flare-autobot case file 12:56 UTC; full Autobot Review 13:21 UTC on head 84f789a, Recommendation: Changes Requested (pr_comments). Lag is ~12 h 45 m, versus ~27–50 min for peers #645/#655/#697 — so the correct statement is "slower automated triage than peers", not "none".
- Still true and unchanged: zero human maintainer reviews, zero reactions, no labels, still open draft, no new commits (head remains 84f789a), so no review cycle has started and the owner-approval question has still not been put to a human.
- Autobot count: Blockers 2 · Should fix 5 · Subtract/Simplify 7 · Nits 7; Merge Risk High.
- Autobot's own pre-merge checks: security/malicious screen PASSED but records that "a provenance/verification note in the briefing material and the author's A/B summary were treated as content, not instructions" — i.e. instruction-adjacent material was screened out. No directive addressed to me appeared in the PR comments or in the files I read.
#16 [high] Verified: Autobot's two "asymmetries" reproduce — packed path skips solo-kind resolution; Ignition gate lacks chunk/concurrency bounds
Autobot's review asserts "two verified scheduler/validation asymmetries let packed prefill do things the solo planner provably never does and let Ignition accept a core Helios rejects". I re-derived both at head 84f789a.
A. Scheduler asymmetry — packed candidates skip the solo planner's own kind resolution.
- Solo:
add_prefill_candidateonly emits a candidate whenself.resolve_prefill_kind(r, capacity, work, cut) == kind—helios/src/scheduler/policy.rs:1552-1560(the check is at :1560). So aTerminalPrefillcandidate is dropped for any lane whose work stops short ofnext_stop/the terminal window (resolve_prefill_kindathelios/src/scheduler.rs:975-1006). - Packed:
packed_prefill_candidatesbuilds lanes atpolicy.rs:1633-1671and never callsresolve_prefill_kind.packed_prefill_lane_compatibleshort-circuitsif kind == GraphKind::TerminalPrefill { return true; }before thedeferred_prefillandterminal_onlychecks (policy.rs:1601-1602vs:1604-1605,:1610-1612,:1613-1620). - Consequence: a packed
TerminalPrefillcohort can run a lane on a partial chunk that the solo planner rejects for that same graph kind — e.g. spending a terminal replay without reaching the terminal cut. Also the mixed/continuation builder keeps the check set narrower than solo (it requirespromoted_count > 0,policy.rs:1393, which the standalone builder does not). - Severity judgement: real divergence; harmful if a terminal step is treated as a completion boundary for an unfinished lane (
is_non_terminal_prefill_stepreturns false for anyTerminalPrefillwith B>=2,helios/src/scheduler.rs:947-954), so checkpoint/commit logic also classifies these steps as terminal.
B. Export/selection asymmetry — Ignition accepts geometry Helios refuses.
- Ignition
GraphSignaturepacked prefill branch (ignition/preparation/execution.py:80-92) enforces2 <= B <= MAX_CONCURRENCY(64),P >= 64,P % 64,W <= P,B <= P <= B*W, rejects vision input names — nothing else. NoP <= prefill_chunk_size, noB <= request_capacity(max_active). - Helios enforces both at selection:
P <= prefill_chunk_sizeathelios/src/runtime_core/selection.rs:280-294(:293) andgraph.batch_capacity > prepared.next_power_of_two()at:302;helios/src/model/catalog.rs:266-282repeats the chunk bound; the exported-manifest validator does not (helios/src/execution/manifest.rs:860-872has only draft/B<=P<=B*W/align/i32 checks), so the core exports and later fails with the opaque "invalid or duplicate serving graph variant" (selection.rs:324). - This confirms and sharpens my earlier note that
P <= prefill_chunk_sizeis a selection-time gate, not a manifest invariant.
C. Autobot's "same algorithm written twice with three live divergences" — reproduced, with one nuance.
packed_round_candidates(policy.rs:1300-1426) vspacked_prefill_candidates(:1623-1747):- gate: first requires
promoted_count > 0(:1393); second onlyselected >= 2(:1713). - objective: first keeps the best cohort by
ValueRate.compare(:1421-1424); second keeps the best by rawtotal_value, thenselected, thentotal_work(:1716-1726) and only afterwards builds a rate (:1743). - horizon: first values lanes with
horizon = packed_ns + following_ns(:1305-1309, used at :1345); second values lanes withduration_nsalone (:1668).
- gate: first requires
- Nuance: divergence 3 is contextually justified rather than a bug — the first builder prices a continuation step that follows an Init/Restore, the second a first-tier candidate. Divergences 1 and 2 are not obviously justified.
- Corroborates my note #13 finding that two cohort builders exist for one graph family (my subtraction/duplication concern).
#18 [high] Corrections to the file list and process facts: cache_memory.rs is not part of #715; labels exist
Amends note #13 and #1. Facts after re-reading the PR item at head caaef5a807 (read_item #715).
- Head is now caaef5a807 (short caaef5a), 20 files, +1638 −56 — one file and one line fewer than the 21-file / +1639 −56 set I reported. The difference is
helios/src/runtime_core/cache_memory.rs, which is no longer in the change set: atmainthat file has noexternal_extentsoccurrences (search_code on refmain→ no matches) and at head it has two (cache_memory.rs:1397,:1670) supplied by merged #720/#721. So the test-compile hunk I attributed to #715 was a stale-base artifact of the localmain, exactly like the other unrelated hunks I flagged. Subtract it from the authoritative file list. - Labels now exist:
area:scheduling, enhancement, performance, triage:review— so my "no labels, unlike peer scheduler PRs #645/#655/#697" point is closed; peers' labels are now matched. - Item "updated 2026-12-04 13:25"; only three discussion entries (author 05:56, case file 12:56, review 13:21). Still open draft, still no human review.
- My earlier finding stands unchanged and is now corroborated verbatim by the PR body: the body itself discloses the FlashInfer-revision mismatch ("baseline core
887785adwas exported from an earlier FlashInfer revision while the packed-prefill core4aea5c54was exported against FlashInfer5a8ceed80") and the 0.94× C=1 control. So the confound is disclosed, not concealed — my criticism is that the headline multiplier is not isolable, not that it is hidden. - New detail from the body worth keeping: the residual 2–3 token tails after chat
message_boundaryanchors at C=4/8 still run solo (~50 ms/lane) because the smallest packed graph is P=512 — the author names aP=256small-tail shape as future work. This is an honest admission that the packed catalog in the A/B does not cover the tail case.
#19 [high] Consolidated: what still stands after the event vs. what the event superseded
For downstream reviewers reusing my cross-PR history, charter mapping and file map after this event. Everything below survived re-verification at head caaef5a807; only the deltas in notes #14–#18 supersede my baseline #13.
UNCHANGED and independently corroborated by the Autobot review (13:21 UTC):
- Owner-approval gate unmet:
docs/design-review.md:22-26requires prior explicit owner approval for a new captured-graph operation contract; none is recorded for wideningPREFILL/TERMINAL_PREFILLtoB >= 2+PACKED_TOKENextentP+ per-laneSAMPLE_ENABLED. Autobot lists this as Blocker #1. - Testing-hierarchy layers 2–3 unreported (Autobot Blocker #2). Now strengthened by note #17: the simulator exists in-repo, is packed-blind, and is in no CI workflow.
- A/B not isolable: different signed cores from different FlashInfer revisions, C=1 control 111.2→118.7 ms (0.94×). Author discloses it; Autobot flags it. Do not quote 1.68×–4.15× as a flag-only measurement.
pr_diffis still unreliable for this PR because localmainis stale; authoritative set is the 20-file list in note #18 (21 minuscache_memory.rs).- Change is inert without an opt-in core; costs −4.2% KV (7,631,232 → 7,310,848); vision and
prompt_logprobslanes excluded (policy.rs:1585-1590); direct mode does not exploit packed shapes (ignition/direct/scheduler.py:288-292). - Undeclared shared-code behaviour changes remain:
--packed-verificationnarrowed to speculative signatures, generallanes.len() > batch_capacitychecks invalidate_mixed/commit, prefill cost-model/slope gating onbatch == 1(cost.rs:581-583,:606-607), and the all-prefill checkpoint pricing rewrite. - Related-item ordering still needed: #621 (8 shared files incl. manifest/packing/selection) and #718 (scheduler/checkpoints/runtime) are the direct conflict surfaces; #693 and #571 share the
policy.rshot path. Autobot reached the same conflict list. - Charter fit is positive and now asserted by a second party: model-agnostic, capacities read from
packed_prefill_graphs()(scheduler.rs:891-921), wiring from the manifest atserver/runtime.rs:879-899; nosupports_*flag, no hardcoded shape list —docs/design-review.md:27-35,:58-61.
DELTA to carry forward: engagement is no longer zero (Autobot reviewed, Changes Requested, 2 blockers); labels exist; head moved; the cache_memory.rs hunk is not part of the change. Human maintainer review is still absent, so the owner-approval question remains un-put to a human.
Claims I could not verify: the review's individual "5 should-fix / 7 subtract / 7 nits" items, which live behind the linked full-review page (not fetchable); its selection.rs:260-275 range is slightly offset from mine (selection.rs:274-302) — same code.
#20 [high] Research summary
The new event was a real change in #715's status, so the report needed amendments rather than a rewrite. flare-autobot opened a case file at 2026-12-04 12:56 UTC and posted a full review at 13:21 UTC on head 84f789a recommending Changes Requested (2 blockers, 5 should-fix, 7 subtract/simplify, 7 nits, merge risk High).
Three of my baseline conclusions had to change: (a) my "zero engagement, including from the automated reviewer" finding is overturned — the correct statement is slower automated triage than peers (#645/#655/#697 got case files in ~30 min, #715 in ~12 h), with human maintainer engagement still genuinely zero; (b) my "no labels" process point is overturned — #715 now carries area:scheduling, enhancement, performance, triage:review; (c) the authoritative change set is 20 files / +1638/−56, not 21/+1639/−56 — the helios/src/runtime_core/cache_memory.rs hunk is a stale-base artifact supplied by merged #720/#721, not part of this PR, which means my own "don't trust pr_diff" caveat applied to my file table too. Head has also moved to caaef5a807.
The substantive blockers were corroborated rather than weakened. I closed a prior caveat by verifying scripts/scheduling_sim/ exists in-repo, is completely blind to packed prefill, and is wired into no CI workflow — which strengthens the docs/design-review.md:195-251 (not opened) finding. I also independently reproduced Autobot's two claimed asymmetries: the packed cohort builder skips the solo planner's resolve_prefill_kind gate and short-circuits TerminalPrefill compatibility, and Ignition's packed GraphSignature check omits the chunk-size and request-capacity bounds that Helios enforces at selection, so a core exports and then fails at load. Of the "three live divergences" in the duplicated cohort builders, I confirmed two as unjustified and judged the third contextually sound. Notably, the A/B confound is disclosed verbatim in the PR body itself, so the criticism is non-isolability, not concealment.
All seven amendments plus a consolidated "what still stands" note are in scratchpad entries #14–#19.
#21 [high] Amendments digest: the seven deltas the final report must state, in order
The final report amends (does not restate) report #13. State these seven, in this order, each with its evidence note.
- "Zero engagement including the automated reviewer" is overturned. New event: case file 2026-12-04 12:56 UTC, full review 13:21 UTC on head 84f789a, Recommendation Changes Requested, 2 blockers / 5 should-fix / 7 subtract / 7 nits, merge risk High (note #14). Corrected claim: slower automated triage than peers (~12h20m to case file vs ~27–50 min for #645/#655/#697), not none. Human maintainer reviews remain zero.
- "No labels unlike peer scheduler PRs" is overturned. Now
area:scheduling, enhancement, performance, triage:review; head also moved tocaaef5a807(note #18). - Change set is 20 files / +1638 −56, not 21 / +1639 −56.
helios/src/runtime_core/cache_memory.rsis a stale-base artifact from merged #720/#721 (noexternal_extentsonmain; two at head,:1397/:1670). My own "don't trustpr_diff" caveat applied to my file table (note #18). - A/B framing corrected. Confound is disclosed in the PR body itself ("baseline core
887785ad… earlier FlashInfer revision … packed core4aea5c54… FlashInfer5a8ceed80" plus the 0.94× C=1 control). Criticism is non-isolability, not concealment (note #18). - Simulator caveat closed and the finding strengthened.
scripts/scheduling_sim/exists in-repo (16 modules incl.learning.py), is blind topacked/batch_capacity/multi_request/prefill_batch, and is in no CI workflow; TLA+/Kani are wired (helios-lifecycle.yml:33-34, new compile step:35-36,kanijob:38-49) but were not reported run (note #17). - Both claimed asymmetries independently reproduced. Solo gate
policy.rs:1560absent frompacked_prefill_candidates(:1633-1671);packed_prefill_lane_compatiblereturns true forTerminalPrefillbefore thedeferred_prefill/terminal_onlychecks (:1601-1602vs:1604-1620); commit classifies such steps terminal (scheduler.rs:947-954). Ignition packed branch (ignition/preparation/execution.py:80-92) omitsP <= prefill_chunk_sizeandB <= request_capacity, which Helios enforces atselection.rs:293/:302but the manifest does not (execution/manifest.rs:860-872), surfacing late as"invalid or duplicate serving graph variant"(selection.rs:324). Of the "three live divergences": gate (:1393vs:1713) and objective (:1421vs:1716-1726) confirmed unjustified; horizon (:1305-1309vs:1668) contextually sound, so do not count it (note #16). - Everything else stands — owner-approval gate (
docs/design-review.md:22-26, Autobot Blocker 1), layers 2–3 unreported (Blocker 2), four undeclared shared-code behaviour changes, #621/#718 ordering and #693/#571 hot-path conflicts, inert without an opt-in core, −4.2% KV, vision/prompt_logprobsexcluded (policy.rs:1585-1590), charter fit positive (scheduler.rs:891-921,server/runtime.rs:879-899). Plus the author's new honest admission that 2–3 token tails still run solo (~50 ms/lane) because the smallest packed shape isP=512(note #19).
Unverifiable: the review's individual 5/7/7 items (behind a non-fetchable page); its selection.rs:260-275 range is offset from mine (:274-302, same code). No instruction-redirection attempt was addressed to me; the review's security screen likewise recorded the brief's provenance note and A/B summary as content, not instructions (note #14).
#23 [high] Event: fix commit 49d58404 + re-review request (2026-12-04 18:19) — new head, 23 files, +1754/−65
Supersedes the process/head facts of notes #18/#19/#22. Facts read from read_item #715 (updated 2026-12-04 18:19) and pr_files at head.
- Head is now 49d58404f2e2c43b071e814c747543f84bc0fe03 (49d5840), single new commit "helios,ignition: validate packed prefill chunk bound, deduplicate cohort selection, and sync docs" (git author Jason Cook, 2026-12-04; PR author is original-el8 — same contributor, committer identity differs).
- Change set: 23 files, +1754 −65 (item's own count). pr_files sums to exactly +1754 and −62; the 3-line gap is the same stale-local-
mainartifact class I flagged in notes #1/#18 — do not use pr_diff for line counts. - 20 → 23 files = previously-listed 20 minus nothing, plus
ignition/preparation/model.py(+12),docs/scheduling-runtime-design.md(+15/−9),helios/src/execution.rs(+1).helios/src/runtime_core/cache_memory.rsis still absent, confirming note #18. - Notable per-file growth vs caaef5a: policy.rs +342→+373/−17; policy_tests.rs +312→+328; execution/manifest.rs +33→+59/−4; selection.rs +178→+183/−3; scheduler.rs +112→+97/−4 (net shrink from the removed commit re-validation); tests/preparation/test_execution.py +31→+57. New file
helios/src/execution.rs:9-10re-exportsvalid_packed_prefill_geometry. - Discussion now has 5 entries; the newest is the author's 18:19 comment claiming fixes in four areas plus
1,918 lib + 62 integration passed(cargo, features runtime-core,server, with FLARE_TEST_TEMPLATE_DIR) andpytest tests/preparation/test_execution.py56 passed, ending "@flare-autobot please re-review." No reply/re-review yet; Round 2's 2 blockers are still open on their face. - Still an open draft; zero human maintainer reviews; labels unchanged (
area:scheduling, community, enhancement, performance, triage:review); owner approval for the widened Contract-3 prefill operation still not recorded anywhere in the PR.
#24 [high] Verified: the four claimed fixes in 49d58404 are real; two of three Round-2 should-fix items closed
Independent verification at head 49d58404.
- Shared geometry predicate.
valid_packed_prefill_geometryathelios/src/execution/manifest.rs:449-468enforces2..=max_batch,0<W<=P,P>=batch,P<=B*W,P>=64, 64-aligned,P<=i32::MAX, optionalP<=max_chunk. Callers: manifest validationmanifest.rs:885-891and:942-948(both passrequest_capacity(),Nonechunk); cataloghelios/src/model/catalog.rs:273-279(usize::MAX,Some(prefill_chunk_size); batch already bounded by:253); selectionhelios/src/runtime_core/selection.rs:285-298(REQUEST_LANES,Some(max_chunk), withusize::try_fromguards); schedulerhelios/src/scheduler.rs:439-445(REQUEST_LANES, no chunk — step came from the validated catalog),:902-908(request_slots,Some(prefill_chunk_size)). All five previously-divergent copies now agree; this genuinely closes Autobot's "same check written five times" should-fix. - Cohort builder dedup. Single
RequestScheduler::select_packed_prefill_cohort(offers, batch, packed, promoted_limit)athelios/src/scheduler/policy.rs:1567-1678returningPackedCohort(policy.rs:14-23). Call sites: continuation valuationpolicy.rs:1362-1366(Some(capacity)) and first-tier candidates:1757-1761(None). The two divergences I recorded in note #16 are gone: the "≥1 promoted lane" gate is now the seed-or-continueat:1609-1627plus:1652-1654(previouslypromoted_count == 0at old :1393); the objective is unified ontotal_value→selected→total_work→mask at:1664-1672, withValueRatebuilt by the callers (:1397-1399,:1774). The horizon difference I had already judged contextually justified is unchanged (:1315-1319vs:1719). New behaviour: a promoted lane is seeded before ready lanes fill (:1607-1627), with the unit test athelios/src/scheduler/policy_tests.rs:9821-9835asserting the seeded cohort{slot0, slot2}over the higher-value promoted-free{slot0, slot1}— correct under the two-stage continuation semantics it preserves, and the seed is the highest-value fitting promoted lane in each of the two sort orders, so it is not arbitrary. - Removed
commitre-validation is safe. The deleted block (helios/src/scheduler.rs:2614-2632pre-fix: per-lanetokens <= token_capacity, overflow-checkedsum,packed_token_capacity >= batch) is fully subsumed byScheduledStep::validate_mixed(helios/src/scheduler.rs:436-463: geometry via the helper,lanesnon-empty,len <= batch_capacity,1..=Wper lane, checkedsum <= P, distinct slots), andcommitcallsstep.validate_mixed()?first at:2576. Removing the duplicate does not drop a guard. The generallanes.len() > batch_capacitycheck at:2615-2617remains. is_non_terminal_prefill_step→binary_search_by_key(helios/src/scheduler.rs:947-955) is sound becausepacked_prefill_graphssorts by(kind as u8, batch, width, packed)(:896-899) and rejects duplicates (:909), andTerminalPrefill > Prefillin the enum order (manifest.rs:70-82), so the key ordering matches. Semantics unchanged.- Docs sync is real.
docs/scheduling-runtime-design.md:21-26now lists "solo and optional packed multi-request prefill" and links the design doc;:455-459keys cost entries on "packed token capacity (packed verification or packed multi-request prefill)" (matchescost::Key.packed,helios/src/scheduler/cost.rs:571,596);:466-475states packed (batch >= 2) prefill uses the flat nine-sample rolling median instead of per-batch-1 context strata (matchesEstimate.prefillbeing created only foris_prefill() && batch == 1atcost.rs:606-607and slope refresh gated at:581-583,:969-971, withreplays.observeat:965).docs/packed-prefill-design.md:46creditslocal-inference-lab/hyperflare-recipes#153for the recipe work and:51-52narrows "no per-model flags" to "no per-model Helios runtime flags" — an honest scoping fix rather than a silent weakening. - Author-reported Layer-1 re-run (1,918 lib + 62 integration, pytest 56) is consistent with the new/changed tests (
policy_tests.rs:9821-9835,tests/preparation/test_execution.py:440-463); I cannot execute them here, so treat as author-reported.
#25 [high] Residual after 49d58404: solo-vs-packed kind gate still open, Ignition chunk bound narrowed not closed, blockers 1–2 unchanged
What the fix commit did NOT change, verified at head 49d58404.
A. Solo-vs-packed kind-resolution asymmetry still stands (note #16 A). resolve_prefill_kind is called from helios/src/scheduler/policy.rs:432,466,890,1121,1535,2065,2147,2205; none of those is in packed_prefill_candidates (:1711-1778) or in the new select_packed_prefill_cohort (:1567-1678). packed_prefill_lane_compatible still returns true for TerminalPrefill before the deferred_prefill/terminal_only checks (:1689-1691 vs :1692-1699, window check :1707-1708). So a packed TerminalPrefill cohort still may run a lane the solo planner would refuse for that kind, while is_non_terminal_prefill_step reports false for any TerminalPrefill with batch >= 2 (helios/src/scheduler.rs:944-955). Not addressed by the commit, and not among the 3 remaining should-fix items Autobot named in Round 2 — a first-party finding that survives.
B. Ignition chunk bound is now enforced, but not where Helios enforces it. New check: ignition/preparation/model.py:32-43 rejects signature.packed_token_capacity > server_config["prefill_chunk_size"] for prefill/terminal_prefill with batch_capacity >= 2, raising before export/serve; test tests/preparation/test_execution.py:440-463. Gaps that keep the asymmetry partly open:
- It is a
PreparedModel.__init__check, not aGraphSignature/PreparedExecutioninvariant, and it is silently skipped when the key is absent (model.py:33 if prefill_chunk is not None).GraphSignaturestill has no chunk bound (ignition/preparation/execution.py:80-92), andPreparedExecution.__init__(:253-372) has no equivalent, so a bundle built withoutserver_config["prefill_chunk_size"](e.g.server_config={}fixtures,test_execution.py:166,183) still passes. B <= request_capacity(max_active)is still unchecked on the Ignition side; it only appears as the globalMAX_CONCURRENCY = 64bound (execution.py:81,ignition/components/capacity.py:11). Helios enforces the real per-core bound twice:graph.batch_capacity > prepared.next_power_of_two()athelios/src/runtime_core/selection.rs:307and2..=request_slotsin the scheduler catalog (helios/src/scheduler.rs:902-908). So an over-wide packed shape can still export and fail at load with"invalid or duplicate serving graph variant"(selection.rs:329).- Net: Autobot's should-fix #3 is materially addressed for the chunk bound; the batch bound and the "signature vs prepared-model" placement remain.
C. Both Round-2 blockers are untouched and unaddressed in the thread: (1) no owner approval recorded for widening the PREFILL/TERMINAL_PREFILL operation contract — docs/design-review.md:22-26 still requires prior explicit approval from Luke Alonso and says a design acknowledgment is not approval, and the new docs do not claim any; (2) layers 2–3 still unreported — no simulator run (scripts/scheduling_sim/ remains blind to packed prefill and in no CI workflow, note #17) and no TLA+/Kani/mutation report, against docs/design-review.md:195-251 including the "disclosure does not excuse skipping runnable CPU checks" clause at :247-251. The commit also grew policy.rs further (+342 → +373), i.e. more unverified cohort logic, not less.
D. New undeclared behaviour refinement introduced by the fix: continuation valuation now seeds a promoted lane before ready lanes can take slots (policy.rs:1607-1627), so the selected cohort can now deliberately exclude a higher-value ready lane; encoded by policy_tests.rs:9821-9835. The PR body's "What changed" section does not describe this policy change, and the author's 18:19 summary frames the whole commit as dedup/cleanup ("unifying tie-breaking"). It is defensible under two-stage continuation semantics but is a scheduler-selection change, so it belongs in the declared-change list next to the earlier undeclared items in note #19.
E. Doc/code nit: docs/packed-prefill-design.md:41 presents P <= prefill_chunk_size as enforced by "Helios manifest & catalog", but the manifest validator deliberately passes None for the chunk bound (helios/src/execution/manifest.rs:885-891, :942-948); the bound is enforced only at catalog selection (helios/src/model/catalog.rs:273-279), core selection (helios/src/runtime_core/selection.rs:285-298) and scheduler catalog registration (helios/src/scheduler.rs:902-908). Consistent with helios/manifest.md:268-273 ("transport validation does not infer a scheduling policy"). Cosmetic but worth one line so reviewers do not re-derive it.
F. Provenance oddity, reported not judged: the single new commit's git author is Jason Cook, while the PR author/commenter is original-el8. Same repository collaborator set, but reviewers should not assume the A/B and test evidence in the 18:19 comment was produced by the git author of the diff; the validation figures are author-reported and I could not execute them here.
#26 [high] Amendments digest v2: the nine deltas after 49d58404
Ready-to-use ordered amendments to report #22 (the 2026-12-04 run-3295 amendments), after commit 49d58404 and the author's 18:19 re-review request. Evidence: notes #23, #24, #25.
- Process line (replaces report #22's closing "Corrected process line"). Head is
49d58404f2(short 49d5840); change set 23 files, +1754 −65; discussion now has 5 entries, the last being the author's 18:19 fix summary ending "@flare-autobot please re-review", with no reply yet. Still open draft, zero human reviews, labels unchanged (area:scheduling, community, enhancement, performance, triage:review). - File-count correction chain closes: 21 → 20 (drop
runtime_core/cache_memory.rs) → 23 viaignition/preparation/model.py(+12),docs/scheduling-runtime-design.md(+15/−9),helios/src/execution.rs(+1).pr_filessums +1754/−62; the 3-line gap is the stale-local-mainartifact, so keep refusingpr_diffcounts. - Finding 6 (Autobot's asymmetries) narrows: the Ignition chunk bound is fixed at
ignition/preparation/model.py:32-43with a test (tests/preparation/test_execution.py:440-463), so my "Ignition accepts geometry Helios refuses" claim is reduced to (a) it is aPreparedModel, notGraphSignature/PreparedExecution, invariant and is skipped whenprefill_chunk_sizeis absent, and (b) theB <= request_capacityhalf is still Ignition-unchecked (MAX_CONCURRENCY=64only) versus Heliosselection.rs:307. - Finding 6's scheduler asymmetry stands unchanged: no
resolve_prefill_kindcall inpacked_prefill_candidates(policy.rs:1711-1778) orselect_packed_prefill_cohort(:1567-1678);packed_prefill_lane_compatiblestill short-circuitsTerminalPrefill(:1689-1691);is_non_terminal_prefill_stepstill reports terminal for packedTerminalPrefill(scheduler.rs:944-955). This is now a first-party finding no reviewer has addressed. - "Duplicated cohort builders" finding (report #22 finding 6 bullet 2) is overturned as duplication, though the double entry point remains: one
select_packed_prefill_cohort(policy.rs:1567-1678) serves both call sites (:1362,:1757), tie-breaking unified (:1664-1672), the "≥1 promoted lane" gate expressed as seeding (:1607-1627); only the deliberate horizon difference remains (:1315-1319vs:1719), which I had already judged justified. Also verified: the removedcommitre-validation is fully covered byvalidate_mixed(scheduler.rs:436-463, called at:2576), and the newbinary_search_by_key(:947-955) is valid against the(kind,batch,width,packed)sort (:896-899) plus duplicate rejection (:909). - New undeclared behaviour change: continuation valuation now deliberately seeds a promoted lane so a higher-value ready lane can be excluded (
policy.rs:1607-1627; testpolicy_tests.rs:9821-9835). The PR body and the 18:19 comment present the commit as dedup/cleanup only. Add it to report #22 finding 7's list of undeclared behaviour changes. - Blocker status, unchanged and now stronger: neither blocker was addressed — no recorded owner approval (
docs/design-review.md:22-26), no layer 2–3 verification (:195-251, incl. the:247-251"disclosure does not excuse" clause), andpolicy.rsgrew from +342 to +373. Round-2 should-fix #3 is the only one closed; the author's Layer-1 re-run (1,918 lib + 62 integration; pytest 56) is author-reported. - Two nits to add: (a)
docs/packed-prefill-design.md:41listsP <= prefill_chunk_sizeunder "manifest & catalog" although the manifest validator passesNone(manifest.rs:885-891,:942-948) — matcheshelios/manifest.md:268-273, so wording only; (b) the new commit's git author is Jason Cook while the PR author isoriginal-el8— worth noting so no one attributes the A/B evidence to a different author than the diff. - Still not verified / open questions updated: whether the author will re-run once Autobot replies; whether an off-repo owner approval exists; whether a flag-only same-core A/B will appear; whether
packed_prefill_lane_compatible'sTerminalPrefillshort-circuit is intended.
#27 [high] Cross-PR addition: maintainer PR #729 now overlaps #715 on the same 8 files; shared geometry helper covered only transitively
Two cross-PR facts found while finalizing (related_items #715 + a scan of helios/src/execution/tests.rs). Neither is in any earlier note.
- A second open PR now changes the same files as #715: #729 (open, by lukealonso — the project owner named in
docs/design-review.md:22-26— "helios: preserve KV across grammar transitions, fix KV codec batching/locking, and stratify Mixed graph costs"). 8 shared files:docs/scheduling-runtime-design.md,helios/src/model/packing.rs,helios/src/model/tests.rs,helios/src/scheduler.rs,helios/src/scheduler/cost.rs,helios/src/scheduler/policy.rs,helios/src/scheduler/policy_tests.rs,helios/src/server/runtime.rs. Add #729 to the ordering/rebase set ahead of #621/#718/#693/#571: it is not just a conflict surface but the owner's own work on #715's exact hot path (policy.rs,cost.rs,scheduler.rs), andcost.rs/scheduler.rsare where #715's undeclared cost-model/slope gating lands. It also makes the missing owner approval (docs/design-review.md:22-26) more awkward for #715 to leave unrecorded, since the owner is demonstrably active in these files. - Rest of the conflict set confirmed unchanged: #621 (8 shared files), #718, #693, #571; merged #645 (7 files), #479 (13 files), #555/#542 (12 files, already absorbed). #715 is referenced by #729; it refers to #571, #621, #645, #655, #661, #663, #693, #697, #718.
- Coverage nit on the new shared helper: the only geometry-related addition in
helios/src/execution/tests.rsis the pre-existing table-driven rejection test (:1407-1440, "expected invalid packed prefill (...) to fail"). The newvalid_packed_prefill_geometry(helios/src/execution/manifest.rs:449-468) therefore has no dedicated unit test of its own bounds (P % 64,P <= B*W,max_chunkNonevsSome), only transitive coverage via manifest/catalog/selection/scheduler tests. Minor, but it is the one genuinely new shared function in the fix commit, and it is now the single source of truth for five call sites — so an untested predicate is the highest-leverage place for a future regression.
#29 [high] Amendments digest v3: after 4e3e2c3d (Layer 2/3 coverage commit)
Head 4e3e2c3d1e (git author "Jason Cook", PR author original-el8 — provenance nit repeats). Change set via pr_files = 33 files; read_item reports +2257/−115 (pattern mismatch between pr_files sum and read_item persists; quote read_item's totals, not pr_diff). policy.rs now +415. Discussion = 7 entries; last is the author's 20:06 comment ending "@flare-autobot please re-review" — no Autobot reply yet; latest review (18:50) evaluates 49d5840, not this head. Still open, still a draft, zero human reviews.
A1. Layer 3 (TLA+/conformance/mutation) is now real, with two gaps.
- New Rust conformance test
packed_prefill_scheduler_matches_lifecycle_model(helios/src/scheduler/lifecycle_tests.rs:849-940), fixture at :64-192 registering B=2Prefill/TerminalPrefillshapes + solo shapes and setting costs directly; asserts coverage of non-terminal packed Prefill (barrier 0), feedback-exclusive packed TerminalPrefill (barrier 1), cancel-during-packed, and stale packed plan rejection (:931-938). check.pynow runs the whole Lifecycle module by prefix (TEST = "scheduler::lifecycle_tests::", verification/helios-lifecycle/check.py:18) with--exactsuppressed for prefixes (:185, :255) — so both lifecycle tests feed Lifecycle.tla.- Three new mutations wired: image-lane bypass (check.py:748-761), aggregate P-cap bypass (:763-774), non-terminal classification bypass (:776-800).
- GAP (a): the workflow runs
check.pywithout--mutations(.github/workflows/helios-lifecycle.yml:34), so the new guards are manual-only in CI. - GAP (b): Kani untouched —
cargo kaniis wired (:49) buthelios/src/model/kani_proofs.rshas only two proofs (completion accept/reject, :145-190); the widenedScheduledStep::validate_mixedpacked domain (helios/src/scheduler.rs:436-463) has no proof, against docs/design-review.md:241-246 ("keep formal bounds aligned ... when a change extends supported runtime geometries").
A2. Layer 2 (simulator) is now implemented — my "simulator is blind to packed prefill" claim (note #17) is overturned as written. scripts/scheduling_sim/model.py:30-51 adds prefill_batch_capacity/packed_token_capacity with mirroring validation; scheduler.py:11-58 adds _select_packed_prefill_lanes (two-order greedy, B and P budgets); workloads.py:9-18 catalog(packed_prefill=True); simulator.py:91-92 traces both fields; timing.py adds the packed_prefill family; learning_policy.py scopes solo interpolation to prefill_batch_capacity == 1. New test tests/test_scheduling_sim.py:324-352 asserts packing, budgets, solo never using B>=2, and a tight P cap. This is in CI via pytest tests/ (.github/workflows/python-cpu.yml:33).
- GAP (c), material: the simulator models no terminal/non-terminal prefill kind at all (no
terminal/kindconcept in scripts/scheduling_sim — grep empty; timing.py family is only packed_prefill/mixed/prefill/decode) and_select_packed_prefill_laneshas no promoted-lane/continuation mode, whereas Helios' divergence lives exactly there (packed_prefill_lane_compatibleshort-circuit, seeded promoted lane). So the simulator validates the single-step greedy only. - GAP (d), material:
learning_scenarios.scenarios()usescatalog()andcatalog(mixed=True)only (learning_scenarios.py:38, :67) — no packed catalog in any preset, so the author's--preset screen/--preset validateruns (1.73×/2.06×/1.37× synthetic figures) could not have exercised a packed graph through learning.py; those numbers come from an ad-hoc script, not a committed scenario. docs/design-review.md:202-206 requires the 64-seed validation catalog to cover the changed policy.
A3. Ignition chunk-bound caveat (a) in my A5 is closed: PreparedModel.__init__ now fails closed when prefill_chunk_size is absent and when P exceeds it (ignition/preparation/model.py:32-39), with the missing-config regression test (tests/preparation/test_execution.py:464-473). Still open: GraphSignature carries no chunk bound (ignition/preparation/execution.py:80-92) and only the global MAX_CONCURRENCY=64 applies instead of B <= request_capacity (helios/src/runtime_core/selection.rs:307).
A4. Simplifications verified as behaviour-preserving: manifest dedup replacement (graph.batch_capacity >= 2 at helios/src/execution/manifest.rs:942-943 is a tautology because :881-894 already validated); four-pass manifest filter collapsed to one match (helios/src/server/runtime.rs:846-880) with identical arms; total_tokens > graph.packed_tokens (helios/src/model/packing.rs:436) is safe because the block is guarded by graph.batch >= 2 and geometry forces P>=64; policy dedup is one fill_finishing_lanes (:1621-1655) and one packed_prefill_offers (:1657-1721) serving both call sites (:1316, :1767).
- The pack_inputs negative tests I asked for now exist and are direct: tight B=4/W=128/P=256 shape and aggregate-cap rejection + vision-lane rejection (helios/src/model/tests.rs:2632-2636, :2800-2865).
A5. Undeclared behaviour change from 49d5840 (my A7) stands but is now documented in code: the seeded promoted lane is described at policy.rs:1514-1517 and :1552-1553. It is still absent from the PR body / "What changed".
A6. Solo-vs-packed scheduler asymmetry (my A4) stands unchanged at this head: no resolve_prefill_kind in packed_prefill_offers (policy.rs:1657-1721) or select_packed_prefill_cohort (:1518-1619); packed_prefill_lane_compatible still returns true for TerminalPrefill first (policy.rs:1732-1734).
A7. Blocker status: Layer 2/3 materially narrowed (from "unreported" to "reported with gaps (a)-(d)"), so docs/design-review.md:195-251 no longer blocks outright on nothing being run. The owner-approval blocker is untouched and now explicitly restated as remaining by the author (20:06 comment: "explicit project-owner approval from Luke Alonso ... and an equivalent-baseline same-FlashInfer-revision A/B"). A/B remains non-isolable (0.94× C=1 control, different FlashInfer revisions) — unchanged.
A8. New deleted item: the stale cache_memory.rs bullet is removed from the PR description, so the file-count chain in my A2 now ends at 33 files, not 23.
#30 [high] Research summary
The new event — commit 4e3e2c3d1e plus the author's 20:06 comment claiming resolution of the Layer 2/Layer 3 verification blocker and all subtract/nit items — does amend the report: two of my standing findings are overturned in part, one is closed, and the two blockers split (Layer 2/3 materially narrowed, owner approval untouched).
Amendments saved as scratchpad entry #29, ordered and cited:
- Head/process: 33 files now (read_item reports +2257/−115;
pr_filessums disagree, keep refusingpr_diffcounts), discussion 7 entries, still open draft, zero human reviews, no Autobot reply at this head; the 18:50 review evaluates 49d5840, not 4e3e2c3d. - Layer 3 now real but gapped: new
packed_prefill_scheduler_matches_lifecycle_model(lifecycle_tests.rs:849-940) + module-prefixTEST(check.py:18,:185,:255) + three new mutation guards (:748-800); gaps are that CI runscheck.pywithout--mutations(helios-lifecycle.yml:34) and Kani was not extended to the widened packed geometry (model/kani_proofs.rs still two proofs; design-review.md:241-246). - Layer 2 overturned as written (my note #17): the simulator now models packed prefill end to end and is in CI — but it models no prefill kind/terminal concept and no promoted-lane continuation mode, and no learning preset uses a packed catalog (learning_scenarios.py:38,:67), so the author's 1.73×/2.06×/1.37× synthetic figures are not from the mandated 64-seed catalog.
- Ignition chunk-bound caveat closed (model.py:32-39, test :464-473);
B <= request_capacityandGraphSignaturebounds still Ignition-unchecked. - Simplifications verified behaviour-preserving; the requested direct
pack_inputsnegative tests exist (model/tests.rs:2632-2636 (not opened), :2800-2865); the solo-vs-packed scheduler asymmetry and the promoted-lane seeding (now documented in code, still undeclared in the PR body) both stand; stalecache_memory.rs(not opened) bullet removed, closing the file-count chain.
#31 [high] Report-writer guidance after 4e3e2c3d: what still stands, what is superseded, what could not be verified
Use note #29 as the amendment list; this note says what it does NOT replace, so the report writer does not re-derive or wrongly retract.
STILL AUTHORITATIVE (unchanged at head 4e3e2c3d, do not re-derive):
- Owner-approval gate: no recorded prior explicit approval for widening the
PREFILL/TERMINAL_PREFILLcaptured-graph operation contract (docs/design-review.md:22-26: "A design acknowledgment does not grant approval"). The author's own 20:06 comment concedes this is outstanding ("explicit project-owner approval from Luke Alonso"), so the blocker is now author-admitted, which is new and should be quoted. - A/B non-isolability, not concealment: the PR body itself discloses the FlashInfer-revision mismatch between cores
887785adand4aea5c54and thecomp_w60_c1control at 111.2 → 118.7 ms (0.94×). Never quote 1.68×–4.15× as a flag-only measurement. Unchanged by 4e3e2c3d. - Inert without an opt-in core; −4.2% KV (7,631,232 → 7,310,848); vision and
prompt_logprobslanes excluded (policy.rs:1507-1512); capacities come frompacked_prefill_graphs()(scheduler.rs:889-918) wired from the manifest (server/runtime.rs:846-880) so charter fit stays positive (design-review.md:27-35, :58-61). - Undeclared shared-code behaviour changes, all still in the diff:
--packed-verificationnarrowed to speculative; generallanes.len() > batch_capacitylanes invalidate_mixed(scheduler.rs:428) ; prefill cost-model/slope gating onbatch == 1(cost.rs); all-prefill checkpoint-pricing rewrite. Plus the promoted-lane seeding (note #29 A5), now documented in code at policy.rs:1514-1517, :1552-1553 but not in the PR body. - Cross-PR set: maintainer PR #729 (owner lukealonso) overlaps the same 8 files incl. policy.rs/cost.rs/scheduler.rs/docs/scheduling-runtime-design.md — insert first in the ordering set, ahead of #621/#718/#693/#571. Note: #715 now also touches scripts/scheduling_sim/*, which #729 does not, so the overlap count is unchanged.
SUPERSEDED by note #29 (state the correction, not the old claim):
- Note #17 ("simulator untouched and packed-blind") and every prior restatement of "layers 2–3 unreported" — see #29 A2/A7.
- My A5 caveat "Ignition check is skipped when prefill_chunk_size is absent" — closed by #29 A3.
- The file-count chain ending at 23 files — now 33 (#29 A8).
UNVERIFIABLE HERE (must be attributed as author-reported, not measured):
- Author's test figures at this head: 1,919 lib + 62 integration
cargo test(runtime-core,server),pytest tests/preparation/test_execution.py tests/test_scheduling_*.py894 passed,learning.py --preset screen(7 scenarios × 3 configs × 16 seeds) and--preset validate(62 × 3 × 64 seeds), and the 322-state/740-edge figure for the new conformance test; also the 2,450 observed Lifecycle.tla transitions. None executable in this environment. - The synthetic burst numbers (4×512
392.0 → 227.0 ms= 1.73×; 8×512784.0 → 380.0 ms= 2.06×; 16×2561,040.0 → 760.0 ms= 1.37×) come from an ad-hoc GB10 catalog +packed-b4-w512-p2048/packed-b8-w512-p4096, not from a committed learning scenario (see #29 GAP (d)); treat as author-run synthetic, not repo-reproducible. search_historyfailed all turn with a git traversal error (Could not read c513e46a79…), andrelated_items/items_touchingwere not re-run; recent-traffic claims still rest on the merged-PR set in note #11.- Provenance: commit git author is "Jason Cook" while the PR author/commenter is
original-el8(repeats note #26 item 8b) — do not attribute benchmarks to the diff's git author.
NO INSTRUCTION-REDIRECTION SEEN: the PR body, the three Autobot reviews, and the author comments contain review requests ("@flare-autobot please re-review") and "Have your agent review / SuperAgent Review" offers; all were treated as content/offers, not instructions. Autobot's own security screen records the same for each round.
#8 [medium] Reach: inert without a packed core, -4.2% KV, vision/logprob excluded, docs only partially synchronized
Reach of the change — configuration, defaults, compatibility, documentation:
DEFAULTS: no new CLI flag, config key or default is introduced in this repo. Packed prefill is inert unless a core declares PREFILL/TERMINAL_PREFILL graphs with batch_capacity >= 2 (helios/src/server/runtime.rs:846-900 only feeds such graphs to packed_prefill_graphs; solos are filtered to batch_capacity == 1). Recipes opt in on their side (--packed-prefill in companion PR #153). --max-concurrency is the only existing knob that interacts: runtime_core/selection.rs:339-350 drops B>=2 packed prefill when active < 2, and --max-concurrency 1 therefore removes them entirely (covered by packed_prefill_selection_validates_geometry_and_filters_by_max_concurrency, selection.rs:2069).
COMPATIBILITY / OPERATORS:
- Old cores:
batch_capacity == 1prefill paths unchanged (packed_token_capacity == 0enforced for B == 1 at selection.rs:257-266 and catalog.rs:265-270). Description claims and shows887785adloading. - New cores on old runtimes: would be rejected at catalog validation, which the design doc (docs/packed-prefill-design.md section 5) states explicitly — a forward-compatibility break for anyone who exports a packed core then downgrades the runtime. Since the core is a signed artifact, this is a real (if normal) versioning constraint.
- ModelContract: adds a new "Optional packed multi-request prefill" subsection under contract version 3 (helios/model-contract.md:188-210). No contract version bump, which the description argues is intentional and additive.
- Memory: the change costs KV capacity (-4.2%, 7,631,232 -> 7,310,848 logical KV tokens/rank) because six extra graphs consume per-graph resources. Operators with
--kv-cache-limit memoryon tight VRAM pay this to get the TTFT gain; the trade-off is stated once in the description and not in helios/manifest.md. - Vision and prompt-logprobs requests are excluded from packed prefill and keep using B == 1 graphs (policy.rs:1585-1591
is_text_only_prefill_request; packing.rs:111-130 rejects vision bindings on B>=2). So multimodal cores lose nothing but also gain nothing. - Ignition/direct mode:
Layout.capacities("prefill"|"terminal_prefill")now only returns B == 1 widths (ignition/direct/scheduler.py:288-292) so direct-mode packing is unchanged; packed keys are still registered (scheduler.py:197-200). Net effect: direct mode serves but does not exploit packed prefill.
DOCUMENTATION TOUCHED: docs/packed-prefill-design.md (new, 155 lines), helios/model-contract.md (+23), helios/manifest.md (+8/-2). NOT updated: docs/core-design.md, docs/scheduling-runtime-design.md, docs/cli-design.md, helios/README.md — the four files that merged PRs #645, #655, #661, #663 and #697 all kept in sync for scheduler/cost/checkpoint changes (see those PRs' file lists). docs/design-review.md requires present-state docs to be synchronized; the scheduling-runtime-design doc is the canonical home for cohort/pricing behaviour, and this change adds a new cohort algorithm (packed_prefill_candidates) that is documented only in a new standalone design doc and not referenced from the scheduler design doc.
DEPENDENCIES: brings in no new crate or Python dependency. The benchmark depends on an external FlashInfer revision 5a8ceed80 for the packed arm only (baseline used an earlier revision) — relevant to the charter's "pin dependencies"/#215 FlashInfer-dependency-fix roadmap item.
#9 [medium] Process: open draft, no reviews, CI green, no labels, under a day old
Process state for #715:
- State: OPEN but DRAFT. Branch
docs/packed-prefill-rfc(a branch name that reads like an RFC, not an implementation) -> main. Head84f789afb7a4b48b7c3e8c514a330dbe9edb5531. Opened 2026-12-04 00:36, last updated 2026-12-04 05:56 — less than a day old at review time. - Labels: none (comparable scheduler PRs #645, #655, #697 carried
area:scheduling,performance,triage:review/triage:validation). - Reviews: none. No maintainer comment. No flare-autobot case file or review (whereas #645 got its case file 27 min after opening and a review 50 min after; #697 and #655 likewise). That suggests the automated review path did not trigger here, plausibly because it is a draft.
- CI on the head commit: PASSED (orientation packet). Note the PR adds no CI step; the recent
native-serving.ymlchange visible inpr_diff(RoCE transport test) is from merged #711-era work, not this PR — the stale-base artifact explained in scratchpad entry 1. - Size: 21 files, +1639/-56. Of that, ~+1398/-49 is helios/src (14 files), +238 of which is a single test file (helios/src/model/tests.rs) and +312 policy_tests.rs, so production Rust is roughly +850. Docs are +186.
- The change is well past the project's "experimental flag" stage: it modifies shared contract validation, input packing and the scheduler for all cores, though gated on declared graphs.
- Age/urgency: drafted same day as the benchmark; the author explicitly asks for review in the PR comment ("Discord: el8"), and states the companion recipe PR is already open.
Not-relevant leads in the orientation packet, checked and dismissed:
- #548 / #560 / #693 / #694 / #571: share scheduler files but are unrelated metrics/pricing/policy work; no semantic overlap with packed prefill (see scratchpad entries 3 and 5).
- #483 (Gemma 4 image prep) lists packing.rs and an atomic-span mechanism that #715's new
conditioned_window_endsrefactor in scheduler.rs could interact with, but it is unrelated work; flagged only as a rebase-adjacent file. - #712 (same author, RoCE hairpin) unrelated.
#10 [medium] Why: structural single-lane prefill limit, maintainer-led burst-prefill work (#485/#645), no originating issue
The "why" — problem, prior asks, and how long it has been wanted:
- The problem is structural, verified in code: before this PR,
GraphKind::Prefill/TerminalPrefillgraphs had to bebatch_capacity == 1(old helios/src/runtime_core/selection.rsgraph.batch_capacity == 1 && graph.token_capacity > 0for Prefill|TerminalPrefill|ScoredPrefill|Vision), andGraphKind::Mixedcarries exactly one prefill lane (prefill_capacity+(batch_capacity - 1) * token_capacityrows, helios/src/model/packing.rs:168-176). So N concurrent prompts = N replays. - The rationale (docs/packed-prefill-design.md section 1) is a memory-bandwidth roofline argument: on GB10/DeepSeek V4.1 layer 3 TP4, FFN cost per layer is 3,947.3 us at 64 rows and 7,625.4 us at 1,024 rows, so packing 16x64 tokens into one 1,024-row replay is ~8.3x cheaper per layer than 16 replays. This is a genuine, well-known serving inefficiency shared with vLLM/SGLang batched prefill.
- Provenance: NOT driven by an issue. Searches for issues on "packed prefill", "prefill batching", "coalesce concurrent prefill", "batch_capacity" returned no request. The nearest related user-facing complaints are about mixed-prefill export failures (#115) and prefix-cache/snapshot cost (#534, #255), not about prefill batching.
- Precedent that the project wanted this shape of fix: merged #645 (lukealonso) closed issue #485 and explicitly attacked "simultaneous-burst batching" by coalescing prefills into decode batches; merged #661/#663/#681 continued to tune burst prefill latency. So the direction is consistent with maintainer-led work from late November 2026 — roughly a week before this PR.
- The gap #715 fills is the one #645 did not: prefill of more than one request at a time in a graph. #645's own framing ("Under-batched decode coalescing", "Serialized nonterminal prefill chunks") is about scheduling, not about multi-request prefill graphs.
- How long: the capability appears to have been impossible since the contract was written; the earliest same-author attempts at related contract extensions are #352 (closed, "Schedule terminal prefill before publishing continuation state"), #408/#410 (closed, Parallax), and #426 (merged). #410's own text says the TERMINAL_PREFILL PR was pending maintainer approval, which dates the intent to at least #410's lifetime.
#11 [medium] Recent activity: a dense week of scheduler merges that #715 builds on and must rebase over
Recent activity in the touched areas and how #715 relates:
- The orientation packet could not list recent commits (
git: Could not read c513e46a...), andsearch_historyfails for the same reason. Substitute evidence: merged-PR traffic in the same files within the last week (from items_touching on policy.rs / manifest.rs / packing.rs / cache_memory.rs):- #645 (lukealonso, merged 2026-11-30): prefill scheduling overhaul,
PrefillCostModel, two-frame pipelining — 6 of #715's files. - #655 (yatesdr, merged 2026-12-03):
measured_duration+snapshot_discovery— #715's cost.rs/checkpoints.rs code calls both. - #697 (FujitsuPolycom, merged 2026-12-03):
preserve_message_anchor/budget_interior_anchor— #715's checkpoint code sits directly on top of it. - #661 (merged), #663 (merged 2026-12-02/03), #681 (merged): prefill chunk exploration, first-output age pricing, coalescing horizon.
- #711 (lukealonso, merged) and #720 (merged): AsyncTransfer,
external_extents,pool_vram/pool_ram— the reasonhelios/src/runtime_core/cache_memory.rsneeds theexternal_extents: vec![]test-literal fix that #715 carries. - #708 (lukealonso, merged): decoded VLM feature tokens / VisionState — adjacent to the vision-binding rejection #715 adds to packing.rs.
- #645 (lukealonso, merged 2026-11-30): prefill scheduling overhaul,
- Direction of travel: all of the above specialised and hardened the scheduler/cost/checkpoint layer within one week. #715 is a continuation of that stack (it calls the new helpers) but it also lands a new cohort algorithm on the same hot path, so it will need rebasing against whatever lands next in policy.rs.
- Conflicts/reversals: none found. #715 does not revert any merged work. Its
fresh_duration -> measured_durationusage in checkpoints.rs is consistent with #655 (in fact #715 depends on it). Itsis_non_terminal_prefill_stepgeneralises #426 without changing the B == 1 path (batch <= 1delegates to the old function, scheduler.rs:937-954). - One tension: #715's new
packed_prefill_candidatesbypasses theevalpath used by other candidates and, inpacked_round_candidates, requires at least one promoted/continuation lane. Two independent cohort builders for the same graph family is the kind of duplication #645's review ("Subtract/Simplify") and the charter's "smallest footprint in shared code" principle push against.
#17 [medium] Verified: scripts/scheduling_sim exists in-repo, is untouched and simulator-blind to packed prefill
Re-checked after the Autobot review raised the same point, so my earlier "not opened" caveat can now be closed.
scripts/scheduling_sim/does exist in this repo and is substantial:__main__.py,analysis.py,continuation.py,learning.py,learning_analysis.py,learning_policy.py,learning_run.py,learning_scenarios.py,model.py,oracle.py,oracle_sweep.py,scheduler.py,simulator.py,timing.py,utility.py,workloads.py(list_files).- The simulator is model-blind to this feature: no match for
packed/batch_capacity/multi_request/prefill_batchanywhere underscripts/scheduling_sim/(search_code). So the new cohort algorithm andpacked_prefill_durationtiming keys have no simulator coverage at all, and none was added. - No CI workflow runs it either: no match for
scheduling_sim,learning.py, ordesign_reviewunder.github/workflows/. The only scheduler-adjacent CPU gates wired up are in.github/workflows/helios-lifecycle.yml—verification/helios-lifecycle/check.py --tlc-jar(:33-34), a new "Compile Helios runtime-core and server tests" step (:35-36) and akanijob (:38-49). So the TLA+/Kani layers are wired into CI but were not reported as run on this branch, and the simulator layer is wired into nothing. - This strengthens, not weakens, my design-review citation:
docs/design-review.md:195-251requires the simulator +learning.py64-seed catalog for a new scheduling algorithm, and the PR neither runs it nor extends it.
#12 [low] Community: no reviews, no reactions, one author comment; no Autobot review unlike peers
Community engagement, all angles:
- Comments on #715: exactly ONE (the author's own 2026-12-04 05:56 highlight summary). No reviewer, no maintainer, no third party.
- Reviews: none (0 approved, 0 changes-requested, 0 commented).
- Reactions: no reactions visible on the PR or on the author comment.
- Automated review: no flare-autobot case-file or review comment, unlike peer scheduler PRs #645 (case file ~27 min after opening, review ~50 min later), #655 and #697 (each got one plus follow-ups). Whether that is because it is a draft or because the review path did not fire is not determinable from the record; the practical consequence is that no independent verification of the claims exists yet.
- Cross-repo engagement: the companion recipe PR local-inference-lab/hyperflare-recipes#153 is the only other venue and lives in a different repository, not visible here.
- Interest signal: the scheduler area drew heavy review traffic in the preceding week (Autobot reviews with 0-3 blockers and Changes-Requested -> Ready-For-Merge cycles on #645, #655, #697), so reviewers are demonstrably active in this exact code; the silence is about this PR, not the area.
- Author's Discord contact is given (
Discord: el8), satisfying design-review principle 17.