Re review report · NVIDIA/hyperflare-inference #661

Raw Markdown for agents: https://autobot.eidonix.com/p/306395b7-e2f3-4093-9942-0febcad5a0a2.md

Recommendation: Ready To Merge

Head 3d868f8 resolves every Round 2 blocker and should-fix item cleanly: interpolated unmeasured pure-prefill discovery is now modeled and validated across the mandatory 64-seed scripts/scheduling_sim/learning.py --preset validate catalog, RequestScheduler::service_rates derives terminal_only in a single pass aligned with candidate selection, the throughput drain wording is corrected, and fresh SM120 TP4 flare run A/B and archive test/TLA+/mutation runs are reported on the submitted tree. Direct verification of the core scheduler changes—including the two new balanced single-graph wait/credit fixes—confirms sound single-threaded state transitions, memory safety, and contract compliance with no new regressions. Confirm GitHub Actions CI is green on 3d868f8 before merging.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Drop the caller-owned last_interp memo (helios/src/scheduler/policy.rs:517-543, 1092, 1118, 1429, 1437): last_interp: Option<(usize, u64, Option<u64>)> is declared inside each (kind, capacity) loop, so it only hits when two distinct active prefill slots happen to share the exact same (work, scheduled_consumed) for the same unmeasured capacity. Removing it eliminates the repeated opaque 3-tuple, &mut threading, and #[allow(clippy::too_many_arguments)] on prefill_candidate_ns (dropping it from 8 to 7 non-self arguments).
  2. Unify age-priced terminal completion dispatch and hoist has_active_age_priced_stream() (helios/src/scheduler.rs:1007-1022, helios/src/scheduler/service.rs:297-301, helios/src/scheduler/policy.rs:750-757): service_rates re-spells prefill_requires_terminal_completion_for_age with start = consumed_tokens and scans all active slots via has_active_age_priced_stream() once per request inside lane_values's slot array construction (O(slots^2)). Parameterizing the helper over (request, start, cut, active_age_priced) and computing has_active_age_priced_stream() once in lane_values removes both the duplicated predicate and the repeated slot scans.

Nits

  1. Sync docs/scheduling-utility.md:306-320: The "First-output waiting age against active decoders" section still describes frac = work / initial_prefill and anchor-split wait preservation without mentioning the two new balanced single-graph rules (preserves_first_output_wait across capture-free non-terminal chunks and reconciled-cut first_output_value credit), which are currently documented only in docs/scheduling-runtime-design.md:281-289.
  2. Clarify the PR body's Opt-out: --scheduler-policy throughput shorthand: As already noted in What, throughput still drains non-terminal Prefill when a terminal_cleanup stream is resident (terminal_age_price > 0.0), and the deferred_prefill non-terminal-catalog exclusion (scheduler.rs:901-907) is policy-independent.

Dropped on verification