Explore report · NVIDIA/hyperflare-inference #693

Raw Markdown for agents: https://autobot.eidonix.com/p/52b230c1-ead1-41ae-a949-a760e782a157.md

Case file: PR #693 — perf(scheduler): cache per-lane powered survival curves across candidate pricing

Open, "ready for review", head a9f7dd7, base main, opened and last updated 2026-12-02, 3 files +502/−51, labels none, no reviews, no comments, no CI checks on the head commit. Only link: "Fixes #547". https://github.com/NVIDIA/hyperflare-inference/pull/693

Key findings

1. The change: what it does and how big

Size. 3 files, +502/−51: helios/src/scheduler/policy.rs +177/−46, helios/src/scheduler/policy_tests.rs +294/−0 (tests only), helios/src/scheduler/rounds.rs +31/−5.

Plain terms. Each decoding lane has a "speculative survival curve" from which the scheduler forecasts how many tokens the lane will actually commit. Today every priced shape rebuilds that curve (a Vec plus one powf per depth). Because request and forecast state cannot change during a pass, the PR builds it once per lane per pass and reuses it.

What it adds (at head):

What the description does not say (all equivalence-preserving as far as reading shows, but structural):

  1. next_progress restructure described in Key findings (policy.rs:946-1012). Equivalence depends on the first branch firing when speculative_widths.is_empty() || generated_tokens == 0 while the mixed decode arm requires generated_tokens > 0; worth an explicit reviewer confirmation.
  2. The mixed_candidates optimistic-tag inconsistency (policy.rs:1714 vs rounds.rs:844).
  3. lane_value visibility widened to pub(super) purely for the new test.
  4. The pre-existing comment on main in packed_round_candidates ("Lane forecasts stay fixed while shapes compete; evaluate each at most once", main rounds.rs:830-834) is deleted, its content moved to the doc comment of packed_round_candidates_with_curves (rounds.rs:848).
  5. next_progress now allocates a fresh CurveCache::new(false) on every call arriving with None (policy.rs:958), i.e. every prerequisite_value path — a small new allocation where none existed.

What the description says the change does not do: it does not change any score or scheduling decision. Reading the code, the two short-circuits are exactly value-preserving: forecast_tokens(powered, width) = f64::from(width != 0) + sum(powered[..width-1]) (rounds.rs:1016-1019) yields 0.0/1.0 for widths 0/1, so the tokens <= 1 returns are exact, not approximate; GraphKind::Decode always has lane_tokens == 1 (policy.rs:1379); and powf(p, 1.0) == p bit-for-bit for finite/infinite/NaN/signed-zero p, with alpha validated finite and positive (policy.rs:267) and defaulting to 1.0 (policy.rs:41). The packed limit <= 1 { continue; } skip drops no ranking entries because the following loop is for position in 0..limit.saturating_sub(1).

2. The why: problem, linked issues, how long wanted

4. Recent activity in the touched areas

5. People

6. Community

0 comments, 0 reviews, 0 reactions, no labels on #693 (verified: the PR conversation is empty). #547 has 0 discussion. For contrast, #681 and #540 both drew multi-round Autobot reviews and maintainer replies. The change has drawn essentially no attention, from either maintainers or the contributors who own this file.

7. Project fit (charter, design-review rules, docs)

8. Claims and evidence

Claim Backing Gap
2.61x / 5.40x / 4.54x on three fixtures A table of ns/pass medians, "release build on Linux x86_64, median across 7 runs of 5,000 iterations" No script, harness or command line in the PR; helios/benches/ holds only template.rs (not opened); measured against c513e46a before the rebase onto cc0a49d2; no fixture inputs published
pow was 5.48% of flare-model samples Inherited from #547 #547 itself says stripped binary, downstream tree, no call graph, cannot attribute pow to this path
1839 lib + 62 integration helios tests, 90 ignored; flare 246+8; flare-cli 219+26; 837 Python tests; 21 simulator workloads; TLC 2.19 lifecycle check Stated in the description with exact counts Nothing re-runnable here; orientation packet says no CI checks on the head commit, so no third-party confirmation of any suite
Curve evaluations bounded to one per eligible lane; zero for decode-only #[cfg(test)] CURVE_EVALUATIONS counter (rounds.rs:635-636) and four tests (policy_tests.rs:9489, 9517, 9545, 9567) Tests are self-consistent with the counter; they count powered_curve calls, not powf calls — after the alpha-1 shortcut an "evaluation" can be a cheap clone
Decisions unchanged cached_lane_pricing_matches_uncached_for_unit_and_fractional_alpha asserts equal candidate keys including c.rate.score.to_bits(), at alpha 1.0 and 0.6, widths 0/1/2/4/8, a 1-remaining-token lane, waiting Init, Mixed and packed Speculative, tie-breaking, optimistic probe paths, and plan() winners (policy_tests.rs:9567-9781) Strongest evidence in the PR; it is still a fixture-level equality test, not a differential run over production traces (contrast #188's ~210k-plan byte-identical trace check)
Kani sequential proofs not run Disclosed —

Test counts moved in a positive direction vs #547's patch (three tests, ≤-style assertions, "371 passed") — #693 uses exact equalities and adds a fourth test.

9. Reach

10. Process

Open questions / could not be found

  1. Does shieldstar (author of #547 and its patch) approve of this reimplementation? No comment either way; the PR does not credit them, which conflicts with the charter's "Respect contributors" tone even though shieldstar is not on the priority-contributor list.
  2. Is the next_progress restructure (policy.rs:946-1012) truly equivalent for every state combination, in particular generated_tokens == 0 with non-empty speculative_widths and consumed_tokens >= prompt_tokens? Reading says yes, but the PR does not flag the restructure at all.
  3. Should the mixed_candidates optimistic tag (policy.rs:1714) be optimistic rather than false? Nothing breaks today; the inconsistency is a latent trap.
  4. Why re-add CURVE_EVALUATIONS when a prior review of #540 asked for it to be deleted? No rationale in the PR.
  5. Any served-workload evidence, or a reproducible benchmark for the timing table (charter #210 / design-review rule 12), and were the numbers re-measured after rebasing onto cc0a49d2? The PR says the table predates the rebase.
  6. Why resize_prefill and coalescing_prefill_log_bonus were left uncached — #547 mentions the former as deliberate; the latter is not mentioned anywhere.
  7. Whether the 21-workload simulator run counts as the docs/design-review.md:195-203 evaluation (which asks for learning.py (not opened)'s screening and 64-seed catalog) — no mapping given.
  8. c513e46a baseline tree is unreadable in this checkout, so the pre-rebase comparison cannot be independently inspected.