#1 [high] Change: PR #645 shape and what it touches
PR #645 (lukealonso, open, ready for review, head 05cccb6, base main, opened+updated 2026-11-30, CI passed, no reviews, no comments). Closes #485. 20 files, +1417/-127.
Files (from pr_files):
- helios/src/scheduler/cost.rs +497/-1 (new PrefillCostModel, PrefillPredictor, 6 strata, NNLS fit, prefill_duration/prefill_entry/prefill_predictor, ActionCosts::get and observe branch on prefill)
- helios/src/scheduler/policy.rs +380/-33 (coalescing_prefill_log_bonus, effective_prefill_catalog, prefill_work_from, candidate feedback flag, prefill-only candidate path in add_candidate, mixed curve fix)
- helios/src/scheduler/policy_tests.rs +218/-9
- helios/src/scheduler/checkpoints.rs +33/-27 (PrefillCatalogCost now holds PrefillPredictor; stride path needs constant_ns; cuts use prefill_cursor)
- helios/src/scheduler/service.rs +36/-23 (service_rates prefill rates via prefill_duration; mixed !prefill guard + powered_curve/forecast_tokens)
- helios/src/scheduler/utility.rs +3/-1 (LaneValue::prefill_finish; prefill() adds it once when first_output)
- helios/src/scheduler/learning.rs +1/-1 (optimistic_tokens uses forecast_tokens(powered_curve))
- helios/src/scheduler.rs +54/-5 (prefill_cursor, resolve_prefill_kind_from, prefill_requires_terminal_completion_from, prefill_work_from, prefill_step_requires_feedback; plan_requires_feedback widened with Prefill)
- helios/src/model.rs +1/-1 (ConsumedTokens|SnapshotConsumedTokens completion-input guard now includes GraphKind::Prefill)
- helios/src/execution/{transport.rs +2/-2, threaded.rs +1/-1, threaded/protocol.rs +1/-1, parallel.rs +1/-1} (non-barrier kinds widened to Decode|Speculative|Prefill)
- helios/src/execution/threaded/protocol_tests.rs +5/-0, helios/src/server/runtime/phase_tests.rs +8/-1
- docs/scheduling-runtime-design.md +39/-15, scripts/scheduling_sim/{utility.py +70/-2, workloads.py +4/-0}, tests/test_scheduling_utility.py +44/-0, verification/helios-lifecycle/check.py +19/-3
Citation: pr_diff, pr_files.
#2 [high] Why: closes #485 (voipmonitor prefill timing aliasing report)
#485 (voipmonitor, COLLABORATOR, open since 2026-11-23, labels area:scheduling/bug/performance/triage:design-review, updated 2026-11-30) reports flare_graph_launches_total{kind="prefill"} drifting up across consecutive 128k requests on DeepSeek-V4.1-Flash TP4 (18 -> 29 -> 31 prefill launches; 3942->4012 ms GPU) because ActionCosts keeps one 9-sample median per (kind,batch,tokens) regardless of KV history depth. Root cause named as cost.rs ReplayTimes.
- #485 includes a prototype branch https://github.com/voipmonitor/flare/tree/experiment/prefill-history-banded-costs (commit 95ba044, +252/-18, 338 scheduler tests pass) using 6 LOGARITHMIC KV bands ([0,16k),[16k,32k),[32k,64k),[64k,128k),[128k,256k),[256k,..)) and nearest-band slowdown scaling; measured +0.2%..+1.3% end-to-end on DS4.1 (128k chat 31 -> 24 launches, -52.3 ms GPU).
- #485 explicitly offers to convert to a PR or "adjust to a simpler affine/linear a + b * history model".
- PR #645 instead implements 3 fill/context buckets at 4096 and 32768 thresholds x 2 fill strata, 3-parameter relative-error-weighted NNLS (theta0 + theta1u + theta2u*start/4096) and a conservative u>u_max bound. So #645 closes #485 with a different (affine) design than the issue's banded prototype, and with NO live long-context benchmark reproducing #485's 64k-128k scenario (its only live measurement is a 46.5K prompt TTFT).
- #485 has zero comments/discussion; #645 is the only referrer.
#3 [high] Undeclared: new coalescing coefficient absent from documented PolicyConfig table and CLI
The PR adds PolicyConfig::coalescing_horizon_tokens (default 64.0, policy.rs:26,42; validated nonneg at policy.rs:225-230) — but the two places that enumerate PolicyConfig defaults to users were NOT updated:
- docs/scheduling-runtime-design.md:651-661 "Policy preferences" table lists 10 fields and stops at
adaptive_verification_alpha;coalescing_horizon_tokensis absent. The same doc was edited by this PR (added the bonus paragraph at docs:198-207), so the table sits a few hundred lines from the new text and is now incomplete. - helios/README.md:478-488 enumerates the same defaults ("output-token value of 64 ..., adaptive-verification exponent 1") and is untouched by this PR (files list has only docs/scheduling-runtime-design.md).
Related: there is no CLI flag and no server-config key for the new field. flare-cli/src/cli.rs:634-647 and 839-852 expose only --scheduler-policy, --scheduler-terminal-value, --scheduler-terminal-age-price, --scheduler-checkpoint-extra-work-fraction; helios/src/server/config.rs:305-330 parses scheduler_policy, scheduler_terminal_value, scheduler_terminal_age_price, scheduler_checkpoint_extra_work_fraction, mtp_adaptive_verification_alpha. So the new coefficient is reachable only through
configure_policy(in-process SDK, policy.rs:206) and cannot be disabled or tuned byflare runoperators — it is a new always-on default. Description claim "Updated docs/scheduling-runtime-design.md to specify completion-attributed coalescing..." is true; it does not say the policy table/README were left stale. Citations: policy.rs:26,42,206; docs/scheduling-runtime-design.md:198-207, 646-677; helios/README.md:478-488; helios/src/server/config.rs:305-330; flare-cli/src/cli.rs:634-647.
#4 [high] Cost model: checkpoint pricing stride fast path silently lost once fills are non-constant
checkpoints.rs's O(1) "stride" fast path now depends on the fitted predictor being constant: interval_prefill_ns builds stride only from entry.non_terminal?.constant_ns()? (checkpoints.rs:222-232, changed line 225 from entry.non_terminal_ns?). PrefillPredictor::constant_nanos is Some only when the NNLS fit ends with theta1 == theta2 == 0 AND u_max >= 0.75 (cost.rs, fit(): let constant_nanos = (best_theta[1] == 0.0 && best_theta[2] == 0.0 && u_max >= 0.75).then_some(...)).
Consequence: as soon as partial-fill samples (u <= 0.5) appear in any stratum, a prefill graph stops being "constant", the stride is None, and interval_prefill_ns falls back to the per-position loop that prices every catalog capacity at every chunk boundary (checkpoints.rs:270-338). Before this PR a prefill graph with any measured cost always qualified for the stride once all costs were known, so this is a checkpoint-pricing work regression path that the description does not mention (it says constant predictors "preserve checkpoints.rs's O(1) stride path and single-lookup budget", which is true only for the constant case).
The existing budget tests still hold only in regimes where the predictor stays constant (checkpoints.rs:1292-1312 and 2375-2378 assert ENTRY_LOOKUPS == 0 / STRIDE_RUNS behaviour), i.e. the tests do not cover the non-constant regime introduced here. ENTRY_LOOKUPS is incremented in cost.rs:675 (ActionCosts::entry), so any per-capacity predictor lookup in the walk counts against that budget.
Citations: helios/src/scheduler/checkpoints.rs:222-232, 270-338, 1292-1312, 2375-2378; helios/src/scheduler/cost.rs:675, PrefillCostModel::fit.
#5 [high] Change: two-frame nonterminal PREFILL pipelining sites, guards and reversed test
Two-frame prefill pipelining is implemented by widening three separate "non-barrier graph kind" lists from Decode | Speculative to Decode | Speculative | Prefill:
- scheduler gate: helios/src/scheduler.rs:1132-1143
plan_requires_feedback+ newprefill_step_requires_feedback(scheduler.rs:1109-1130) which bars pipelining when any lane has prompt_logprobs, an armed checkpoint_capture, or reaches prompt_tokens / prefill_limit(); plus any checkpoint CapturePlan with cut or reserve_guard (checkpoints.rs:86-90CapturePlan::requires_feedback). - eligibility: helios/src/scheduler/policy.rs:311-322
eligiblenow lets a pending>0 Prefill request be re-offered when !prompt_logprobs && checkpoint_capture.is_none() && scheduled_consumed < prefill_limit() && < prompt_tokens && pending < 2 && !grammar_constrained. - executor layers: helios/src/execution/transport.rs:968 and 1021, threaded.rs:874-876, threaded/protocol.rs:32-37 (
can_submit_pending), parallel.rs:262-264. - completion-input guard: helios/src/model.rs:350-354 adds GraphKind::Prefill to the ConsumedTokens|SnapshotConsumedTokens set so cores that commit cursors on prefill still drain.
Cursor plumbing:
RequestScheduler::prefill_cursor= max(scheduled_consumed, consumed_tokens) (scheduler.rs:854-856); new_fromvariants used by policy/service/checkpoints so a queued-but-not-completed chunk advances planning (scheduler.rs:858-944, checkpoints.rs:487-495, 681-700, policy.rs:741-760, service.rs:167-200). Test/doc reversal: policy_tests.rs renamedprefill_frames_drain_even_when_the_next_request_is_independenttononterminal_prefill_frames_pipeline_two_deep_and_terminal_chunks_drain(policy_tests.rs:1420-1480) — the old test asserted the opposite (a second prefill plan returns None after one commit); docs/scheduling-runtime-design.md:567-577 rewritten likewise. protocol_tests.rs:360-370 adds Prefill-pipelinable / TerminalPrefill-not asserts. Not changed (bound remains):can_submit/can_submit_pendingstill cap in-flight frames at <2 and serialize any frame with grammar == true (transport.rs:1028-1040, protocol.rs:32-37), and submissions.len() >= 2 still stops planning (policy.rs:1207, scheduler.rs:2342). Also relevant to #42/#43 history (final-prefill starvation behind a two-frame pipeline): theavailable_plangate that a feedback plan waits for an empty window is unchanged (policy.rs:1320-1327).
#6 [high] Change: PrefillCostModel math, plumbing and the altered estimate in an existing phase test
Cost model internals (helios/src/scheduler/cost.rs, +497 lines):
PrefillPredictor { capacity, constant_nanos, theta[3], u_min, u_max, t_at_umax };predict(work, start_position)computes u = work.clamp(1,cap)/cap, h = ustart/4096, returns theta0 + theta1u + theta2*h, rounded, min 1; applies upward boundt_at_umax * (u/u_max)only when u_max < 0.75 && (u_max - u_min) < 0.15 && u > u_max.PrefillBucket= 9-sample ring of (nanos, u, h) with median (mid-pair averaged, then u/h averaged).PrefillCostModel= capacity + 6 buckets (fill_bin = u>0.5, ctx_bin = <4096 / <32768 / else) + predictor;observe(nanos, work, start, fresh):if !fresh { strata reset }then bucket.observe, fit, store predictor, and return predict(capacity, 0) — i.e.Estimate::nanosbecomes the fitted full-chunk, zero-context estimate rather than the raw sample.fit(): up to 6 weighted points, normal equations with row [1/t, u/t, h/t], exact enumeration of all 7 non-empty support subsets (mask 1..8), reject non-finite/negative, pick lowest relative SSE with tie-break preferring fewer parameters; falls back toPrefillPredictor::constant(capacity, 1)when no usable points.- Plumbing:
ActionCosts::prefill_duration/_entry/_predictor(cost.rs:529-590);ActionCosts::getreroutes every single-lane prefill step to prefill_duration (cost.rs:679-691), so plan durations/expected-finish times for prefill now depend on work and start_position;observefeeds onlystep.lanes.first()(cost.rs:709-723) — a multi-lane prefill step would record one lane's (work, start). set_measured(test-only, cfg(test)) resets strata and seeds one full-fill sample (cost.rs:452-470).- Callers switched: policy.rs add_candidate/natural_fit/continuation_candidate/resize_prefill, service.rs service_rates, checkpoints.rs prefill_catalog_costs/interval_prefill_ns.
Test coverage added in cost.rs tests: 100 x 128-token tails at 1.51 s in a 3584 graph do not move the 7.81 s full estimate; single tail after TTL guarded >= 28x; ctx scaling 100/180/260 ms at start 0/16384/32768; flat graph yields a constant predictor (cost.rs tests module,
prefill_cost_model_prevents_tail_poisoning_and_tracks_fill_and_context). Behaviour change to an existing test: helios/src/server/runtime/phase_tests.rs:1308-1316 used to assertestimated_duration_ns == 600for a 13-token tail in a 64-capacity graph; it now asserts 195..=210, i.e. partial-fill estimates in production paths change materially (2.9x lower here).
#7 [high] Change: coalescing bonus formula, when it applies, and how it is credited
Coalescing bonus mechanics (policy.rs:440-620 coalescing_prefill_log_bonus, utility.rs LaneValue):
- Preconditions: horizon > 0; at least one active decoder (prompt consumed, 0 < generated < max_new_tokens, within max_sequence_tokens) and at least one prefiller (!prompt_logprobs, scheduled_consumed < prompt_tokens) with post-prefill budget > 1.
- For each added count 1..=prefiller_count it calls
best_decode(K+added)over measured decode batch durations or packed speculative shapes (or the speculative catalog when no packed shapes exist), and computes multiplier = ((K+m)/m) * (1 - R(K)/R(K+m)), then a steady-state token valueoutput_token_value + token_fairness/stream_tok_rate + delivery_fairness/(stream_deliv_rate*mean_out); keeps the max surplus. - Each prefiller gets log bonus of
surplus * horizonwhere horizon = min(coalescing_horizon_tokens, its post-prefill budget, minimum remaining decode budget of active decoders). lane_valuesfolds the bonus into the log-scale normalization (scale = max(..., coalesce_log)) and setsvalue.prefill_finish = exp(bonus - scale);LaneValue::prefill(consumed, first_output)now returns prefill_token*consumed + (output_token + prefill_finish)*first_output (utility.rs:88-95).- Credit happens through the existing "first_output" flag, which the PR repoints from
consumed_tokens + work == prompt_tokenstoscheduled_consumed + work == prompt_tokens(policy.rs:752, 804, 1227) — required because a pipelined chunk is planned before the previous one completes. - Python mirror: scripts/scheduling_sim/utility.py
COALESCING_HORIZON_TOKENS = 64.0, UtilityConfig field + validation,_coalesce_finishcomputed in prepare() fromlane.prefill >= remaining_prefill(i.e. the chunk that finishes prefilling), added inlane_value; model.pyexpected_outputimported. - New workloads burst_four/burst_eight/burst_four_low/burst_eight_low (workloads.py:50-53) are picked up by the existing parametrized suites tests/test_scheduling_sim.py:166-170 (2 mixed variants) and tests/test_scheduling_utility.py:239-251 (2 mixed x 3 rate histories), so they add workload coverage beyond the dedicated tests.
Rust test: policy_tests.rs:6489-6545
simultaneous_burst_coalesces_prefills_into_full_decode_batches(4x512 prompts, asserts coalescing removes all sub-batch decodes, >=120 full B=4 rounds, cheaper makespan, and that a negative coefficient is rejected). Python tests: tests/test_scheduling_utility.py:334-377, including a fixed max TTFT <= 528.0 ms assertion for burst_eight and three "bonus vanishes" cases (saturated batch, single-token budget, B=8 jump active).
#8 [high] Related work: #644 same-author same-day overlap on utility/service/LaneValue
#644 (lukealonso, open, same day 2026-11-30, +649/-230) touches 7 of the same files: docs/scheduling-runtime-design.md, helios/src/scheduler/{policy.rs, policy_tests.rs, service.rs, utility.rs}, scripts/scheduling_sim/utility.py, tests/test_scheduling_utility.py. It rewrites LaneValue (adds decode_within, changes finish), delivery accounting (delivered = duration_ms, maximum_rate = 1.0), and the waiting-age/continuation in utility.rs, service.rs, policy.rs. #645 also adds a field to LaneValue (prefill_finish) and edits service.rs's service_rates and policy.rs's candidate scoring. They are not stacked (neither mentions the other) and both write utility.rs/service.rs in overlapping regions, so whoever merges second must rebase. #644 also states its own live measurements on 4x DGX Spark TP4 while #645's live run is on SM120; both touch the same simulator (scripts/scheduling_sim/utility.py) with different coefficient sets.
#632 (original-el8, open, same day) touches policy_tests.rs and docs/scheduling-runtime-design.md:113-152 — different subsystem (rounds.rs calibration), additive; autobot noted "rebased over #620/#624, no conflicting open PR touching rounds.rs".
#542/#408/#410/#334 (execution files) and #621 (model.rs/scheduler.rs) share files with #645 but on different concerns.
Citations: related_items for 645; read_item 644, 632.
#9 [high] Related work: lineage of the three touched mechanisms (#619, #538/#550, #459/#426/#479/#582, #42/#43)
- #619 "Unlock multi-token speculation and two-frame pipelining for host stops" (lukealonso, merged 2026-11-29, one day before) is the direct predecessor: it already rewrote
plan_requires_feedbackand docs:567-577 for Decode|Speculative two-frame pipelining, and #645 extends the same predicate/paragraph to Prefill. #645's description does not cite #619, but the code pattern it widens (amatches!(kind, Decode | Speculative)list in scheduler.rs, policy.rs, transport.rs, threaded.rs, protocol.rs, parallel.rs) was last shaped by #619 and #613. - #538 (FujitsuPolycom, merged 2026-11-26) introduced
natural_fit_prefill_capacityand restricted cold unmeasured prefill discovery; #645 builds on it (policy.rs:963-968, 1265-1272) and fixes the catalog it passes viaeffective_prefill_catalog. #538's follow-up problem (smaller capacities staying unmeasured → checkpoint pricing treated them as unknown) was fixed by #550 "Restore prefix checkpoints on prefill catalogs without terminal prefill" — the sameinterval_prefill_nscode #645 rewrites for predictors, so #645's non-constant-stride change (see separate note) lands directly on that history. - #459 (yatesdr, merged 2026-11-22) "Price checkpoint candidates without walking every prefill chunk" created the
stride/STRIDE_RUNS/ENTRY_LOOKUPSO(1) budget in checkpoints.rs that #645 now conditions onconstant_ns(). - #426 (original-el8, merged) "Rebase prefill service prices, fix checkpoint interval pricing, and guard deferred TerminalPrefill state"; #479 (merged) optional TerminalPrefill; #582 (merged) zero-budget checkpoint anchors — all in the same functions.
- #42 (closed issue, 2026-10-23→closed 2026-11-10) "Final prefill can starve behind a two-frame ordinary-decode pipeline" and its PR #43 established the rule that a feedback-requiring final prefill waits for an empty window (
available_plan, policy.rs:1320-1327). #645 keeps that rule while making non-terminal chunks non-feedback; theprefill_step_requires_feedbackpredicate (scheduler.rs:1109-1130) is what preserves the #42/#43 protection. Citations: read_item 619, 538, 42; related_items 645; search_history cost.rs/policy history.
#12 [high] Project fit: charter evidence rule (#210) vs simulator-only A/B; magic defaults vs the "no magic defaults" rule
Charter (read_charter) statements relevant to #645, as facts:
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)." — #645's only A/B against baseline evidence is the Python simulator (scripts/scheduling_sim) with a synthetic catalog; its live-GPU numbers (46,509-token prompt TTFT 2655 ms; B=4 307.8 tok/s; B=8 363.4 tok/s) are single-arm, no
maincontrol, and it explicitly defers the SM121 A/B to "expected but unmeasured". The prefiller cost-model fix (#485) likewise has no live long-context before/after, although #485 itself supplied DS4.1 TP4 A/B tables. - "Keep the runtime small and model-agnostic ... shouldn't accumulate per-model branches" — the change is model-agnostic (no model names in code; the only model references are in tests/docs prose like "Kimi K3.1 #485 scenario" in a cost.rs test comment).
- "No per-model special cases or flags" — one new
PolicyConfigfield (coalescing_horizon_tokens), a coefficient not a flag, with a nonzero default (see separate note: undocumented in the policy table/README and unreachable from CLI/server config). - "Be explicit and pin everything. No magic defaults" — the coalescing horizon 64.0, the 4096 token ctx scale (
PREFILL_CTX_SCALE), the 0.75/0.15 narrow-regime thresholds, and the 6-stratum layout are magic constants with rationale in docs but no configuration; the docs table of defaults is incomplete. - "PR descriptions: expect four parts (why, what changed, claimed result, evidence)" — satisfied; the description is unusually complete, including an explicit "Expected but unmeasured" and "Unrun checks and limitations" section.
- Docs are part of the deliverable: docs/scheduling-runtime-design.md was updated in three places (bonus paragraph 198-207, stratified estimator 400-424, two-frame rule 567-577). Also: docs/scheduling-runtime-design.md:646-677 is the canonical PolicyConfig table and it was not updated (see entry 3).
#13 [high] Claims: which numbers have a baseline, which are simulator-only, which are not reproducible from the tree
Claims and what backs them:
- "burst_eight: 923.4 -> 1057.9 tok/s (+14.6%), max TTFT 920.0 -> 528.0 ms (-42.6%), 32/32 full B=8 rounds" — backed only by the Python simulator on the synthetic
workloads.catalog()(scripts/scheduling_sim/workloads.py:9-22: prefill 2+p/64 ms, decode singleton 15/17.3/30 ms + 2*(batch-1)) withrate_history="service". Enforced as a test: tests/test_scheduling_utility.py:334-345 asserts max TTFT <= 528.0 exactly and every decode batch == 8. No Rust or live-GPU counterpart; the Rust burst test (policy_tests.rs:6489-6545) uses hand-set decode costs 27/30/37/48.5 ms for B=1/2/4/8 and only asserts "no sub-batch decode, >=120 full B=4 rounds, lower makespan". - "8 x 8192 multi-chunk burst: 737.2 -> 831.2 tok/s (+12.8%), TTFT 1492 -> 1056 ms" — no workload in scripts/scheduling_sim/workloads.py is 8192 tokens (only 4096 bursts were added); the 8x8192 numbers are not reproducible from a checked-in workload, so they rest on an ad-hoc run.
- "#485 fixed: 100 consecutive 128-token tails (1.51 s) in a 3,584 graph neither evict nor undercut the 7.81 s full-chunk estimate over 1.76 s at 4,096" — fully backed by unit tests with those exact numbers (cost.rs tests, policy_tests.rs:6547-6581
short_prefill_tails_do_not_poison_full_chunk_graph_selection), but the numbers are inputs to the test, not measurements from a GPU; the 3,584/7.81 s vs 4,096/1.76 s figures are borrowed from #485's narrative. - "46,509-token prompt, 12 consecutive nonterminal Prefill chunks over TP2, 2655.0 ms TTFT (~17,518 tok/s), clean SIGTERM rc=0" — the only live evidence that two-frame nonterminal prefill pipelining works end to end; single arm, no before/after, no metric that isolates the pipelining gain from prefill throughput.
- Live bursts 307.8 tok/s (B=4, 1121.2 ms max TTFT) / 363.4 (B=8, 2056.1 ms) — no baseline; on an SM120 host while the scenario that motivated the change (Nemotron-3.5-Super-VL on 2-Spark SM121) is declared unmeasured.
- Test suites: eos 2, selene 548, selene-manager 188, helios 1742 passed/46 ignored (one engram test needed --test-threads=4), flare/flare-cli all passed, lifecycle check with --mutations exit 0 over 8 TLA+ models, pytest 644 passed. Unrun: 6 chat-template tests (prepare_templates.py HTTP 403 on gated repo meta-models/Muse-Spark-Open-816B-A42B-NVFP4 — infra, unrelated to the diff), 64-seed learning validate sweep, live SM121 A/B. CI on head: passed (orientation packet). Citation: description; tests/test_scheduling_utility.py:334-345; policy_tests.rs:6489-6581; cost.rs tests; workloads.py:9-22,50-53.
#14 [high] Change, reach and process: mixed/prefill guard details, continuation branch, harness sync, process facts
(1) Mixed-graph fixes: learning::optimistic_tokens now forecast_tokens(&self.powered_curve(request, true), width) (learning.rs:11-13) instead of summing speculative_curve, so it now honours adaptive_verification_alpha. Mixed decode rate/continuation paths gained a !prefill guard plus powered_curve/forecast_tokens (service.rs:232-260; policy.rs mixed loop ~791-806), and unmeasured prefill discovery switched to effective_prefill_catalog (policy.rs:341-352, used at 741-745, 966, 1270). Tests: policy_tests.rs:6583-6635 unmeasured_terminal_prefill_discovery_uses_terminal_catalog_and_mixed_respects_alpha.
(2) Undeclared behaviour change in the mixed branch: else if r.generated_tokens > 0 became else if r.consumed_tokens >= r.prompt_tokens as u64 && r.generated_tokens > 0 (policy.rs:812-820 region) — prefilling lanes that already hold generated tokens no longer take the mixed decode branch. Not mentioned in the description.
(3) continuation_candidate got a dedicated prefill branch (policy.rs:932-1010): per slot it calls prefill_entry(following, width) and predict(work, scheduled_consumed), treats following == TerminalPrefill as matching a promoted Prefill, and consults effective_prefill_catalog for the natural-fit filter. In add_candidate a prefill winner is now selected per capacity by ValueRate over each slot's predicted cost (policy.rs:1245-1315), and feedback is left optimistic (!matches!(kind, Decode|Speculative|Prefill)) with a comment that materialize recomputes the authoritative plan_requires_feedback (policy.rs:1288-1290, 1702-1711, 1797).
(4) verification/helios-lifecycle/check.py:544-610 embeds verbatim source text of prefill_requires_terminal_completion/_from for the Rust↔TLA trace harness; that is why the verification dir is touched, and any later edit to the function must be mirrored there.
(5) Reach: no Protobuf/core ABI change (description; file list has no .proto/ignition change). Because ActionCosts::get re-routes every single-lane prefill step through prefill_duration, each planned prefill's duration and expected_finish_ns now depends on live work + start_position, which feeds queue windowing (window_remaining, policy.rs:423-438) — so both pipelining depth and admission timing move, for every prefill-capable core, with no flag. Multi-lane prefill observations record only lane 0 (cost.rs:709-723).
(6) Process: open, "ready for review", 0 reviews, 0 comments, no labels, opened and last updated the same day 2026-11-30, CI passed on head 05cccb6, a single commit 05cccb65 (no review-driven fixups yet).
(7) Angle with nothing found: Community — no reactions, no reviews, no discussion, and no third-party engagement of any kind on #645.
#10 [medium] People: author standing, file ownership, and zero engagement
lukealonso (COLLABORATOR, listed as a priority contributor in the charter: "Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight"): 26 merged PRs in the last 180 days, 2 open (#644, #643) plus #645; 229 of the commits on helios/src in the last 180 days and 384 on docs/ are theirs, i.e. they are the dominant author of exactly the scheduler/policy/cost files this PR rewrites (also authored #613, #619, #620, #626, #510, #608, #614). Cost.rs history is nearly all lukealonso (b9ad16b7, 18cb0efc, 8c117854, d796..., d7938c98, fd6c0f3b, 9a054b49) with yatesdr (#459) and Martin Vit (#555) interspersed. Other people active in these areas: Martin Vit (52 commits in helios/src), yatesdr/47, voipmonitor (issue #485 author, prototype branch), original-el8 (#426, #479, #632), FujitsuPolycom (#538, #542, #582), javieratomic (#334), jcartu (#621). Engagement so far on #645: none — no comments, no reviews, no labels, zero discussion. (Compare #619, #538, #632: each drew an autobot case-file comment and an autobot "Changes Requested" review within ~30-90 minutes with blockers about missing live A/B evidence.) Contact: "Discord: lukealonso" in the description.
#11 [medium] Recent activity: builds on a dense 10-day merge run in the same files (#510-#626)
Recent commits in the touched areas (up to head 05cccb6, 2026-11-30):
- Same-day predecessor merge: 0a8c20f4 "Allow speculative reasoning for grammar-constrained requests (#626)" (2026-11-29), 6cb7e3b7 "#619 ... two-frame pipelining for host stops" (2026-11-29), c146d7be "#620 Remove copy drafts and history drafts" (2026-11-29), 59adc480 "#540 Retain bounded timing-refresh and acceptance credit across idle" (2026-11-29), c3489b23 "#582 avoid splitting prefill on zero-budget checkpoint anchors" (2026-11-29), 9a054b49 "#608 restore catalog validation" (2026-11-29), fd6c0f3b "#510 Preserve positive measured packed round durations" (2026-11-24), c9693765 "#555 intermediate batch capacities" (2026-11-27), 6b586398 "#459 Price checkpoint candidates..." (2026-11-22).
- This PR is a single commit 05cccb65 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining" (no fixup commits), so no review-driven history yet.
- The change builds on all of the above rather than reversing them, with two exceptions worth flagging: it reverses the behaviour asserted by
prefill_frames_drain_even_when_the_next_request_is_independent(renamed), and it changes the meaning ofEstimate::nanosfor prefill keys (now a fitted full-fill/zero-context value, not the last median), which #540's staleness/refresh logic reads (costs.is_fresh,costs.stale_keys, refresh ordering) — the freshness semantics are unchanged but the number being refreshed differs. - verification/helios-lifecycle/check.py contains copied source text of scheduler functions (check.py:544-610 now mirrors
prefill_requires_terminal_completion_from), so any further edit to that function must be mirrored there. Citations: search_history cost.rs; pr_diff; check.py lines.