#1 [high] Change: what PR #663 does (verified from diff)
PR #663, head a5c3697, base main (a3c80e19), 11 files +511/-40. Open, ready for review, label area:scheduling/enhancement/performance, no reviews, CI passed.
Production Rust changes (verified in diff):
helios/src/scheduler/policy.rs:59addsRequestAccounting::first_output_wait_ns;credit()gains apreserve_first_output_wait: boolparam and only advances the clock when it is false (policy.rs:71-84).RequestScheduler::set_first_output_wait(handle, wait_ns)(policy.rs ~267-278) validateswait_ns <= now_nsandlast_use == Fence(0)(must precede admission/dispatch), storesmax(wait_ns, arrival_ns).initialize_accounting/new request init setsfirst_output_wait_ns = now_ns(policy.rs ~307).- New
RequestScheduler::fits_single_prefill_from(request, start)(policy.rs ~440-465): true iffprefill_limit() == prompt_tokens,start < prompt_tokens, and some catalog capacity covers exactly the remaining work and resolves to a measured graph kind (respecting prompt_logprobs → scored catalog and terminal-only requirement). policy.rs::lane_valuesnow callsdelivery_references_and_decode_batchand computesLaneValue::first_output_value = decode_age_price * incumbent_decode_batch_ms * age_msfor non-terminal prompts (consumed_tokens < prompt_tokens,max_new_tokens > 0,decode_age_price > 0,incumbent_decode_batch_ms > 0).age_msmeasured frommax(expected_finish_ns of in-flight prefill submissions containing the request)elsefirst_output_wait_ns. Waiting prompt is NOT added to theage_pricesum (verified:age_price += value.age_priceonly).utility.rs:LaneValue::first_output_valuefield; newprefill_within(consumed, initial_prefill, first_output)=prefill_token*consumed + output_token*first_output + first_output_value * frac,frac=1.0when finishing, elsemin(consumed/initial_prefill, 1); oldprefill()kept#[cfg(test)]only.service.rs:delivery_referencessplit intodelivery_references_and_decode_batchreturning([Option<DeliveryReference>; N], f64); second value =b_served^2 * per_delivery_msfor the fastest Decode/Speculative per-delivery round =b_served * T_decstream-ms; 0.0 if no finite candidate.scheduler.rs:2674-2700:preserve_first_output_waitcomputed per prefill lane: kind.is_prefill(), record not terminal/finished, prefill>0, output==0,!request.deferred_prefill,consumed_tokens < prompt_tokens,checkpoint_capturerole==Anchor && endpoint==record.consumed_tokens, andfits_single_prefill_from(request, request.consumed_tokens).scheduler.rs:348: newLiveRequest::initial_prefill_tokens()=prompt_tokens - admission_reused_tokensmax 1 (also replaces an inline duplicate at policy.rs ~523).helios/src/server/runtime.rs:Carried::last_output_ns(Option) new field, set fromlive.accounting().last_output_ns(fallback to carried value) at park time (~2453-2500), and on readmissionset_first_output_wait(handle, last_output_ns)(~1572-1578).scripts/scheduling_sim/utility.py: mirrors formula via_first_output_valuedict,incumbent_decode_batch_ms = per_delivery_ms * served^2from the existingreferencedecode selection.- Tests: policy_tests.rs +214 (4 new tests), runtime/phase_tests.rs +1 (
last_output_ns: None), tests/test_scheduling_utility.py +52/-15. - Docs: docs/scheduling-runtime-design.md +16, docs/scheduling-utility.md +33.
Description claims ~105 net production Rust lines, 0 new CLI/config flags, 0 new graph kinds, 0 protobuf/ABI changes — all consistent with the diff. No new config knob exists (confirmed: no CLI/src/cli.rs change; PolicyConfig untouched except reuse of decode_age_price).
#2 [high] Related work: PR cluster #654/#655/#660/#661/#662 vs #663
- #662 (closed,draft, flare-autobot, 2026-12-01 19:27→19:40, +374/-16, 7 files) is the SAME change as #663, opened as a draft prototype under account
flare-autobot; its only comment says "Closing duplicate draft opened under the wrong account; reopening under yatesdr." Cites #654, #660, #661. #663 is therefore the live successor of #662 and carries the simulator+TLA+GPU evidence that #662 lacked (comment 7). - #654 (open, logprobz FIRST_TIME_CONTRIBUTOR, +4940/-126, 26 files) is competing/overlapping work on the same problem: opt-in first-output age pricing with a NEW CLI knob
--scheduler-first-output-age-price(default 0.0) and a much bigger formulation (first_output_age_price * sigma * (A+T) * T/(T+F)), plus ~1.8k lines of benchmark/analyzer scripts. It touches the same files: helios/src/scheduler/{policy,service,utility}.rs, helios/src/server/runtime.rs, docs/scheduling-utility.md, docs/scheduling-runtime-design.md, scripts/scheduling_sim/utility.py, tests/test_scheduling_utility.py. #663 notes explicitly it is knob-free "unlike opt-in pricing in PR #654" (see #662/#663 body).- #654's Autobot review (2026-12-01 12:11) asserts it "inverts a stated selector-policy invariant" at docs/scheduling-theory.md:850 ("First-token waiting has no independent age penalty"). Relevant to #663 because #663 also grants first-output waiting credit and does NOT edit docs/scheduling-theory.md — worth checking whether that invariant line still exists at PR head and whether #663 violates it silently.
- #654 Autobot review also flags 6/42 fixed-work GPU gates failing with background p95/p99 gaps up: exactly the trade-off shape #663 discloses at K=16 (p99 368→463 ms).
- #654's review defects on formula shape (monotonicity inversion F>A, nonzero credit at A=0) are specific to its
(A+T)numerator; #663 avoids this by using pureage_ms(its point 3 "Chunk-size neutral ... uses pure waiting age age_ms (not age_ms + horizon_ms)").
- #660 (open, FujitsuPolycom, +740/-127) budgets interior conversation-anchor splits; #663 lists it as complementary and twice refers to it. #660's Autobot review calls #660 "complementary to #663". #660's review also notes conflict with open #655 in checkpoints.rs.
- #661 (open,draft, FujitsuPolycom, +1274/-87, 0 discussion) explores smaller prefill chunks under active age-priced streams; #663 lists it as complementary ("this change addresses the inverse side").
- #655 (open, yatesdr, "Ready To Merge" per bot 17:30) touches helios/src/scheduler.rs, docs/scheduling-runtime-design.md, helios/src/scheduler/cost.rs/checkpoints.rs. Overlaps #663 in scheduler.rs (snapshot_discovery vs preserve_first_output_wait, both in complete_inner region ~scheduler.rs:2690) and in docs/scheduling-runtime-design.md — likely small rebase conflict for whichever lands second. All three sibling PRs (#655, #660, #661) are by the same two people creating a cluster of simultaneous scheduler PRs on 2026-12-01.
#3 [high] Project fit: contradicts docs/scheduling-theory.md:850 and changes the DEFAULT balanced policy
HIGH: docs/scheduling-theory.md:850-853 still states, at PR head (unmodified by #663): "First-token waiting has no independent age penalty: prompt work competes by its useful progress and token-service price." #663 adds exactly such a penalty (scaled by decode_age_price) to the default balanced selector, documented only in docs/scheduling-utility.md:287-318 and docs/scheduling-runtime-design.md:264-282. The PR does not touch docs/scheduling-theory.md (verified: not in the 11 changed files; the diff only edits scheduling-utility.md and scheduling-runtime-design.md).
- docs/scheduling-theory.md's own last-modified history: 59adc480 (#540), 70b01b59, bce032c0, 832c4f15, 18cb0efc, b9ad16b7 — i.e. it is a maintained spec, not stale-by-abandonment.
- #654's Autobot review (2026-12-01 12:11) called inverting this same sentence a blocker requiring maintainer sign-off ("This PR inverts the explicit policy statement in docs/scheduling-theory.md:850 ... landing a disabled-by-default switch that fails its own fixed-work gates requires either fixing/qualifying it first or an explicit maintainer decision"). #663 has no CLI switch at all and changes the default policy, so it is a stronger default-behavior change than #654 but has not touched or reconciled that doc line.
HIGH: Unlike #654 (whose knob defaults to 0.0), #663 is NOT opt-in:
PolicyConfig::default().decode_age_price = 0.1(helios/src/scheduler/policy.rs:35) is the shipped default forflare run --scheduler-policy balanced, which docs/cli-design.md:683 states is "the default". So every default-policy serving user gets this scheduling change with zero configuration. Only--scheduler-policy throughput(policy.rs:50-52, decode_age_price=0.0) is inert. MEDIUM: helios/README.md scheduling prose (README:356-380 selection ranking, :478-489 PolicyConfig defaults) is not updated by #663 and still describes selection as ranking "by expected useful value per estimated graph duration, less a duration-proportional waiting cost for requests that are decoding or awaiting terminal retirement" — nothing about first-output waiting credit. #660's Autobot review treated exactly this kind of README/doc desync as a should-fix item, so the same standard applies here. MEDIUM: docs/scheduling-oracle.md:69-74 defines an explicit experimentalprefill_wait_price(c_first) / integrated-in-prefill metricF, "All prices are explicit experimental inputs, not production defaults", and the oracle CLI defaults--prefill-wait-priceto zero (oracle.md:206-207). #663 introduces a production first-output waiting price in the default policy while leaving the oracle reference untouched and unevaluated against it.
#4 [high] Claims vs evidence: simulator mirror is a simplification, anchor/readmission paths are Rust-only
Rust side (verified):
- Credit: policy.rs:729-752, only for
consumed_tokens < prompt_tokens && max_new_tokens > 0 && decode_age_price > 0 && incumbent_decode_batch_ms > 0; age from max(expected_finish_ns of in-flight submissions containing the request as a prefill lane) elseaccounting.first_output_wait_ns. - Clock: policy.rs:59 field; reset in
credit()unless preserved (policy.rs:80-85); initialized to arrival (policy.rs:267, :310);set_first_output_waitclampsmax(wait_ns, arrival_ns)(policy.rs:279). - Preserve condition: scheduler.rs:2681-2702 (requires Anchor role + endpoint==consumed, !deferred_prefill, output==0, prompt unfinished, and
fits_single_prefill_from). - Snapshot/Init/Restore/Vision phases never call
credit()(scheduler.rs:2707-2741continuebefore the credit call at :2793), so clock preservation across Snapshot is automatic rather than explicit. b_served*T_dec: service.rs:168-182,best_decode.1^2 * per_delivery_msfrom the per-slot fastest Decode/Speculative/Mixed per-delivery cost; 0.0 if none finite.frac: utility.rs:98-110 —1.0on finishing (first_output), elsemin(consumed / max(initial_prefill, consumed), 1).
Python simulator (scripts/scheduling_sim/utility.py:158-162, 251-259, 266-270) — a simplification, not a mirror:
age_ms = now_ms - view.last_service_ms; no equivalent offirst_output_wait_ns, no anchor-cut preservation, no projection across in-flight prefill submission, no readmission/last-output clamp.last_service_msis updated after every committed action (simulator.py:80), matching Rust's reset-on-progress but not the preservation rules.- Gates on
view.remaining_prefill > 0 and view.output_budget > 0(≈ Rust's two conditions) andage_ms > 0(extra clamp Rust does not have; Rust would compute age 0 anyway). - Multiplies by
view.weight(utility.py:257); the Rust lane value has no weight factor — harmless only because supplied workloads use weight 1 (scheduling-oracle.md:44-45 "Supplied workloads use weight one"). - Denominator differs: Python
_initial_prefill[name] = max(stored, view.remaining_prefill)andfrac = prefill / max(initial_prefill, prefill)vs Rustprompt_tokens - admission_reused_tokens. - Scripts contain NO checkpoint/anchor modeling at all (grep for "checkpoint|snapshot" in scripts/scheduling_sim returns only unrelated hits), so the anchor-cut wait preservation and readmission clamp — two of the four numbered design points and the whole double-stall motivation — are validated only by Rust unit tests, never by the simulator. The PR's simulator claims (21/21 trace identity at age 0; improvements at 0.1) therefore cover the credit term but not the anchor/readmission behavior.
#5 [high] People: yatesdr owns the checkpoint/prefill-sizing selector code; Luke Alonso owns the surrounding fairness work
Yates Drury / yatesdr (GitHub association COLLABORATOR, Discord "D-Rock"):
- 81 merged, 11 closed, 4 open in the last 180 days. Merged PR areas: helios/src (35), docs (34), selene/src (32), selene-manager/src (25), selene-manager/tests (20). Commit count on default branch in last 180 days: helios/src 48, docs 48 (3rd/2nd behind Luke Alonso and Martin Vit — orientation packet).
- Prior scheduler work of his in the same file, all merged: #354 (Estimate checkpoint work without quoting snapshot storage, 2026-11-18), #357 (Size ordinary prefill graphs to quoted checkpoint work, 2026-11-18), #389 (Size mixed prefill rows to quoted checkpoint work, 2026-11-19), #459 (Price checkpoint candidates without walking every prefill chunk, 2026-11-22). So he owns the checkpoint/prefill-sizing side of the selector, which is exactly the
fits_single_prefill_from/ anchor-cut area #663 touches. - Same-day sibling #655 (open, "Ready To Merge" per bot at 17:30) is also his, touching helios/src/scheduler.rs + docs/scheduling-runtime-design.md + cost.rs/checkpoints.rs. #663 opened ~19:2x after that review.
- #663 is his own PR (not flare-autobot); the identical draft #662 was opened 19:27 by flare-autobot and closed 19:40 with "Closing duplicate draft opened under the wrong account; reopening under yatesdr" — evidence the automated account is sometimes used for his work.
Other people:
- Luke Alonso (lukealonso, COLLABORATOR, priority contributor per charter) is the dominant author in these areas (helios/src 235 commits, docs 390, tests 434 in 180 days) and merged #644/#645/#656 in the two days before this PR, including #644 which established the excluded-only
DeliveryReference { excluded_wait_ms, served_share }shape that #663 extends and which addeddecode_within(preceding_ms, horizon_ms). #663 builds directly on #644's service.rs split. He has not commented on #663. - FujitsuPolycom (Dooner) authored #660 and #661, both open, both describing #663 as complementary; #660's bot review names #663 as complementary.
- logprobz (FIRST_TIME_CONTRIBUTOR) authored #654, the competing opt-in design.
- flarobots:
flare-autobotposts Autobot reviews on #654, #655, #660. - Zero human comments/reviews on #663 itself: pr_comments returns "No comments." No reactions, no reviewers assigned, nobody subscribed to engage yet.
#6 [high] Project fit: charter and design-review mapping
Charter (read_charter) lines relevant to #663:
- "Solve the right problem in the right place ... smallest footprint in shared code, or a way to solve it without new code at all. Good ideas in the wrong place will be declined (#404)." — #663 is knob-free in the shared scheduler; consistent.
- "Keep the runtime small and model-agnostic ... shouldn't accumulate per-model branches (#267, #334)." — #663 has no model branches; consistent. The PR body names DeepSeek-V4.1-Flash only as a benchmark vehicle.
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)." — #663 does exactly a paired
flare runA/B vs a3c80e19 (main) on served hardware: satisfied in form. Note the charter says served benchmark vs main; #663's is against main, unlike #654's price0-vs-price1-on-branch. - "Be explicit and pin everything. No magic defaults ... Benchmarks, tests, or feature flags don't override architectural rules." — #663 adds no flag and no default; but it also silently changes what the default
balancedpreset means (no user-visible statement that balanced now prices first-output waiting), which is a documentation/explicitness gap rather than a new default. - "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." — #663 rests on a measured performance issue (multi-second TTFT behind decode cohorts) with served A/B numbers. No issue number is cited anywhere in the PR body; no linked issue exists (searches for the problem return only #662/#663 themselves, plus #42/#43, an older different starvation bug in the same selector already fixed).
- "Code Review Standards — Supported matrix & compatibility: Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs." — #663 discloses only 4× DGX Spark GB10 SM121 / DeepSeek-V4.1-Flash TP4; SM120 (4× RTX PRO 6000) A/B explicitly not run. The charter names SM103/SM120/SM121 as the goal matrix. This is a real gap against a charter line; note #660 and #661 both did run SM120.
- docs/design-review.md:232-251 hard rules: "Never touch covered code without running and updating its simulator and formal checks ... Modifying the Helios scheduler ... without running ... the applicable TLA+ models, Rust conformance fixtures, Kani harnesses, and scheduling simulator is a blocking design failure". Kani: "whenever changing completion-vector validation, prepared completion contracts, state-view extent arithmetic, or sequential validators" — #663 changes none of those, so Kani N/A is arguably fine, but #663 explicitly discloses kani was not run.
- Testing hierarchy Layer 2 (design-review.md:195-208): changes to graph selection / service pricing "must be evaluated against the Python simulator and reference solvers in scripts/scheduling_sim/". #663 does run the simulator for
balancedandthroughput, but NOT against the oracle reference solver (docs/scheduling-oracle.mdoracle_sweep), and the oracle's ownprefill_wait_price/Fmachinery is precisely the reference for the term #663 adds — unevaluated. - AGENTS.md:152-160 and repo-prose: PR must state qualification and unresolved items; #663 does include a "Disclosed limitations" paragraph — compliant.
#7 [high] Claims and evidence: what is backed, what is not, and the loosened existing tests
CLAIMED (from PR body, unverified by me — no GPU/compiler available here):
- Served GPU A/B on 4× DGX Spark GB10 SM121, DeepSeek-V4.1-Flash TP4 zero-re-export, base a3c80e19 vs head a5c36978: K=8 returning-agent TTFT p50 2812→1025 ms (-63.5%), turns/min 13.21→21.77; K=16 TTFT p50 5265→894 ms (-83.0%, 5.9×), turns/min 8.75→18.00 (+105.7%); C=12 burst TTFT p50 5524→5018, max 7177→5416; K=16 with checkpoint_extra_work_fraction=0.0 TTFT p50 4656→3427 (-26.4%);
throughputcontrol parity (3659→3540). - Disclosed trade-off: at K=16 balanced, background decode gap p99 368.4→463.5 ms (+25.8%, +95 ms) while p95 211.1→184.0 (-12.8%). At K=8 both p95 and p99 improved; C=12 burst p99 183.9→158.3. This is the only regression-shaped number in the PR and it IS disclosed.
- Simulator: 21/21 reference workloads exact trace identity at age_price=0.0; zero regressions at 0.1 with improvements (burst_eight max TTFT 706→572 ms, makespan 2060→1966, sub-batch rounds 8→2; burst_eight_8k 1314→1100; sixteen_prefills 9274→8552; burst_eight_low sub-batch 2→0). Adversarial: 32 dec/B=4/16 prompts holds consec_pre=1; 4 dec/B=1/24 prompts exact parity.
- Rust --release: helios (runtime-core,server) 1758 passed/0 failed/5 skipped (FLARE_TEST_TEMPLATE_DIR unset); flare 253; flare-cli 241; heliopause cargo check 0 new warnings. Python: pytest tests/test_scheduling*.py 829 passed. TLA+ check.py: 10/10 TLC, 8/8 observed Rust traces (594,065 transitions), 12/12 aux.
- "~105 net production Rust lines", "0 new CLI/config flags, 0 new graph kinds, 0 Protobuf/ABI changes, 0 new compiler warnings".
- "CI on the head commit: passed" — orientation packet confirms; consistent with the claim.
WHAT I COULD VERIFY DIRECTLY (from the diff): items 5 (all true: no cli.rs, no config.rs, no protobuf; the only sizing is the 11 listed files) and the shape of every described code change (see entry 1). I could not verify any timing number.
WHAT IS NOT BACKED:
- The exact scenario in the "Why" (an interior conversation-anchor split at 202 with a 2-token tail) is exercised by the GPU A/B only indirectly: the benchmark is a 12-turn returning agent under the default checkpoint_extra_work_fraction=0.05, so the 202/204 split may or may not occur per turn; the PR also reports the 0.0-unsplit run to isolate that. There is a Rust test for the mechanical prescription (policy_tests.rs ~7050-7125) but no served measurement that isolates the anchor-preservation contribution from the credit-term contribution. The 0.0 vs 0.05 pair (-26.4% vs -83.0%) is presented as evidence the anchor path matters, but the two runs differ in more than one respect (different decoder counts too: both K=16; different turn counts 12 vs 12; different TTFT baselines 4656 vs 5265).
- The TLA+/lifecycle claim: no TLA+ model changes are in the diff (verification/helios-lifecycle/check.py is NOT among the 11 changed files, unlike #660 which changed it). So the 10/10 and 594,065-transition numbers are a re-run of unmodified models, not new coverage for the new
first_output_wait_nsstate. Per design-review.md:241-246 that is arguably acceptable (no new protocol states), but note thatfirst_output_wait_nsis new scheduler accounting state and no lifecycle fixture was extended for it. - The "5 template tests skipped" and "kani not run" are disclosed.
- The simulator's
_first_output_valuehas no test asserting the numeric formula against the Rust one (onlytest_first_output_waiting_age_reduces_returning_prompt_stall_without_throughput_driftasserting TTFT<400 and empty dict at price 0). There is no simulator test for the chunk-fraction behavior, the b_served scaling, or the anchor preservation. Rust has four new tests (policy_tests.rs +214) with exact numeric assertions (480.0 expected infirst_output_wait_scales_by_incumbent_decode_batch_and_chunk_fraction).
EXISTING TEST THAT HAD TO BE REWEAKENED (a real, undeclared-in-"what changed" effect):
- tests/test_scheduling_utility.py:363 test_simultaneous_burst_coalesces_prefills_into_full_decode_batches, main version (lines 366-387) asserted
coal_ttft < base_ttft * 0.85,coal.trace[-1]["end_ms"] < base.trace[-1]["end_ms"] * 0.95, andcoal_sub <= base_sub // 2— i.e. relative guarantees for coalescing at age_price=0.1. The PR replaces those with absolute ceilings (coal_ttft <= 600.0,coal_sub <= 2) and moves the relative assertions to a new throughput-policy (age_price=0.0) comparison, because the baselinebase_policy(UtilityConfig(..., 0.1, "service", 0.0)= age 0.1, coalescing 0.0) no longer behaves like a coalescing baseline once first-output age pricing is active for waiting prompts. Absolute ceilings can silently pass/fail under unrelated catalog changes — a maintainability loss in an existing regression test. - The Rust counterpart
simultaneous_burst_coalesces_prefills_into_full_decode_batches(policy_tests.rs:6791+) gains astaggeredparameter for the same reason: a simultaneous 4-request burst no longer isolates coalescing under balanced, so the relative test had to be re-pointed at staggered zero-age arrivals, and the simultaneous case is reduced tosim_sub == 0 && sim_full >= 120.
#8 [high] Reach: default balanced deployments are affected with no opt-in or knob
Reach (who/what is affected):
- DEFAULT POLICY:
PolicyConfig::default()(helios/src/scheduler/policy.rs:29-45) has decode_age_price 0.1;flare run --scheduler-policy balancedis the documented default (docs/cli-design.md:683; flare-cli/src/cli.rs:546, :1610 asserts default "balanced"). So the new credit applies to every default-configuration deployment, with no opt-in and no new flag. Users of--scheduler-policy throughput(policy.rs:50-52) are unaffected; so are zero-decoder (prompt-only) schedules andprompt_logprobsscore-only requests (max_new_tokens == 0), both gated in policy.rs:729-733. - Configuration surface: none added (
0 new CLI/config flagsis true — no change to flare-cli/src/cli.rs or helios/src/server/config.rs; PolicyConfig fields unchanged). This is worth flagging both as a charter-alignment positive ("Be explicit ... no magic defaults", "smallest footprint") and as a reach concern: a behavior change to a shipped default with no operator-visible switch and no doc/naming signal. - Compatibility: no Protobuf, no core-format, no graph-kind change, so previously exported cores load unchanged — supports design-review.md principle 13. No new
unsafe. Single-threaded scheduler (&mut self), pure f64 arithmetic in lane valuation; the extra work is one extra pass value out of the existing single loop indelivery_references_and_decode_batchand one extrafits_single_prefill_fromcatalog scan per completing prefill lane (that scan is O(catalog) and only on lanes that already satisfy the cheapercheckpoint_capture/role/endpoint predicates, thanks to&&short-circuit ordering at scheduler.rs:2697-2701). - New public API surface:
RequestAccounting::first_output_wait_ns(pub field),RequestScheduler::set_first_output_wait(pub fn),RequestScheduler::fits_single_prefill_from(pub(super)). Everything else internal. - Operator-visible metrics/dashboard:
last_output_nsis already exported inserver/metrics/scheduler.rs:62andRequestDetail(runtime.rs:1238); #663 does not addfirst_output_wait_nsto any dashboard/metric, so operators cannot observe the new clock. Nothing in the change alters the metric schema. - Docs affected: docs/scheduling-utility.md (+33) and docs/scheduling-runtime-design.md (+16). Docs NOT touched but normatively relevant: docs/scheduling-theory.md:850-853, helios/README.md:356-380 and :478-489, docs/cli-design.md:683-709 (the
balanceddescription), docs/scheduling-oracle.md:69-74/206-207. - Regressions to expect by design: background decode p99 at high decoder counts (the +95 ms disclosed at K=16), and the burst-coalescing incentive at simultaneous arrivals (see entry 7).
--scheduler-policy throughputis bite-identical by construction and backed by 21/21 simulator trace identity.
#10 [high] Recent activity: #663 builds on #644/#645 on the same base; #42 and #654 show the symptom recurs
Recent activity in the touched areas (from orientation packet + search_history):
- The selector was heavily rewritten in the 48 h before #663, all by Luke Alonso: e85019b9 (#645, "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining", 2026-11-30), 3e57bdc8 (#644, "per-step speculative calibration and excluded-only waiting/delivery fairness", 2026-11-30), e8a3a7c7 (#656, "conditional speculative acceptance, fast population warmup, and incremental acceptance-probe charging", 2026-12-01), plus a3c80e19 (#657) as the base. #663's base is a3c80e19, i.e. it is rebased on top of all three.
- #663 BUILDS ON #644 rather than conflicting: #644 introduced
DeliveryReference { excluded_wait_ms, served_share }and the excluded-onlysigma_i = (K-b)T/breference in service.rs; #663 reuses that same per-slot reference loop and only adds a second return value (b_served^2 * per_delivery_ms). It also reusesdecode_within(preceding_ms, horizon_ms)from #644 for decode lanes, unchanged. - It does NOT reverse #644's stated invariant: #644 removed the duration tax on served decoders and restricted waiting cost to excluded streams. #663 adds a SEPARATE, additive first-output credit deliberately kept out of the
T/2 * sum c_ipenalty sum (verified: policy.rs:769 only sumsvalue.age_price), so #644's excluded-only waiting accounting is preserved. This is the technical reason #663's design differs from #654's, which the bot review found biased slower graphs (monotonicity inversion when F > A). - #645 ("overhaul prefill scheduling ... two-frame pipelining") introduced
deferred_prefilland theprefill_work_through/natural_fit_prefill_capacitymachinery that #663'sfits_single_prefill_frommirrors (policy.rs:409-464); #663's exclusion ofrequest.deferred_prefillat scheduler.rs:2695 is a direct nod to it. - #538 (ba35da3f, "Restrict cold pure-prefill discovery to natural-fit graph capacities", FujitsuPolycom) is the ancestor of the natural-fit logic
fits_single_prefill_fromparallels. - #540 (59adc480) is the last change to docs/scheduling-theory.md, the doc #663 now contradicts.
- No commit exists on main implementing first-output waiting age before #663 (search_history text "first-output" returns only a5c36978 itself), so the idea is one day old in commit history but the PROBLEM has a longer tail: #654 (same day, logprobz) independently built a general opt-in version including ~1.8k lines of returning-agent benchmark tooling, and issue #42 (Maxrio9, 2026-10-23) reported a structurally similar prompt-starvation-behind-decode-pipeline bug in the same selector (fixed via #43 and
available_planfeedback gating). #42 is a different mechanism (feedback candidates dropped while a submission is in flight) but the same user-visible symptom, showing the symptom recurs. - #632 (closed) / #152 (open, "with four requests, the balanced policy verifies most rounds at width one") are Luke Alonso's #644-era throughput complaints, not related to #663.
- Who works here (commits on default branch, 180 days): helios/src — Luke Alonso 235, Martin Vit 52, yatesdr 48; docs — Luke Alonso 390, Martin Vit 55, yatesdr 48; scripts/scheduling_sim — Luke Alonso 6, PCCessna 1.
- Files in this PR that overlap peers exactly: policy.rs (#654, #661, #663 all open on it simultaneously), scheduler.rs (#655 + #663), docs/scheduling-runtime-design.md (#655, #660, #661, #654, #663), docs/scheduling-utility.md (#654 + #663), scripts/scheduling_sim/utility.py (#654 + #663), tests/test_scheduling_utility.py (#654, #661, #663). items_touching(policy.rs) lists 21 merged+open items.
#11 [high] Why: the two problem halves and how each is evidenced; lead disposition list
The "Why" problem statement has two parts; here is how each is evidenced (so the report can separate them):
(A) WAITING-AGE ASYMMETRY (prompts get no waiting credit while decoders do): intrinsic to the selector as of a3c80e19 — docs/scheduling-utility.md:250-285 (pre-#663 text) gives decode lanes c_i*sigma_i*(A_i+T) and says "With no active decoder, the age terms vanish"; nothing gives a prefill-only request any waiting term. So the asymmetry is real and verifiable from docs+code, not just asserted. It is also independently attested by #654's author (measured 2.4-3.1 s TTFT behind 16 decoders on his hardware) and, in a different mechanism, by #42.
(B) DOUBLE STALL ACROSS A FORCED INTERIOR ANCHOR CUT (202 of 204, then Snapshot, then 2-token tail, each re-queued at zero age): the mechanism is verifiable in code — credit() advanced first_output_wait_ns/last_progress_ns on any prefill progress (policy.rs:71-86 pre-change), and anchor cuts are made by scheduler_checkpoint_extra_work_fraction (default 0.05, policy.rs:40) per docs/cli-design.md:696-709. #660 (open, same day) documents the same splits from the cost side ("splitting a 453-token prompt at 450 adds an 18 ms tail, +62% work"). No issue reports the double stall; only #663/#662 claim it.
LEADS FROM THE ORIENTATION PACKET I FOLLOWED OR DISMISSED:
- #662 closed duplicate → followed (same change, wrong account).
- #654 opt-in variant → followed; competing design, knob-based, reviewed Changes Requested; its review supplies the theory-doc-inversion argument that also applies to #663.
- #660, #661 complementary → followed; both by FujitsuPolycom; #660 bot review confirms complementarity; #661 still draft/no discussion.
- #655 same author → followed; reviewed Ready To Merge, same scheduler.rs/docs files, rebase interaction expected.
- #644/#645/#619/#540/#426/#582/#285/#568 merged predecessors → #644 and #645 are the immediate parents of the code #663 edits (see recent-activity note); #540 last touched the theory doc; #426/#582/#619/#285/#568 are checkpoint/terminal-prefill/speculation lineage, relevant only as background.
- #42/#43 issue+PR → older, different starvation mechanism in the same selector; relevant as evidence the symptom class recurs; not a duplicate.
- #152/#632 → unrelated (speculative verification width under balanced).
- Not relevant / noted and dismissed: #628 (offload Copy Engine gating, touches runtime.rs but a different path — the only overlap is that #663 adds a field to
Carriedin the same file), #657 (mDNS advertising, base commit only), #534 (Snapshot cost deadlock; different), #301/#548/#571/#334 (other scheduler/engram/metrics PRs, no conceptual overlap). - SM120 hardware A/B is explicitly NOT run by #663 while both peers (#660, #661) did run 4× RTX PRO 6000 — a comparison reviewers will likely make.
#9 [medium] Process and community: ready, CI green, no reviews or comments, no linked issue
Process / community state as of the case file (PR opened and last updated 2026-12-01):
- State: open, marked ready for review (not draft — different from its own predecessor #662, which was a draft). CI on head a5c3697: passed (orientation packet).
- Reviews: none. Comments: none (
pr_comments→ "No comments."). No reviewers requested, no reactions. So the change has drawn zero human engagement so far despite being ready. - Age: same-day.
- Its own history inside the PR's lifetime: identical draft #662 opened 19:27 by flare-autobot, closed 19:40 as a duplicate "opened under the wrong account", reopened as #663. #662 carried an explicit "Open items before marking ready" list (design feedback on the formula, on the anchor preservation, and on
set_first_output_wait/Carried::last_output_nssemantics; run Linux Rust tests; run the Python suite; run served GPU A/B; run check.py) — all of which #663 reports as done, but the three design questions in that list are still unanswered by anyone and are not re-raised in the #663 body. - The PR body does not name any issue it closes or fixes. No
Fixes #, noRelated to #line, although it references #660/#661/#654 in prose. Charter's "What gets merged" asks for a maintainer request, roadmap item, reproducible bug, measured perf/memory issue, or bad docs; this is a measured perf issue with no filed report behind it. - Autobot itself has NOT posted a review on #663 (no case-file bot comment either), unlike #654, #655, #660 which each got an intake comment and at least one review. So #663 is currently the least-processed member of its cluster.
- Peer PRs' states for sequencing: #655 (same author) reviewed "Ready To Merge" 17:30, same files in scheduler.rs/docs; #660 reviewed "Changes Requested" 21:10, explicitly called complementary to #663 but conflicting with #655; #661 still draft with no review and no discussion; #654 "Changes Requested" 12:11 with the theory-doc inversion as a blocker. Four overlapping scheduler PRs by three authors plus a closed duplicate were opened within roughly 8 hours on 2026-12-01 — merge-order interactions are the dominant process risk.