Amendment report — PR #661, revised for head 3d868f84 (only what changed; everything from the 2026-12-01 case file not listed here still stands)
Key findings (changed since the previous report)
- New head, new base, new size.
3d868f84(treec1d6858b) sits directly onmain1fbcc3c9(#667), not29f2b5bon5d53040e. Scale is +2,778 / −186 in 15 files (PR header;pr_files), production Rust +376 / −140 in 4 files ("+236 net non-test Rust production LOC", body What). The change is no longer "production + tests + docs": it now edits the mandatory Layer-2 simulator (scripts/scheduling_sim/learning.py+1/−1,learning_policy.py+97/−14,workloads.py(not opened) +51/−0) and three Python test files (tests/test_scheduling_learning_policy.py(not opened) +139,tests/test_scheduling_learning_experiments.py(not opened) +18,tests/test_scheduling_utility.py(not opened) +24). - Autobot's Round-2 blocker on
service.rsis fixed. Thetoken_rate == 0.0rescan is gone;service_ratesnow derivesterminal_onlyonce inside the same pass (service.rs:297-301) and prices every catalog capacity from it, skipping onlyGraphKind::Prefillwhenterminal_only(:309-311). No extra catalog scan, no mispricing of a feasible non-terminalPrefillbehind a measuredTerminalPrefill. The undeclared reach narrows but survives:terminal_onlycan now befalsewhere it used to betrue, so entropy-dual prefill service pricing underbalancedstill changes, and the body does not say so. - The false
throughputclaim is fixed in the description. The body now statesthroughput(decode_age_price = 0.0) pipelines across decode and resume and "drains only when a finishingterminal_cleanupstream is resident (terminal_age_price > 0.0)" — matchingpolicy.rs:50-52(throughput zeroes onlydelivery_fairnessanddecode_age_price;terminal_age_pricestays 1.0, vs.balancedat:35-37) andscheduler.rs:1187-1190. Residual, not a blocker: the body's "Opt-out:--scheduler-policy throughput" overstates the escape hatch, because thedeferred_prefillkind widening (scheduler.rs:901-907) and the terminal-cleanup drain are policy-independent. - A/B numbers are now on the submitted tree — and they are mixed, not uniformly good. Body states the SM120 TP4
flare runA/B is3d868f84/c1d6858bvsmain1fbcc3c9,balanced, 0 server errors.mixed-c32>250 msstalls 538 → 365 (−32.2 %), stalled time 11.39 % → 6.65 %, but output −1.5 % (1,273.0 → 1,254.4), TTFT p50 +3.9 % (1,423 → 1,479 ms), SLO 91.1 % → 89.4 %;long-context-mixed863 → 503 (−41.7 %), output +1.4 %, SLO 94.8 % → 89.3 %;cold-heavy-mix2,988 → 2,732 (−8.6 %), TTFT p50 −10.9 %, but SLO 89.0 % → 81.6 % and client-side 45 s drain cutoffs 4 → 7; cold-burst probe is worse on all three rows (peak gap 277.4 → 433.7 ms, mean max gap 229.3 → 243.8 ms, makespan 2.813 → 2.906 s). The old "215 → 78" row and the post-#663 "286.0 ms/431 → 203.1 ms/91" row are superseded; current control is 538 stalls at ~1,277 tok/s. - The #660 "same control row, opposite direction" contrast is retired. #660's 1,072.8 tok/s / 215 came from a
5d53040e-era base; #661's control is now1fbcc3c9. Neither PR has a head-to-head, and #660 remains open. - The docs gap narrows to two sentences.
docs/scheduling-theory.mdis no longer untouched (+18/−3)::93-96now points atscheduling-runtime-design.md#duration-estimates, and:562-573documentsinitial_discovery = "interpolated". Still contradicting the change::74-76("Prefill has no externally visible per-chunk cadence") and:121-122("Two long prefills do not need smaller chunks merely to alternate").helios/README.md:282-289(not opened),:423-433and thecost.rsdoc comment (cost.rs:690-694) already describe the new behaviour, so the residual defect is theory-doc only. - Two new related items. #676 (open issue, 2026-12-02, labels
area:scheduling/bug/performance): an independent GB10 reproduction of the same failure on 2× DGX Spark / GLM-5.3-Flash TP2 —decode_overlapp99 ITL 1,430 ms, max 2,576 ms, attributed to 3.5K–4K prefill steps and two-frame stacking — with a comment offering to run that benchmark against #661. #681 (open draft, same author, 2026-12-02) is stacked on #661 and carries the nearest GB10 evidence: on top of3d868f84,mixed-c32stalls 365 → 135 and GB10Stack>1 sstalls 35 → 12 — stack numbers, not #661 alone. - Two Autobot reviews, both on superseded heads; still no human review. Changes Requested 2026-12-01 23:08 (
29f2b5b) and 2026-12-02 02:49 (c588d61); the author replied 2026-12-02 13:20 addressing Round 2 point by point. Labels are nowarea:scheduling, enhancement, performance, triage:validation(wastriage:design-review), and the PR is no longer comment-free. CI: the author says "GitHub Actions CI is triggered on3d868f84" but no result is readable.
Amendments, claim by claim
Struck. "One commit atop 5d53040e, behind main, needs rebase" (now rebased on 1fbcc3c9); "service.rs fallback reprices and costs an extra catalog scan" (fallback removed, single pass at service.rs:297-311); "the body's throughput pipelining claim is false, and the PR's own test contradicts it" (fixed in the body); "every headline number describes code that is not the head" (numbers now on 3d868f84, still author-reported); "64-seed validation is explicitly unrun and the simulator cannot model the change at all" (claimed run, interpolation now modelled — see narrowing below); "docs/scheduling-theory.md untouched, contradicting at three places" (touched, two sentences remain); "#660 shares the control row and moves the stall metric the other way" (baselines diverged).
Narrowed. (a) Simulator gate. New code: _natural_fit_prefill_capacity / _interpolated_prefill_duration (learning_policy.py:199-238), selection with initial_discovery="interpolated" and reason="interpolated_prefill_discovery" (:276-333), CLI choice learning.py:436, validation learning_policy.py:80-81. Author reports learning.py --preset validate --reference ttl over 64 held-out seeds / 15,872 runs ACCEPTED, 0/64 resets, 35/35 vs ttl at 1.0100× and −17.5 %…−27.0 % p99 TTFT vs native. Two caveats stand: the model still has a single prefill family (model.py:23-39 Graph carries only prefill_capacity/decode_capacity/width; peers filtered on prefill_capacity alone at learning_policy.py:219-226), so only the interpolation rule is validated — not the drain, the wait-clock carry or the reconciled cut credit; and --preset validate takes policy parameters only from a --configs file (learning.py:472-485) that is not committed, so the run is not reproducible from the tree. (b) Test blindspot. continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7739-7821) still compares only the Init continuation score, but a companion now guards the prefill branch: add_candidate_excludes_oversized_unmeasured_terminal_prefill_above_prefill_nat_fit (:8526-8613), plus tests at :8291, :8421, :8615, :8734, :8932. (c) Blocker count. Three → two: author-reported served A/B whose SLO and burst-probe rows regress with no in-repo harness (workloads live in FujitsuPolycom/tokbench v0.4.0), and the 64-seed gate's limited scope plus uncommitted validate config.
Kept. Default-ON under the shipped balanced preset with no flag, no PolicyConfig field and no ABI change; the narrowing of #645's two-frame Prefill pipelining (lukealonso, merged 2026-11-30, e85019b9) and the relaxation of #538's natural-fit discovery (same author; the #538 → #550 GB10 0.02 s → 15.3 s TTFT regression); lineage through #485/#538/#550 and the sibling PRs #655/#660/#663/#681; the undeclared deferred_prefill widening (scheduler.rs:901-907: every capacity outside terminal_prefill_catalog becomes TerminalPrefill, now enshrined in verification/helios-lifecycle/check.py:527-535 (not opened), whose failure message still describes the older && needs_terminal rule); charter #210 served-evidence satisfied in form, docs/design-review.md:195-208 Layer-2 gate partially met; single-threaded, zero unsafe, sound u128 interpolation with the non-monotonic clamp (cost.rs:769-775).
Added. Planner-side cost at this head: PrefillSlotPlan memoises (cut, terminal_only, nat_fit) per slot per candidates() pass (policy.rs:89-96, :508-515), has_active_age_priced_stream() is now called from service_rates (service.rs:297), preserves_first_output_wait (policy.rs:503) and prefill_step_requires_feedback (scheduler.rs:1188), and terminal_prefill_window is cached on catalog updates (scheduler.rs:847-866) so the O(catalog) recompute is gone. The PR gives no planner-timing evidence. Two additional balanced single-graph fixes are folded in and claimed validated on the head: preserves_first_output_wait retaining first_output_wait_ns across capture-free non-terminal chunks, and reconciled-cut first_output_value credit in lane_value_for_tokens_within.
Spot checks at 3d868f84 found no new defects: the last_interp memo key (work, scheduled_consumed) is reset per capacity (policy.rs:1429, :1092) and interpolated_prefill_duration (cost.rs:695-776) is pure in exactly those inputs; is_unmeasured_candidate (policy.rs:545-548) cannot classify a measured candidate as Discovery; the age-priced resize_prefill cap (policy.rs:1838-1853) can shrink but never grow past the winning capacity.
Open questions
- Why does SLO fall while stalls drop (
cold-heavy-mix89.0 % → 81.6 %, drain cutoffs 4 → 7;long-context-mixed94.8 % → 89.3 %)? No explanation in the body, and both aren=1. - Does #676's offer to run its GB10 benchmark against #661 get taken up? GB10 is not re-measured on
3d868f84(body Limits), and #681's GB10 rows are stacked. - Where is the
--configsfile for the 64-seed validate run, so the reported gate can be reproduced? - Does the widened
deferred_prefill→TerminalPrefillresolution change behaviour on any real signed core (a core whoseTERMINAL_PREFILLcatalog is a strict subset ofPREFILL)? Only synthetic tests cover it. - No independent reproduction of any headline number;
iein(author of #550) andlukealonso(author of #645) — the two people with the most relevant evidence — still have not commented.cargo-kaniwas not run.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/661