#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.
#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.
#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.