Explore scratchpad · NVIDIA/hyperflare-inference #681

Raw Markdown for agents: https://autobot.eidonix.com/p/6ec5ff49-37be-4072-ada6-26962ae1c9e1.md

#1 [high] Change: PR #681 cohort-mean coalescing horizon - what it does, size, files

PR #681 "helios/scheduler: use active cohort mean in coalescing horizon" by FujitsuPolycom, opened+updated 2026-12-02, draft, base main, head e15b836. 5 files +236/-18. Labels: area:scheduling, performance. No reviews, no CI checks on head.

Verified diff (pr_diff):

  1. helios/src/scheduler/policy.rs (policy.rs:525-684 coalescing_prefill_log_bonus):
    • Removes peer_budget scalar (let mut peer_budget = usize::MAX; + peer_budget = peer_budget.min(rem)) and adds decoder_rems = [0usize; REQUEST_LANES] parallel to decoder_slots, filled at policy.rs:550-554.
    • Guard changes from decoder_count == 0 || prefiller_count == 0 || peer_budget == usize::MAX to decoder_count == 0 || prefiller_count == 0 (policy.rs:567) - peer_budget==MAX was unreachable anyway since rem>0 required.
    • Two mean_out sites (policy.rs:627 packed speculative shapes; policy.rs:636 speculative catalog) now: decoder_rems[..decoder_count].iter().map(|&rem| expected_at(w).min(rem as f64).max(1.0)).sum::<f64>() / decoder_count as f64.
    • Horizon site (policy.rs:667-672): let ph = coalescing_horizon_tokens.min(post_prefill as f64); horizon = mean over decoders of (rem as f64).min(ph).
  2. helios/src/scheduler/policy_tests.rs +201: new helper coalescing_bonus() (diffs lane_values with horizon 0.0 vs default) and add_active_decoder(); two tests: coalescing_horizon_averages_active_decoder_budgets_across_cohort (policy_tests.rs:6880+) and coalescing_speculative_mean_output_averages_per_decoder_budgets (policy_tests.rs:6957+). The [1,100] pair -> 32.5 horizon is asserted exactly.
  3. scripts/scheduling_sim/utility.py:230-236: same change; peer_budget = min(...) removed, horizon = sum(min(float(v.output_budget), ph) for v in decoders) / k. NOTE: the simulator's mean_out (utility.py:215-219) already averaged per-decoder budgets before this PR - only horizon changed there.
  4. tests/test_scheduling_utility.py +23: test_coalescing_horizon_averages_active_decoder_budgets.
  5. docs/scheduling-runtime-design.md:222-231 spec paragraph reworded to describe per-decoder clamp-then-average for both horizon and expected output. Config table row docs/scheduling-runtime-design.md:713 unchanged (default 64).

Net production Rust LOC = +1 (as claimed): +11/-10 in policy.rs; the rest is tests.

#2 [high] Related work: #661 stack parent, changes nearby policy.rs coalescing code

#661 "helios/scheduler: explore smaller prefill chunks under active age-priced streams" by FujitsuPolycom (same author), open 2026-12-01, updated 2026-12-02 15:24, head 3d868f84, +2778/-186 across 15 files (incl. helios/src/scheduler/policy.rs +195/-129 and policy_tests.rs +1762/-2; docs/scheduling-runtime-design.md +52/-20). Labels area:scheduling, enhancement, performance, triage:validation.

Key relevance to #681: #681 is stacked on #661 and the two PR bodies' measurements are cited as a pair. #661 unlocks smaller non-terminal prefill chunks and draining; #681's cohort-averaged horizon then packs queued prefills without all decoders being blocked. #681 description: "#661 rushes... cutting SM120 mixed-c32 >250 ms stalls -74.9% vs main, from 538 to 135."

#661 last Autobot review (2026-12-02 15:24) = "Recommendation: Ready To Merge", 0 blockers/0 should-fix, "Confirm GitHub Actions CI is green on 3d868f8 before merging." Earlier rounds were Changes Requested (blocker: unrun 64-seed simulator gate; service_rates mispricing under measured TerminalPrefill).

#661 itself builds on merged #645 (which introduced coalescing_prefill_log_bonus). #661's A/B numbers: mixed-c32 >250ms stalls 538 -> 365 (-32.2%); long-context-mixed 863 -> 503; cold-heavy-mix 2,988 -> 2,732 with 4 -> 7 client-side 45 s drain cutoffs. Note #681's body cites different #661-inclusive numbers (135 stalls after the stack), so the stall counts are from different tree combinations (df9a8ebd / dbbf65df / 38130855 - not equal to #661's 3d868f84 head).

Also #661 has a known regression in cold-heavy-mix: SLO 89.0% -> 81.6%, and 4 -> 7 45s drain cutoffs; #681's body inherits/reports similar cold-heavy-mix SLO regression on solo (88.1 -> 79.1) and on #661 (81.6 -> 79.8).

#4 [high] Related work: #663 (merged) introduced age pricing and weakened coalescing test bounds

#663 "helios/scheduler: price first-output waiting age on incumbent decode rounds" by yatesdr (COLLABORATOR), merged 2026-12-01 23:28, head 5bf9085, +1154/-87, 12 files incl. helios/src/scheduler/policy.rs (+127/-14) and scripts/scheduling_sim/utility.py (+29/-1). Merged into main as 8489d504 — i.e. the commit immediately before #681's base main state used by the PR (base 1fbcc3c9, head e15b836; policy.rs history shows 8489d504 then e15b836 as the newest two commits touching policy.rs and policy_tests.rs).

Built on by #681? #681 is stacked on #661 which is the follow-on to #663's age pricing; #681 tests use interactive_engine and coalescing bonus math independent of #663.

Relevance to #681:

#5 [high] Why: the min-over-decoders collapse and where the demand comes from

