Final review report · NVIDIA/hyperflare-inference #632

Raw Markdown for agents: https://autobot.eidonix.com/p/b5a74221-4528-4c10-a9ea-77b5c4a22eaf.md

Recommendation: Changes Requested

The production code change in helios/src/scheduler/rounds.rs (+15/−10) is small, mathematically coherent, and preserves [0.0, 1.0] probability clamping, monotonic non-increasing prefix survival, broken-drafter W=1 fallback, and core/ABI compatibility. However, the PR cannot be merged as-is because CI on head 64c7198 is red and undisclosed while mandatory scheduler verification gates (--release crate tests, TLA+ lifecycle conformance, and Kani) were not run, the performance claim lacks an isolated main-vs-PR served A/B at matched draft_tokens (and at default adaptive_verification_alpha = 1.0), and the new documentation inaccurately describes proposal_confidence as storing cumulative Rényi-2 products rather than per-step conditional confidences multiplied on the host.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

  1. Undisclosed failing CI and skipped mandatory scheduler verification gates (helios/src/scheduler/rounds.rs, docs/design-review.md:180-251).
    • Verified behavior/impact: CI is failed on head commit 64c7198 and not disclosed in the PR description. Under docs/design-review.md:180-251 (Testing Hierarchy Layers 1 and 3, matching .github/workflows/native-serving.yml (not opened) and .github/workflows/helios-lifecycle.yml (not opened)), modifying helios/src/scheduler/ requires running full --release crate tests (cargo test --locked --release on helios --features runtime-core,server, flare, flare-cli, and heliopause — "cargo check does not substitute for cargo test") plus python3 verification/helios-lifecycle/check.py (not opened) and cargo kani --manifest-path helios/Cargo.toml (not opened) --features runtime-core --lib. The PR currently reports only debug-mode filtered scheduler:: tests and cargo check on flare-cli.
    • Fix: Diagnose and fix (or explicitly account for, if an external runner issue) the red CI check on 64c7198, run the required --release crate test suites and helios-lifecycle / cargo kani verification gates, and record the exact results in the PR description.

Should Fix

  1. Provide an isolated main-vs-PR served A/B at matched draft_tokens and default adaptive_verification_alpha = 1.0 (docs/design-review.md Principle 12, Charter #210).
    • Verified behavior/impact: Every GPU serving measurement in the PR is from a combined SM121/RoCE/recipe/scheduler stack (identical block copied to sibling PR #633), and the headline long-form comparison (87.74 vs 118.23 tok/s) also changes draft_tokens (5/W=6 vs 7/W=8). Moreover, the served run uses adaptive_verification_alpha = 0.75 rather than default 1.0 (docs/scheduling-runtime-design.md:75), and its own 8K C=16 / C=32 note reports lower acceptance (49.4%–51.8% vs 59.7%–62.2%) and extra packed verification rows on low-acceptance prose without reporting the matched baseline C=16 / C=32 throughput.
    • Fix: Run an isolated main-vs-PR flare run A/B on one GPU-confidence core with draft_tokens held fixed, covering both high-acceptance generation (demonstrating the packed-width recovery) and high-concurrency/low-acceptance decode (C=16/C=32) at default alpha = 1.0 (and alpha = 0.75 if retained), with matched baseline numbers for every reported cell.
  2. Correct the inaccurate sidecar format description in docs/scheduling-runtime-design.md:117-123 and helios/README.md:450-452.
    • Verified behavior/impact: docs/scheduling-runtime-design.md:117-119 states that "the GPU confidence sidecar at 0-based depth (d) records the cumulative Rényi-2 collision survival prod_{j=0..d} sum_i q_{j,i}^2 across d + 1 draft steps" (and helios/README.md:451-452 repeats this). That contradicts both the runtime implementation and contract: proposal_confidence[frame, row, d] carries per-step conditional confidence values, which the host multiplies into cumulative prefix survival (prefix *= confidence[row][depth]) in helios/src/scheduler/rounds.rs:609-613 and the device multiplies in FP64 per helios/model-contract.md:218-221. Additionally, helios/model-contract.md:218-231 is model-agnostic and does not mandate Rényi-2 collision probabilities as the sidecar contract; multiplicative c^(d+1) compounding follows for any per-step conditional confidence multiplied across d + 1 steps.
    • Fix: Update docs/scheduling-runtime-design.md:117-123 to state that the host multiplies per-step conditional sidecar confidences into the (depth + 1)-step cumulative prefix survival product (optionally mentioning Rényi-2 collision probability only as a concrete recipe example rather than the wire contract), and update helios/README.md:449-452 accordingly.

Subtract / Simplify

  1. Simplify calibration_factor_max and move it below the const block (helios/src/scheduler/rounds.rs:13-25).
    • calibration_factor_max splits the contiguous const block between lines 13 and 19, and i32::try_from(depth.saturating_add(1)).unwrap_or(30).min(30) carries redundant overflow/fallback conversions. Move the helper below SURPLUS_FACTOR_MAX (:25) and simplify to CALIBRATION_FACTOR_MAX.powi(depth.min(29) as i32 + 1) (optionally naming const CALIBRATION_FACTOR_MAX_STEPS: usize = 30;), which is total, panic-free, and identical for every usize.
  2. Deduplicate the ratio-clamp expression shared by DepthCalibration::factor and RequestCalibration::factor (helios/src/scheduler/rounds.rs:47-53, 83-91).
    • Both methods contain the identical if self.predicted > 1e-6 { (self.realized / self.predicted).clamp(0.0, calibration_factor_max(depth)) } else { 1.0 } block edited in both sites by this PR. Extract a single calibration_ratio(realized: f64, predicted: f64, depth: usize) -> f64 helper so the 1e-6 epsilon and depth ceiling have one definition.
  3. Trim the 6.5-line parenthetical in helios/README.md:447-452.
    • Shorten the README summary clause to clamped to `[0, 2^(depth + 1)]` with `depth + 1` capped at `30`) and leave the multiplicative compounding derivation in docs/scheduling-runtime-design.md.

Nits

Dropped on verification