Case file: PR #661 — helios/scheduler: explore smaller prefill chunks under active age-priced streams
https://github.com/NVIDIA/hyperflare-inference/pull/661 · author FujitsuPolycom (CONTRIBUTOR, Discord "Dooner") · base main @ 5d53040e · head 29f2b5b · draft, 1 commit, opened and last updated 2026-12-01 · labels area:scheduling, enhancement, performance · no CI checks, no reviews, no comments, no triage: label.
Key findings
- The measured build is not the shipped build. The SM120
4× RTX PRO 6000A/B ran onfdb10bb5; head is29f2b5bc, and the PR's own Limits bullet admits the A/B predates theresize_prefilldeferred_prefillguard and the doc/test hardening. Every headline number (peak gap331.9 → 260.3 ms,>250 msstalls215 → 78, per-user p50+5.7%, output−2.0%) therefore describes code that is not what would merge. - The description's "
throughput(0.0) keeps two-frame pipelining" is false in one case, and the PR's own test asserts the exception.PolicyConfig::throughput()zeroesdecode_age_pricebut leavesterminal_age_price: 1.0(helios/src/scheduler/policy.rs:50-52vs:35-37);has_active_age_priced_stream()checksterminal_age_pricefor terminal-cleanup requests (helios/src/scheduler.rs:989-998), andprefill_step_requires_feedback()now unconditionally returnstruewhen any age-priced stream is resident (scheduler.rs:1180-1183). So a non-terminalPrefillstill drains under--scheduler-policy throughputwhenever a terminal-cleanup (checkpoint/snapshot) stream exists.helios/src/scheduler/policy_tests.rs:7784-7826demonstrates exactly this and shows that zeroingterminal_age_pricerestores pipelining. - The PR narrows work merged one day earlier by the area's dominant maintainer. #645 (lukealonso, merged 2026-11-30,
e85019b9, +1886/−204, 21 files) introducedGraphKind::pipelines()two-framePrefillpipelining,prefill_step_requires_feedback,effective_prefill_catalogandPrefillCostModel. Every one of those is what #661 narrows or replaces. - A sibling PR by the same author moves the same headline metric the opposite way, and neither description mentions the other. #660 (FujitsuPolycom, open, same base
5d53040e) reports an identicalmixed-c32baseline row (1,072.8 tok/soutput; 215>250 msgaps) and moves stalls215 → 434while #661 claims215 → 78. Only the author's comment on #663 (2026-12-01 22:09) shows them measured together. - A documented mandatory gate is explicitly unrun. #661 changes graph selection and timing estimation;
docs/design-review.md:195-208requires such changes to be evaluated against the Python simulator and the 64-seed catalog inscripts/scheduling_sim/learning.py(not opened). The PR's own Limits saylearning_policy.py(not opened) andkaniare unrun. The simulator has no representation of an unmeasured cost, so the new interpolation rule has no simulator counterpart; the new pytest (tests/test_scheduling_utility.py:421-441) exercises the pre-existing utility policy on a GB10-shaped catalog, not the interpolation. docs/scheduling-theory.md— untouched by this PR — still states the opposite of the new behaviour: prefill has no per-chunk cadence (:74-76), selection has "no duration ceiling, prefill size preference, or breadth-before-depth rule" (:93-97), and "two long prefills do not need smaller chunks merely to alternate" (:119-120).- An undeclared kind resolution change:
resolve_prefill_kind_fromnow maps every capacity outsideterminal_prefill_catalogtoTerminalPrefillwhendeferred_prefillis set (helios/src/scheduler.rs:896-902), not only the tail. It tightens #613's invariant but appears in the description only obliquely ("excludes non-terminal-catalog shapes underdeferred_prefill"). - Precedent for the risk it takes: restricting unmeasured prefill discovery to natural fit (#538, same author, merged 2026-11-26) produced a measured production regression fixed two days later by #550 (iein): an exact 31K-token repeat went from 0.02 s reuse to 15.3 s TTFT on 4× DGX Spark GB10. #661 relaxes that same restriction under age-priced streams and edits the same doc paragraph #550 touched.
The change
Plain terms: under --scheduler-policy balanced (decode_age_price = 0.1), Helios has no mixed prefill/decode graph on DeepSeek-V4.1-Flash TP4, so it must interleave prefill chunks with decode steps. #661 makes three changes to that interleaving: (a) it lets the scheduler estimate the cost of unmeasured small prefill shapes by borrowing/interpolating measured timings instead of treating them as "discover me first, cost 0"; (b) it permits non-terminal Prefill chunks (not just TerminalPrefill tails) below max_terminal while decoders are active; (c) it drains the transport between consecutive non-terminal Prefill steps whenever an age-priced decoding/resume/terminal-cleanup stream is resident, so decoders get to re-compete after each chunk.
Size: 10 files, +1,785/−95. Production is ~+391/−79 across 4 scheduler files (the description's "+312 net prod LOC"); the bulk is test code — helios/src/scheduler/policy_tests.rs (+984, 7 new tests) and a ~+302-line in-file test block in cost.rs (3 new tests at cost.rs:1280, :1355, :1474). Test:prod ≈ 3:1.
File map (verified against the diff):
helios/src/scheduler/cost.rs(+400/−0): newActionCosts::interpolated_prefill_duration(kind, capacity, work, start_position) -> Option<u64>atcost.rs:695. Same-kind sibling (Prefill↔TerminalPrefill) first;ScoredPrefillisolated; otherwise nearest measured smaller peer or the fastest measured decode step as a "decode floor", interpolated linearly in capacity to the nearest strictly-larger measured peer; requires a larger peer; clamps non-monotonic timings (t_hi ≤ t_lo → t_hi).helios/src/scheduler.rs(+84/−10): cachedterminal_prefill_window: usize(:657, recomputed at:842-860fromprefill_graphs()/terminal_prefill_graphs()); one-lineresolve_prefill_kind_fromwidening (:896-902); newprefill_must_complete_terminally_from(:957-987),has_active_age_priced_stream(:989-998),prefill_requires_terminal_completion_for_age;prefill_step_requires_feedbackearly return (:1180-1183).helios/src/scheduler/policy.rs(+178/−52):effective_prefill_catalog→prefill_catalog_for_terminal(kind, terminal_only)(:350);natural_fit_prefill_capacity→..._for_terminal(:393); new per-slotPrefillSlotPlan/prefill_slot_state(:420) hoisting cut/terminal_only/nat_fit; unmeasured pure-prefill candidates ≤ nat_fit used interpolated ns at:1013and:1363;resize_prefill(:1770) uses the terminal catalog underdeferred_prefilland caps capacity under age pricing at:1789.helios/src/scheduler/service.rs(+29/−17):service_ratesrescans including non-terminalPrefillshapes whenterminal_onlypriced to 0.0, an age-priced stream exists (:227) and!prefill_must_complete_terminally_from.scripts/scheduling_sim/workloads.py(+51):gb10_catalog(),prefill_storm_gb10().tests/test_scheduling_utility.py(+24):test_gb10_prefill_storm_decode_age_pricing_avoids_one_second_stalls(:421-441) — asserts a simulated>1000 msgap for throughput and<800 msfor balanced.verification/helios-lifecycle/check.py(+1/−1): mutation anchor at:527-580, source string changed fromif request.deferred_prefill && needs_terminal {toif request.deferred_prefill {; the failure message at:605still reads "deferred prefill must schedule TerminalPrefill before capturing a boundary checkpoint".docs/scheduling-runtime-design.md(+28/−12): new paragraph at:464-485(interpolated exploration) and updated transport text at:617-622, plus:316and:639-645.helios/README.md(+6/−2).
Things the change does that the description does not say: the resolve_prefill_kind_from widening (item 7 above); the resize_prefill narrowing to the terminal catalog under deferred_prefill (mentioned only as a parenthetical "incl. resize_prefill"); the fact that the interpolation also applies on cores that have only a Prefill catalog (nothing in the interpolation path depends on terminal_prefill_catalog; the empty-terminal early return at scheduler.rs:924 only disables the terminal-completion predicates); and that the feedback barrier also fires under throughput during terminal cleanup.
Things the description says that the change does not do: "solo prefill and throughput (0.0) keep two-frame pipelining" — only when no terminal-cleanup stream exists. "0 flags, unsafe, hardcoded capacities, model branches, or ABI changes" holds for flags/unsafe/model branches/ABI (no CLI change, no unsafe, no per-model branch), but the diff adds a new PrefillSlotPlan struct and several capacity-carrying fixtures; no production hardcoded capacity is introduced.
The why
The problem is three coupled mechanisms, all verifiable:
TERMINAL_PREFILLcatalogs start at 256 whilePREFILLstarts at 128, so a 128-token shape is non-terminal-only and cannot serve a tail. The asymmetry comes from #479 (voipmonitor, merged) addingTERMINAL_PREFILL = 14as an optional graph op.- Unmeasured smaller
Prefillshapes are skipped by cold discovery — the natural-fit restriction #538 (same author, merged 2026-11-26,ba35da3f) introduced. - Tails up to
max_terminal(16384) run as oneTerminalPrefill, and consecutive non-terminalPrefillsteps fill both transport frames (#619, #645), so decoders wait for both.
Wanted-since / how widely: no issue asks for exactly this change. The nearest lineage is #485 (voipmonitor, filed 2026-11-23, closed by #645) measuring prefill chunk drift on DeepSeek-V4.1-Flash TP4 at 64k–128k (flare_graph_launches_total{kind="prefill"} rising 18 → 29 → 31, 18 ms–1900 ms GPU-time drift), plus #538 (the author's own restriction, motivated by chunks stepping down 14336 → 12288 → … → 256) and #550 (the counter-risk, 0.02 s → 15.3 s on GB10). The same problem is being attacked from two other sides in the same 24 hours: #663 (yatesdr, first-output waiting age) and #660 (same author, interior conversation-anchor splits). Demand is real but expressed as three PRs by three authors in ~3 days, not as a long-standing issue. docs/scheduling-theory.md:119-120 records the project's prior explicit position against this direction.
Related work
- #645 (merged 2026-11-30, lukealonso, +1886/−204, 21 files, closes #485) — the direct parent: single-sourced
GraphKind::pipelines()forDecode|Speculative|Prefill,prefill_cursor/_fromhelpers,prefill_step_requires_feedback,effective_prefill_catalog,PrefillCostModel/PrefillPredictor/prefill_context_slopes. #661 readsestimate.prefill.predictorandborrowed_prefill_context_slopefrom those. Autobot review on #645 requested changes with 2 blockers and flagged Merge Risk Medium, noting #210 (served A/B over main) and #485's long-context workload not re-run, plus overlap with open #644. - #538 (merged 2026-11-26, same author, +451/−12) — introduced
natural_fit_prefill_capacity, the restriction #661 relaxes. Autobot review requested changes with 3 should-fix items, two of which #661 now pays off: "TERMINAL_PREFILLnatural fit is computed over the wrong catalog — useself.prefill_catalog(kind)" (→prefill_catalog_for_terminal), and "compute the natural fit once per (request, cut) … hoist it" (→PrefillSlotPlan/prefill_slot_nat_fit). So #661 is partly follow-up debt from #538's own review. - #550 (merged 2026-11-28, iein, +71/−15) — fixed the regression #538 caused:
checkpoints.rs(not opened) now applies the terminal-catalog pricing rule to every catalog so unmeasured capacities don't price a cut asunknown. Measured on Inkling 2 Small TP4 4× DGX Spark GB10:c915b5f0(before #538+#543) fully reused 0.02 s;f377dc85(after) 29 tokens reused / 15.3 s TTFT; #550 restores 0.02 s. #661 edits the same doc paragraph (docs/scheduling-runtime-design.md:639-645) and expands eligibility of unmeasured shapes via interpolation plusdeferred_prefill, i.e. the same class of hazard. Live open consequences of that hazard: #534 (checkpoint captures deadlock on unmeasured snapshot cost) and #600 (TP2 EXL3 immediate-replay prefix-cache miss), both citing #550. - #663 (open, yatesdr, COLLABORATOR) — the complementary sibling; its description explicitly names #661 as "the inverse side". #661 modifies
scheduler.rs,policy.rs,policy_tests.rs,service.rs; #663 modifiesservice.rsdelivery_references_and_decode_batch,utility.rs(not opened)LaneValue,policy.rslane values,runtime.rs(not opened) readmission. Six shared files, includingdocs/scheduling-runtime-design.mdandtests/test_scheduling_utility.py. The only measured interaction evidence for #661 lives in a comment here (FujitsuPolycom, 2026-12-01 22:09): solo #663 raises>250 msstalls (mixed-c32206 → 431; heavy mix 1,235 → 2,018) and stacking #661 brings them to 91 (−78.9% vs solo #663, −55.8% vs base) and 523; "Clean composition with#660 + #661: Zero semantic production conflicts (1 adjacent-function insertion inpolicy.rs, 2 test-fixture adjustments inpolicy_tests.rs; 424/424scheduler::tests pass)". That composition was measured onfdb10bb5, not head. Themixed-c32baseline in that comment (1,055.7 tok/s, gap p99 227.3 ms) differs from #661's description (1,072.8 tok/s, 237.2 ms) — different runs. - #662 (closed 2026-12-01 19:40) — flare-autobot's duplicate draft of #663, closed as "opened under the wrong account". Not related to #661 except as a decoy in the number space.
- #660 (open, same author, base
5d53040e, +887/−151, 12 files) — the head-to-head contradiction: identicalmixed-c32baseline (1,072.8 tok/s, 215>250 msgaps) but reports stalls215 → 434and per-user p5093.9 → 71.0 tok/s, trading per-user latency for SLO pass 9.1% → 80.3%. #661 claims stalls215 → 78and per-user p5093.9 → 99.2. Both are open and neither description mentions the other. Autobot review of #660: 0 blockers, 2 should-fix, Merge Risk Medium, and an acknowledged rebase conflict with #655 incheckpoints.rs(not opened). - #655 (open, yatesdr, "Ready To Merge" per Autobot) — changes
ActionCostsitself (measured_durationreplacingfresh_duration,Estimatescanning) incost.rs/scheduler.rs; 4 files in common with #661. Because #661's interpolation reads fromself.entriesand freshness, a rebase here is substantive, not cosmetic. - #654 (closed 2026-12-01, logprobz) — the opt-in (
--scheduler-first-output-age-price, default 0.0) predecessor of #663, superseded by it; shipsscripts/benchmark_ready_prefill.py(not opened) andscripts/analyze_ready_prefill.py(not opened), the returning-agent harness no open PR carries into main. Autobot found a formula monotonicity inversion there (F > Alets slower graphs earn more credit per ms) — the exact property #661's non-monotonic clamp ininterpolated_prefill_durationguards against. - Mechanism ancestors #661 touches or depends on: #613 (merged, lukealonso) established the
deferred_prefillinvariant, its TLA+ model and thecheck.pymutation #661 edits; #426 (merged, original-el8) and closed #352 (original-el8) are the origin of theresolve_prefill_kinddeferred guard; #69 (closed, original-el8) has an Autobot comment suggesting the rule belong in "checkpoint_selection(or theTerminalPrefillwindow)" — theterminal_prefill_window#661 now caches; #510 (merged, lukealonso) "prevent unmeasured packed speculative shapes from zeroing measured round durations" is the direct speculative-side precedent for #661's prefill interpolation; #619, #644 (both merged, lukealonso) are the same-day pipelining/fairness work. Same-file but unrelated: #571 (open, malventano), #334 (open, javieratomic). Same author, different areas: #665, #649, #542 (closed, 8 files in common).
Recent activity
helios/src/scheduler has been rewritten continuously for the last ten days, almost entirely by lukealonso, and #661 lands on the newest layer of that:
- 2026-11-23
e091689bMartin Vit — #479 optionalTerminalPrefill(creates the catalog asymmetry that is mechanism 1). - 2026-11-24
fd6c0f3bLuke Alonso — #510 borrowed estimates for unmeasured siblings (mechanism precedent). - 2026-11-26
ba35da3fPCCessna — #538 natural-fit cold discovery (mechanism 2, and the restriction #661 relaxes). - 2026-11-29
0c25e88fLuke Alonso — #613deferred_prefillcheckpoints (invariant #661 tightens; mutation #661 edits). - 2026-11-29
6cb7e3b7Luke Alonso — #619 two-frame pipelining for host stops (firstPrefillpipelining). - 2026-11-30
3e57bdc8Luke Alonso — #644 fairness/calibration. - 2026-11-30
e85019b9Luke Alonso — #645 the prefill scheduling/cost overhaul. The direct parent. - 2026-12-01
e8a3a7c7Luke Alonso — #656 speculative acceptance; note #661's GB10 numbers cite571a4471, which is pre-#656, i.e. six commits behind its own base. - Base of #661:
5d53040e(#628, yatesdr, 2026-12-01). Main has since moved to5c0d9c67(#666, Jason Cook) anda3c80e19(#657, Luke Alonso), so the branch is 2+ commits behind; #660 is already rebased againsta3c80e19and #663's baseline isa3c80e19.
So #661 both builds on (interpolation precedent #510, catalogs #479, invariant #613) and reverses (#645's Prefill pipelining, #538's discovery restriction) work merged within the previous five days. It does not conflict textually with #645 — it deliberately narrows it.
People
- FujitsuPolycom (CONTRIBUTOR, Discord "Dooner"): 15 merged / 11 closed / 3 open in 180 days; merged work concentrated in docs (10), helios/src (10), heliopause/src (4). Owns this scheduler-prefill thread: #538 (merged), #540 (merged), #582 (merged), #660 (open), #661 (this), plus unrelated #649/#665/#586/#587. #661 is the author revisiting their own merged restriction one day after the maintainer overhauled the surrounding code.
- lukealonso / Luke Alonso (COLLABORATOR): 235 commits to
helios/src, 390 todocsin 180 days; author of #645, #644, #656, #619, #613, #510. The code #661 modifies is his, one day old. He has not engaged on #661. Autobot raised 2 blockers on his #645, so the parent mechanism was itself under review when #661 stacked on it. - yatesdr (COLLABORATOR, 48 commits
helios/src): #663, #655, #459 and the older checkpoint-pricing line. Complementary, not competing. - iein (CONTRIBUTOR): found and fixed the #538-caused GB10 regression (#550). The person with the most direct evidence about the risk this PR takes; has not engaged on #661.
- logprobz (CONTRIBUTOR): closed #654; wrote the most detailed cross-comparison of #663 vs #654 (2026-12-01 21:58 on #663), including simulator comparisons against
e85019b9. - voipmonitor (COLLABORATOR, charter-named priority contributor): filed #485 with a prototype branch; author of #479 (
TerminalPrefill). - original-el8 (COLLABORATOR): #426 and closed #352 — the deferred-prefill rule #661's one-liner widens; also #69.
Community
Nothing on #661 itself: pr_comments returns no comments, no reviews, no reactions, no CI. The only commentary that touches it is (a) the author's own comment on #663 at 2026-12-01 22:09 carrying the stacked A/B, and (b) #663's and #662's descriptions referencing #661 as the inverse side. For comparison, neighbouring PRs each drew an Autobot review within ~30 minutes (#538, #540, #645, #654, #655, #660, #663); #661 has drawn none, and unlike #655/#660 (triage:review) or #663 (triage:design-review) it carries no triage label.
Project fit
Where it lines up:
- Charter line 12 ("Keep the runtime small and model-agnostic … shouldn't accumulate per-model branches"): zero model branches; all inside the Helios scheduler.
- Charter "Bring real evidence … performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)": the PR does provide a zero-re-exportflare runA/B against5d53040eon the charter's target hardware (SM120 4× RTX PRO 6000 + 4× DGX Spark GB10), 0 errors, signed core unchanged. Caveat: the measured build isfdb10bb5. docs/design-review.md:106-115(principle 12) requires raw measurements, disclosed unrun checks and material limits — the PR discloses the A/B build,learning_policy.py(not opened), gated templates andkani.- Layer 1 testing: tests are added at real production entry points (
phase_plan,plan_requires_feedback,candidates,available_plan,service_rates), 7 + 3 new tests. - Layer 3:
check.pyTLC/Observed/aux and--mutationsnumbers are claimed and the mutation anchor is updated in the diff.
Where it does not:
- Layer 2 gate (
docs/design-review.md:195-208) requires changes to graph selection and timing estimation to be validated against the simulator and, for timing estimation, thescripts/scheduling_sim/learning.py(not opened) 64-seed catalog, with the explicit instruction "Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog." The simulator prices every catalog graph from its declaredduration_msand recordsprefill_capacitybut has no notion of an unknown duration, so interpolated exploration has no simulator equivalent.learning_policy.py(not opened) is declared unrun. docs/scheduling-theory.mdis not updated and states the opposite::74-76(no externally visible per-chunk prefill cadence),:93-97("No duration ceiling, prefill size preference, or breadth-before-depth rule precedes it"),:119-120("Two long prefills do not need smaller chunks merely to alternate").docs/scheduling-runtime-design.md:316was qualified for the exception;scheduling-theory.mdwas not. This is the same class of doc contradiction Autobot flagged on #550 and #663.- Charter "Be explicit and pin everything. No magic defaults": no flag is added and no decision point offered — the entire behaviour change is implicit in the existing
balancedpreset. Whether an implicit default-preset change counts as a "magic default" is the open reading; the PR's0flags claim is factual but cuts both ways. - Roadmap (in-process Rust SDK #6, Engram #267, FlashInfer #215) does not mention scheduler chunking; the charter's "What gets merged" clause ("a reproducible bug, a measured performance/memory issue") can cover it if the measurements hold.
Claims and evidence
Verified from the diff:
interpolated_prefill_durationsemantics (sibling → peer interpolation → decode floor → larger-peer requirement → non-monotonic clamp):cost.rs:695-790, tests:1280,:1355,:1474.- Unmeasured pure-prefill ≤ nat_fit candidates get interpolated ns under
age_price > 0; nat-fit alone keeps ns = 0 for discovery:policy.rs:988-1030,:1334-1370. terminal_prefill_windowcached:scheduler.rs:657,:842-860.- Drain between non-terminal
Prefillsteps under an age-priced stream:scheduler.rs:1180-1183; docs atscheduling-runtime-design.md:617-622say the same, and include "terminal-cleanup", so the docs are more accurate than the description. - No
unsafe, no CLI/PolicyConfigfield, no newGraphKind, no wire/ABI change.
Not backed or contradicted:
- "solo prefill and
throughput(0.0) keep two-frame pipelining" — contradicted when a terminal-cleanup stream is resident (policy.rs:50-52,scheduler.rs:989-998,:1180-1183, testpolicy_tests.rs:7784-7826). - The
throughput-identical-launches evidence (28/24/19, wall+0.3%) therefore does not cover the terminal-cleanup case.
Author-reported only, single trial, no independent reproduction, no CI:
- peak gap
331.9 → 260.3 ms(−21.6%), max-gap mean279.7 → 246.1 ms, mean TPOT6.10 → 5.55 ms; mixed-c32stalls215 → 78(−63.7%), gap p99237.2 → 188.6 ms, per-user p5093.9 → 99.2 tok/s, output1,072.8 → 1,050.8 tok/s;- solo 27.5K TTFT
540.7 → 544.2 ms, solo 464-token TTFT58.58 → 58.91 mswith a disclosed189.2 mscold jitter in Trial 1 of the treatment arm (#663's own note discloses a similar ~209 ms host/disk jitter on the same run); - GB10
>1sstalls24 → 0, p99 ITL −57.3% — measured at571a4471, six commits behind base5d53040eand described as pre-#656; - "host
plan()4.70×–8.65×faster" — no supporting artifact visible; - "Archive (
b31ec3a4verified, identical tree5da4c100to pushed29f2b5bc)" — an assertion about tree identity, not checkable from the description.
No in-repo harness reproduces any reported workload: there is no mixed-c32, 14K+32K+64K, 150K-250K or Burst-8 workload in the tree. The only new workload data is synthetic (workloads.py:56-105) and its pytest asserts a simulated millisecond gap.
One evidence-quality wrinkle: check.py:527-580 updated the mutation source string but left the failure message at :605 ("deferred prefill must schedule TerminalPrefill before capturing a boundary checkpoint") describing the older, narrower && needs_terminal line, so the mutation now asserts a stronger claim than its message states — worth noting for whoever re-runs --mutations.
Reach
- Activation: default-on for anyone running
--scheduler-policy balanced(the shipped default:decode_age_price: 0.1,terminal_age_price: 1.0atpolicy.rs:35-37). No flag, noPolicyConfigfield, no per-request switch. The only way to avoid the new interpolation is to leavebalancedentirely (throughputalso disables delivery fairness,policy.rs:50-52). - Behaviour reversal for operators: non-terminal
Prefillchunks no longer pipeline two-deep whenever a decoder, resume or terminal-cleanup stream is resident — each chunk now costs a drain round-trip. The PR measures the trade as solo TTFT +0.7% and mixed output −2.0%. - Also reached unintentionally:
--scheduler-policy throughputusers with terminal-cleanup (checkpoint/snapshot) streams resident (see Key finding 2), and cores whoseTERMINAL_PREFILLcatalog is a strict subset ofPREFILL— underdeferred_prefillevery non-terminal-catalog capacity now forcesTerminalPrefill(scheduler.rs:896-902). - Cores/artifacts: no re-export, no new graph op, no dependency or packaging change. Cores with only
Prefillstill get the interpolated exploration and the drain (nothing there depends onterminal_prefill_catalog; the empty-catalog early return atscheduler.rs:924only disables the terminal predicates). - Docs:
docs/scheduling-runtime-design.mdandhelios/README.mdupdated;docs/scheduling-theory.mdnot updated and contradicting. - Tests/verification tooling:
verification/helios-lifecycle/check.pymutation string updated;scripts/scheduling_sim/workloads.pygains GB10 catalog shapes;tests/test_scheduling_utility.pygains one scenario.
Process
Draft. One squashed commit (29f2b5b) directly on 5d53040e, so 2+ commits behind a3c80e19 with open PRs #655/#660/#663 already rebased past it — a rebase is required before any merge, and #655 in particular rewrites ActionCosts/freshness in the same file the interpolation reads. No CI checks, no review, no Autobot review, no triage label. Description follows the charter's four-part shape (Why / What / Result / Evidence) and ends Discord: Dooner as docs/design-review.md:163-169 requires, and it does disclose material limits. Age at case-file time: under a day. Test:prod ratio ~3:1.
Open questions / what could not be found
- Which of #661's numbers survive on the actual head
29f2b5bc— i.e. after theresize_prefilldeferred_prefillguard, which changes which catalogresize_prefillreads and therefore which chunk sizes are legal? No measurement at head exists anywhere in the repo, in comments, or in the sibling PRs. - How do #661 and #660 (same author, same baseline, opposite
mixed-c32stall direction, both open) interact when both land? The description of neither mentions the other; only the #663 comment measures #660+#661 together, and that is onfdb10bb5. - Does the
throughput-drain case (Key finding 2) change the "SM120throughputlaunches identical 28/24/19, wall +0.3%" evidence, which was measured without a terminal-cleanup stream in the reported workloads? - What does the
learning.py(not opened) 64-seed catalog say about interpolated exploration? Not run and not runnable from the description; the simulator cannot represent unmeasured costs. - Does the widened
deferred_prefill→TerminalPrefillresolution ever change behaviour on a real signed core (does any core ship aTERMINAL_PREFILLcatalog that is a strict subset ofPREFILLand serve deferred-prefill requests)? The diff's tests cover it synthetically (policy_tests.rs:7530-7640); no production evidence. - Interaction with #655 (
ActionCostsrewrite, "Ready To Merge") — untested; the interpolation depends on which entriesActionCostsconsiders measured and fresh. - Who has reviewed, benchmarked or reproduced any of the numbers independently: nobody.
iein(author of #550) andlukealonso(author of #645) — the two people with the most relevant evidence — have not commented.