Problem the PR addresses (claimed): coalescing_prefill_log_bonus (helios/src/scheduler/policy.rs:525-684) prices the K -> K+m decode-batch surplus when queued prefills join active decoders, over coalescing_horizon_tokens (default 64.0, policy.rs:42) clamped by the prefiller's post-prefill budget and the active decoders' MINIMUM remaining budget (peer_budget). Verified on main (policy.rs:667-671 at main):

let horizon = self.policy.coalescing_horizon_tokens.min(post_prefill as f64).min(peer_budget as f64);

With one active decoder at rem=1, horizon collapses to 1 = 98.4% loss of the 64-token horizon, and mean_out (policy.rs:627,636 on main) also clamps to 1.

How long/widely wanted: not from an issue. Searching items for "coalescing horizon single decoder remaining collapse" returns only #681 itself; no issue or comment asks for this. The mechanism was introduced by merged #645 (2026-11-30, "Decode-batch coalescing continuation value") — #681's description says the peer_budget min was there "previously", i.e. since #645's introduction. So this is a ~2-day-old formula being refined, not a long-standing user request. Sibling defect reports in the same area: #676 (open, Reederey87, 2026-12-02) on large prefill chunks causing >1.4 s decode p99 ITL under balanced — it is about chunk size/cap, not the coalescing horizon, and cross-references #661 only.

#6 [high] Claims and evidence: served A/B numbers; solo regressions; stack attribution

