#1 [high] Change: what PR #661 does (verified from diff)
PR #661 (FujitsuPolycom/Dooner), draft, base main, head 29f2b5b, opened+updated 2026-12-01. Labels area:scheduling, enhancement, performance. 10 files, +1785/-95 (desc says +312 net prod LOC / +391-79 in 4 scheduler files).
Verified diff by file:
- helios/src/scheduler/cost.rs (+400/-0): new pub fn
ActionCosts::interpolated_prefill_duration(kind, capacity, work, start_position) -> Option<u64>. Sibling first (Prefill<->TerminalPrefill viaprefill_predictor); ScoredPrefill isolated (sibling=None). Else scans self.entries for nearest measured smaller peer (lo) and nearest strictly-larger peer (hi); decode/speculative/resume entries form a "decode_floor" (fastest measured decode step). Requires hi (a larger measured peer); if no lo uses decode_floor.min(t_hi) as lower anchor. Linear interpolation in capacity between (c_lo,t_lo) and (c_hi,t_hi); clamps t_hi<=t_lo -> t_hi. +302 lines of unit tests (3 new tests) covering sibling/peer/order-independence/ScoredPrefill isolation/non-monotonic clamp. - helios/src/scheduler.rs (+84/-10):
- new field
terminal_prefill_window: usize+recompute_terminal_prefill_window(); the old computed-on-every-callterminal_prefill_window()(which scanned prefill_catalog vs terminal_prefill_catalog) is now cached, recomputed in prefill_graphs()/terminal_prefill_graphs(). resolve_prefill_kind_from:if request.deferred_prefill && needs_terminal->if request.deferred_prefill(i.e. deferred prefill now always resolves to TerminalPrefill, regardless of tail window). This is the same line the mutation-test in verification/helios-lifecycle/check.py was updated to match.- new
prefill_must_complete_terminally_from(request, start, cut); newhas_active_age_priced_stream()(slots with a request: terminal_cleanup(r)&&policy.terminal_age_price>0.0, else decode_age_price>0.0 && phase in {Decode,Resume}); newprefill_requires_terminal_completion_for_age(request, cut, age_price). prefill_step_requires_feedback()now returns true wheneverhas_active_age_priced_stream()— this is the feedback-barrier/drain change.
- new field
- helios/src/scheduler/policy.rs (+178/-52):
effective_prefill_catalog()replaced byprefill_catalog_for_terminal(kind, terminal_only);natural_fit_prefill_capacity->..._for_terminal(..., terminal_only); new PrefillSlotPlan struct +prefill_slot_state()/prefill_slot_nat_fit()per-plan caches (hoisted cut/terminal_only/nat_fit); add_candidate + best_member_value_rate + candidates now thread&mut prefill_plans. Unmeasured pure-prefill candidates under age_price>0.0 and capacity<=nat_fit get interpolated ns instead of 0; nat_fit-alone still gets ns=0 (discovery); other shapes skipped.last_interpmemo of (work,pos,res). Alsoresize_prefill: uses prefill_catalog_for_terminal(kind, terminal_only || request.deferred_prefill), and under age_price>0 && !terminal_only caps max_capacity at candidate.capacity.min(catalog.last()). Continuation/kind-change checks switched to prefill_requires_terminal_completion_for_age. - helios/src/scheduler/service.rs (+29/-17):
service_ratesrefactored into closurescan_prefill(skip_nonterminal); when terminal_only gave rate 0.0, has_active_age_priced_stream() and !prefill_must_complete_terminally_from, it rescan including non-terminal Prefill shapes. - helios/src/scheduler/policy_tests.rs (+984): 7 new tests.
- 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.
- verification/helios-lifecycle/check.py (+1/-1): mutation anchor updated.
- docs/scheduling-runtime-design.md (+28/-12), helios/README.md (+6/-2): doc updates.
#2 [high] Related work: #645 (merged 2026-11-30) introduced exactly the mechanisms #661 modifies
#645 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining", by Luke Alonso (lukealonso, COLLABORATOR), opened+merged 2026-11-30, +1886/-204, 21 files. Closes #485. This is the direct parent of #661's mechanism:
- Introduced
GraphKind::pipelines()single-sourcedDecode | Speculative | Prefillacross scheduler + 4 executor layers — i.e. #661's feedback barrier narrows this newly added two-frame Prefill pipelining. - Introduced
prefill_cursor/_fromhelpers andprefill_step_requires_feedback(helios/src/scheduler.rs) — #661 adds an earlyreturn truewhenhas_active_age_priced_stream(). - Introduced
effective_prefill_catalogrouting unmeasured prefill discovery +resize_prefillthrough terminal vs prefill catalog (policy.rs ~341-354) — #661 replaces it withprefill_catalog_for_terminal(kind, terminal_only)and changes resize_prefill behavior. - Introduced
PrefillCostModel/PrefillPredictor/prefill_context_slopesin cost.rs — #661'sinterpolated_prefill_durationreadsestimate.prefill.predictorandborrowed_prefill_context_slopefrom them. - Autobot review on #645: recommended Changes Requested with 2 blockers; flagged Merge Risk Medium; noted charter #210 (live served-workload A/B over main) and #485's long-context workload not re-run. Also flagged overlap with open PR #644 (same author, same day, 7 shared files). Citations: PR #645 description + review comment 2026-11-30 18:26.
#3 [high] Related work: #538 (same author) added natural-fit discovery that #661 relaxes; it caused a 15.3 s regression fixed by #550
PR #538 "Restrict cold pure-prefill discovery to natural-fit graph capacities" by FujitsuPolycom (same author as #661), opened 2026-11-26 16:22, merged 2026-11-26 17:21, +451/-12, 3 files (policy.rs, policy_tests.rs, docs/scheduling-runtime-design.md). Introduced natural_fit_prefill_capacity — the exact restriction #661 now relaxes under active age-priced streams. So #661 is the author revisiting their own earlier, now-merged design.
Autobot review on #538 recommended "Changes Requested" with 0 blockers and 3 should-fix items, notably:
- "
TERMINAL_PREFILLnatural fit is computed over the wrong catalog —add_candidatepasses&self.prefill_catalogfor every kind exceptScoredPrefill... while the candidate capacities come fromself.prefill_catalog(kind)= the terminal catalog. Useself.prefill_catalog(kind)". - "Compute the natural fit once per (request, cut) instead of per capacity and per width ... hoist it and pass it down" — #661 does exactly this via
PrefillSlotPlan/prefill_slot_state/prefill_slot_nat_fit(policy.rs). Worth noting as follow-up debt being paid here. - docs contradiction: "Candidate scoring has no smallest-fitting-shape filter" vs the new paragraph.
Then iein commented 2026-11-26 23:19: natural-fit discovery left smaller prefill capacities unmeasured indefinitely on catalogs without terminal-prefill graphs;
interval_prefill_nstreated them as unknown cost so prompt-endpoint checkpoints were skipped asunknown_costand repeated long prompts were re-prefilled in full; "On Inkling 2 Small (TP4, four DGX Sparks), an exact repeat of a 31K-token prompt went from fully reused (0.02 s) before this PR to 29 tokens reused (15.3 s) after it." Fixed by #550. => A directly relevant precedent: restricting unmeasured prefill discovery to nat_fit (which #661 relaxes only under age-priced streams) had a measured production regression before.
#4 [high] Related work: #550 (merged) fixed a #538-caused GB10 15.3s prefix-cache regression; #661 edits the same doc paragraph
PR #550 "Restore prefix checkpoints on prefill catalogs without terminal prefill" by iein (CONTRIBUTOR), merged 2026-11-28, +71/-15, 2 files (docs/scheduling-runtime-design.md, helios/src/scheduler/checkpoints.rs). Applies the terminal-catalog pricing rule to every catalog in checkpoints.rs so unmeasured non-target capacities don't make a checkpoint cut's price "unknown". This is the direct predecessor of the doc paragraph #661 edits at docs/scheduling-runtime-design.md ("Pricing skips unmeasured capacities that consume no additional tokens over a smaller capacity, and unmeasured capacities other than the chunk's pricing capacity").
Measured evidence in #550: Inkling 2 Small NVFP4 TP4 on 4× DGX Sparks (GB10), core without terminal prefill: build f377dc85 (main after #538+#543) = 29 tokens reused / 15.3 s TTFT on an exact 31K repeat; c915b5f0 (before both) = fully reused / 0.02 s; #550 = fully reused / 0.02 s. Also Inkling 2 Mini TP1 DGX Spark (GB10) probes.
=> #661's expansion of unmeasured-shape eligibility via interpolation and its interaction with deferred_prefill/checkpoint pricing touches the exact area of this GB10 regression. Relevant: #661 also edits the same doc paragraph.
Related open issues citing #550: #534 (checkpoint captures deadlock on unmeasured snapshot cost), #600 (TP2 EXL3 multi-turn prefix cache miss).
#5 [high] Related work: #663 (open, yatesdr) is the complementary sibling scheduler PR; stacked A/B evidence lives in its comments
#663 (open, yatesdr, COLLABORATOR) "helios/scheduler: price first-output waiting age on incumbent decode rounds" is the sibling/complementary scheduler PR. #661 mentions it; #663's own description explicitly names #661: "PR #661 enables smaller prefill chunks to protect active decoder cadence from long cold prompts; this change addresses the inverse side — keeping waiting prompts from starving behind active decode cohorts."
Both edit the same --scheduler-policy balanced (decode_age_price = 0.1) path; #663 changes service.rs delivery_references -> delivery_references_and_decode_batch, utility.rs LaneValue, policy.rs lane_values, runtime.rs readmission. #661 changes service.rs service_rates, policy.rs catalogs, scheduler.rs feedback barrier. Files in common between #661 and #663: helios/src/scheduler.rs, policy.rs, policy_tests.rs, service.rs, docs/scheduling-runtime-design.md, scripts/scheduling_sim/utility.py (via #663), tests/test_scheduling_utility.py.
#663 exists because flare-autobot opened duplicate draft #662 by mistake (closed 2026-12-01 19:40, "Closing duplicate draft opened under the wrong account; reopening under yatesdr").
Key cross-evidence (comment by FujitsuPolycom 2026-12-01 22:09 on #663): independent SM120 TP4 (4x RTX PRO 6000 Blackwell) paired A/B of #663 solo and stacked with #660 (22cac916) + #661 (fdb10bb5) against main a3c80e19, on a single signed DeepSeek-V4.1-Flash-1017 TP4 core. Reported that solo #663 raises >250 ms stall counts (mixed-c32 206 -> 431; heavy mix 1,235 -> 2,018) because mean active decode concurrency rises, and that stacking #661 cuts them to 91 (-78.9% vs solo #663, -55.8% vs base) and 523 (-74.1% / -57.7%), with mixed-c32 gap p99 203.1 ms (-10.6% vs base). Also: "Clean composition with #660 + #661: Zero semantic production conflicts (1 adjacent-function insertion in policy.rs and 2 test-fixture adjustments in policy_tests.rs; 424/424 scheduler:: tests pass)."
=> This is the only measured interaction evidence for #661 and it uses fdb10bb5, not the pushed head 29f2b5bc.
Also notable: the mixed-c32 base numbers in this comment (1,055.7 tok/s, gap p99 227.3 ms) differ from #661's description (1,072.8 tok/s, gap p99 237.2 ms), i.e. different runs/baselines.
#6 [high] Related work: #660 (same author) shares #661's exact mixed-c32 baseline but reports 215 -> 434 stalls where #661 reports 215 -> 78
#660 (open, FujitsuPolycom, same author as #661) "helios/scheduler: budget interior conversation-anchor splits against checkpoint_extra_work_fraction", opened 2026-12-01 19:02, head cf744df (predecessor 22cac916), +887/-151, 12 files (checkpoints.rs +751/-87, docs/cli-design.md, docs/core-design.md, docs/scheduling-runtime-design.md +8/-9, helios/README.md, policy_tests.rs, tests.rs, phase_tests.rs, check.py).
Same investigation series with #661: both target --scheduler-policy balanced prefill/decode contention on DeepSeek-V4.1-Flash TP4 on 4x RTX PRO 6000. #660's mixed-c32 base numbers are IDENTICAL to #661's head-row baseline (1,072.8 tok/s output; #660 base 5d53040e), so both PRs share the same base commit and the same mixed-c32 harness. #660 delta: SLO pass 9.1% -> 80.3%, output 1,072.8 -> 1,327.0 tok/s, TTFT p50 4,577 -> 1,920 ms, mean decode batch 9.13 -> 17.91. #660 explicitly discloses trade-offs: per-user p50 drops 93.9 -> 71.0 tok/s and >250 ms gaps rise 215 -> 434.
=> Direct implication for #661: #661's mixed-c32 baseline row (215 >250 ms stalls at base, 1,072.8 tok/s) is the same measurement #660 reports, but #661 claims 215 -> 78 stalls without #660 while #660 claims 215 -> 434 stalls for its own change. The two PRs move the same metric in opposite directions and are both open; #661's description does not mention #660 at all. Only FujitsuPolycom's comment on #663 shows them measured together.
Autobot review of #660: 0 blockers, 2 should-fix; Merge Risk Medium; flagged "Rebase conflict with #655 ... #655 edits the same checkpoint_selection_uncached function" and "conflicts directly with open Ready-To-Merge #655 in checkpoints.rs and docs/". Files in common with #661: helios/src/scheduler/policy_tests.rs, verification/helios-lifecycle/check.py, docs/scheduling-runtime-design.md, helios/README.md (4 per orientation packet).
#8 [high] Change: undeclared reach — the feedback barrier also fires under --scheduler-policy throughput when a terminal-cleanup stream exists
Verified in code: PolicyConfig::default() sets decode_age_price: 0.1 (helios/src/scheduler/policy.rs:35) and terminal_age_price: 1.0 (:37); the throughput() preset is Self { delivery_fairness: 0.0, decode_age_price: 0.0, ..Self::default() } (:50-52) — it does NOT zero terminal_age_price.
has_active_age_priced_stream() (helios/src/scheduler.rs:989-998) returns true if any slot satisfies terminal_cleanup(r) && policy.terminal_age_price > 0.0 OR policy.decode_age_price > 0.0 && phase in {Decode, Resume}. prefill_step_requires_feedback() now early-returns true when that holds (scheduler.rs:1180-1183).
Consequence: under --scheduler-policy throughput (decode_age_price = 0.0), a non-terminal Prefill step still loses two-frame pipelining whenever a terminal-cleanup stream (e.g. Snapshot/Endpoint capture of a finishing request) is resident, because terminal_age_price is still 1.0. The PR description's "solo prefill and throughput (0.0) keep two-frame pipelining" is only true when no terminal-cleanup stream is active.
The PR's own new test asserts this explicitly: has_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches in helios/src/scheduler/policy_tests.rs does t.configure_policy(PolicyConfig::throughput()), then assert_eq!(t.policy.decode_age_price, 0.0); assert!(t.policy.terminal_age_price > 0.0); and asserts has_active_age_priced_stream() is true and plan_requires_feedback(&plan) is true for a nonterminal Prefill; zeroing terminal_age_price restores pipelining.
The docs ARE accurate here — docs/scheduling-runtime-design.md says pipelining holds "only when no active age-priced decoding, resume, or terminal-cleanup stream exists". So this is a description-vs-code (not docs-vs-code) mismatch. Also means the "SM120 throughput launches identical (28/24/19)" claim does not cover the terminal-cleanup case.
Also: prefill_step_requires_feedback is one of the two places where feedback is decided; the other gates in plan_requires_feedback (stale cost, probe, grammar) are unchanged.
#9 [high] Project fit: docs/scheduling-theory.md:74-76, 93-97, 119-120 say prefill has no cadence and needs no smaller chunks — #661 leaves that file untouched
docs/scheduling-theory.md states the theory #661 departs from, and #661 does NOT update this file (its doc diff touches only docs/scheduling-runtime-design.md and helios/README.md):
- line 74-76: "Prefill has no externally visible per-chunk cadence. Its visible milestones are first output and eventual completion. Decode has both useful token throughput and a delivery cadence."
- lines 93-97: "All pure prefill, pure decode, and available mixed graphs compete on this score. No duration ceiling, prefill size preference, or breadth-before-depth rule precedes it."
- lines 119-120: "Fully occupied 4096-token prefills win when they have the highest useful prefill rate. Two long prefills do not need smaller chunks merely to alternate."
- lines 129-130: "The invariants concern useful work and measured efficiency. They do not require 4096 tokens when a smaller graph has demonstrably better effective efficiency." #661 explicitly does introduce a prefilling-size preference keyed on active decoders: under age_price > 0 it prices unmeasured smaller capacities with a positive interpolated estimate and drains the transport between non-terminal Prefill steps so "active decoders re-compete with actual completion feedback after every prefill chunk" (docs/scheduling-runtime-design.md, new paragraph). docs/scheduling-runtime-design.md:316-317 was qualified for this ("Apart from the unmeasured pure prefill discovery and interpolated exploration rules described below, candidate scoring has no smallest-fitting-shape filter...") but scheduling-theory.md was left describing the old rule. docs/scheduling-theory.md:546 also still says the native unknown-first policy "select[s] any unknown graph first and exclude[s] unknown padded prefill graphs", unaffected, so only the "no prefill size preference" invariant is contradicted. Exact-design-review principle 16 (docs/design-review.md:147-162) requires changed prose to be reviewed and claims to be connected to evidence; principle 12 (:106-115) requires "equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements".
#12 [high] Claims: A/B numbers are author-reported on fdb10bb5, not head; throughput-keeps-pipelining claim contradicted by code; no in-repo benchmark reproduces the workloads
Claims vs backing in #661's own description (nothing here is verifiable from the repo; all of it is author-reported): Backed by code in the diff (verified):
- "
ActionCosts::interpolated_prefill_durationinterpolates measured GPU timings (same-capacity sibling, else linear between smaller peer/decode floor and larger peer;ScoredPrefillisolated; non-monotonic timings clamped)" — matches helios/src/scheduler/cost.rs:688-790 and the 3 new tests at cost.rs:1280, 1355, 1474. - "unmeasured pure-prefill
<= nat_fitshapes compete byValueRate, drain onDiscovery, and record timings" — matches policy.rsslot_nsbranch and the code'selse if nat_fit == Some(capacity) { 0 }discovery fallback plusself.costs.is_fresh(...)/origin.is_probe()gates inplan_requires_feedback. - "
terminal_prefill_windowcached" — scheduler.rs field +recompute_terminal_prefill_window()called fromprefill_graphs()andterminal_prefill_graphs(). - "Drains between non-terminal
Prefillsteps while an active decode/resume/cleanup stream is age-priced" — scheduler.rs:1180-1183. NOT backed / contradicted by code: - "solo prefill and
throughput(0.0) keep two-frame pipelining" — only true when no terminal-cleanup stream exists, becausethroughput()leavesterminal_age_price = 1.0(policy.rs:50-52) andhas_active_age_priced_stream()checks it (scheduler.rs:989-998). #661's own testhas_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches(policy_tests.rs:7745) asserts this drain. - "
0flags,unsafe, hardcoded capacities, model branches, or ABI changes" — verified true for flags/unsafe/ABI/model branches (nounsafe, no CLI change, no per-model branch in the diff). But the diff does add capacities-carrying test fixtures and a newPrefillSlotPlanstruct; no hardcoded production capacity was introduced. Evidence claimed but with caveats: - "Zero-re-export
flare runA/B on4× RTX PRO 6000(SM120 TP4,DeepSeek-V4.1-Flash,5d53040evsfdb10bb5)" — the description's own Limits section says the A/B ran onfdb10bb5, BEFORE theresize_prefilldeferred_prefillguard and doc/test hardening; head is29f2b5bc. So the shipped code is not the measured code. - "Archive (
b31ec3a4verified, identical tree5da4c100to pushed29f2b5bcatop5d53040e)" — asserts tree identity between the archive and head; not independently checkable from the description. - Solo
C=1Trial 1 "saw189.2 mscold jitter" — a disclosed anomaly in the treatment arm of a latency benchmark; the same anomaly appears in #663's own note about a~209 mshost/disk jitter on the solo 27.5K run. - "Pre-
#656(571a4471):4× GB10>1sstalls24 -> 0" — the GB10 numbers are on a build six commits behind base5d53040eand are described as pre-#656. - No benchmark in the repo reproduces any of the reported workloads: there is no
mixed-c32,14K+32K+64K,150K-250KorBurst-8harness in the tree (the only new harness data is the syntheticgb10_catalog()/prefill_storm_gb10()in scripts/scheduling_sim/workloads.py:56-105 and its pytest at tests/test_scheduling_utility.py:421-441, which asserts a>1000 msmax output gap for throughput and<800 msfor balanced — a simulated 1000 ms stall, not a GPU measurement). 1180 ms/260.3 ms/246.1 mspeak gaps,-63.7%stalls,+5.7%per-user p50,-2.0%output: author-reported, single trial, no CI, no independent reproduction.- Evidence list does include: 0 release warnings across 4 crates, clean
merge-tree, helios 1,275 + 1,786 tests, flare 238, flare-cli 239, pytest 833, ruff 0, check.py 10/10 TLC + 8/8 Observed 594,065 transitions + 12/12 aux,--mutations26/26 Rust + 13/13 TLA+ + 1/1 bad-edge, 0 survivors. Thecheck.py --mutationsupdate is visible in the diff (verification/helios-lifecycle/check.py:527-530) but the mutation harness only re-checks the already-existingdeferred prefill small cut bypassmutation message, which now no longer matches what was mutated — the string still says "must schedule TerminalPrefill before capturing a boundary checkpoint" while the mutated line is the new unconditionalif request.deferred_prefill {.
#13 [high] Reach: activates by default on --scheduler-policy balanced, no flag, reverses #645's pipelining, widens the deferred_prefill rule
Reach / configuration & compatibility (verified):
- No CLI flags, no
PolicyConfigfields, no newGraphKind, no Protobuf/ABI change (diff has none). The whole change activates implicitly whenever--scheduler-policy balancedis chosen (decode_age_price 0.1, terminal_age_price 1.0) — it is default-ON for the shipped default policy, exactly like #663/#660, and there is no way to opt into the new interpolation without also opting out of balanced. - Behaviour reversal for operators: non-terminal
Prefillchunks no longer pipeline two-deep when any decoder/resume/terminal-cleanup stream is resident underbalanced. That is the two-frame pipelining #645 introduced one day earlier. Effect is a throughput-vs-cadence trade: each prefill chunk now costs a drain round-trip. The PR claims solo prefill is unaffected (TTFT540.7 -> 544.2 ms, +0.7%) and mixed throughput drops 2.0% (1,072.8 -> 1,050.8 tok/s). resolve_prefill_kind_fromchange widens the deferred-prefill rule: withrequest.deferred_prefill == true, EVERY capacity outsideterminal_prefill_catalognow resolves toGraphKind::TerminalPrefill, where before only shapes that reachednext_stopor the tail window did. This is a correctness tightening of the #613 invariant ("deferred prefill must schedule TerminalPrefill before capturing a boundary checkpoint") but it is NOT called out in the PR description's "What" list; the closest mention is "excludes non-terminal-catalog shapes underdeferred_prefill(incl.resize_prefill)". Depends on the core's TerminalPrefill catalog (e.g.256..=16384) containing the capacity being requested; on a core whose terminal catalog is a strict subset, any deferred chunk now forces a TerminalPrefill.- Cores: unchanged, no re-export (TerminalPrefill was added as an optional graph op by #479, voipmonitor). Cores without TerminalPrefill take the
terminal_prefill_catalog.is_empty()early return inprefill_requires_terminal_completion_from(scheduler.rs:924) so interpolation applies only where a sibling/peer exists — but a core with ONLYPrefill(no TerminalPrefill at all) still gets the interpolated exploration and the feedback drain, since neither depends on the terminal catalog. - Operators/users affected: anyone on
balancedserving cold long prompts beside decoders (the reported scenario: DeepSeek-V4.1-Flash TP4, 4× RTX PRO 6000 / 4× DGX Spark). Also anyone whose workload produces terminal-cleanup streams (checkpoint capture) — see the throughput note. helios/README.mdanddocs/scheduling-runtime-design.mdupdated;docs/scheduling-theory.mdNOT updated (see Project fit entry).- Test-only additions:
gb10_catalog/prefill_storm_gb10in the Python simulator + one pytest; 9 Rust tests in policy_tests.rs + 3 in cost.rs. The Python simulator does NOT model unmeasured costs, so the new pytest validates the qualified policy via the GB10 catalog's known durations, not the interpolation. - Deployment/datasheet: none — no new dependency, no packaging change.
#15 [high] Why: cold long prompts stall decoders on balanced because of cast-catalog mismatch + nat-fit discovery + two-frame pipelining; lineage via #485/#538/#550
The "why" of #661 (problem + lineage of the want):
Problem as stated: under --scheduler-policy balanced (decode_age_price = 0.1), Helios interleaves smaller prefill chunks with decode steps because it has no mixed prefill-decode graphs on DeepSeek-V4.1-Flash TP4. Three coupled mechanisms make cold long prompts stall active decoders for seconds:
TERMINAL_PREFILLcatalogs start at 256 whilePREFILLstarts at 128, so a 128-token shape is non-terminal-only and cannot be used for a tail.- Unmeasured smaller
Prefillshapes are skipped by cold discovery (#538's natural-fit restriction), so once the largest graph is measured the scheduler keeps choosing it. - Tails up to
max_terminal(16384) run as ONETerminalPrefill, and consecutive non-terminalPrefillsteps fill both transport frames (#645), so decoders wait for both. Wanted-since / how widely: the underlying complaint predates #661 by at least a week of merges:
- #485 (voipmonitor, COLLABORATOR, filed 2026-11-23, closed by #645 on 2026-11-30): prefill chunk-size drift on DeepSeek-V4.1-Flash TP4 at 64k-128k, measured as
flare_graph_launches_total{kind="prefill"}rising 18 -> 29 -> 31 across consecutive 128k requests and 18 ms-1900 ms GPU time drift. That is the "chunk size on long prompts" side. - #538 (same author, merged 2026-11-26) is where the discovery restriction that #661 now relaxes came from, itself motivated by "subsequent chunks stepped down through every remaining unmeasured smaller graph (
14336 -> 12288 -> ... -> 256)". - #550 (iein, merged 2026-11-28) shows the counter-risk of unmeasured smaller capacities: on 4x DGX Spark GB10 an exact 31K repeat went from 0.02 s reuse to 15.3 s TTFT.
- docs/scheduling-theory.md:119-120 states the project's prior position that "Two long prefills do not need smaller chunks merely to alternate" — this PR argues the opposite under active decoders.
- The same problem is being attacked from the other side by #663/#662 (first-output waiting age) and #660 (interior anchor splits), both opened the same day by different people.
- No issue asks specifically for #661; the closest is #485 (closed) plus the two sibling PRs. So the demand is real but expressed as a series of PRs by 3 authors within ~3 days rather than as a long-standing issue.
#17 [high] Project fit: served A/B over main satisfies charter #210; docs/design-review.md Layer-2 simulator + learning.py gate is explicitly unrun; theory doc contradicts
Charter / roadmap mapping (facts, from read_charter + docs/design-review.md):
- Charter line 12 "Keep the runtime small and model-agnostic… shouldn't accumulate per-model branches (#267, #334)": #661 has 0 model branches and lives entirely in Helios scheduler — aligns.
- Charter "Be explicit and pin everything. No magic defaults, and pin dependencies… Benchmarks, tests, or feature flags don't override architectural rules": #661 adds NO flag and no new default; it changes the behaviour of the existing
balancedpreset implicitly. There is no opt-in and no opt-out short ofthroughput(which also disables delivery fairness). Whether "implicit behaviour change under an existing preset" counts as a magic default is the open reading. - Charter "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)": #661 does provide a servedflare runA/B vs5d53040eon the charter's target hardware class (SM120 4× RTX PRO 6000 + 4× DGX Spark GB10) with 0 errors and a signed core without re-export — aligns, with the caveat that the measured build isfdb10bb5, not head. - docs/design-review.md principle 12 (:106-115) requires "equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements … keep raw measurements and disclose unrun checks and material limitations" — the PR discloses its limits.
- docs/design-review.md testing hierarchy:
- Layer 1 (crate tests + pytest): claimed, broad, and the diff adds tests at the real production entry points (
phase_plan,plan_requires_feedback,candidates,available_plan,service_rates) — aligns. - Layer 2 (:195-208): "Changes to graph selection, service pricing, timing estimation … must be evaluated against the Python simulator and reference solvers… Changes to timing estimation or funded refresh require running the screening and 64-seed validation catalog in
scripts/scheduling_sim/learning.py… Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog." #661 changes graph selection AND timing estimation (interpolated durations), and the PR's own Limits saylearning_policy.py… unrun. The simulator has no notion of unmeasured costs (scripts/scheduling_sim/utility.py prices every catalog graph from its declaredduration_ms; see simulator.py:88-98 recordingprefill_capacitybut never an unknown duration), so the new interpolated-exploration rule has no simulator equivalent — the new pytesttest_gb10_prefill_storm_decode_age_pricing_avoids_one_second_stalls(tests/test_scheduling_utility.py:421-441) only exercises the existing utility policy on a GB10-shaped catalog. This is the clearest gap against a mandatory documented gate. - Layer 3 (:209-229): TLA+/Kani/mutations —
check.pyclaimed 10/10 + 8/8 + 12/12 and--mutations26/26/13/13/1/1 with 0 survivors;kanideclared unrun. Thedeferred_prefillguard change makes the existingCheckpointReservationdeferred-prefill invariant stronger, andcheck.py's mutation anchor was updated to match — aligns, withkaniunrun as disclosed.
- Layer 1 (crate tests + pytest): claimed, broad, and the diff adds tests at the real production entry points (
- Roadmap: nothing in the roadmap (in-process Rust SDK #6, Engram #267, FlashInfer #215) covers scheduler chunking; the charter's "What gets merged" clause is satisfied by "a measured performance/memory issue" if the measurements hold.
- Non-goals: not triggered (no new backend, no per-model recipe, no rack-scale feature).
- Documentation obligation (principle 16, :147-162): "Rehearse changed prose… A reviewer must not need the diff … to reconstruct the argument." #661 updates
docs/scheduling-runtime-design.mdandhelios/README.mdbut leavesdocs/scheduling-theory.md:74-76,93-97,119-120asserting the opposite of the new behaviour (no per-chunk cadence, no prefill-size preference, "two long prefills do not need smaller chunks merely to alternate"). That is an unreconciled normative contradiction in a doc the PR does not touch, of the same class Autobot flagged on #550 and #663.
#18 [high] Research summary
I built the case file for PR #661 in 17 scratchpad entries covering every required angle (change, why, related work, recent activity, people, community, project fit, claims and evidence, reach, process).
Headline findings a reader could not get from the description:
- The measured build is not the shipped build. #661's SM120/GB10 A/B ran on
fdb10bb5; head is29f2b5bcand the PR's own Limits section says the A/B predates theresize_prefilldeferred_prefillguard and doc/test hardening. - "throughput (0.0) keeps two-frame pipelining" is false in one case.
PolicyConfig::throughput()zeroesdecode_age_pricebut leavesterminal_age_price = 1.0(policy.rs:50-52), andhas_active_age_priced_stream()(scheduler.rs:989-998) checks it, so non-terminalPrefillstill drains whenever a terminal-cleanup stream is resident. #661's own testhas_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches(policy_tests.rs:7745) asserts this. - #661 reverses work merged one day earlier. #645 (lukealonso, merged 2026-11-30) introduced
GraphKind::Prefilltwo-frame pipelining,prefill_step_requires_feedback,effective_prefill_catalogandPrefillCostModel— every mechanism #661 now narrows or replaces. - Sibling PRs and a head-to-head contradiction. #660 (same author) shares #661's exact
mixed-c32baseline (1,072.8 tok/s, 215 stalls) but reports>250 msstalls going 215 → 434, where #661 reports 215 → 78. Neither description mentions the other. #663 (yatesdr) is the inverse-side sibling; the only stacked A/B for #661 lives in a comment there. - A documented mandatory gate is explicitly unrun. #661 changes graph selection and timing estimation, which docs/design-review.md:195-208 says requires the
scripts/scheduling_sim/learning.py(not opened) 64-seed catalog; the PR discloseslearning_policy.py(not opened) unrun, and the simulator has no concept of an unmeasured cost, so the interpolation has no simulator equivalent. docs/scheduling-theory.mdstill states the opposite (:74-76 no per-chunk prefill cadence; :93-97, :119-120 no prefill-size preference, "two long prefills do not need smaller chunks merely to alternate"). #661 updatesscheduling-runtime-design.mdandhelios/README.mdbut not that file.- Undeclared kind change:
resolve_prefill_kind_fromnow resolves every capacity outsideterminal_prefill_catalogtoTerminalPrefillwheneverdeferred_prefillis set, not just tails (scheduler.rs:896-902). It tightens #613's invariant but is only obliquely mentioned. - Zero engagement: no comments, no reviews, no CI, no reactions, no
triage:label, draft, one commit stacked on5d53040eand behinda3c80e19.
I also recorded the problem lineage (#485 → #538 → #550, including iein's measured 0.02 s → 15.3 s GB10 prefix-cache regression caused by #538's natural-fit restriction, and #550's fix), the full related-work graph (#426, #352, #479, #510, #613, #655, #69, #534, #600, #542, #571, #334, closed #654), the people map (FujitsuPolycom's scheduler series; lukealonso's ownership of the changed code; yatesdr, logprobz, iein, voipmonitor, original-el8), and a charter/design-review mapping showing where the PR aligns (no flags, no model branches, no ABI change, served A/B over main on target hardware) and where it does not (implicit default-on change under balanced, Layer-2 gate unrun, theory-doc contradiction).
#19 [high] Recent activity: what changed in these areas just before #661, by whom and why
Recent activity on the files #661 changes (helios/src, scripts/scheduling_sim, docs, tests, verification), from the orientation packet plus search_history ref=main for helios/src/scheduler/policy.rs and cost.rs:
Base commit of #661 is 5d53040e (2026-12-01, yatesdr, "helios: gate offload Copy Engine batches during peer-copy graphs", #628). Main has since advanced to 5c0d9c67 (#666, Jason Cook, RoCE dual-rail spread) and a3c80e19 (#657, Luke Alonso, mDNS _ai-gateway._tcp advertise). #663's baseline is a3c80e19, and #660 rebased onto 5d53040e with "0 conflicts vs a3c80e19" — so #661 is 2+ commits behind main and its own authors' sibling PRs are already rebased past it.
Scheduler commits immediately preceding, newest first (all within ~10 days, from search_history on policy.rs/cost.rs):
- 2026-12-01 e8a3a7c7 Luke Alonso — #656 conditional speculative acceptance, fast population warmup, incremental acceptance-probe charging. (#661's description cites
571a4471as "pre-#656" for its GB10 numbers, i.e. six commits behind its own base.) - 2026-11-30 e85019b9 Luke Alonso — #645 prefill scheduling / cost modeling / two-frame pipelining overhaul. The direct parent of #661.
- 2026-11-30 3e57bdc8 Luke Alonso — #644 per-step speculative calibration, excluded-only waiting/delivery fairness.
- 2026-11-29 6cb7e3b7 Luke Alonso — #619 unlock multi-token speculation and two-frame pipelining for host stops (first pipelining of Prefill kinds).
- 2026-11-29 0c25e88f Luke Alonso — #613 deferred_prefill checkpoints, shared_pages accounting, >64 MiB wire prepares (source of the
CheckpointReservationdeferred invariant + mutation #661 edits). - 2026-11-27 c9693765 Martin Vit — #555 intermediate batch capacities 6, 12, 24.
- 2026-11-26 ba35da3f PCCessna — #538 natural-fit cold prefill discovery (the restriction #661 relaxes).
- 2026-11-24 fd6c0f3b Luke Alonso — #510 preserve positive measured packed round durations for unmeasured siblings (the direct precedent for interpolated/borrowed estimates).
- 2026-11-22 6b586398 yatesdr — #459 price checkpoint candidates without walking every prefill chunk.
- 2026-11-25 da578c5c Jason Cook — #426 prefill service prices / deferred TerminalPrefill guard.
- 2026-11-23 e091689b Martin Vit — #479 optional TerminalPrefill graph op (creates the PREFILL vs TERMINAL_PREFILL catalog asymmetry that is mechanism 1 of #661's Why).
People density in these files (180 days): helios/src — Luke Alonso 235 commits, Martin Vit 52, yatesdr 48; docs — Luke Alonso 390. So #661 is authored by a non-dominant contributor on code that the dominant maintainer rewrote the day before.
Same-day cluster (2026-12-01) of scheduler PRs, all open, all touching overlapping files: #660 (FujitsuPolycom, checkpoints/anchor splits), #661 (FujitsuPolycom, prefill chunking), #655 (yatesdr, snapshot cost retention, Autobot: Ready To Merge), #663 (yatesdr, first-output age; #662 is its closed bot-duplicate). That is 4 open scheduler PRs by 3 people in one day on the same policy.
#22 [high] Amendments (run 2827/event of 2026-12-02): new head c588d610, rebase, service.rs, theory doc, Autobot review
AMENDMENTS TO REPORT #21 (PR #661), event: new head c588d610 pushed 2026-12-01, PR updated 2026-12-02 00:58.
A1. Head/scale/base changed. Head is now c588d610 ("explore smaller prefill chunks under active age-priced streams"), rebased directly onto main 1fbcc3c9 (#667, merged 2026-12-01). Scale is +1,949/−106 in 11 files (was +1,785/−95 in 10 files); production diff is +397/−78 in 4 files (scheduler.rs, cost.rs, policy.rs, service.rs). The "one commit behind main 5d53040e / 1 commit atop 5d53040e" process finding is stale: the PR now sits on current main, so no rebase is outstanding (search_history pr/661: c588d610 → 1fbcc3c9). Citation impact: the line numbers in report #21's proposal section drifted. At c588d610: interpolation pricing is policy.rs:1113-1140 (continuation ladder) and policy.rs:1465-1492 (add_candidate); cost::interpolated_prefill_duration is cost.rs:695-786 unchanged; the widened deferred_prefill mapping is scheduler.rs:901-906; the feedback drain is scheduler.rs:1187-1190; resize_prefill is policy.rs:1889-1935 with the age-priced cap at :1912-1916; prefill_must_complete_terminally_from is scheduler.rs:964-994; has_active_age_priced_stream :996-1005.
A2. Fifth production file: service.rs (+29/−17) was NOT in report #21's file list. New token_rate == 0.0 fallback in RequestScheduler::service_rates (service.rs:298-328): when only terminal prefill is legal (terminal_only), an active age-priced stream exists, and !prefill_must_complete_terminally_from(...), it rescans non-terminal Prefill capacities so the request gets a positive token service rate. This is not just selection — it feeds ServicePrice rebasing through lane_values (policy.rs:739-746, :775-786), so #661 also changes entropy-dual prefill pricing for default balanced users, a reach item report #21 did not list. Its cost is an extra catalog scan per service_rates call on that path.
A3. docs/scheduling-theory.md is no longer untouched — one of report #21's high findings narrows rather than stands. The PR now appends a paragraph at docs/scheduling-theory.md:558-565 explaining that the simulator's initial_discovery = "native" bootstraps all non-padded unmeasured prefill shapes while native Helios restricts solo (age_price == 0) discovery to natural fit and interpolates under age pricing. Roughly accurate against scripts/scheduling_sim/learning_policy.py:183-197 (padded filter) and scripts/scheduling_sim/model.py:24-36 (single prefill family). BUT the contradictory statements remain unamended at docs/scheduling-theory.md:74-76 ("Prefill has no externally visible per-chunk cadence"), :93-97 ("No duration ceiling, prefill size preference...") and :119-120 ("Two long prefills do not need smaller chunks merely to alternate"). So the doc contradiction persists, now with one PR-authored paragraph that admits the divergence instead of reconciling it.
A4. Simulator gate: partially run, still unmet. PR Evidence now claims learning.py smoke + screen. Those are TRAINING_SEEDS = range(16) with SMOKE/SCREEN_SCENARIOS (scripts/scheduling_sim/learning.py:488-497, learning_scenarios.py:153-154). The gate text asks for "the screening and 64-seed validation catalog" (docs/design-review.md:202-204); the 64 held-out seeds are HELDOUT_SEEDS = range(10_000, 10_064) (scripts/scheduling_sim/learning_analysis.py:12) used only by --preset validate (learning.py:488). Report #21's "declared unrun, no simulator equivalent" should read: screening runs, 64-seed validation still unrun, and no simulator model of TERMINAL_PREFILL splitting/two-frame pipelining exists (model.py Graph has only prefill_capacity/decode_capacity/width), so the simulator still cannot validate the two mechanisms #661 changes.
A5. #663 has MERGED (8489d504, 2026-12-01), and #662 was closed. Report #21's related-work framing ("stacked A/B lives in a comment on #663", "inverse-side sibling, open") is stale: #661's own body now carries post-#663 numbers (mixed-c32 control 286.0 ms / 431 gaps → 203.1 ms / 91), i.e. #661 now presents itself as halving a regression that is already in main. Remaining open siblings: #655 (Ready To Merge, touches cost.rs/checkpoints.rs/scheduler.rs) and #660 (Ready To Merge after 23:49 review, touches checkpoints.rs + policy_tests.rs + docs). #661 is now the only scheduler PR in the queue still at Changes Requested.
A6. The #660 contradiction persists and sharpens: both PRs share the same mixed-c32 control row (1,072.8 tok/s out, >250 ms = 215) and diverge — #660 reports 215 → 434 with 9.1% → 80.3% SLO (read_item #660), #661 reports 215 → 78 with out 1,072.8 → 1,050.8. Neither is head-to-head; both are against 5d53040e-era bases.
A7. Community/process finding is now stale in part: the PR is no longer comment-free or unlabeled. Labels are area:scheduling, enhancement, performance, triage:design-review. @flare-autobot posted an intake note (2026-12-01 22:45) and an Autobot Review with recommendation Changes Requested (2026-12-01 23:08): 1 blocker, 2 should-fix, 4 subtract/simplify, 2 nits. Crucially that review targets 29f2b5b, not head c588d610 (the head was pushed afterward; re-review is due ~90 min after push). There is still zero human review and still no CI run attached.
A8. Autobot's review independently corroborates two of my report's claims: (a) the throughput-keeps-pipelining claim contradicts policy.rs:50-52 (throughput leaves terminal_age_price = 1.0) — the new revision even adds a test that documents the exception, policy_tests.rs:8252-8334, asserting the drain fires for a terminal-cleanup stream under PolicyConfig::throughput() (:8291-8314) while the PR body still says "(throughput pipelines)"; (b) the 64-seed simulator timing gate is unrun. New, review-reported and consistent with my reading of the test: a false-pass blindspot in continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7728-7810) — its assertion compares only the Init continuation score (phase_plan(GraphKind::Init, ...) at :7798-7800) while the oversized-sibling guard it is named after lives in the prefill branches (policy.rs:1113-1140, :1465-1492), so it can pass regardless.
A9. Mutation guard now encodes the undeclared widening. verification/helios-lifecycle/check.py:527-532 changed the expected source from return if request.deferred_prefill && needs_terminal { to return if request.deferred_prefill {. The lifecycle mutation check therefore now enforces the widened rule (every capacity outside the terminal catalog maps to TerminalPrefill under deferred state) rather than the pre-#661 rule, which is exactly the reach item report #21 flagged as undeclared in the description.
A10. New test/doc inventory at head: policy_tests.rs +1,103 (resize_prefill cap :7813, age-priced stream branches :8252, terminal-catalog nat_fit exclusion :8337, Discovery-origin no-leak :8426-8542), cost.rs +400 (3 interpolation tests :1280/:1355/:1474), scripts/scheduling_sim/workloads.py +51 (gb10_catalog/prefill_storm_gb10), tests/test_scheduling_utility.py +24 (simulator-concurrency stall test asserting max_output_gap < 800 ms), helios/README.md, docs/scheduling-runtime-design.md (:319-324, :332-337, :351-353, :486-505, :639-644, :662-673), docs/scheduling-theory.md:558-565, check.py.
A11. A/B provenance still limits the headline: the body says SM120 A/B ran on fdb10bb5/82f68ea8 "before resize_prefill/Discovery guards and 1fbcc3c9 rebase", and GB10 numbers predate #656. So the -29.0%/-78.9% post-#663 row and the 268→78 row describe code that is not the head; the only thing tying c588d610 to results is the archive tree 74625efe claim.
#24 [high] Research summary
Amendments to report #21 for PR #661, after the code update to head c588d610 (rebased onto main 1fbcc3c9) and the arrival of an Autobot review.
What moved. Head/base/scale: +1,949/−106 in 11 files, production +397/−78 in 4 files, no rebase outstanding — my "one commit behind main" process finding is obsolete, and my line citations drifted (policy.rs:1113-1140, :1465-1492, :1889-1935/:1912-1916; scheduler.rs:901-906, :964-1005, :1187-1190). A fifth production file I missed, service.rs (+29/−17): its token_rate == 0.0 fallback (service.rs:298-328) feeds ServicePrice::rebase through lane_values (policy.rs:739-746, :775-786), so #661 also reprices prefill service under default balanced — a reach item absent from my report.
Findings that narrow. docs/scheduling-theory.md is no longer untouched: a new paragraph (:558-565) concedes that native Helios diverges from the simulator's initial_discovery = "native", but the contradicting statements (:74-76, :93-97, :119-120) remain, so the contradiction stands with an admission instead of a reconciliation. The simulator gate is now partly run — learning.py smoke+screen are TRAINING_SEEDS = range(16), while the mandated 64-seed validation (HELDOUT_SEEDS = range(10_000,10_064)) is still unrun and the simulator still models no TERMINAL_PREFILL splitting or two-frame pipelining (model.py:24-36). helios/README.md:285-287 and :426-431 do match the code, so the documentation gap is theory-only.
Findings that hold or sharpen. throughput-keeps-pipelining is still false (policy.rs:50-52) and the revision now ships a test documenting the exception (policy_tests.rs:8291-8314) while the body still claims it. The undeclared deferred_prefill widening is now encoded in the mutation guard (check.py:528-535). The new test continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7728-7810) asserts only an Init score and can pass regardless of the guard it names. #663 has merged and #662 closed, so #661 now claims to fix an in-main regression; #655 and #660 are Ready To Merge while #661 is the only one at Changes Requested. The #660 stall divergence (215→434 vs 215→78) persists, both baselines 5d53040e-era, still no head-to-head. A/B numbers still precede the head (fdb10bb5/82f68ea8), and no CI run is reported for c588d610; the Autobot Changes Requested review targets the superseded 29f2b5b.
Full detail with citations is in scratchpad entries #22 and #23.
#25 [high] Amendment report skeleton: claim-by-claim supersede list for report #21
SKELETON FOR THE AMENDMENT REPORT (PR #661, head c588d610). Pairs each new claim with its citation and names the report #21 statement it replaces. Use with entries #22 and #23.
A. HEAD / SCALE / BASE
- Claim: head c588d610 ("helios/scheduler: explore smaller prefill chunks under active age-priced streams"), based directly on main 1fbcc3c9 (#667); +1,949/−106 in 11 files; production +397/−78 in 4 files (scheduler.rs, cost.rs, policy.rs, service.rs). Cite: read_item #661 header + "Files changed (11)"; PR body "What" bullet (
+397/-78, 4 files,11total+1,949/-106atop1fbcc3c9); search_history pr/661. - Supersedes in #21: "+1,785 / −95 lines in 10 files"; "Touches" list that omits service.rs; process entries #14/#20 ("one commit atop 5d53040e", "behind main"), which are now wrong; the "behind main
a3c80e19" line in the process angle.
B. NEW CITED LINE NUMBERS (replaces #21's drifted numbers)
- Interpolation pricing: policy.rs:1113-1140 (following/continuation ladder), policy.rs:1465-1492 (add_candidate), nat_fit gate at :1465-1468, interp call :1476-1482, discovery fallback
else if nat_fit == Some(capacity) { 0 }:1488-1490. - cost.rs::interpolated_prefill_duration: cost.rs:695-786; sibling :702-712; ScoredPrefill None :705; non-prefill None :706; larger-peer requirement
let (c_hi, _, t_hi) = hi?;:774; decode-floor fallback :775-778; non-monotonic clamp :779-781; u128 interpolation :782-785;prefill_entryreturns Some(None) when nanos==0 (cost.rs:667-669) so inputs are measured-only. - deferred_prefill widening: scheduler.rs:901-906. Feedback drain: scheduler.rs:1187-1190 (with the other gates :1191-1207). has_active_age_priced_stream: :996-1005 (terminal_cleanup + terminal_age_price, else decode_age_price>0 and phase Decode|Resume). prefill_must_complete_terminally_from: :964-994. prefill_requires_terminal_completion_for_age: :1007-1022. terminal_prefill_window cached: scheduler.rs:662, :757, :848, :864.
- resize_prefill: policy.rs:1889-1935; age-priced capacity cap :1912-1916; terminal catalog for deferred :1906-1911. prefill_catalog_for_terminal: policy.rs:371-379. Discovery origin return: policy.rs:1790-1792 (ordinary_unmeasured → available_plan(..., PlanOrigin::Discovery)); re-origin after resize :1871-1875. plan_requires_feedback freshness/probe gates: scheduler.rs:1222-1223.
C. THE FIVE AMENDMENT CLAIMS (each already cited in #22/#23)
- service.rs fallback changes prefill service pricing, not just selection: service.rs:298-328; effect via lane_values policy.rs:739-746 and :775-786 (ServicePrice::rebase at :779-785).
- theory doc conceded but not reconciled: added docs/scheduling-theory.md:558-565; unchanged contradictions :74-76, :93-97, :119-120. Simulator facts: learning_policy.py:183-197 (padded filter), model.py:24-36 (single prefill family, no terminal).
- Simulator gate partly run: learning.py:488-497 with TRAINING_SEEDS=range(16) (learning_analysis.py:13) and SMOKE/SCREEN_SCENARIOS (learning_scenarios.py:153-154); HELDOUT_SEEDS=range(10_000,10_064) (learning_analysis.py:12) unused; gate text docs/design-review.md:195-208 (esp. :202-204).
throughputclaim false and now self-documented: policy.rs:50-52; test policy_tests.rs:8252-8334 with throughput terminal-cleanup drain asserted :8291-8314; body still says "(throughputpipelines)".- deferred_prefill widening now enshrined in the mutation guard: check.py:528-535.
- New test blindspot: policy_tests.rs:7728-7810 compares only the Init continuation score (:7798-7800) while the guard lives in the prefill branches.
- README already accurate: helios/README.md:285-287 and :426-431.
D. RELATED-ITEM REFRESH
- #663 merged as 8489d504 2026-12-01; #662 closed; #655 and #660 at Ready To Merge by 2026-12-01 17:30 and 23:49 respectively; #661 sole Changes Requested. #661 body now carries post-#663 numbers (mixed-c32 286.0 ms/431 → 203.1 ms/91). #660 shares the exact control row (1,072.8 tok/s, >250 ms = 215) and reports 215→434 vs #661's 215→78.
- Community: labels area:scheduling, enhancement, performance, triage:design-review; @flare-autobot intake 2026-12-01 22:45 and Changes Requested review 2026-12-01 23:08 (1 blocker / 2 should-fix / 4 subtract-simplify / 2 nits), targeting 29f2b5b, superseded by c588d610; no human review; no CI reported for the head.
E. CONCLUSION UNCHANGED / RESTATED
Recommendation stays: do not merge as-is. Three live blockers: (i) no served A/B on the mergeable head and no CI (body Limits: "SM120 A/B ran on fdb10bb5/82f68ea8 before resize_prefill/Discovery guards and 1fbcc3c9 rebase"); (ii) 64-seed simulator validation still unrun and the simulator cannot model the changed mechanisms; (iii) the throughput claim in the body is false. Add: declare the service.rs pricing change and the deferred_prefill widening in the description, and reconcile docs/scheduling-theory.md:74-76/93-97/119-120.
#27 [high] Amendments (run 2879, event 2026-12-02): head 3d868f84 — simulator rule + 64-seed gate, single-pass service_rates, wait-clock & reconciled-credit fixes, #676/#681
AMENDMENTS TO REPORT #26 (PR #661). New head 3d868f84 (tree c1d6858b) atop main 1fbcc3c9; PR updated 2026-12-02 13:49. Total +2,778/-186 in 15 files (PR header + file list); production Rust +376/-140 in the same 4 files, "+236 net non-test Rust production LOC" (PR body "What"). The rest of report #26 stands except as amended below.
A1 (supersedes #26 A1). Head is 3d868f84, not c588d610; the scale item changes to +2,778/-186 in 15 files (was +1,949/-106 in 11). New files in the diff vs #26: scripts/scheduling_sim/learning.py, learning_policy.py, workloads.py, tests/test_scheduling_learning_experiments.py, tests/test_scheduling_learning_policy.py, tests/test_scheduling_utility.py — i.e. the change is no longer "production + tests + docs", it also edits the mandatory simulator and its test suite. Line citations that moved: interpolation cost.rs:695-776 (sibling passthrough :702-712, decode floor :764-768, clamp :769-771, u128 interpolate :772-775); prefill_candidate_ns policy.rs:518-543; PrefillSlotPlan policy.rs:89-96, :508-515; prefill_catalog_for_terminal policy.rs:371-374; natural_fit_prefill_capacity_for_terminal policy.rs:409-434; add_prefill_candidate policy.rs:1422-1458; is_unmeasured_candidate policy.rs:545-548; continuation ladder policy.rs:1051-1121; resize_prefill age cap policy.rs:1838-1853; reconciled credit policy.rs:1393-1407; wait-clock carry policy.rs:500-505; service_rates single pass service.rs:297-311; prefill_step_requires_feedback scheduler.rs:1187-1190; resolve_prefill_kind_from widening scheduler.rs:901-907; terminal_prefill_window cache scheduler.rs:847-866.
A2 (supersedes #26 A2 — the service.rs finding narrows sharply). The token_rate == 0.0 rescan is GONE. service_rates now derives terminal_only once, in the same pass (service.rs:297-301: prefill_must_complete_terminally_from when has_active_age_priced_stream(), else prefill_requires_terminal_completion_from), and prices every capacity in prefill_catalog (:302-320, skipping only GraphKind::Prefill when terminal_only). So (i) Autobot's Round-2 blocker "service_rates misprices feasible non-terminal Prefill whenever any TerminalPrefill is measured" is fixed; (ii) there is no extra catalog scan. The reach item stands in reduced form: #661 still changes entropy-dual prefill service pricing under balanced because terminal_only can now be false where it used to be true (a request whose tail fits in max_terminal may be priced on a smaller non-terminal chunk instead of one TerminalPrefill). Not declared in the body.
A3 (supersedes #26 A4 — the simulator gate is now claimed run, and the simulator now models the rule, but only part of it). New simulator code: scripts/scheduling_sim/learning_policy.py:199-238 (_natural_fit_prefill_capacity, _interpolated_prefill_duration), selection at :276-333 (initial_discovery="interpolated", active_age_price, interpolated/interpolated_actions, best_scored, reason="interpolated_prefill_discovery"), metadata/score_kind :380-393, snapshot :783+; CLI choice learning.py:436; PolicyConfig validation learning_policy.py:80-81; tests tests/test_scheduling_learning_policy.py (3 new) and tests/test_scheduling_learning_experiments.py:761-778. Author reports learning.py --preset validate --reference ttl (64 held-out seeds, 15,872 runs) PASSED with 0/64 resets. Caveats a reviewer should carry: (a) the model still has one prefill family — model.py:23-39 Graph carries only prefill_capacity/decode_capacity/width, so there is no TERMINAL_PREFILL sibling, no natural-fit per kind, no checkpoint cut, no two-frame pipelining, no first_output_wait_ns carry and no reconciled cut credit: _interpolated_prefill_duration (learning_policy.py:208-238) interpolates purely on capacity and ignores work/start_position, and filters peers by prefill_capacity alone (:219-226), so "match the Helios interpolated prefill-discovery rule" (docs/scheduling-theory.md:572-573) is approximate. The 64-seed result therefore qualifies the interpolation rule only; the drain, wait-clock and reconciled-credit changes remain unvalidated by any simulator. (b) --preset validate takes policy parameters only from a --configs JSON and rejects CLI --initial-discovery (learning.py:472-485; asserted in tests/test_scheduling_learning_experiments.py:761-778), and no such config file is committed, so the reported run is not reproducible from the repo tree.
(Gate text: docs/design-review.md:195-208, esp. :202-204.)
A4 (supersedes #26 A5 and scratchpad #8 — the throughput claim/code contradiction is resolved in the description). The body now says throughput (decode_age_price = 0.0) pipelines across decode and resume and "drains only when a finishing terminal_cleanup stream is resident (terminal_age_price > 0.0)" (PR body "What"), which matches policy.rs:50-52 + scheduler.rs:996-1005, :1187-1190. Residual, not a blocker: the body's Result section offers "Opt-out: --scheduler-policy throughput", which understates what still applies under throughput — the widened deferred_prefill kind resolution (scheduler.rs:901-907) and the terminal-cleanup drain are policy-independent; and full opt-out requires terminal_age_price = 0, which no preset provides.
A5 (supersedes #26 A7 — test blindspot partly closed). The blindspot in continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7739-7821, still only comparing the Init continuation score) survives, but a companion test now guards the prefill branch: add_candidate_excludes_oversized_unmeasured_terminal_prefill_above_prefill_nat_fit (policy_tests.rs:8526-8613). New tests at this head: service_rates_prefers_faster_feasible_prefill_over_slower_measured_terminal_under_active_decoders (:8291), has_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches (:8421), interpolated_unmeasured_prefill_returns_discovery_even_when_refresh_or_acceptance_ready (:8615), first_output_wait_preserved_across_age_priced_non_terminal_prefill_chunks (:8734), deferred_terminal_prefill_at_checkpoint_cut_credits_reconciled_segment_wait (:8932), plus the GB10 storm test which now also asserts plan_requires_feedback on every Prefill step and no chunk > 8K (:7677-7712) and the rewritten deferred service-rate expectation (policy_tests.rs:5196-5224: 256/5 with an active decoder, 513/40 solo).
A6 (supersedes #26 A10 — the A/B numbers are now on the submitted tree). Body states the SM120 TP4 flare run A/B is on 3d868f84 / tree c1d6858b vs main 1fbcc3c9, balanced, 0 server errors, and the two additional fixes are described as "validated on 3d868f84". So "numbers predate the head" is no longer true. Still author-reported with no in-repo harness (workloads live in FujitsuPolycom/tokbench v0.4.0), and GB10 is still not re-measured on this head (body Limits). Note the headline numbers themselves are now mixed results, worth quoting as such: mixed-c32 stalls 538 -> 365 (-32.2%), median stalled time 11.39% -> 6.65% (-41.6%), but output -1.5% (1,273.0 -> 1,254.4), TTFT p50 +3.9% (1,423 -> 1,479 ms), SLO 91.1% -> 89.4%; long-context-mixed stalls 863 -> 503 (-41.7%), output +1.4%, SLO 94.8% -> 89.3%; cold-heavy-mix stalls 2,988 -> 2,732 (-8.6%), output +2.0%, TTFT p50 -10.9%, but SLO 89.0% -> 81.6% and client-side 45 s drain cutoffs 4 -> 7; cold-burst probe peak gap 277.4 -> 433.7 ms, mean max gap 229.3 -> 243.8 ms, makespan 2.813 -> 2.906 s (worse on all three). The old "215 -> 78" row and the post-#663 "286.0 ms/431 -> 203.1 ms/91" row in report #26 are superseded: the current control is 538 stalls at 1,277 tok/s on current main.
A7 (supersedes #26 A8 — the #660 contradiction no longer lines up). #661's current control is main 1fbcc3c9 (output ~1,277, >250 ms 538); #660's control row (1,072.8 tok/s, 215) came from a 5d53040e-era base. The two PRs are no longer reporting against the same baseline, so the "same control row, opposite direction" framing should be retired as unverifiable rather than sharpened; what remains is that neither has a head-to-head and #660 is still open.
A8 (new). Two related items appeared after report #26 and belong in the related-work map.
- #676 (open issue, Reederey87, 2026-12-02, labels area:scheduling/bug/performance): independent third-party reproduction of #661's problem on 2x DGX Spark GB10 / GLM-5.3-Flash-FP4 TP2,
balanced,prefill_chunk=4096:decode_overlapp99 ITL 1,430 ms / max 2,576 ms, attributed to 3.5K-4K prefill steps and two-frame nonterminal prefill stacking; a prototype decoder-aware cap (1024/512) reduces p99 ITL to 759/587 ms at a TTFT cost. Its comment (12:16) cross-references #661 and offers to run that benchmark against #661 on GB10. Consequence for #661: outside corroboration of the problem statement and a standing offer of the GB10 validation the body lists as missing. - #681 (open draft, same author, 2026-12-02): stacked on #661 ("Draft pending
#661"), and it carries served A/B rows on top of #661's tree —On #661(3d868f84-> tree38130855)mixed-c32stalls 365 -> 135 (-74.9%vs main's 538) and GB10Stackrows (mixed-c841.8% -> 38.0% stalled,agentic-codingC=8>1 sstalls 35 -> 12). Those are stack numbers, not #661 alone, but they are the closest thing to GB10 evidence for this branch and should be cited as such. #665 (scan-resistant prefix cache) is also referenced there, and #681 reports cleangit merge-treeagainst main, #660, #661, #665.
A9 (narrows #26 A3 / scratchpad #9 — docs). docs/scheduling-theory.md:93-96 now carries "(cold discovery of unmeasured pure-prefill shapes follows scheduling-runtime-design.md)" and :562-573 documents initial_discovery = "interpolated"; docs/scheduling-runtime-design.md:281-289, :359-364, :494-517, :647-652 document the wait-clock carry, the reconciled-segment credit, the age-priced exploration and the drain. Unamended contradictions remain at docs/scheduling-theory.md:74-76 ("Prefill has no externally visible per-chunk cadence") and :121-122 ("Two long prefills do not need smaller chunks merely to alternate"), i.e. the theory doc still asserts the behaviour the PR removes, while the parenthetical at :93-96 is scoped to discovery. helios/README.md:282-289 and :423-433 remain accurate.
A10 (new, code-level, low-medium severity). Hot-path and cache-surface growth introduced by this head: PrefillSlotPlan memoises (cut, terminal_only, nat_fit) per slot for the whole candidates() pass (policy.rs:89-96, :508-515), which is required for cost but means estimated_checkpoint_cut and prefill_requires_terminal_completion_for_age are snapshotted once per slot per planning pass; has_active_age_priced_stream() (O(slots)) is now called from service_rates (service.rs:297), preserves_first_output_wait (policy.rs:503) and prefill_step_requires_feedback (scheduler.rs:1188) on every planning/completion. terminal_prefill_window is cached at catalog updates (scheduler.rs:847-866) — the O(catalog) recompute is gone, good. None of this is unsafe or unbounded, but it makes the number of planner-side full-slot scans grow with the existing ones rather than stay flat; worth a benchmark note (the PR gives no planner timing).
A11 (conclusion, restated). Recommendation stays "do not merge as-is", but the blocker list shrinks from three to two: (i) the served A/B is author-reported with no in-repo harness and the two scenarios that show an SLO regression (cold-heavy-mix 89.0 -> 81.6%, drain cutoffs 4 -> 7) and the cold-burst probe (peak gap 277.4 -> 433.7 ms) need explaining before a default-on merge; (ii) the 64-seed gate is claimed passed for the interpolation rule only, the simulator still cannot model the drain / wait-clock / reconciled-credit mechanisms, and the validate config is not committed. Resolved since report #26: the false throughput claim, the service_rates mispricing (Autobot's Round-2 should-fix), the extra catalog scan, and the "numbers predate the head" objection. Still open and undeclared: the deferred_prefill kind widening (scheduler.rs:901-907, enshrined in verification/helios-lifecycle/check.py:527-535), the service_rates repricing (A2), and docs/scheduling-theory.md:74-76/:121-122.
Process facts at this head: labels are now area:scheduling, enhancement, performance, triage:validation (was triage:design-review); there are two Autobot reviews, both Changes Requested (2026-12-01 23:08 on 29f2b5b; 2026-12-02 02:49 on c588d61), and a third is auto-due ~90 min after the 13:49 push; no human review; the author states "GitHub Actions CI is triggered on 3d868f84" but no CI result is readable. Archive claims at this head: cargo check/test 3,590 passed, pytest 839/839, check.py 26/26 Rust mutations, kani not installed.
#29 [high] Research summary
Amendments to the PR #661 report (scratchpad entry #27, plus verification spot-checks in #28). The branch moved to head 3d868f84 (tree c1d6858b) atop main 1fbcc3c9, and the PR body was rewritten to answer the Round-2 Autobot review. Only the changes matter; the rest of the earlier report stands.
What changed in substance. Scale is now +2,778/−186 in 15 files (+376/−140 production Rust, "+236 net non-test"), and six of those files are new to the diff: scripts/scheduling_sim/{learning,learning_policy,workloads}.py and three test files — the PR now edits the mandatory Layer-2 simulator rather than only Rust and docs. The service.rs rescan I flagged is gone: service_rates derives terminal_only once inside the same pass (service.rs:297-311), which fixes Autobot's mispricing blocker and removes the extra catalog scan; what remains is an undeclared shift in entropy-dual prefill pricing. The false "throughput pipelines" claim is fixed in the body (decode_age_price = 0.0 pipelines; drains only with a terminal_cleanup stream, matching policy.rs:50-52 + scheduler.rs:1187-1190), though "Opt-out: --scheduler-policy throughput" still overstates because the deferred_prefill widening (scheduler.rs:901-907) and terminal-cleanup drain are policy-independent. The 64-seed gate is now claimed run and the simulator has an interpolated discovery mode (learning_policy.py:199-238, :276-333), but the model still has a single prefill family (model.py:23-39), so only the interpolation rule is validated — not the drain, wait-clock carry or reconciled cut credit — and --preset validate rejects CLI parameters in favour of a --configs file that is not committed (learning.py:472-485), so the run is not reproducible from the tree. Headline A/B numbers are now on the submitted head, and they are mixed: big stall reductions (mixed-c32 538→365, long-context-mixed 863→503) alongside SLO regressions (cold-heavy-mix 89.0%→81.6%, drain cutoffs 4→7) and a worse cold-burst probe. Docs narrowed to two contradicting sentences (scheduling-theory.md:74-76, :121-122).
New related items. #676 is an independent GB10 reproduction of the same failure with an offer to test #661 on that hardware; #681 (same author, draft, stacked on #661) carries the nearest GB10 evidence, with served rows on top of 3d868f84. The #660 "same control row, opposite direction" contrast should be retired — the baselines no longer match.
Checks and conclusion. Spot checks at the new head found no defects in the consolidated code: the interpolation memo key (work, scheduled_consumed) is reset per capacity and the interpolation function is pure in those arguments; is_unmeasured_candidate cannot classify a measured candidate as Discovery; the age-priced resize_prefill caps growth at the winning capacity while keeping the old behaviour otherwise. Recommendation stays "do not merge as-is", but the blockers drop from three to two: author-reported-only served A/B whose SLO and burst-probe rows regress, and a 64-seed gate that covers only the interpolation rule with an uncommitted validate config. Still undeclared: the deferred_prefill kind widening (now enshrined in verification/helios-lifecycle/check.py:527-535 (not opened)), the service_rates repricing, and the two theory-doc sentences. Two Autobot reviews, both Changes Requested and both on superseded heads; no human review; CI stated as triggered but no result readable.
#30 [high] Amendment skeleton: report #26 → 3d868f84 strike/keep/add map for the final report
For the report writer: pairs each claim in report #26 (the c588d610 amendment report) with its disposition at head 3d868f84. Use with #27 (full text and citations) and #28 (code spot checks).
STRIKE / REPLACE
- "#661 is +1,949/-106 in 11 files" → "+2,778/-186 in 15 files; production Rust +376/-140 in the same 4 files" (PR header, "Files changed (15)"; body "What": "+236 net non-test Rust production LOC").
- "the change touches production + tests + docs" → it also edits
scripts/scheduling_sim/{learning,learning_policy,workloads}.pyand three Python test files. - All c588d610 line citations → the 3d868f84 set in #27 A1 (cost.rs:695-776; policy.rs:518-543, 89-96, 371-374, 409-434, 1422-1458, 545-548, 1051-1121, 1838-1853, 1393-1407, 500-505; service.rs:297-311; scheduler.rs:847-866, 901-907, 1187-1190).
- #26 A2 "service.rs token_rate == 0.0 fallback reprices prefill and costs an extra catalog scan" → fallback removed; single-pass
terminal_only; the residual repricing claim survives, the scan cost does not. - #26 A5 "the body's throughput claim is false, now self-contradicted by its own test" → fixed in the body; only the "Opt-out: throughput" overstatement and the policy-independent
deferred_prefillwidening remain. - #26 A4 "64-seed validation still unrun; the simulator cannot model the changed mechanisms" → validation claimed run and the interpolation rule is now modelled; the simulator still cannot model the drain / wait-clock carry / reconciled credit, and the validate config is uncommitted.
- #26 A10 "the A/B numbers predate the head" → the body now states
3d868f84/c1d6858bvsmain1fbcc3c9; the objection becomes "author-reported, no in-repo harness, GB10 not re-measured, and several SLO/burst rows regress". - #26 A8 "#660 shares the control row and moves the stall metric the other way" → retire: #661's control is now ~1,277 tok/s / 538 stalls; #660's 1,072.8 / 215 came from a 5d53040e-era base.
- #26 A3 "theory doc admits divergence at :558-565 but contradicts at :74-76/:93-97" → narrow to
:74-76and:121-122;:93-96now carries the pointer toscheduling-runtime-design.md#duration-estimatesand:562-573documentsinterpolated. - #26 A7 "one new test can pass regardless of the guard it names" → still true for the
Init-score test (policy_tests.rs:7739-7821) but partly closed byadd_candidate_excludes_oversized_unmeasured_terminal_prefill_above_prefill_nat_fit(:8526-8613); test list replaced by #27 A5. - #26 "three live blockers" → two: served-A/B regressions without an in-repo harness; 64-seed gate scope plus uncommitted config.
KEEP UNCHANGED
- Default-ON under shipped
balanced(policy.rs:35-37), no flag, noPolicyConfigfield, no ABI change. - #661 narrows #645's two-frame prefill pipelining (lukealonso, merged the day before) and relaxes #538's natural-fit discovery (same author; the #538→#550 GB10 15.3 s regression).
- Lineage through #485/#538/#550 and the sibling PRs #660/#663 (merged)/#655/#681.
- Undeclared reach:
deferred_prefillkind widening (scheduler.rs:901-907), enshrined in verification/helios-lifecycle/check.py:527-535;service_ratesrepricing. - Charter #210 served-evidence rule satisfied in form; docs/design-review.md:195-208 Layer-2 gate partially met.
- No human review; both Autobot reviews target superseded heads (29f2b5b 2026-12-01 23:08; c588d610 2026-12-02 02:49); labels now
area:scheduling, enhancement, performance, triage:validation.
ADD
- #676 (open issue, 2026-12-02): independent GB10 reproduction, p99 ITL 1,430 ms, prototype decoder-aware cap; comment offers to run the benchmark against #661.
- #681 (open draft, same author): stacked on #661, served rows on top of 3d868f84 (
mixed-c32stalls 365→135; GB10Stack>1 sstalls 35→12) — stack numbers, not #661 alone. - Planner-side cost:
PrefillSlotPlanmemo snapshots(cut, terminal_only, nat_fit)per slot per pass;has_active_age_priced_stream()now called fromservice_rates,preserves_first_output_wait,prefill_step_requires_feedback;terminal_prefill_windowrecompute removed. No planner-timing evidence in the PR. - Author-reported archive numbers at this head: cargo check/test 3,590 passed, pytest 839/839, check.py 26/26 Rust mutations, kani not installed; "GitHub Actions CI is triggered on 3d868f84" with no readable result.
#7 [medium] Related work: #654 (closed, opt-in knob) is superseded by #663; its benchmark harness is not carried forward
#654 (closed 2026-12-01 22:02, logprobz, CONTRIBUTOR) "Add opt-in first-output age pricing and returning-agent benchmark", +4940/-126, 26 files. This is the opt-in (--scheduler-first-output-age-price, default 0.0) predecessor of yatesdr's zero-knob #663/#662, and #663's description says it "derives from and consolidates the returning-prompt investigation in #654 (co-authored with @logprobz)". Closed, not merged; logprobz's 2026-12-01 21:58 review on #663 recommends using #663 as the basis and splitting #654's benchmark/analyzer into a separate PR.
#654 shipped scripts/benchmark_ready_prefill.py (+557) and scripts/analyze_ready_prefill.py (+456), a returning-agent benchmark that no open PR currently carries into main. Relevant to #661 because #654's sigma/F machinery and its first_output_tests.rs are the measurement framework for the same balanced-policy stall problem.
Autobot found a formula monotonicity inversion in #654 (F > A makes slower graphs earn more credit per ms) — the exact failure mode #663's age_ms * frac formulation avoids, and the reason #661's ValueRate interpolation must also be monotone (its interpolated_prefill_duration clamps non-monotonic timings, see cost.rs).
Not a competitor to #661; both #661 and #654 target the same balanced stalls but from opposite sides (chunk sizing vs waiting-prompt priority).
#10 [medium] People: author's scheduler series, and lukealonso/yatesdr/logprobz/iein/original-el8 roles in these files
People (all verified from item metadata):
- Author of #661: FujitsuPolycom (GitHub association CONTRIBUTOR), Discord "Dooner". Last 180 days: 15 merged, 11 closed, 3 open PRs. Areas touched by merged work: docs (10), helios/src (10), heliopause/src (4), ignition/preparation (4), helios (3). Owns this scheduler-prefill series: #538 (merged, natural-fit discovery), #540 (merged, retain bounded timing-refresh credit), #582 (merged, avoid splitting prefill on zero-budget checkpoint anchors), #660 (open, budgeted interior anchor splits), #661 (this PR), plus unrelated #649 (RoCE ring opcodes), #665 (prefix cache eviction), #496, #586, #587.
- Maintainer dominant in these files: Luke Alonso / lukealonso — 235 commits to helios/src in 180 days, 390 to docs; wrote #645 (merged 2026-11-30) which introduced every mechanism #661 modifies, plus #644, #619, #656, #613, #620, #510. #661 is a follow-up on top of lukealonso's one-day-old merge.
- yatesdr (D-Rock, COLLABORATOR): 48 commits helios/src; owns complementary #663 and #655, plus the older #459/#389/#357/#354 checkpoint-pricing PRs.
- logprobz (CONTRIBUTOR): wrote the closed opt-in #654 and did the most detailed cross-comparison of #663 vs #654 (comment 2026-12-01 21:58 on #663), including simulator comparisons versus baseline
e85019b9. - iein (CONTRIBUTOR): found and fixed the #538-caused GB10 prefix-cache regression (#550); commented on #538.
- voipmonitor (COLLABORATOR, priority contributor): filed #485 (the closed issue #645 closes) with a prototype branch and measured 64k-128k chunk drift. Charter names voipmonitor, original-el8, lukealonso as priority contributors.
- original-el8 (COLLABORATOR): authored #426 (prefill service prices / deferred TerminalPrefill guard), #352 (closed) "Schedule terminal prefill before publishing continuation state" — the direct ancestor of the
resolve_prefill_kind_fromdeferred-prefill rule #661 changes. Also filed #69 (closed) "Absorb a short final message segment into the prefill chunk", whose review comment says to move the rule into "checkpoint_selection (or theTerminalPrefillwindow)". Sources: orientation packet "The author"/"People in these areas"; #538, #550, #540, #613, #645, #654, #663 item metadata.
#11 [medium] Community: #661 has no comments, no reviews, no CI, no reactions; only the author's own comment on #663 speaks to it
Community (#661 itself): zero comments, zero reviews, no CI checks on head 29f2b5bc, opened and last updated 2026-12-01, marked draft (pr_comments returned "No comments"). No reactions. So there is no direct community engagement yet. Indirect engagement that exists for #661:
- Comment by FujitsuPolycom on #663 (2026-12-01 22:09) reports the only published stacked A/B involving #661 (
#660 22cac916+#661 fdb10bb5+#663), including the observation that #661 is what removes the>250 msstall regression that solo #663 introduces, and "Clean composition with#660 + #661: Zero semantic production conflicts (1 adjacent-function insertion inpolicy.rsand 2 test-fixture adjustments inpolicy_tests.rs;424/424scheduler::tests pass)". So #661's composition claim is self-reported by its own author, not reviewed. - #662 (auto-bot duplicate of #663) and #663 both reference #661 in their descriptions; #663's description names #661 as addressing "the inverse side".
- logprobz's review of #663 uses baseline
e85019b9(#645's merge commit) and reports balanced-policy simulator trade-offs (max_output_gap_msrising onburst_eight,burst_eight_8k,sixteen_prefills) — the same metric family #661 claims to reduce, which is context for how #661's gains would have to be re-measured on top of #663 if both land. Neighbouring PRs' engagement, for comparison of review intensity: #550 needed 5 Autobot reviews; #660 1; #663 1 Autobot + 1 detailed community review (logprobz) + 1 GPU comment; #645 1 Autobot review with 2 blockers. #661 has had none.
#14 [medium] Process: draft, one commit atop 5d53040e, no CI, no review, no triage label, behind main a3c80e19
Process (verified):
- State: draft, base
main, head commit 29f2b5b ("helios/scheduler: explore smaller prefill chunks under active age-priced streams"), single squashed commit by FujitsuPolycom atop5d53040e(#628, "helios: gate offload Copy Engine batches during peer-copy graphs", yatesdr, merged 2026-12-01).search_history ref=pr/661shows exactly one PR commit plus the main history, so this is a one-commit branch. - Opened and last updated the same day (2026-12-01). Age: <1 day.
- CI: "no checks" on the head commit (orientation packet). No labels beyond area:scheduling, enhancement, performance — notably NO
triage:reviewortriage:design-reviewlabel, which every other scheduler PR in this batch carries (#660triage:review, #663triage:duplicate+triage:design-review, #655triage:review, #538triage:validation). - No Autobot review yet (unlike #538/#540/#645/#654/#655/#660/#663, all of which got one within ~30 min).
- Merge state: not reported as mergeable/conflicting; since it is stacked directly on
5d53040eandmainhas since advanced (5c0d9c67,a3c80e19are not ancestors of5d53040e… actually5d53040eis an ancestor ofa3c80e19per #663's baseline, so the branch is 2+ commits behinda3c80e19), a rebase will be needed. #663's own baseline isa3c80e19, and #660 rebased onto5d53040ewith "0 conflicts vsa3c80e19". - Description format: follows the charter's required four parts (Why / What / Result / Evidence) and ends with
Discord: Dooner(docs/design-review.md:163-169 requires this line). Discloses limits (SM120 A/B onfdb10bb5, unrunlearning_policy.py, gated templates,kani). - Size: 10 files, +1785/−95; prod ~+391/−79 in 4 scheduler files per the description; the bulk (+984) is policy_tests.rs and (+302) cost.rs test block.
Stacked/sequencing context: #660 (same author, open,
triage:review), #663 (yatesdr, open,triage:design-review), #655 (yatesdr, open, Ready To Merge per Autobot) all touch overlapping files; #655 and #660 have an acknowledged rebase conflict incheckpoints.rs; #661 and #663 share 6 files including scheduler.rs/policy.rs/service.rs.
#16 [medium] Related work: the rest of the dependency graph (#426, #479, #510, #613, #655, #69, #534, #600)
Related work, remaining items worth recording:
- #426 (merged, original-el8) "Rebase prefill service prices, fix checkpoint interval pricing, and guard deferred TerminalPrefill state" — the origin of the
resolve_prefill_kinddeferred-prefill guard #661's one-line change widens. 5 files in common with #661. - #352 (closed, original-el8) "Schedule terminal prefill before publishing continuation state" — ancestor of the same rule.
- #69 (closed, original-el8) "Absorb a short final message segment into the prefill chunk": an Autobot review comment there says the rule should live in
checkpoint_selection"(or theTerminalPrefillwindow)" — theterminal_prefill_windowconcept #661 now caches was already a review suggestion in this area. - #479 (merged, voipmonitor) "…and optional TerminalPrefill" — added
TERMINAL_PREFILL = 14as an optional graph operation, which is why terminal catalogs can be absent or a strict subset of prefill catalogs. That asymmetry (PREFILL 128..=16384 vs TERMINAL_PREFILL 256..=16384) is the first mechanism in #661's Why. - #619 (merged, lukealonso) "Unlock multi-token speculation and two-frame pipelining for host stops" and #645 (merged, lukealonso) — the two commits that made
GraphKind::Prefilla pipelining kind; #661 narrows that. - #644 (merged, lukealonso) "per-step speculative calibration and excluded-only waiting/delivery fairness" — same day, same
LaneValue/delivery units; 5 files in common. - #510 (merged, lukealonso) "Prevent unmeasured packed speculative shapes from zeroing measured round durations" — direct precedent for #661's cost.rs idea that an unmeasured shape may borrow a measured sibling/peer estimate, but for
Speculativerather thanPrefill. #661'sinterpolated_prefill_durationis the prefill analogue. 5 files in common. - #542 (closed, FujitsuPolycom) — 8 files in common; the author's earlier closed multi-purpose PR.
- #571 (open, malventano) force a wide round after persistent width-one selection; #334 (open, javieratomic) read Engram rows ahead of prefill — same file (
policy.rs) but unrelated topic. - #665 (open, same author) scan-resistant dual-turnover prefix cache eviction; #649 (open, same author) RoCE ring prefill proxy opcodes — same author, different areas.
- #534 (open) "Checkpoint captures deadlock on an unmeasured snapshot cost" and #600 (open) "TP2 EXL3 … miss prefix cache on immediate replay" — both cite #550 and are the live consequences of unmeasured-capacity pricing, the same hazard #661's interpolation touches.
- #613 (merged, lukealonso) established the
deferred_prefillinvariant and its TLA+ modelCheckpointReservation.tla+ theDeferredHasNoReadyCaptureinvariant; #661'sresolve_prefill_kind_fromchange is a tightening in that model's direction and its mutation test is in the samecheck.pyblock (#613 added("deferred prefill small cut bypass", …)which #661 edits). - #655 (open, yatesdr, labelled Ready To Merge by Autobot) changes
ActionCosts(measured_durationreplacingfresh_duration,Estimatescanning) in cost.rs and scheduler.rs — 4 files in common with #661, so a rebase is likely; #655 also changes whether aSnapshot/prefill cost is considered measured, which is exactly the inputinterpolated_prefill_durationreads fromself.entries.
#20 [medium] Process: state, CI, review, size, stack position, and sequencing risk
#661 process facts:
- State: draft (per the orientation packet and the PR body's framing). Base
main, head29f2b5b.search_history ref=pr/661shows exactly one PR commit ("helios/scheduler: explore smaller prefill chunks under active age-priced streams", FujitsuPolycom, 2026-12-01) on top of5d53040e— single squashed commit. - Age: opened and last updated 2026-12-01, i.e. under a day at case-file time.
- CI: no checks on the head commit.
- Review: none. No Autobot review, which every neighbouring scheduler PR got within ~30 minutes (#538, #540, #645, #654, #655, #660, #663).
- Labels: area:scheduling, enhancement, performance. Notably no
triage:reviewortriage:design-review, which #655/#660 (triage:review) and #663 (triage:design-review, plusduplicate) all carry — so it has not been triaged. - Size: 10 files, +1785/−95. Production is ~+391/−79 across 4 scheduler files (description says +312 net prod LOC); +984 is
policy_tests.rsand ~+302 ofcost.rsis the in-file test block, so the test:prod ratio is roughly 3:1. - Description format: follows the charter's required four parts (Why / What / Result / Evidence) and ends
Discord: Dooner, satisfying docs/design-review.md:163-169. It does disclose material limits (A/B onfdb10bb5,learning_policy.py/gated templates/kaniunrun). - Stack position / rebase risk: stacked directly on
5d53040e; main is ata3c80e19+. Shares files with open #655 (cost.rs, scheduler.rs, docs, README), #660 (policy_tests.rs, check.py, docs, README) and #663 (scheduler.rs, policy.rs, policy_tests.rs, service.rs, docs, tests). #600/#660 have an already-acknowledged rebase conflict with #655 incheckpoints.rs; #663's own comment reports "1 adjacent-function insertion inpolicy.rsand 2 test-fixture adjustments inpolicy_tests.rs" when stacked with #660+#661, and424/424scheduler::tests passing. - Checks the description says were run: 0
--releasewarnings across helios/flare/flare-cli/heliopause; cleanmerge-treevs5d53040eandmain; Rustheliosserver 1,275 andruntime-core,server1,786 (6 gated skipped),flare238,flare-cli239;pytest833;ruff==0.12.80 errors;check.py10/10 TLC, 8/8 Observed over 594,065 transitions, 12/12 aux;--mutations26/26 Rust, 13/13 TLA+, 1/1 bad-edge, 0 survivors. Declared unrun:learning_policy.py, gated chat templates,kani. - Verification-artifact note: the only
check.pychange in the diff is the mutation anchor at verification/helios-lifecycle/check.py:527-530, where the source stringif request.deferred_prefill && needs_terminal {becameif request.deferred_prefill {. The replacement string at :572-573 still saysreturn GraphKind::Prefill;for the non-matching kind, so the net effect is to make the previously-always-false&& needs_terminalconjunct unconditional. The mutation's failure message (:605) still reads "deferred prefill must schedule TerminalPrefill before capturing a boundary checkpoint", which is now a weaker description of what the mutated line does.
#23 [medium] Amendments addendum: helios/README.md and cost.rs docs at c588d610 already describe the new behaviour
ADDENDUM to entry #22 (PR #661 at c588d610).
A12. helios/README.md is now consistent with the code, unlike my report #21's implication that docs lagged wholesale:
- helios/README.md:285-287 states non-terminal
PREFILLshares the two-frame window only "without active age-priced streams (or checkpoint and completion barriers)" — matches scheduler.rs:1187-1190 + prefill_step_requires_feedback's remaining gates (checkpoint plans, prompt_logprobs, checkpoint_capture, prompt/limit endpoints, scheduler.rs:1191-1207). - helios/README.md:426-431 states an unmeasured candidate with no duration estimate ranks ahead of measured candidates, and that under active age-priced streams pure-prefill capacities up to the natural fit "instead compete by interpolated ValueRate while still draining on their first execution" — matches policy.rs:1465-1492 + plan_requires_feedback's
!self.costs.is_fresh(...)(scheduler.rs:1222) andplan.origin.is_probe()(:1223). So the residual documentation defect is confined to docs/scheduling-theory.md:74-76, :93-97, :119-120 (see A3 in entry #22), not README/runtime-design.
A13. Verified cost.rs surface at head (for citation accuracy): interpolated_prefill_duration cost.rs:695-786; sibling passthrough at :702-712; larger-peer requirement via let (c_hi, _, t_hi) = hi?; :774; decode floor fallback :775-778; non-monotonic clamp if t_hi <= t_lo { return Some(t_hi.max(1)); } :779-781; u128 interpolation :782-785. Returns None for GraphKind::ScoredPrefill (:705) and for every non-prefill kind (:706), and prefill_entry returns Some(None) when nanos == 0 (cost.rs:667-669), so interpolation only ever derives from measured entries — which is what makes the "GPU-measured only" claim hold.
A14. CI status: I cannot read CI directly; the only evidence is the PR Evidence section (local cargo check --release 0 warn across helios/flare/flare-cli/heliopause, test counts, pytest 835, ruff, check.py incl. --mutations 26/26 Rust) and the Autobot review noting no CI on 29f2b5b. State this as "no CI run is reported for c588d610; verification is author-claimed local archives" rather than "no CI".
#28 [medium] Verification spot-checks (3d868f84): last_interp memo, is_unmeasured_candidate, resize_prefill cap, learning CLI
Verification spot-checks done at head 3d868f84 after entry #27 was written; no defects found in the new consolidation code.
-
prefill_candidate_nsinterp memo is sound (policy.rs:518-543). The memo key is(work, request.scheduled_consumed)and it is reset per(kind, capacity)—add_prefill_candidatedeclareslast_interpinside the per-capacity call (policy.rs:1429) andcontinuation_candidatedeclares it inside thefollowing.is_prefill()branch (policy.rs:1092).ActionCosts::interpolated_prefill_duration(kind, capacity, work, start_position)(cost.rs:695-700) is a pure function of exactly those four values, so a hit can only be returned when all four agree. Allocation-free; no cross-capacity contamination. -
is_unmeasured_candidatecannot misclassify a measured candidate as Discovery (policy.rs:545-548). The new second clause iscosts.observation(candidate.cost_key()) … .is_none(). A candidate withduration_ns > 0can only come from an entry withnanos > 0(prefill_durationreturnsSome(0)whenprefill_entryisSome(None), i.e. nanos == 0 —cost.rs:650-652,:667-670; non-prefill/packed durations are the entry nanos directly), soobservationreturnsSome((nanos>0, Some(observed_at), _))and the clause is false. The only candidates newly classified Discovery are interpolated ones, which is the intent;commitalso re-derivesPlanOrigin::Discoveryfromobserved_at_ns.is_none()(scheduler.rs:2403-2407), so the tagged origin survives toTimingOrigin. -
resize_prefillage-priced cap confirmed atpolicy.rs:1838-1853:catalog = prefill_catalog_for_terminal(request.prefill_kind(), terminal_only || request.deferred_prefill),max_capacity = candidate.capacity.min(*catalog.last()?)only whenage_price > 0.0 && !terminal_only, and the chosen capacity is the smallest catalog entry>= work(:1850) — so an age-priced chunk can shrink but never grow past the winning candidate, while the non-age path keeps the old grow-to-max behaviour. -
scripts/scheduling_sim/learning.py:436is the only new CLI surface:--initial-discoverygained the"interpolated"choice; validation of the value lives inlearning_policy.py:80-81.