Explore report · NVIDIA/hyperflare-inference #681

Raw Markdown for agents: https://autobot.eidonix.com/p/f91c8f27-1600-4f44-b6b1-8fcfae516db9.md

Amendments to the 2026-12-02 (run 2970) case file — PR #681 helios/scheduler: use active cohort mean in coalescing horizon

Only deltas are listed. Everything in the prior report not restated here stands as written.

Key findings

  1. The event is two things: the head moved, and the first review landed. Head e15b836 → 975f825 (975f82578a7b2a59c28fc34647769cd9ce22ab0c), now +331/−27 in the same 5 files, a single squashed commit whose parent is main 1fbcc3c9 — i.e. the reviewed revision e15b836 no longer exists in the branch (search_history; pr_files). And flare-autobot posted a full review at 2026-12-02 16:34: Changes Requested, 2 blockers / 1 should-fix / 3 subtract-simplify / 1 nit (pr_comments). So the prior report's "no reviews and no comments" / "zero engagement" is no longer true; "no CI on head" and "no human review" are still true.
  2. Most of the review's non-blocking items are already implemented at head — report them as done, not open. All of Subtract/Simplify 1–3 and the Nit landed in 975f825: 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), n≥3 (policy_tests.rs:6915-6927) and KV-clamped (:6929-6943) subcases added, super::rounds::forecast_tokens reused (:7032, :7064-7065). The review's own text is stale on all of these because it was scoped "up to e15b836".
  3. One genuinely new blocker argument, worth adopting: the 84/84 parity sweep is mathematically inert. No workload in scripts/scheduling_sim/workloads.py:25-55 overrides max_new_tokens, so every Request takes the default 4096 (model.py:103) and output_budget = max_new_tokens - generated (simulator.py:26) stays ≫ 64 for the whole run; continuous_decode (workloads.py:49) is the k=1 case where min and mean coincide. The claim is true by construction.
  4. Blocker 1 (standalone regressions + reliance on unmerged #661 + unverified head) is still fully live at head: parent is main 1fbcc3c9, which does not contain #661 (3d868f84), and #661 is still open (Ready To Merge, updated 15:24).
  5. 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 with hard-coded ceilings, never new-mean vs main's-min, so a revert to min_i would still pass. Only the Rust side has a mean-vs-min discriminator (policy_tests.rs:7054-7059: a case where the old min_i clamp "would erroneously report a positive bonus").
  6. New finding — the spec now documents a horizon the qualified simulator cannot compute. Rust's rem includes a KV-headroom clamp (policy.rs:548-549) that the simulator's output_budget lacks (simulator.py:26); the PR's own new test comment admits it (policy_tests.rs:6931-6932). A second undeclared Rust/sim divergence, the same class docs/design-review.md:195-206 forbids.
  7. The PR body is now stale against its own head: it still claims "+11/-10, +1 net production LOC" (pr_files says policy.rs +16/−18, net −2) and still describes mean_out as "averages expected_at(width).min(rem).max(1.0)", a clamp that no longer exists.

Amendment A — state of the PR (corrects the prior header, File-map and "The change / Size")

Amendment B — the review landed (corrects "zero engagement / no review / Process")

flare-autobot, 2026-12-02 16:34, full review posted on #681: Changes Requested, Merge Risk Medium "up to e15b836", blockers 2 / should-fix 1 / subtract-simplify 3 / nit 1. Pre-merge checks: security ✅; charter & value fit ⚠️; related/duplicate ⚠️; tests & verification ⚠️ (pr_comments). A case-file comment at 16:15 precedes it.

Amendment C — the review corroborates the case file (confirmation, so downstream can rely on it)

Independently restated: the cohort mean is >= main's minimum so queued-prefill credit only rises; Solo regresses 2 of 3 scenarios (cold-heavy-mix output 541.8→521.8 = −3.7%, SLO 88.1→79.1%, TTFT p50 1,763→1,834 ms; agentic_multiturn TTFT p99 3,323→5,144 ms = +54.8%; mixed-c32 SLO 93.0→91.1%, stalls 11.29→11.49%); the served A/B trees df9a8ebd/dbbf65df/38130855 and the archive hash 40596880cc64 are not the head; the positive On #661/Stack rows depend on unmerged #661/#660/#665.

Citation additions to adopt: Charter #210, docs/design-review.md:106-115 (honest-evidence / speedup-over-main rule), docs/design-review.md:195-206 (cohort-algorithm gate; "Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog"), docs/design-review.md:234-251, scripts/scheduling_sim/model.py:103, scripts/scheduling_sim/simulator.py:26, scripts/scheduling_sim/workloads.py:25-55.

Amendment D — inert simulator sweep (add to prior Key finding 4, and it is blocker 2)

Verified at head: workloads.py:25-55 sets no max_new_tokens; the default is 4096 (model.py:103); output_budget = r.max_new_tokens - self.generated (simulator.py:26). Therefore every multi-decoder workload keeps output_budget ≥ 3840 >> 64, and continuous_decode (workloads.py:49) is the single-decoder case where min and mean coincide. "84/84 matched 1fbcc3c9" cannot discriminate the change.

Amendment E — two blockers, restated

  1. Standalone main regressions + dependency on unmerged #661 + unverified head (policy.rs:630,639,671; docs/design-review.md:109-115; Charter #210) — live, since main 1fbcc3c9 lacks #661 (3d868f84) and #661 is still open.
  2. Inert 84-run sweep — live in substance, though see Amendment F for the partial remedy at head.

Amendment F — evidence gap partly, not fully closed (corrects prior findings 4 and 7)

New at head (tests/test_scheduling_utility.py):

Amendment G — review items already applied (do not report as open)

Review item Status at 975f825
S/S 1: extract mean_capped, hoist expected_at, delete dead .max(1.0) Done — policy.rs:599-601; used :630, :639, :671; expected_at evaluated once per shape
S/S 2: delete unreachable if horizon > 0.0 Done — :669-679, only per_token.is_finite() && > 0.0 at :676
S/S 3: reuse super::rounds::forecast_tokens in the speculative test Done — policy_tests.rs:7032, :7064-7065
Nit: KV-clamped and n≥3 subcases, note the clamp is Rust-specific Done — policy_tests.rs:6915-6927, :6929-6943, comment :6931-6932
Should-fix (a): reword :224 to "bounded cohort-mean decode horizon" Done — docs/scheduling-runtime-design.md:224
Should-fix (b): separate the mean_out parity repair from the new horizon rule; attribute #660/#661/#665 and the On #661 long-context-mixed SLO 89.3→82.1% (−7.2 pp) drop Still live — the body still attributes neither
Blocker 1 (rebase after #661, green CI on head, A/B tree == head) Still live
Blocker 2 (heterogeneous output_budget < 64 end-to-end coverage) Partly met by tests/test_scheduling_utility.py:529-593, but not as a mean-vs-min delta (Amendment F)
"check.py has no coverage of policy.rs" (review's unverified aside) Verified true, and it strengthens rather than softens the finding — see Amendment I

Amendment H — spec/simulator gap and user-facing docs (extends prior finding on docs)

  1. The spec now describes a horizon the simulator cannot compute. docs/scheduling-runtime-design.md:224-229 documents the per-decoder clamp, but Rust's rem = min(max_new_tokens - generated, max_sequence_tokens - scheduled_consumed) (policy.rs:548-549) is strictly tighter than the simulator's output_budget = max_new_tokens - generated (simulator.py:26). The PR's own test comment states the clamp "is Rust-specific" (policy_tests.rs:6931-6932). The spec's formula and the qualified simulator policy (utility.py:232-235) therefore agree only when KV headroom is not binding — and neither the spec nor the body says so. This is the second undeclared Rust/sim divergence of the class docs/design-review.md:195-206 forbids, alongside the mean_out repair.
  2. Two simulator behaviours Rust lacks, unchanged and now amplified by the cohort mean: utility.py:205 excludes prefillers with output_budget <= 1, and :234 uses 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 at 0.
  3. User-facing docs still describe the pre-PR minimum: helios/README.md:482-483 says "a 64-token decode-batch coalescing horizon"; the config-table row docs/scheduling-runtime-design.md:713 is still generic ("Output-token horizon for decode-batch coalescing bonus on queued prefills"). No operator-visible statement of the new semantics, and still no off-switch.

Amendment I — two prior hedges resolved by direct check

Amendment J — monotonicity re-derived at head (prior Key finding 2 stands, with a new base)

With .max(1.0) deleted, the monotonicity argument now rests on: expected_at >= 1.0 (policy.rs:586-598) because powered_curve values are clamped to [0.0, 1.0] (helios/src/scheduler/rounds.rs:505), and rem >= 1 from the if rem > 0 filter (poliics→policy.rs:550). Hence mean_i min(rem_i, cap) >= min_i min(rem_i, cap) pointwise for both mean_out (:630, :639) and horizon (:671). This is also the review's blocker-1 premise.

One unmentioned min→mean consequence (low importance, parity-neutral, shared with the simulator): mean_capped always averages over all active decoders (&decoder_rems[..decoder_count]), while the numerator uses only the streams a shape can serve (served = n_streams.min(shape.batch), policy.rs:622, :638). Under the old min_i clamp an unserved long decoder could not inflate anything. The simulator has the same shape (utility.py:215-219, :235), so this is a shared approximation, not a new divergence — worth one line so a reviewer does not read it as a bug introduced here.

Also verified sound (no finding): mean_capped cannot divide by zero due to the early return at policy.rs:567, and decoder_rems is a fixed [usize; REQUEST_LANES] filled in slot order, so iteration stays deterministic and allocation-free.

Amendment K — orientation leads closed (no event newer than the 16:34 review)

Open questions and what could not be found