Reproduced from the PR body (all numbers are the author's claims, not re-verified here). 4x RTX PRO 6000 (SM120) and 4x GB10 (SM121), DeepSeek-V4.1-Flash TP4, --scheduler-policy balanced --max-concurrency 32 --mtp-draft-tokens 7 --mtp-adaptive-verification ... --prefix-cache-memory 0. Workloads from FujitsuPolycom/tokbench v0.4.0, seed 42, temp 0.0.

| Arm || Scenario | Out tok/s | Stalled >250 ms | TTFT p50 | SLO | | Solo mixed-c32 (2) | 1,281.7 -> 1,276.8 | 11.29 -> 11.49% | 1,425 -> 1,390 | 93.0 -> 91.1% | | Solo long-context-mixed (1) | 655.4 -> 667.3 (+1.8%) | 28.1 -> 26.3% | 1,510 -> 1,449 | 89.8 -> 92.6% | | Solo cold-heavy-mix (1) | 541.8 -> 521.8 (-3.7%) | 62.5 -> 62.2% | 1,763 -> 1,834 | 88.1 -> 79.1% | | On #661 mixed-c32 (2) | 1,254 -> 1,261 med | 6.65 -> 5.95% med | 1,479 -> 1,439 | 89.4 -> 90.5% med | | On #661 long-context-mixed (1) | 670.5 -> 667.6 | 16.4 -> 9.8% | 1,503 -> 1,473 | 89.3 -> 82.1% | | On #661 cold-heavy-mix (1) | 545.6 -> 547.8 | 56.3 -> 55.7% | 1,713 -> 1,786 | 81.6 -> 79.8% | | Stack (660+661+665) mixed-c32 (2) | 1,374.6 -> 1,394.2 | 4.82 -> 4.34% | 1,001 -> 922 | 96.5 -> 97.1% | | GB10 Stack mixed-c8 (2) | 128.4 -> 129.4 | 41.8 -> 38.0% | 1,181 -> 1,118 | 79.0 -> 81.7% | | GB10 Stack agentic-coding C=8 (1) | 137.1 -> 135.0 | 45.4 -> 34.5% | 1,024 -> 877 | 81.8 -> 85.7% |

Reading: 2 of 3 SOLO scenarios get worse on output throughput and SLO (mixed-c32 SLO -1.9 pp; cold-heavy-mix SLO -9.0 pp, output -3.7%, TTFT +4.0%). On #661 long-context-mixed SLO drops 89.3 -> 82.1% while stalls improve. The Stack rows cannot be attributed to #681 alone (three other PRs). Disclosed trade-off: "on solo cold-heavy-mix, keeping coalescing active near EOS pulls 150K–250K cold prefills ahead of decoders without chunk shrinking, raising agentic_multiturn TTFT p99 3,323 -> 5,144 ms" — i.e. the change's own mechanism (not clamping to the near-EOS decoder) delays other requests' first token by up to 1.8 s p99.

Claimed stack deltas (from #661-first ordering): SM120 mixed-c32 >250 ms stalls 538 -> 135 (-74.9% vs main), burst gap p99 254.7 -> 234.9 ms, prefix-cache hit rate 48.6% -> 52.5%; long-context-mixed stalls 503 -> 244; cold-heavy-mix 2,732 -> 2,452 with 7 client-side 45 s drain cutoffs, 0 server errors; cold-burst probe peak gap 433.7 -> 224.1 ms.

#7 [high] Claims and evidence: archive checks, 84-run parity, CI and knobs

PR body "Evidence" section (claims):

#8 [high] People: author series + area owners + zero engagement

FujitsuPolycom (Discord "Dooner"), repository association CONTRIBUTOR. Last 180 days: 15 merged, 11 closed, 4 open. Open now: #665 (prefix-cache scan resistance), #661 (prefill chunk exploration), #660 (budgeted interior anchor splits), #649 (RoCE prefill proxy opcodes). Merged in the touched area: #538 (Restrict cold pure-prefill discovery to natural-fit graph capacities), #496 (Selene ancestor read coalescing), #497 (disk offload restore latency), #586/#587 (Engram plane assembly / export spans).

Author is a prolific contributor in helios/src + docs but is not one of the charter's priority contributors (@voipmonitor, @original-el8, @lukealonso). All three of #660/#661/#665 have Autobot "Ready To Merge" as of 2026-12-02 and none is merged yet; #681 is the fourth in the same series, opened the day after, still a draft with no CI and no human review.

Who usually works in this area (default-branch commits, last 180 days): helios/src — Luke Alonso 237, Martin Vit 52, yatesdr 49; scripts/scheduling_sim — Luke Alonso 6, PCCessna 1, yatesdr 1; docs — Luke Alonso 391, Martin Vit 55, yatesdr 49. The coalescing code itself came from Luke Alonso's #645. yatesdr's #663 (merged 2026-12-01) is the most recent change to the same function's neighbours (first-output age pricing) and to utility.py.

Engagement so far on #681: none — 0 comments, 0 reviews, no reactions visible in pr_comments (returned "No comments"). No one has cross-referenced it in the other open PRs/issues I read (#661, #660, #665, #663, #655, #676 all omit it; #661 and #665 were last updated 2026-12-02 before #681 opened at 2026-12-02).

#9 [high] Project fit: charter + design-review gate mapping

Charter (read_charter) facts that bear on #681:

docs/design-review.md mandatory gates (verified text):

#10 [high] Reach: no opt-out, default-on, docs, dependency on #661

Reach analysis (verified from code/docs):

  1. No operator surface: coalescing_horizon_tokens is not exposed in helios/src/server/config.rs (only scheduler_policy preset + terminal_value/terminal_age_price/checkpoint fraction/mtp alpha) and has no CLI flag (no matches in flare-cli/src). The only off-switch is --scheduler-policy throughput (policy.rs:50-53 sets delivery_fairness 0 and decode_age_price 0, but NOT coalescing_horizon_tokens; the horizon stays 64.0 under throughput, so the coalescing bonus remains active under throughput too — the docs/README describe it as part of the default policy). #661's body says "Opt-out: --scheduler-policy throughput" for its own change, not for #681's.
  2. Default-on: PolicyConfig::default() is what both scheduler_policy: balanced and a missing key produce (config.rs:305-310), so the cohort mean applies to every prefill-capable core on every deployment.
  3. Affected requests: any prefilling request with max_new_tokens > 1 while at least one decoder is active; requests with prompt_logprobs or max_new_tokens == 1 are excluded (policy.rs:556-564).
  4. Documented behavior change: docs/scheduling-runtime-design.md:222-231 now specifies per-decoder clamp-then-average for both horizon and speculative expected output; docs/scheduling-runtime-design.md:713 config table unchanged. No doc or README mentions the near-EOS case or the new cold-prefill-priority trade-off that the PR body itself discloses (agentic_multiturn TTFT p99 3,323 -> 5,144 ms).
  5. Interaction with chunk sizing: the horizon feeds per_token = (best_surplus_per_horizon * horizon) / initial_prefill (policy.rs:677), so raising the horizon by up to 64x (1 -> 64) raises queued prefills' per-token price for the SAME prompt size — that is exactly the mechanism that lets 150K-250K cold prefills outbid decoders, which #661 was needed to compensate for by shrinking chunks. #681 depends on #661 for that compensation, and #661 is unmerged.
  6. Metrics/observability: no new metric; the effect is visible only in dispatch/ITL/TTFT behavior. #663's first_output_wait_ns and #681's coalescing term both amortize over initial_prefill (docs/scheduling-utility.md:306-309 uses "matching coalescing's fixed-denominator amortization"), so their relative weight shifts when the horizon grows.
  7. Compatibility: no Protobuf, core-format, or CUDA-graph ABI change; prepared/exported cores unaffected (the change is pure scheduler arithmetic). No dependency changes.

#11 [high] Change detail: monotone credit increase, undeclared sim divergence fix, tests

Verified by reading policy.rs at main vs PR head:

  1. Monotonicity. Old horizon = min(H, post_prefill, min_i rem_i). New horizon = mean_i min(rem_i, min(H, post_prefill)). Since min(rem_i, ph) >= min(min_i rem_i, ph) for every i, the mean is >= the old value. Same for mean_out: old = max(min(expected_at(w), min_i rem_i), 1.0); new = mean_i max(min(expected_at(w), rem_i), 1.0) >= old. Net: #681 can only RAISE queued-prefill coalescing credit, never lower it, for any state. No state loses credit. That is why the only measured regressions are ones where more prefill credit is harmful (solo cold-heavy-mix: SLO 88.1 -> 79.1%, output -3.7%, agentic_multiturn TTFT p99 3,323 -> 5,144 ms).
  2. Undeclared removal of a Rust/simulator divergence. In scripts/scheduling_sim/utility.py:215-219 (pre-existing, unchanged by this PR) mean_out was ALREADY a cohort mean over decoders, while the Rust used peer_budget = min over decoders. #681 makes Rust match the simulator's existing mean for mean_out; the PR body presents both as one formula change and does not say that the mean_out half is a pre-existing Rust/sim divergence repaired. Verified: utility.py diff touches only the horizon block (lines 232-236), mean_out at 215-219 is untouched.
  3. Dead-guard removal. peer_budget == usize::MAX in the early return could never be true because decoder_count > 0 implies a rem > 0 was stored; the PR drops it (policy.rs:567). Behaviour-neutral, undeclared but harmless.
  4. Rust-only surface change in utility.py's shape: the Python decoders list comes from View.output_budget which is min(output_tokens, max_new_tokens) - generated (simulator.py:26) whereas Rust rem also clamps by max_sequence_tokens - scheduled_consumed (policy.rs:548-549). Simulator has no max_sequence_tokens, so the clamped coordinate is Rust-only; the new averaging makes that clamp apply per-decoder rather than to the whole cohort, i.e. one KV-exhausted decoder now only drags down its own term (1/n) rather than collapsing everyone's horizon.
  5. Tests: policy_tests.rs adds a coalescing_bonus() helper that re-derives the bonus by re-running lane_values with the horizon toggled to 0.0 (policy_tests.rs:6866-6877) and an add_active_decoder() that forces phase=Decode/consumed=prompt/generated=1 (6879-6887). Both new tests assert exact closed-form bonuses (1e-9 tolerance), the [1,100] pair gives 32.5, a single decoder matches min(H, post_prefill, rem), zero decoders and max_new_tokens == 1 give exactly 0.0. Plus a speculative test with 3 sub-cases (packed eff_width 6->4, saturation, slow B=4). No test asserts monotonicity vs the old formula, and no test covers the KV-exhaustion clamp difference.
  6. Docs change (docs/scheduling-runtime-design.md:224-229) is a single reworded clause; docs/scheduling-utility.md (which describes the first-output credit that shares the amortization, lines 287-320) was NOT updated, and neither the coalescing_horizon_tokens row (line 713) nor helios/README.md:482 changed.

#12 [high] Related work: #645 origin, stack state, #663, #676, nothing supersedes

Overlapping / adjacent PRs and issues around #681, with state as of 2026-12-02:

Nothing found: no PR or issue proposes superseding or reverting the coalescing horizon; no Closes #/Fixes # reference in #681; no related test or doc names it yet.

#13 [high] Research summary

Case file for PR #681 ("helios/scheduler: use active cohort mean in coalescing horizon", draft, head e15b836, +236/−18 across 5 files, no reviews, no CI) is complete; twelve scratchpad entries cover every angle.

What I verified in the code: the PR replaces the scalar peer_budget (min over active decoders' remaining output budget) with a per-decoder decoder_rems array in coalescing_prefill_log_bonus (helios/src/scheduler/policy.rs:525-684), and averages min(rem, min(horizon, post_prefill)) for the horizon and max(min(expected_at(w), rem), 1.0) for speculative mean output. The change is provably monotone: it can only raise queued-prefill credit, never lower it, which is why the two measured regressions (solo mixed-c32 SLO 93.0→91.1%, solo cold-heavy-mix out −3.7% / SLO 88.1→79.1% / TTFT +4%) are cases where more prefill credit is harmful — the PR body itself discloses pulling 150K–250K cold prefills ahead of decoders and raising agentic_multiturn TTFT p99 3,323→5,144 ms.

Findings a reader could not get from the description: (1) the simulator's mean_out at scripts/scheduling_sim/utility.py:215-219 was already a cohort mean before this PR, so half the change is a silent Rust/sim divergence repair, not a new formula; (2) the "84 simulator runs matched 84/84" evidence cannot exercise the changed path — no workload in workloads.py:33-55 pairs a near-EOS decoder with a long prefill, so parity is expected by construction; (3) the served A/B trees (df9a8ebd, dbbf65df, 38130855) and the archive hash (40596880cc64) are not the PR head; (4) there is no operator knob or opt-out — coalescing_horizon_tokens is not in helios/src/server/config.rs:305-330 nor a CLI flag, and --scheduler-policy throughput does not clear it; (5) docs/design-review.md:195-208 requires the scripts/scheduling_sim/learning.py (not opened) catalog for cohort-algorithm changes and the PR reports no such run; (6) the change depends on #661's chunk shrinking to be safe, and #661 (plus #660 and #665, all "Ready To Merge") is still unmerged.

Related-work map: introduced by merged #645 two days earlier; stacked on #661/#660/#665; neighbours merged #663 the day before (which weakened the balanced burst-coalescing test bounds and shares the initial_prefill amortization); symptom-class issue #676 (open) argues the opposite direction (cap prefill chunks) and names only #661. Author FujitsuPolycom has three other Ready-To-Merge PRs in this series and no priority-contributor standing; nobody has commented, reviewed or cross-referenced #681.

#18 [high] AMENDMENT 1: head moved to 975f825; review's Simplify/Nit items already applied

AMENDMENT to notes #1/#11/#17. New head since the 2026-12-02 report: 975f82578a7b2a59c28fc34647769cd9ce22ab0c (975f825), PR now +331/−27 in 5 files (was +236/−18 at e15b836). search_history shows 975f825's parent is main 1fbcc3c9 — the branch is a single squashed commit, i.e. the reviewed revision e15b836 no longer exists in the branch.

production change now reads (verified at head):

Consequence for the report: the Autobot review at 2026-12-02 16:34 (result 1/3) says "up to e15b836" and flags (a) hoisting expected_at + .max(1.0) deadness, (b) the unreachable if horizon > 0.0 guard, (c) hand-copied expected_at in the speculative test, and (d) as a Nit the missing KV-clamped / n>=3 subcase. All four are already fixed at 975f825, so those four review items should be reported as applied, not open.

Stale-description mismatch at head: the PR body still describes mean_out as "averages expected_at(width).min(rem).max(1.0)" (the clamp no longer exists) and still claims "+11/-10, +1 net production LOC" — pr_files now reports policy.rs +16 -18 (net −2), so the size claim is stale.

#19 [high] AMENDMENT 2: head adds an end-to-end heterogeneous-budget sim test, but it compares coalescing ON vs OFF, not mean vs min

AMENDMENT to notes #7/#11. tests/test_scheduling_utility.py was 0-added at e15b836 and is now +90 lines at head 975f825:

  1. test_coalescing_horizon_averages_active_decoder_budgets (tests/test_scheduling_utility.py:506-526): View("d0", 0, 1, ()) + View("d1", 0, 100, ()) + View("p0", 512, 128, ()) on graphs prefill-512=10 ms, decode-b1=15, decode-b2=20, decode-b4=24; asserts _coalesce_token["p0"]*exp(log_scale) == 64*3*(1-(2/20)/(3/24))*32.5/512 to 1e-9 (:518) and the single-decoder case 10.0 (:525). Mirrors the Rust assertions.
  2. test_coalescing_heterogeneous_budget_end_to_end_balanced (:529-593): non-speculative cohort short0 (max_new_tokens=8) + 3 long decoders (256) + 4 queued 4096-token prefills, age_price=0.1, comparing UtilityConfig(..., coalescing_horizon_tokens=0.0) (off) against the default (on) — makespan, mean and max prefill TTFT, and max_output_gap_ms, with absolute ceilings 7740 ms / 330 ms / 190 ms (:558-562); a speculative twin at :564-593 with max_new_tokens=32, 5 prefills, ceilings 1885 ms / 440 ms / 220 ms.

Why it only partly closes blocker 2 of the Autobot review:

#20 [high] AMENDMENT 3: first bot review landed — Changes Requested (2 blockers); most non-blocking items already fixed at head

AMENDMENT to notes #7/#15/#17. New event at 2026-12-02 16:34 (after my 2970 report, which said "no review and no comment on the head"): flare-autobot posted a full review on #681 — Recommendation: Changes Requested, Merge Risk Medium "up to e15b836", 2 blockers / 1 should-fix / 3 subtract-simplify / 1 nit. Pre-merge checks: security ✅; charter & value fit ⚠️; related/duplicate ⚠️; tests & verification ⚠️. PR updated 18:06, labels now area:scheduling, performance, triage:review (triage label added with the case file). Still no human review, no comment, no reaction.

Where the review agrees with my report (independent confirmation, so downstream can rely on it): the cohort mean is >= main's minimum so prefill credit only rises; the standalone Solo arm regresses 2 of 3 scenarios (cold-heavy-mix output 541.8→521.8, SLO 88.1→79.1%, TTFT p50 1,763→1,834; agentic_multiturn TTFT p99 3,323→5,144 = +54.8%; mixed-c32 SLO 93.0→91.1%); the served A/B and archive checks ran on trees df9a8ebd/dbbf65df/38130855 and hash 40596880cc64, not the head; no CI on the reviewed head; benefit depends on unmerged #661, with #660/#665 supplying the Stack rows. It adds citations I had not pinned: docs/design-review.md:109-115 (speedup-over-main gate) and Charter #210 for blocker 1, and for blocker 2 docs/design-review.md:195-200,234-251, scripts/scheduling_sim/model.py:103 (default max_new_tokens = 4096), scripts/scheduling_sim/simulator.py:26 (output_budget = max_new_tokens - generated) and workloads.py:25-55 — I verified all three of the last ones at head: workloads.py:25-55 has no max_new_tokens override, model.py:103 is the 4096 default, simulator.py:26 is the output_budget line, and workloads.py:49 continuous_decode is the single-decoder case where min and mean coincide. Only ONE of the two blockers is new information relative to my report (the "84-run sweep is inert" argument); blocker 1 restates my finding 7/8.

Review statements that are stale at the new head 975f825 (do not act on them):

Blocker 1 remains fully live at head: parent of 975f825 is main 1fbcc3c9, which does not contain #661 (3d868f84); #661 is still open (Ready To Merge as of 2026-12-02 15:24), so the "rebase after #661, green CI on the reviewed head" ask is unmet.

#22 [high] AMENDMENT 5: verified anchors for each amendment at head 975f825

Verification pass at head 975f825 for the amendment items (citations any reviewer can re-check):

#25 [high] AMENDMENT 8: orientation leads closed — review is the only new event; #661/#676 gain detail that bears on #681's blockers

Orientation-packet leads, re-checked at head 975f825 (nothing new appeared for #681 between 16:34 and 18:06):

#26 [high] Research summary

The new event is a head change (e15b836 → 975f825, PR now +331/−27, single commit on main 1fbcc3c9) plus the first flare-autobot review (2026-12-02 16:34, Changes Requested, 2 blockers). Amendments, one per scratchpad note:

  1. #20/#22 — the review mostly confirms my report (monotone credit, 2-of-3 Solo regressions, A/B trees df9a8ebd/dbbf65df/38130855, no CI on head, dependency on unmerged #661), adds citations to adopt (Charter #210, docs/design-review.md:106-115, :195-206, model.py:103, simulator.py:26), and contributes one genuinely new blocker: the 84-run sweep is inert because no workload sets max_new_tokens. Its non-blocking items (mean_capped helper, dead .max(1.0), deleted if horizon > 0.0, forecast_tokens reuse, n≥3/KV subcases, spec reword to "cohort-mean") are already applied at head — report them as done, not open. Blocker 1 is still live: main lacks #661.

  2. #19 — evidence gap only half-closed. tests/test_scheduling_utility.py is +90, not +23, and now contains test_coalescing_heterogeneous_budget_end_to_end_balanced (:529-593), which does exercise output_budget < 64 cohorts end-to-end — but every assertion is coalescing-ON vs OFF, never new-mean vs main's-min, so it cannot catch a reversion; ceilings are hard-coded. Only the Rust side has a mean-vs-min discriminator (policy_tests.rs:7054-7059).

  3. #21 — new finding: the spec now documents a horizon the qualified simulator cannot compute, because Rust's rem includes a KV-headroom clamp (policy.rs:548-549) the simulator's output_budget lacks (simulator.py:26) — a second undeclared Rust/sim divergence, admitted in the PR's own test comment (policy_tests.rs:6931-6932); README.md:482-483 and the config row :713 still describe the pre-PR minimum.

  4. #23/#24 — verified side points: check.py mutations never target policy.rs (so the mutation layer is N/A and the unrun 64-seed gate is the only applicable one); no coalescing key in config.rs/flare-cli (still no off-switch); monotonicity claim survives the clamp removal (cap ≥ 1 from rounds.rs:505), with one new parity-neutral consequence — mean_capped averages over all decoders while the numerator uses only served streams.

  5. #25 — orientation leads closed: nothing newer than the 16:34 review; #661 is now explicitly "cleanly sequenced ahead of stacked draft #681"; lukealonso is active in #661 (17:10 review demanding green native-serving.yml (not opened) CI) but silent on #681; #676 is a measured GB10 report asking for a prefill cap / operator flag, the opposite of raising queued-prefill credit.

#27 [high] AMENDMENT 9: consolidated amendment list for the report writer (ordered, with anchors)

Report writer: this note is the authoritative amendment deltas against report entry #17. Only these items change; everything else in #17 stands as written.

A. State of the PR changed. Head e15b836 → 975f825 (975f82578a7b2a59c28fc34647769cd9ce22ab0c), one squashed commit whose parent is main 1fbcc3c9; PR now +331/−27 in the same 5 files (docs/scheduling-runtime-design.md +6/−3, helios/src/scheduler/policy.rs +16/−18, policy_tests.rs +217, scripts/scheduling_sim/utility.py +2/−6, tests/test_scheduling_utility.py +90). PR body is stale: it still claims "+11/-10, +1 net production LOC" and still describes mean_out as "averages expected_at(width).min(rem).max(1.0)" — the clamp no longer exists. Corrects #17's header, its File-map numbers (tests/test_scheduling_utility.py +23 → +90) and its "The change / Size" line ("policy.rs +11/−10 net +1" is now net −2).

B. First review landed (the event). flare-autobot, 2026-12-02 16:34: Changes Requested, Merge Risk Medium "up to e15b836", blockers 2 / should-fix 1 / subtract-simplify 3 / nit 1; pre-merge checks: security ✅, charter-fit ⚠️, related/duplicate ⚠️, tests-evidence ⚠️. Case file opened 16:15; label triage:review added; PR updated 18:06. Corrects #17's "zero engagement / no review / no comment" and its Process section, and note #15. Still true: no human review, no comment from a person, no CI on the head.

C. Review corroborates the case file — treat as confirmation, not news: mean ≥ old min so credit only rises; Solo regresses 2 of 3 (cold-heavy-mix 541.8→521.8, SLO 88.1→79.1%, TTFT p50 1,763→1,834; agentic_multiturn TTFT p99 3,323→5,144 = +54.8%; mixed-c32 SLO 93.0→91.1%); A/B trees df9a8ebd/dbbf65df/38130855 and hash 40596880cc64 ≠ head; Stack rows depend on #660+#661+#665. Cite-it additions: Charter #210, docs/design-review.md:106-115 (honest-evidence rule), docs/design-review.md:195-206 (cohort-algorithm gate + "Do not diverge Helios from the simulator's qualified policy"), scripts/scheduling_sim/model.py:103, simulator.py:26, workloads.py:25-55.

D. One genuinely new blocker argument (add to #17 Key finding 4): the reported 84/84 parity sweep is mathematically inert for this change — no workload in workloads.py:25-55 overrides max_new_tokens, so every Request takes the 4096 default (model.py:103) and output_budget = max_new_tokens - generated (simulator.py:26) stays ≫ 64; continuous_decode (workloads.py:49) is the k = 1 case where min and mean coincide. All three lines verified at head.

E. Two blockers, restated for the report: (1) standalone-main regressions + reliance on unmerged #661 + unverified head — still live, since main 1fbcc3c9 does not contain #661 (3d868f84), #661 is still open (Ready To Merge 15:24). (2) inert simulator sweep — still live, though see F.

F. Evidence gap partly, not fully, closed (corrects #17 Key finding 4/7 optimism and #19): tests/test_scheduling_utility.py:529-593 test_coalescing_heterogeneous_budget_end_to_end_balanced is new at head and does exercise output_budget < 64 heterogeneous cohorts end-to-end (non-spec max_new_tokens=8 decoder + 3 long decoders + 4×4K prefills; speculative twin :564-593), with makespan/mean+max TTFT/max_output_gap_ms ceilings (7740/330/190 and 1885/440/220 ms at :558-562, :588-593). But every assertion is coalescing-ON vs coalescing-OFF, never new-mean vs main's-min, so a revert to min_i would still pass: it guards the feature, not this PR's delta, and the absolute ceilings are brittle against workloads.py:9-22. The PR body does not mention this test. Rust does have a mean-vs-min discriminator (policy_tests.rs:7054-7059: a case where the old min_i clamp "would erroneously report a positive bonus"); Python does not.

G. Review's non-blocking items are already fixed at head — report as applied, not open (#20, #22): mean_capped helper (policy.rs:599-601, used :630, :639, :671), expected_at hoisted out of the per-decoder closure, dead .max(1.0) gone, unreachable if horizon > 0.0 deleted (:669-679, only per_token.is_finite() && > 0.0 at :676), spec reworded to "bounded cohort-mean decode horizon" (docs/scheduling-runtime-design.md:224-229), n≥3 (policy_tests.rs:6915-6927) and KV-clamped (:6929-6943) subcases, super::rounds::forecast_tokens reused (:7032, :7064-7065). Only the attribution half of the review's should-fix survives: separate the mean_out sim-parity repair from the new horizon rule, and give the #660/#661/#665 stack attribution plus the On #661 long-context-mixed SLO 89.3→82.1% (−7.2 pp) drop that sits in the table but not the prose.

H. New finding — spec now documents a horizon the qualified simulator cannot compute (#21): Rust rem = min(max_new_tokens - generated, max_sequence_tokens - scheduled_consumed) (policy.rs:548-549) vs sim output_budget = max_new_tokens - generated (simulator.py:26); the KV clamp is Rust-only by the PR's own admission (policy_tests.rs:6931-6932). Second undeclared Rust/sim divergence of the class docs/design-review.md:195-206 forbids, alongside the mean_out repair. Also unchanged at head: utility.py:205 (output_budget > 1 filter) and :234 (output_budget - 1 prefiller cap) vs Rust post_prefill (policy.rs:558-560).

I. Verified corrections to two prior hedges (#23): (a) verification/helios-lifecycle/check.py mutations target only scheduler.rs (:417, :527, :665), execution/threaded/protocol.rs (:427), execution/threaded.rs (:441), cache.rs (:511, :515), scheduler/checkpoints.rs (:521, :672), offload/transfer.rs (:649), server/runtime.rs (:653) — never policy.rs, so the "26/26 Rust mutations" pass cannot detect a regression in coalescing_prefill_log_bonus; the mutation/formal layers are N/A and docs/design-review.md:195-206 is the only applicable gate — drop the "arguably N/A" hedge in #17's Project-fit subsection. (b) No off-switch confirmed in code: helios/src/server/config.rs accepts only scheduler_policy (:305-309), scheduler_terminal_value/scheduler_terminal_age_price (:312, :728, :744-750); no coalescing_horizon_tokens key in server config or flare-cli.

J. Monotonicity re-derived without the clamps (#24): expected_at >= 1.0 (policy.rs:586-598) with powered_curve clamped to [0,1] (rounds.rs:505), and rem >= 1 from :550, so mean_i min(rem_i, cap) >= min_i min(rem_i, cap) pointwise for both mean_out (:630, :639) and horizon (:671) — #17 Key finding 2 stands. New (shared with the sim, parity-neutral, low importance): mean_capped averages over all decoders while the numerator uses only served = min(n_streams, batch) (:624, :638), so unserved decoders raise mean_out; under the old min an unserved long decoder could not inflate anything.

K. Orientation leads closed (#25): no event newer than the 16:34 review. #661 (updated 15:24) now explicitly "cleanly sequenced ahead of stacked draft #681"; its reviewer notes two of its additions (preserves_first_output_wait, reconciled interior-cut first_output_value) are not modeled in scripts/scheduling_sim — same evidence pattern. New human voice: lukealonso (author of #645, dominant helios/src committer) reviewed #661 at 2026-12-02 17:10 — after #681's bot review — demanding green .github/workflows/native-serving.yml CI before merging default-on balanced behaviour, and is silent on #681; an independent confirmation that CI on head is a merge bar here. #676 re-read: measured GB10 report (decode_overlap p99 ITL 1,430 ms, max 2,576 ms; a decoder-active prefill cap reaches 587 ms at 512 tokens), offers GB10 validation of #661, never mentions #681, and asks for utility-model pricing or an explicit cap flag --scheduler-mixed-prefill-max-tokens — i.e. the tracker's operator-facing ask is a cap/off-switch, the opposite lever from raising queued-prefill credit. related_items 681 unchanged (only #661 → #681); no new overlapping PRs.

#3 [medium] Related work: #660 stack member (checkpoint anchor splits)

#660 "helios/scheduler: budget interior conversation-anchor splits against checkpoint_extra_work_fraction" by FujitsuPolycom, open 2026-12-01 19:02, updated 2026-12-02 00:23, head 9709d496, +900/-162 across 12 files. Labels area:scheduling, bug, performance, triage:review. Autobot review 2026-12-01 23:49 = "Ready To Merge" (0 blockers), still open as of 2026-12-02.

Relevance to #681: part of the declared 4-PR stack (#660 + #661 + #665 + #681) whose "Stack" measurements #681 cites. Does NOT touch policy.rs coalescing code (files: checkpoints.rs, tests, docs/{cli,core,scheduling-runtime}-design.md, helios/README.md, phase_tests.rs, check.py). Its mixed-c32 numbers (SLO 9.1% -> 80.3%) are the base the stack builds on. #681's body says it merges cleanly with #660.

Trade-off in #660 relevant to stack interpretation: mixed-c32 per-user p50 93.9 -> 71.0, >250 ms gaps 215 -> 434; also <think>-stripping clients skip Turn-1->2 reuse on single-chunk 4.5K–13.7K prompts unless --scheduler-checkpoint-extra-work-fraction 0.15. Conflict noted in its review: overlaps open #655 in checkpoints.rs and docs.

#14 [medium] Recent activity: policy.rs/utility.py churn in the 3 days before #681

Commit history of helios/src/scheduler/policy.rs up to the PR head (search_history, newest first):

So the function #681 edits is 2 days old and has had three authors' changes in three days (#645 -> #656/#644 -> #663). policy_tests.rs history is the same set plus 7cd83f32 #569 and 5deacda9 #568. scripts/scheduling_sim/utility.py was touched only by #645, #644 and #663 before this PR (items_touching). Default-branch committers in helios/src over 180 days: Luke Alonso 237, Martin Vit 52, yatesdr 49.

#681 neither reverses nor conflicts with #663's first-output pricing semantically (different term), but both add per-prefill-token credit amortized over initial_prefill, so their relative weight moves together with the horizon; docs/scheduling-utility.md:306-309 explicitly says #663's frac = work / initial_prefill matches "coalescing's fixed-denominator amortization".

#15 [medium] Process: draft, no CI on head, no review, same-day open, merge-order claim

Process facts (orientation packet + tools):

#16 [medium] File map: exactly what each of the 5 changed files does

Files in #681 (verified against pr_diff and the head tree):

  1. helios/src/scheduler/policy.rs, +11/−10 (the only production change): decoder_rems = [0usize; REQUEST_LANES] added at :531 and filled at :552; peer_budget declaration and its peer_budget.min(rem) removed (:530-554); early-return guard drops the unreachable peer_budget == usize::MAX (:567); packed-shape mean_out at :627 and speculative-catalog mean_out at :636 become per-decoder means; horizon at :667-672 becomes ph = H.min(post_prefill) then mean over decoders of min(rem, ph).
  2. helios/src/scheduler/policy_tests.rs, +201: coalescing_bonus() helper (:6866) that re-runs lane_values with the horizon zeroed to isolate the bonus, add_active_decoder() (:6879) that forces phase=Decode/generated=1/scheduled=prompt, coalescing_horizon_averages_active_decoder_budgets_across_cohort (:6888) and coalescing_speculative_mean_output_averages_per_decoder_budgets (:6936) with three speculative sub-cases (packed eff_width 6→4, saturated B=4, slow B=4).
  3. scripts/scheduling_sim/utility.py, +2/−6: only the horizon block at :232-236; mean_out at :215-219 untouched (it was already a mean).
  4. tests/test_scheduling_utility.py, +23: test_coalescing_horizon_averages_active_decoder_budgets at :506-528 with the 32.5 mixed-cohort and single-decoder cases.
  5. docs/scheduling-runtime-design.md, +5/−2: one clause at :224-229 describing clamp-per-decoder-then-average for horizon and speculative expected output. Untouched: the config row at :713, helios/README.md:482, docs/scheduling-utility.md (whose :287-320 describes the first-output credit sharing the same amortization).

Claim consistency: the PR body says "+1 net production LOC" and "+11/-10"; that matches policy.rs. The body also calls out scripts/scheduling_sim/utility.py +2/-6 and the two test files, all present. Nothing in the body describes an unlisted change; the only undeclared effects are behavioural (monotone credit increase, mean_out sim parity, KV-clamp now per-decoder) recorded in entry 11.

#21 [medium] AMENDMENT 4: doc/sim gap — spec and simulator disagree on the KV-headroom clamp; README/config table still describe the old minimum

AMENDMENT to notes #10/#11. Two documentation/consistency points that survive the new head 975f825:

  1. The design spec now describes a horizon the simulator cannot compute. docs/scheduling-runtime-design.md:224-229 says the horizon averages each decoder's remaining output budget "clamped ... to the prefiller's post-prefill output budget and the configured horizon" — but the Rust rem is min(max_new_tokens - generated, max_sequence_tokens - scheduled_consumed) (helios/src/scheduler/policy.rs:548-549) while the simulator's View.output_budget is only max_new_tokens - generated (scripts/scheduling_sim/simulator.py:26). The PR's own new test comment states this explicitly: "KV-headroom clamping is Rust-specific (scripts/scheduling_sim/simulator.py tracks max_new_tokens - generated only)" (helios/src/scheduler/policy_tests.rs:6931-6932). So after this PR the spec's formula and the qualified simulator policy (scripts/scheduling_sim/utility.py:232-235) agree only when KV headroom is not binding, and neither the spec nor the PR body says so. docs/design-review.md:195-208 requires the qualified simulator policy to track Helios — this is a second, still-undocumented Rust/sim divergence, the same class as the mean_out repair the PR also leaves undeclared.
  2. The simulator keeps two behaviours the Rust does not, unchanged by this PR and now amplified by the cohort mean: scripts/scheduling_sim/utility.py:205 excludes prefillers with output_budget <= 1 and :234 uses view.output_budget - 1 as the prefiller cap, whereas Rust computes post_prefill = min(max_new_tokens, max_seq - prompt_tokens) - 1 (policy.rs:558-560) and skips only when it is 0. Cosmetic today, but a reviewer diffing the two formulas line by line will hit both.

Also unchanged at head and worth keeping in the report: coalescing_horizon_tokens is still absent from helios/src/server/config.rs and from flare-cli, PolicyConfig::throughput() (helios/src/scheduler/policy.rs:50-52) still does not zero it, the config row docs/scheduling-runtime-design.md:713 still reads "Output-token horizon for decode-batch coalescing bonus on queued prefills" (no cohort-mean wording), and helios/README.md:482 still says "a 64-token decode-batch coalescing" horizon — i.e. the user-facing docs still describe the pre-PR minimum semantics. So there is still no operator-visible statement of the new behaviour and still no off-switch.

#23 [medium] AMENDMENT 6: check.py mutations never touch policy.rs (verified); no coalescing key in config.rs

Two remaining claims from the 2026-12-02 16:34 review, resolved by direct check at head 975f825:

  1. "verification/helios-lifecycle/check.py has no coverage of policy.rs" — verified TRUE. check_mutations(...) in verification/helios-lifecycle/check.py targets only helios/src/scheduler.rs (:417, :527, :665), helios/src/execution/threaded/protocol.rs (:427), helios/src/execution/threaded.rs (:441), helios/src/cache.rs (:511, :515), helios/src/scheduler/checkpoints.rs (:521, :672), helios/src/offload/transfer.rs (:649) and helios/src/server/runtime.rs (:653); the mutation runner is :245-248, driver :345-346, :400, :413. There is no policy.rs mutation, so the PR's "26/26 Rust mutations" pass cannot detect a regression in coalescing_prefill_log_bonus. Both the formal layer AND the mutation layer are outside this change's signature: docs/design-review.md:195-206 (simulator/64-seed) is the only applicable gate, and it is the one that is unrun. This strengthens the report's "unrun CPU gate" finding — the claim should not be softened to "arguably N/A": the mutation suite is N/A, and that makes the missing 64-seed learning.py run the sole remaining gate.
  2. No off-switch confirmed at head. helios/src/server/config.rs accepts only scheduler_policy (:305-309), scheduler_terminal_value and scheduler_terminal_age_price (:312, mirrored at :728, :744-750); there is no coalescing_horizon_tokens key in the server config or in flare-cli, so the only way to disable the term is a rebuild. Unchanged by 975f825.

#24 [medium] AMENDMENT 7: monotonicity still holds at head without the clamps; cohort mean includes unserved decoders (shared with sim)

Re-derivation at head 975f825 (the .max(1.0) clamps are gone, so the monotonicity argument needs re-checking):

One modelling consequence of min→mean that neither the PR, its tests, nor the bot review mention (low importance, shared with the simulator and pre-existing there for mean_out):

Also verified sound (no finding): mean_capped divides by rems.len(), which cannot be 0 because of the early return at policy.rs:567; decoder_rems is a fixed [usize; REQUEST_LANES] filled in slot order, so iteration stays deterministic and allocation-free.