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