#1 [high] Change: file map and size of PR #644
PR #644 (open, ready for review, opened+updated 2026-11-30, base main, head 2b15114, no reviews, no comments, CI passed on head). Size: 10 files, +649/−230 (per pr_files):
- docs/scheduling-runtime-design.md (+36/−22)
- docs/scheduling-utility.md (+93/−63)
- helios/src/scheduler/policy.rs (+44/−11)
- helios/src/scheduler/policy_tests.rs (+197/−15)
- helios/src/scheduler/rounds.rs (+108/−43)
- helios/src/scheduler/service.rs (+47/−24)
- helios/src/scheduler/utility.rs (+51/−17)
- scripts/scheduling_sim/utility.py (+32/−22)
- tests/test_scheduling_learning_policy.py (+3/−3)
- tests/test_scheduling_utility.py (+38/−10)
Three coupled changes: (A) rounds.rs: per-step conditional speculative calibration (replaces cumulative-ratio calibration). (B) utility.rs/service.rs/policy.rs/sim: excluded-only waiting age, sigma_i = (K-b)T_f/b; new LaneValue::decode_within(preceding_ms, horizon_ms). (C) service.rs/policy.rs/sim: delivery fairness changed from burst-frequency 1/T to served wall-time share s_i in (0,1]; maximum_rate 1.0; delivered = duration_ms. Author: lukealonso (COLLABORATOR, priority contributor named in charter). Discord handle in description: lukealonso.
#2 [high] Related work: #632 competes directly with #644's calibration half
#632 (open PR, original-el8, COLLABORATOR, opened 2026-11-30 08:24, updated 15:52, head 9110228, +232/−38, labels area:scheduling, performance, triage:validation) is an OPEN, COMPETING fix for the SAME defect in the SAME code that #644 fixes:
- #632 keeps
CALIBRATION_FACTOR_MAX = 2.0as a per-step ceiling and scales it across depth:2.0 * 1.75^depth(CALIBRATION_STEP_FACTOR_MAX = 1.75,CALIBRATION_MAX_DEPTH = 30), threadingdepthintoDepthCalibration::factor/RequestCalibration::factor. - #644 instead raises the flat clamp to
CALIBRATION_FACTOR_MAX = 4.0but changes the quantity being calibrated from cumulative prefix survival to per-step conditional survival, then multiplies cumulative factors across0..=depthat pricing time. => Both touchhelios/src/scheduler/rounds.rs,helios/src/scheduler/policy_tests.rs,docs/scheduling-runtime-design.md; textual conflict almost certain, and they are alternative designs for the same "deep speculative depths under-select" problem. #632 even names the same symptom:W=1/P=3collapse ingpu_confidence_multi_step_calibration_escapes_packed_three_trap.... - #632 describes the root cause identically to #644's why:
proposal_confidence[frame,row,d]is a per-step conditional confidence that the host multiplies into cumulative survival (prefix *= confidence[row][depth]), but calibration clamps the cumulative ratio. - #632's measured evidence includes regressions at default alpha=1.0 (−1.9% to −5.2% on 5 of 6 cells) and Autobot twice recommended "Changes Requested" — evidence the calibration ceiling change is contentious.
- #632's own review says the #632 branch is "five days downstream of #515/#522" and that "no conflicting open PR touching helios/src/scheduler/rounds.rs" existed as of its review — which #644 now falsifies.
- #632 verified:
scripts/scheduling_sim/does not model GPU-confidence calibration (relevant: #644's simulator tests cover only the age/delivery half, not calibration). Measured example shared by both: balanced/throughput depth selection on DFly2 (gb10-tp4-202611301002) — #644 claims per-step calibration eliminates theW=1/P=3collapse (ctx16k_T1 70.94 vs 57.12 forced P=6).
#3 [high] Related work: #645 overlaps #644 on 7 files and the LaneValue type
#645 (open PR, lukealonso, opened 2026-11-30 17:36 — i.e. AFTER #644, head 05cccb6, +1417/−127, 20 files) is the author's other in-flight scheduler overhaul. File overlap with #644 is heavy:
- helios/src/scheduler/policy.rs
- helios/src/scheduler/service.rs
- helios/src/scheduler/utility.rs
- helios/src/scheduler/policy_tests.rs
- scripts/scheduling_sim/utility.py
- tests/test_scheduling_utility.py
- docs/scheduling-runtime-design.md
#645 does NOT touch rounds.rs, so the calibration half of #644 is orthogonal to it, but the age/delivery half of #644 (utility/service/policy/sim) is squarely in #645's path: #645 rewrites
LaneValue::prefill_finish(new method on LaneValue, which #644 also modifies viadecode_within), rewritesservice_rates, and changespolicy.rscandidate pricing (add_candidate,next_progress,continuation_candidate,resize_prefill). Both add methods toLaneValueand both editscripts/scheduling_sim/utility.pyaction_lane_value/score. #645 also states: coalescing gives "delivery_fairness / (z_ss * E)" in the coalescing term — i.e. #645's new formula still refers to the OLD delivery-rate variablez_ss, which #644 redefines as a served-shares_i. Direct semantic collision in thedelivery_fairnessbookkeeping. #645 closes issue #485. No comments on #645 yet. Also relevant: #645's desc says it addsLaneValue::prefill_finish; #644 addsLaneValue::decode_withinand changesLaneValue::finish— same type, adjacent methods, guaranteed conflict or at least merge-order dependency.
#4 [high] Why: issue #152 is the unfixed field report #644 quietly addresses
#152 (OPEN issue, javieratomic, CONTRIBUTOR, opened 2026-10-30, last updated 2026-11-08, labels area:scheduling, model:deepseek-v4.1, performance, triage:design-review) is the direct, pre-existing field report of exactly the defect that #644 claims to fix, and neither the #644 description nor its linked items mention it.
Setup: DeepSeek V4.1 Flash, TP3 on 3× DGX Spark GB10, --max-concurrency 4 --mtp-draft-tokens 5 (verification width 6), 4 concurrent requests, 512 output tokens, temp 0.
Measurements (aggregate tok/s):
| | balanced (default) | --no-mtp-adaptive-verification | --scheduler-policy throughput |
| Prose real text | 83.9 / 85.6 / 86.5 | 90.6 / 92.5 / 93.7 | 92.0 / 93.6 |
| Code real text | 135.8 / 141.8 / 142.0 | 141.6 / 142.5 / 145.5 | 145.9 / 144.6 |
| Random words | 89.2 | 102.3 | n/m |
Rounds at batch 4 (flare_speculative_rounds_total): balanced = 416 rounds width 1 vs 165 rounds width 6; throughput = 1 width-1 vs 685 width-6. Per-request: prose 21.4–22.0 tok/s balanced vs 24.0–25.4 other two.
Diagnosis in the issue: "throughput differs from balanced only by zeroing delivery_fairness (4.0) and decode_age_price (0.1). On this setup the balanced weights lead the scheduler to choose width-1 rounds at batch 4, which lowers both aggregate and mean per-request token rates."
Maintainer response (original-el8, 2026-11-05): categorized performance/area:scheduling/triage:design-review; says the report shows a throughput difference but "does not measure the output-cadence tradeoff priced by the balanced policy"; asks for matched inter-token/delivery gaps and per-request latency alongside aggregate throughput and selected widths, then "a decision on intended fairness/cadence behavior."
CONNECTION: #644 changes exactly the two terms #152 identifies (delivery_fairness accounting and decode_age_price charging), and #644's headline claim is that default balanced now matches throughput (76.11 vs 76.43 tok/s). So #644 is effectively a fix for #152 — but #152 asked for inter-token-gap / cadence evidence, which #644 does NOT provide (it reports aggregate tok/s only, no inter-token latency / delivery-gap measurements). That is an unmet evidence request #644 leaves open.
#5 [high] Related work: calibration estimator lineage #495→#515→#521→#522→(#632 vs #644)
Lineage of the DepthCalibration/RequestCalibration code #644 rewrites (all in helios/src/scheduler/rounds.rs):
- #495 (closed PR, original-el8) "Calibrate GPU speculative draft confidence forecasts against realized verification outcomes" — the original idea; closed in favour of #515.
- #515 (merged PR, voipmonitor, COLLABORATOR, merged 2026-11-25, +565/−39) "Calibrate GPU confidence forecasts and model packed allocation surplus" — introduced
DepthCalibration(global per-depth EWMAclamp(realized/predicted, 0.0, 2.0)),SurplusHistory/SurplusTable, andspeculation::observed_prefixes. #644 keeps SurplusHistory untouched and rewrites only the DepthCalibration/RequestCalibration halves. (description of #644:SURPLUS_FACTOR_MAX/SurplusHistoryunchanged.) - #521 (closed PR) "Scope GPU confidence calibration per request and prevent surplus depth starvation" — closed, superseded.
- #522 (merged PR) "Scope GPU confidence calibration per request and refine packed surplus history" — added the per-request
RequestCalibrationthat #644 rewrites. So #644 is the third/fourth iteration of the same estimator; the estimator has already been reworked twice in five days (2026-11-25 → 2026-11-30). Documented history of instability of this exact estimator (from #515's own review thread and the independent GB300 review): - #515 introduced "28.7% plain W=1 rounds vs 0.3% uncalibrated" at alpha=1.0, −21.2% (C32 0K), −26.7% (C16 64K), −19.6% (C16 128K) on 1× GB300 TP1.
- #515's author attributed part of it to "Global
DepthCalibrationbleeds across sequential workloads/contexts" (C=1 inherited calibrated-down global factors from the preceding C=32 cell) — which is exactly the motivation for the request-local scoping in #522 and for #644'sprior_calibration_factorinheritance rule. #644 changes the prior-initialization too:Forecasts::newnow inits everyDepthCalibrationat 0.5 (vec![DepthCalibration::new(0.5); token_capacity - 1]) instead of0.5^i+1per depth (population.iter().map(...)) — an undeclared behaviour change for the initial global prior at depth>=1 (previously 0.25, 0.125, …; now all 0.5, and markedobserved: falseso it is skipped in pricing until observed).CALIBRATION_FACTOR_MAXraised 2.0 → 4.0 (undeclared interaction with #632, which keeps it 2.0 per step).
#6 [high] Change: what the excluded-only/delivery-share code actually does (verified at head)
Verified in the head (pr/644) code, not just the diff.
Delivery references (helios/src/scheduler/service.rs:59-160): delivery_reference_intervals → delivery_references returning DeliveryReference { excluded_wait_ms, served_share }.
- Default (before any measurement),
:64-69:excluded_wait_ms = (K-1)/r = (K-1)*T_min,served_share = 1/K, where K = count of delivery-bearing streams. - Measured family path,
:99-158: per slot keep(cost=T/b, served=b)minimizing cost, tie-break preferring largerserved(:107) exactly as documented; thenexcluded_wait_ms = (K - b)*T/b,served_share = b/K(:154-155). Matches the PR's formulasigma_i = (K-b)T_f/b. service_ratesstill returns a per-ms "delivery rate" (:277delivery_rate.max(per_ms)) that now only signals eligibility (deliveries.is_some()at policy.rs:467) and supplies the fallback reference; the name is unchanged.
Accounting (service.rs:304-320, :404-425): a served decode submission observes (dt, delivered=dt, maximum_rate=1.0) — i.e. delivery price is now value-per-served-ms with unit normalizer; an excluded observation is (dt, 0.0, 1.0). DeliveryObservation.maximum_rate field removed. First visible publication initializes to ServicePrice::initial(1.0) (:418) instead of 1.0/duration_ms.
Pricing (policy.rs:408-496): values[slot].delivery = exp(delivery_log - scale) where delivery_log = service.deliveries.unwrap_or(ServicePrice::initial(reference.served_share)).log_price(delivery_fairness); values[slot].reference_delivery_ms = reference.excluded_wait_ms (both for terminal lanes :448 and decode lanes :472).
LaneValue math (utility.rs:99-130): decode_within(expected, preceding_ms, horizon_ms) = output*E + delivery*service_ms + c*sigma*(A + horizon) + c*service_ms*(A + (horizon+preceding)/2); decode(e,T) = decode_within(e,0,T).
- Algebra check: with
sigma = 0and a full-horizon served lane (preceding=0),delivery*Tdivides to the constant+g/sandc*T*(A+T/2)divides toc*A + c*T/2, which is exactly cancelled byValueRate::new's common-c*T/2(utility.rs:142-152). So the "no T-dependent bias when every decoder is served" claim holds in the arithmetic (confirmed, not just claimed).
Two-stage lookahead (policy.rs:793-796): let preceding = if horizon == 0 { 0 } else { duration_ns }; then lane_value_within(request, role, extent, preceding, horizon, ...) — for prerequisite sequences the lane waits over the whole first stage and is served only over the second; prerequisite_value now receives horizon_ns instead of duration_ns (policy.rs:958). lane_value/lane_value_for_tokens become preceding = 0 wrappers, so fixed-graph cohort selection (best_cohort, best_two_stage_cohort, packed DP) stays additive.
#7 [high] Change: documentation left inconsistent by #644 (and #632 edits the same README line)
A. helios/README.md is not touched by #644 and still documents the OLD calibration contract. helios/README.md:446-450: "stored per-depth forecasts are scaled by a request-local aged per-depth verification calibration ratio (seeded scale-invariantly with prior weight 2 from a once-per-round population prior capped at weight 64, 128-token half-life, request EWMA cap 32, clamped to [0, 2])". The PR raises CALIBRATION_FACTOR_MAX to 4.0 and redefines the quantity as per-step, so the README's [0, 2] and "per-depth ... ratio" are now wrong. NOTE that the competing open PR #632 does update helios/README.md (+3/−2) for the same sentence, so whichever merges first leaves the other's doc stale.
B. docs/scheduling-runtime-design.md was only partly updated. The diff touches only the calibration item (~lines 110-152). Still describing the OLD delivery/age model at head:
:203-210utility gradient "output delivery: g/z" with "delivery ratez" (now a served share, normalizer 1).:233-240"The reference intervalsigma_iuses the fastest batch-feasible delivery rate... thensigma_i = K*T/min(batch_capacity,k)" — now(K-b)*T/b.:244-246score(sum of expected priced token and delivery service + sum over served decoders of c_i*sigma_i*(A_i+T)) / T - T/2 * sum over active decoders of c_i— the old formula; the new one is indocs/scheduling-utility.mdonly.:378-383terminal: "the lane contributesterminal_value + terminal_age_price * sigma * (A + T). Its age coefficient also enters every candidate's common waiting cost. In a two-stage sequence, a terminal row's age stops at its snapshot completion, including the saved waiting cost over the remaining sequence." The code now charges the full horizon (see thefinishentry).:527-538"Completion initially records zero deliveries. The first successful visible publication for the same fence replaces that interval's delivery update with one served delivery... A first published burst initializes a missing delivery history to one delivery over its measured frame duration." — now duration-ms of served time andinitial(1.0).:645delivery_fairness | 4 | Delivery-rate log-utility coefficient, value/ms— now a served-share coefficient (dimensionless log argument).:658-659throughput policy "retains token fairness and output-token value while setting delivery fairness and decode-age price to zero" — still true (policy.rs:49), butterminal_age_pricestays 1, so the terminalfinishchange applies under BOTH policies (undeclared reach). The PR did rewrite the matching sections ofdocs/scheduling-utility.mdand thehelios/README.md-adjacent design section, so the repo now has two design docs that contradict each other on the same quantities.
C. Undeclared: LaneValue::finish no longer prices the retirement instant. utility.rs:121-130: completion_ms is now used only in a debug_assert; the age term is c * horizon_ms * (age + horizon/2) for the whole horizon, replacing the old c * (horizon - completion) * (age + (horizon+completion)/2). The PR description says only that LaneValue::finish was "updated"; the docs/scheduling-utility.md text it adds does state the full-horizon form, but the sibling docs/scheduling-runtime-design.md:381-383 still describes the H - t savings.
#9 [high] Claims: what backs each benchmark claim, and the baseline gaps
Claims in the description and what backs each:
- "No T-dependent bias when every decoder is served." Backed by (a) algebra I verified at head (see the cohort-additivity entry), (b) two new Rust unit tests
balanced_unexcluded_decoders_maximize_throughput_without_delivery_or_age_penalty(solo B=1 and full B=4 both pick width 8) andoversubscribed_decoders_incur_excluded_wait_and_protect_skipped_lanes(policy_tests.rs:6515-6613), (c) the Pythontest_unexcluded_decoders_pick_peak_throughput_speculation_depth(tests/test_scheduling_utility.py:193-207). Synthetic catalogs with hand-set costs, not measured GPU timings. - "default balanced achieves 76.11 tok/s ... matching throughput (76.43, 0.4% diff)." Served on 4× DGX Spark TP4 DeepSeek-V4.1-Flash, core
gb10-tp4-202611301553,max_tokens=256, 5-prompt suite. Gap: nomainbaseline on that core forbalanced. The only before/after is on a different core (gb10-tp4-202611301141: 70.30→75.98 ongreedy_code; 5-prompt mean 72.46→74.15), and the throughput-policy reference there is not given. So the headline "balanced now matches throughput" rests on a cross-core comparison; the same-core before/after is the weaker 72.46→74.15 (+2.3%) figure. - "per-step calibration eliminated the W=1/P=3 collapse on DFly2 (
gb10-tp4-202611301002, throughput policy): ctx16k_T1 70.94 vs 57.12 forced P=6 (+24.2%); ctx4k_T1 62.57 vs 54.59 (+14.6%)." This compares the scheduler's choice against a forcedP=6, i.e. an oracle, not againstmain. Read literally it says the adaptive choice is 24.2% faster than forcing the wide shape — it does not by itself show an improvement over pre-changemain. This is the same "isolated matched A/B vs main" evidence bar Autobot applied to the competing #632. - Test claims.
helios scheduler::"400 passed, 0 failed"; cross-check: #632 (same day, same base) reported399 passed, 4 ignoredforscheduler::, so +1 net test in the count while #644 adds 3 named tests — consistent with #644's#[cfg(test)]-gating ofForecasts::observe_calibrationand removal of nothing, but not independently verifiable here. Simulator786 passed; TLA+ all 8 models with transition counts;cargo-kaninot run (CI job covers it, and the Kani-covered validators were not modified — plausible). "Live GPU multi-concurrency (B=4 uncontended and K>4 oversubscribed) serving benchmarks were not run in this pass" — i.e. the two regimes the new unit tests assert are unmeasured on hardware. - "No Protobuf, core-format, or CUDA-graph ABI changes; existing exported cores load and serve unchanged." Consistent with the diff: only
helios/src/scheduler/*, docs, simulator and Python tests. Verified by file list.
#10 [high] Reach: wider than the description says — all cores, both policies, same defaults
- Undeclared scope: the age/delivery half is not gated on GPU-confidence cores. Only the calibration half is (it runs when
gpu_confidence()is true,helios/src/scheduler/rounds.rs:472-474, i.e. any shape withPrefixAllocation::Gpu). The excluded-only age (utility.rs), served-share delivery (service.rs,policy.rs) andfinishchanges run for every core shape, including host-allocation MTP cores and non-speculative plain-decode cores. The description frames the motivation around GPU-confidence adaptive verification on DGX Spark, so the reach is wider than the framing. - Terminal retirement is repriced under BOTH policies.
LaneValue::finishnow charges the full lookahead horizon (utility.rs:121-130) against the common-T/2 Σcterm, andPolicyConfig::throughputonly zeroesdelivery_fairnessanddecode_age_price(policy.rs:49), leavingterminal_age_price = 1(policy.rs:34, documenteddocs/cli-design.md:688-690). So--scheduler-policy throughputusers also see terminal-retirement priority change, which the description's framing ("under the default balanced policy") does not mention. - No new flags, no new defaults, no version gate.
PolicyConfigdefaults are unchanged (policy.rs:18-37: delivery_fairness 4.0, decode_age_price 0.1, token_fairness 16, output_token_value 64). The meaning ofdelivery_fairnesschanges from value/ms against a burst rate to value/ms against a dimensionless served share, anddecode_age_pricestops charging served lanes — silently, for anyone who set those coefficients explicitly viaconfigure_policyor a CLI override. Charter ("Be explicit and pin everything. No magic defaults") is in tension with reusing the same names/values for different quantities; a new coefficient (e.g. a separate terminal/finishterm) was arguably required. - New unexplained constant.
CALIBRATION_FACTOR_MAX2.0 → 4.0 with no stated derivation (the diff comment only says unobserved depths "inherit the deepest verified step's calibration"). The competing #632 was explicitly asked in review to "Give 0.88, 4.0, 2.0, +3 and 6 a stated derivation"; that ask applies here to the 4.0 and to the new round weightclamp(sum_w / count, 0, 1). - Global prior initialization silently changed:
Forecasts::newnow seeds everyDepthCalibrationat 0.5 regardless of depth (rounds.rs,vec![DepthCalibration::new(0.5); token_capacity - 1]) instead of0.5^(i+1)per depth. Combined with the newobserved: falseflag, depths below the shallowest observation now inherit a shallower factor rather than shrinking geometrically. Not mentioned in the description. - Startup cost / hot path: no new allocations in the plan path beyond the existing per-round
Vecs (step_confidences,cal_factorsalready existed);round_caltuple grows from 3 to 4 f64/usize fields. Negligible. - Simulator parity:
scripts/scheduling_sim/utility.pymirrors the change (action_lane_valuegainspreceding_ms; delivery price accruesservicems; ages storeexcluded_wait), so the simulator stays the reference forscripts/scheduling_sim/learning.pypresets. It does not model GPU-confidence calibration at all (verified by #632's review), so the simulator tests only cover the age/delivery half. - Operators:
flare rundefault--scheduler-policy balanced(docs/cli-design.md:683) behaviour changes for every user with no opt-in; users comparing inter-token cadence across releases will see different cadence. Existing exported cores are not affected at file level.
#11 [high] People: #644 rewrites code by voipmonitor, competes with original-el8's #632, authored by a priority contributor
Who is in these areas and why it matters:
helios/src/scheduler/rounds.rswas written by voipmonitor (Martin Vit) in #515 (merged 2026-11-25,1e78f080) and #522 (merged 2026-11-25,e30d55db"Scope GPU confidence calibration per request and refine packed surplus history"); #555 (batch capacities 6/12/24,c9693765) and #620 (c146d7be) also touched it. #644's author lukealonso (Luke Alonso) has not previously authored the calibration code — his last commits inrounds.rsbefore this are #510 (fd6c0f3b), #620, and older sizing work. So #644 rewrites an estimator authored and debugged by two other collaborators three working days earlier, with no comment from either of them on the PR (0 comments).- original-el8 has the open competing #632 on the same clamp in the same file and had a closed #495 and closed #521 on the same estimator. Three different contributors have now proposed fixes to this one clamp/estimator within five days: original-el8 (#495 closed, #521 closed, #632 open), voipmonitor (#515 merged, #522 merged), lukealonso (#644 open).
- lukealonso's standing: COLLABORATOR, one of the three priority contributors named in the charter (
@voipmonitor,@original-el8,@lukealonso); 26 merged PRs in 180 days, 2 open (#645 the scheduler overhaul, #643 RoCE ring opcodes); 229 commits tohelios/srcand 384 todocsin that window. Deep familiarity with exactly these files (policy.rs,utility.rs,service.rs,docs/scheduling-*): #426, #459, #538, #619, #188 lineage. - #152's reporter is javieratomic (CONTRIBUTOR), and the triage on it came from original-el8. Neither has commented on #644. #530's reporter devinkuhn is affected by a different MTP pathology (grammar-constrained width one) which is not addressed here.
flare-autobothas NOT yet posted an intake/review comment on #644 (no case file link, no review) — ordinary, since Autobot reviews "90 minutes after code updates are pushed" and the PR was last updated at its open time; but it means the automated review that every other PR in this area received (#515, #540, #632) is still outstanding.- Community engagement on #644 so far: zero. No comments, no reviews, no reactions on the PR itself. By contrast #515 has 12 discussion entries and #632 has 4, and #152 got a maintainer triage reply.
- Recent activity in the touched areas (last 60 days, per the orientation packet):
helios/src— Luke Alonso 229, Martin Vit 52, yatesdr 47 commits;scripts/scheduling_sim— Luke Alonso 4, PCCessna 1;docs— Luke Alonso 384, Martin Vit 55, yatesdr 47. Latest on main before this: #637 (autobot, 2026-11-30), #626, #620, #540, #586, #619, #615, #582. #644 builds on top of #515/#522 (rewrites them), #540 (retained credit,policy_tests.rs— #644's new tests are appended to the same file), #555 (batch capacities), and #620 (removed copy/history drafts;rounds.rspublication path). It does not conflict with any merged change: its base is 4ed5d875, three commits behind nothing relevant. - Discord handle
lukealonsois present in the description as the publication gate requires.
#12 [high] Project fit: charter #210 evidence bar vs single-hardware, cross-core baselines
Charter (read_charter) mapped against #644, as facts:
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." #644 is a performance PR. Served measurement exists (4× DGX Spark, DeepSeek-V4.1-Flash TP4, 5-prompt suite), but the same-coremainbaseline is missing: the headline 76.11 tok/sbalancedis compared tothroughputon the new core, and the pre/post comparison is on a different core (72.46→74.15). The DFly2 number is against a forcedP=6. This is the same bar that #632 was blocked on twice. - PR description: "expect four parts: why / what changed / claimed result / evidence." Satisfied: all four present, plus Limitations. Discord line present. Structure is not an issue.
- "Be explicit and pin everything. No magic defaults, and pin dependencies..." Tension:
CALIBRATION_FACTOR_MAX4.0, the round sample weightclamp(sum_w/count, 0, 1), and the new global prior 0.5 are unexplained constants; anddelivery_fairness/decode_age_pricekeep their names and default values while measuring different quantities. - "Keep the runtime small and model-agnostic. Helios handles scheduling... shouldn't accumulate per-model branches." Clean on this axis: no model branches, no new flags, no per-model cases; the change is inside the general scheduler. The description explicitly argues "no request-count special case".
- "Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target ... and verify that existing data, artifacts, and exported cores still load." Partly satisfied: no ABI/core-format/Protobuf changes (file list confirms), and the change is policy-arithmetic only; but only ONE hardware target (4× DGX Spark GB10 TP4) and one model family (DeepSeek-V4.1-Flash) were measured, and multi-host/other-parallel-layout behaviour is asserted, not measured. The estimator's immediate history (#515's GB300 −21%/−26%/−19% independent run) is the concrete reason this matters here.
- "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #644 addresses a reproducible filed issue (#152, still open) and a measured performance problem; that is a fit, though #152's own maintainer reply asked for cadence/inter-token-gap evidence that #644 does not supply.
- Roadmap: scheduler utility/cadence work is not listed as a roadmap item (roadmap = in-process SDK #6, Engram #267, FlashInfer #215), but scheduler work is clearly the project's main current activity.
- Docs: the charter expects docs to be checked; #644 leaves
helios/README.md:446-450and six sections ofdocs/scheduling-runtime-design.mdstating the superseded model (see the documentation entry). - Community: the charter's "Respect contributors" clause makes lukealonso's PR non-closeable out of hand and requires specific review feedback — relevant since the PR has drawn no review at all yet.
#15 [high] Why: the defect's timeline — #152 (Oct 30) → #515/#522 (Nov 25) → #632 (Nov 30) → #644
Timeline showing how long and how widely the defect has been wanted:
- 2026-11-25 — #515 merged
DepthCalibration(clamp[0,2], cumulative) with the stated goal of endingW=1fallback atalpha=1.0. Its own follow-ups (#522 same day) were needed because #515 left 28.7% plainW=1rounds. - 2026-11-25 — #530 (devinkuhn, open) reports
json_schemadecoding ~2–3× slower on the same model family; diagnosed in the doc as "grammar-constrained MTP requests use width one". Related symptom family, different cause, not addressed by #644. - 2026-11-30 08:24 — #632 (original-el8, open) files the flat
CALIBRATION_FACTOR_MAX = 2.0clamp as the reason deeper depths under-select, with field data ongb10-tp4-202611301257showing2.002offered drafts/round on a single-stream code workload and per-round depth-6/7 acceptance0.287/0.216. - 2026-10-30 → still open — #152 (javieratomic) reports the end-user symptom of the second bias: default
balancedpicks width-1 rounds at B=4 (416 vs 165 width-6 rounds) whilethroughputreaches 685 width-6, costing 8–14% aggregate throughput on DeepSeek-V4.1-Flash TP3 GB10. Triagedtriage:design-reviewby original-el8 on 2026-11-05 with a request for cadence/inter-token-gap evidence; no fix has landed in the following four weeks. - 2026-11-30 17:35 — #644 lands as the first change that attacks both biases at once and, notably, the first to reconcile
balancedwiththroughput(76.11 vs 76.43 tok/s). So: the "deeper speculation under-selected" complaint is at least a month old as a user report (#152, 2026-10-30), four working days old as a filed estimator defect (#632), and has been re-attacked four times (#495, #521, #522, #632) plus twice by this PR's own halves. What is new in #644 is the framing that the fairness terms themselves (not just the calibration ceiling) were mis-specified — which reframes #152's "revisit the weights?" question as "the weights were measuring the wrong quantity". Cross-reference: #644 does not cite #152, #632, #530, #515 or #522 in its description or link them; the orientation packet found the connections, not the PR.
#17 [high] Research summary
I have gathered the case file for PR #644 across all nine angles, with entries in the scratchpad (16 notes: entries 1–16).
Key findings recorded: the PR is open/ready, +649/−230 over 10 files, CI green, zero comments, zero reviews, no labels, and no Autobot intake/review yet. It bundles three coupled changes: per-step conditional speculative calibration in rounds.rs, excluded-only waiting age (sigma_i = (K−b)T/b), and served-share delivery fairness (s_i ∈ (0,1], maximum_rate = 1.0).
What a reader could not learn from the description:
- #632 is an open competing fix by original-el8 for the same
CALIBRATION_FACTOR_MAXclamp in the same file (it scales the ceiling per depth,2.0*1.75^d; #644 instead redefines the calibrated quantity and raises the flat clamp to 4.0). Both editrounds.rs,policy_tests.rs,docs/scheduling-runtime-design.md; #632 also updates the exacthelios/README.md:446-450sentence that #644 leaves stating the old[0, 2]contract. - #645 (same author, opened one minute after #644) overlaps 7 files and still prices
delivery_fairness/(z_ss*E)with the old delivery-rate variable that #644 redefines. - #152 (open since 2026-10-30) is the month-old field report of exactly this defect —
balancedpicking width-1 rounds at B=4 (416 vs 165 width-6) — and neither the PR body nor its links mention it. Its maintainer triage asked for cadence/inter-token-gap evidence, which #644 does not provide. - Benchmark claims lack a same-core
mainbaseline: the headline 76.11 tok/sbalancedis compared againstthroughput(76.43) on a new core; the before/after is on a different core (72.46→74.15); the DFly2 "+24.2%" is against a forcedP=6, notmain. This is the same #210 bar #632 was twice blocked on. - Reach is wider than stated: only the calibration half is GPU-confidence-gated; the age/delivery and
finishchanges apply to every core and both policies, andLaneValue::finishnow ignorescompletion_msentirely (full-horizon charge), repricing terminal retirement under--scheduler-policy throughputtoo. - Docs left inconsistent:
helios/README.md:446-450and six sections ofdocs/scheduling-runtime-design.md(gradientg/z,sigma_i = K*T/…, the score formula, terminalH−tsavings, delivery accounting, thedelivery_fairnesstable row) still describe the superseded model, so the two design docs now contradict each other. - I verified the algebra at head: the cohort additivity and the "no T-dependent bias when every decoder is served" claim do hold; the excluded-only derivation matches the docs. I found no arithmetic error contradicting the description — the issues are evidence baselines, stale docs, unexplained constants (4.0, the round sample weight, the new 0.5 prior init), and the competing/overlapping open PRs.
I also disposed of every other lead in the orientation packet (entries 13–14) and mapped the charter (#210, explicit-constants, single-hardware evidence, docs) in entry 12.
#18 [high] Recent activity: rounds.rs ownership (vit/voipmonitor last week), LaneValue untouched since October
Explicit record for the "recent activity" angle (commits on main in the touched areas, last 60 days, from the orientation packet plus search_history):
helios/src/scheduler/rounds.rs — most recent first, before this PR: c146d7be #620 (lukealonso, 2026-11-29, copy/history draft removal), c9693765 #555 (Martin Vit, 2026-11-27, batch capacities 6/12/24), e30d55db #522 (Martin Vit, 2026-11-25, per-request calibration + surplus), 1e78f080 #515 (Martin Vit, 2026-11-25, DepthCalibration + SurplusHistory), fd6c0f3b #510 (lukealonso, 2026-11-24). So the file was rewritten by voipmonitor/Martin Vit four and five working days before #644, and #644 is lukealonso's first substantive change to the calibration code.
helios/src/scheduler/utility.rs — da578c5c #426 (Jason Cook, 2026-11-25), before that a7d51ca1 (lukealonso, 2026-10-24, terminal retirement value/urgency) and 18cb0efc (lukealonso, 2026-10-13, value per time). #644 is the first change to LaneValue since October.
helios/src/scheduler/service.rs — #645 (open), #644, #334 (open), #620, #555, #426, #479, #459, #188 (per items_touching). service_rates/delivery_rate lineage is #426 + #188.
helios/src/scheduler/policy.rs — touched by #645, #620, #555, #542, #426, #538, #619, #510, #352, #188.
docs/scheduling-utility.md — last substantive edit 70b01b59 (lukealonso, 2026-11-10, "Clean up serving documentation"); original design 18cb0efc (2026-10-13). #644 is the first semantic change to that document in seven weeks.
scripts/scheduling_sim/ — Luke Alonso 4 commits, PCCessna 1, in 180 days; last 59adc480 #540 (2026-11-29). #644 edits utility.py; #645 edits utility.py and workloads.py the same day.
tests/ — 8da73911 #624 (Wynn Drahorad, 2026-11-30) is the most recent; #632 rebased onto it. #644's base is 4ed5d875 (#637), which is later, so #644 is on top of #624 already.
Does #644 build on, conflict with, or reverse this work? Builds on #620/#624/#540/#555. Directly rewrites the product of #515/#522 (the DepthCalibration/RequestCalibration estimators) — three working days after they merged — without those authors commenting. Conflicts textually with open #632 (same clamp, same file) and #645 (same LaneValue/action_lane_value/serviced sites). Does not reverse anything merged in the sense of removing a feature: SurplusHistory, optimistic probing, and funded acceptance learning are untouched.
#8 [medium] Change: algebra of the cohort-additivity and the 'no T bias' claim, verified
Derivation checked by hand against the head code (not taken on trust). The served-lane numerator in LaneValue::decode_within (helios/src/scheduler/utility.rs:107-118) is
v_i + g_i*service_ms + c_i*sigma_i*(A_i + horizon) + c_i*service_ms*(A_i + (horizon+preceding)/2).
ValueRate::new (utility.rs:142-152) then subtracts a common T/2 * Σ_all_active c_k (policy.rs:493 sums every lane's age_price into age_price).
For a served lane the +c_i*T/2 inside the numerator exactly cancels its own share of that common subtraction, leaving −T²/2 c_j net only for lanes the cohort excludes — which is why best_cohort/best_two_stage_cohort/packed DP remain "pick the largest additive lane values for a fixed graph" (utility.rs:162-164 doc comment still says "All excluded-lane waiting costs are common to cohorts of that graph", which is now true only in this cancelling sense, not because every lane pays it).
Worked out: doc formula in docs/scheduling-utility.md = correct average-reward-per-round expression + the cohort-independent constant Σ_all c(A+sigma); and when every decoder is served (sigma_i = 0, s_i = 1, preceding = 0) the score reduces to v_i/T + g_i + c_i*A_i, i.e. purely tok/s-maximising — so the PR's central "no T-dependent bias when nothing is excluded" claim holds arithmetically. Same for finish (terminal rows).
Conclusion: the excluded-only/served-share design is internally consistent; I found no arithmetic error contradicting the description.
#13 [medium] Process: ready for review, CI green on head, no reviews, no labels, no Autobot pass yet
Process facts:
- State: open, "ready for review", not draft. Opened 2026-11-30 17:35 and updated the same minute — no pushes since opening, so no review cycle has happened.
- CI on head
2b15114(2b15114527efca87f5625bc218c649a8aed7abaa): passed (orientation packet). Branchhelios-adaptive-verification-and-excluded-fairness→main; basemainat 4ed5d875 (#637). - Reviews: none. Reviewers requested: unknown/none shown. Labels: none (compare #632 which carries
area:scheduling,performance,triage:validation, and #152 which carriesarea:scheduling,model:deepseek-v4.1,performance,triage:design-review). - Autobot: no intake comment and no case file yet (every other scheduler PR of this week has one) — the automated review gate has not run.
- Age: opened the same day as the review; the two competing/overlapping PRs (#632, #645) were both opened/updated the same day too, so ordering is: #632 (08:24), #644 (17:35), #645 (17:36).
- Self-reported test counts are all green; the local
cargo-kanigap is delegated to the CI Kani job, and the Kani-covered completion-vector/StateViewvalidators were not modified (consistent with the file list). - Local verification the author says they ran:
cargo test --locked --releasefor eos / selene / selene-manager / helios (--features runtime-core,server,scheduler::only, 400 passed) / flare / flare-cli;pytest tests/test_scheduling*.py(786 passed); TLA+verification/helios-lifecycle/check.py(8 models, 0 errors). Not run: Kani; live GPU multi-concurrency serving. - Test deltas inside the diff:
policy_tests.rs+197/−15 with 3 new tests (calibration per-step/inheritance, balanced-unexcluded, oversubscribed),tests/test_scheduling_utility.py+38/−10 with 1 new test,tests/test_scheduling_learning_policy.py+3/−3 (expectation updates only). Plus the rewritten excluded-only continuation identity inutility.rs:338-383which is a stronger assertion than before (it now checks the exact Bellman identity with an excluded lane). - One test-cleanup seam:
Forecasts::observe_calibration(the unweighted form) is now#[cfg(test)]-only, i.e. test scaffolding was moved from production API to test-gated; benign but means the public surface of the module shrinks.
#14 [medium] Related work: disposition of each packet lead (#645, #632, #540, #522, #515, rest)
Lead-by-lead disposition of the orientation packet's "possibly related items":
- #645 (open, same author, 7 files in common) — followed, recorded: heavy overlap on the age/delivery half, no overlap on calibration; #645 opened one minute after #644 and still uses the OLD delivery-rate variable
z_ssin its new coalescing term ((output_token_value + token_fairness/x_ss + delivery_fairness/(z_ss*E))), which #644 redefines. Merge order matters for both, and whichever lands second must be re-derived. - #632 (open, original-el8) — followed, recorded as the direct competitor on the calibration half.
- #540 (merged, FujitsuPolycom) — followed, read in full: unrelated logic (timing-refresh/acceptance credit across idle), but it is the immediately-preceding shaper of
policy_tests.rsand of the simulator'slearning_policy.py; #644'spolicy_tests.rshunks land in the same file. Not a conflict, no semantic overlap. - #522 (merged, voipmonitor) — the parent of
RequestCalibration; #644 rewrites its product. Recorded. - #515 (merged, voipmonitor) — the parent of
DepthCalibration, SurplusHistory; recorded. - #548 (open, per-request histograms/vLLM metrics) — touches
completion_recordsnames; no file overlap with #644 and no semantic overlap (metrics vs pricing). Not relevant beyond name collision. - #620 (merged, lukealonso) — removed copy/history drafts, touched
rounds.rspublication + service.rs; #644 sits on top of it and does not revert it (Forecasts::new,speculative_curvestill there). Not a conflict. - #619 (merged, lukealonso) — "Unlock multi-token speculation and two-frame pipelining for host stops"; sets the stage for deeper speculative widths, i.e. #644's motivation assumes it. Recorded as context.
- #542 (closed) and #521 (closed) — #542 was superseded by #555 (batch capacities); #521 was the closed sibling of #522 on the same estimator. #521 closed is part of the calibration lineage.
- #495 (closed) — the original calibration PR, closed in favour of #515. Part of the lineage.
- #426 (merged, original-el8) — "Rebase prefill service prices..." touched
policy.rs/service.rs/utility.rs; theServicePrice::rebase/rebase_upwardmachinery inutility.rs:27-46that #644 leaves untouched. Context for how "normalized GPU-time share p*m" is meant to stay continuous — #644's served-share change keepsmaximum_rateper-observe rather than per-participant, soServicePrice::rebasesemantics are unchanged. - #643 (open, same author) — RoCE ring proxy opcodes, no overlap. Not relevant.
- #628 (open, offload Copy Engine gating) — no overlap. Not relevant.
- #554 (open draft, Engram RDMA) — no overlap. Not relevant.
- Other items in the packet I probed but found no additional link to #644: #637, #626, #586, #617, #614, #613, #608 (all other lukealonso merged work in the last two days; none touch scheduler pricing).
#16 [medium] Change: calibration-half details a reviewer would not get from the description
Details in helios/src/scheduler/rounds.rs at head that the description summarises loosely:
- Sample weight and clamp.
observe_weightedrejectssample_weight <= 1e-6, thenweight = (weight + w).min(POPULATION_CALIBRATION_MAX_WEIGHT=64)andalpha = w/weight— an EWMA whose step depends on the survival weight, so deep depths (smallw) learn far more slowly than depth 0. That is the intended shrinkage, but it means the effective half-life at depth 5 is ~1/0.15 ≈ 7× longer than at depth 0. Not stated in the description or the docs. - Round aggregation.
round_calnow accumulates(sum_w*cond_realized, sum_w*cond_pred, sum_w, count)per depth and publishesround_w = clamp(sum_w/count, 0, 1)— note the divisor is the lane count, notsum_w, so a round where every lane was already at low survival still teaches the global prior with weight ≈ mean survival (small), which is the stated intent ("a single correlated large-batch dip cannot overwrite the prior"), but the algebra differs from a plain mean. - Undeclared prior re-initialization.
Forecasts::newnow usesvec![DepthCalibration::new(0.5); token_capacity - 1]where it usedpopulation.iter().map(|&p| DepthCalibration::new(f64::from(p)))— i.e. every depth's prior mean is 0.5 instead of0.5^(i+1), and all areobserved: falseso pricing skips them until a real observation lands. Consequence: on a brand-new core before any observation,calibration_factorwalks down toglobal.get(depth).map_or(1.0, |e| e.factor())= 1.0 (0.5/0.5), so the calibration is neutral rather than depth-shrinking — a behaviour change at startup that the description does not mention. prior_calibration_factorfallback order (rounds.rs:290-307) exactly matches the documented rule: observed global atdepth→ walkdepth-1..=0taking the request-local factor first, then the global factor; final fallback1.0. Verified.calibration_factor(depth)is now cumulative-product-based at the call site (two call sites:speculative_curveat:451-465and the round-observation path at:625-640), both maintainingcumulative_factor *= forecast.calibration_factor(depth, ...). The#[cfg(test)]accessorForecasts::calibration_factor(&self, depth)(rounds.rs:~370) also inherits from shallower observed depths, so tests observe the same inheritance rule as production.actual_bound/host_predpath unchanged. The!host_pred.is_empty()branch still multiplies the raw prefix bycal_factors[depth], which is now the cumulative product — consistent, but it means the host-estimate fallback and the GPU path share the same product, so a per-step error now compounds in the host-estimate bound too. No defect found in these; they are the parts a reviewer would otherwise have to reconstruct from the diff.
#19 [medium] Community: no engagement at all; #515/#522 and #632 authors silent
Explicit record for the "community" angle:
- #644 has drawn nothing:
pr_commentsreturns "No comments." No review, no inline review comment, no reaction, no label, no Autobot case file or review (contrast: #515 has 12 discussion entries, #540 has 12, #632 has 4 including two Autobot reviews, #152 has a maintainer triage reply). - Nobody has been requested as reviewer (none shown). The two people with the most direct stake — original-el8 (author of closed #495/#521 and open #632 on the same clamp) and voipmonitor/Martin Vit (author of the merged #515/#522 whose estimator #644 replaces) — have not engaged.
- The only "audience" signal is external and prior: #152 (javieratomic, CONTRIBUTOR, triaged by original-el8) and #530 (devinkuhn) are filed reports of adjacent scheduler pathologies; #152 in particular is the user-visible symptom #644 fixes, and its reporter has not been notified or credited in the PR body.
- Project norm in this area, from the same day: #632 received an Autobot intake comment within 20 minutes of opening and a full review within ~45 minutes. #644 has been open for the same working session with no automated pass, so the review process has effectively not started.
- Charter social context: lukealonso is one of three named priority contributors; the charter's "Respect contributors" clause says priority PRs are never closed out of hand and that missing pieces must be spelled out specifically in review — relevant because nothing has been spelled out yet.