Explore report · NVIDIA/hyperflare-inference #660

Raw Markdown for agents: https://autobot.eidonix.com/p/2c1c64c9-3d2b-4fc2-84ee-4533c8a982ee.md

Case file: PR #660 — helios/scheduler: budget interior conversation-anchor splits against checkpoint_extra_work_fraction

PR: https://github.com/NVIDIA/hyperflare-inference/pull/660 · open, draft, base main, head 22cac91 Author: FujitsuPolycom (Discord "Dooner") · labels area:scheduling, bug, performance · no CI, no reviews, no comments Size: 11 files, +740 / −127


Key findings

(Things a reader would not learn from the description.)

  1. The PR body circulates in two materially different versions. One (the orientation packet's copy) reports a "zero-re-export flare run A/B on exact candidate 22cac916834f vs 5d53040e" with mixed-c32 and Burst-8 tables. The other (the body stored on the PR item, which is authority for the discussion) says the A/B ran "atop 571a4471" — four merges old — and states outright: "Hardware A/B ran atop 571a4471 pre-#656 … not re-run on 22cac916834f". The two share the 4× DGX Spark GB10 line unchanged, but differ in every other table, in the headline workload (4×6-turn 22.7K vs 22.0K), and in what trade-offs are disclosed. Only one body discloses mixed-c32 per-user p50 93.9 → 71.0 tok/s and >250 ms gaps 215 → 434. A reader cannot tell which result table is current. (read_item(660) body vs orientation-packet body; item last updated one minute after opening, 19:03.)
  2. Six existing test files/fixtures were changed to opt out of the new default behaviour, which the body covers only as "Updated … unit tests". This includes the widely shared fixtures prefill_to_publication_boundary (helios/src/scheduler/tests.rs:3309,3315: durations rewritten to 100_000 + capacity, checkpoint_extra_work_fraction: 1.0) and boundary_tests.rs:82 (fraction: 1.0), plus the TLA+-conformance lifecycle test, policy_tests.rs, vision_window_tests.rs and helios/src/server/runtime/phase_tests.rs. The tests had encoded the behaviour the PR calls a bug; coverage of the default 0.05 path now rests mainly on the new inline tests in checkpoints.rs.
  3. Charging the anchor split spends headroom that used to fund optional captures. Previously the interior Anchor cut was pushed with split_ns: 0 and was never added to reserved_ns, so it consumed none of the allowance that gates Message/Endpoint extras (checkpoints.rs:707-716). The PR's own rewritten assertion shows the trade: cuts == [256,512,640,768,896,1024], reserved_ns == 115 becomes [256,512,768,896,1024], reserved_ns == 134 — endpoint 640 is now dropped because "Anchor 896 adds 110 ns …, leaving 90 ns … 640 (split 90 + copy 1) exceeds the remaining budget".
  4. An existing operator metric changes meaning without mention. commit_checkpoint_plans adds cut.split_ns to stats.checkpoint_extra_work_ns for every committed cut (checkpoints.rs:903-907); before this PR the Anchor cut's split_ns was hard-coded to 0, so anchor splits were invisible. Exposed as checkpoint_extra_work_nanoseconds_total (helios/src/server/metrics.rs:852 (not opened)). flare_checkpoint_skips_total{reason="work_budget"|"unknown_cost"} will also move. Neither body mentions metric movement.
  5. helios/README.md:372-380 is stale after this change. It still says "Checkpoint selection prioritizes the last eligible message boundary, using the prompt end when no message boundary is eligible" with the allowance described only for "Earlier messages and a distinct prompt end" — not that the anchor itself is now gated by it. The three design docs under docs/ were updated; the README was not. By contrast, #655 (adjacent, open) did update helios/README.md.
  6. There are two independent anchor-decision sites with different budget bases — request_anchor_endpoint (checkpoints.rs:444-517: split_ns <= allowance(whole, fraction), ignoring already-spent work) and checkpoint_selection_uncached (checkpoints.rs:578-618: allowance(initial_prefill_ns.unwrap_or(whole), fraction) plus extra_spent_ns). The budgeted_anchor latch normally reconciles them, but they can diverge when the latch is absent. This is the same class of divergence that produced both blockers in #582's review (duplicate RetentionRole::Anchor captures). Flagged as a reviewer question, not a defect claim.
  7. Certain rebase collision with #655. #655 (yatesdr, open, "Ready To Merge" per its autobot review) also rewrites checkpoint_selection_uncached and the snapshot-cost gates in checkpoints.rs (+217/−18 there). Neither PR mentions the other. #654 and #663/#661 touch scheduler-adjacent code as well.

1. The change

In plain terms. A "conversation anchor" is the checkpoint Helios keeps at the last message boundary inside a prompt so the next turn can re-prefill only from there. Prefill runs in fixed graph shapes, so cutting at an arbitrary interior boundary can cost an extra, padded prefill launch. checkpoint_extra_work_fraction (default 0.05) exists to bound such extra work to a fraction of the request's productive prefill cost. Before this PR, that bound applied to optional captures (Message, Endpoint) but not to the anchor: at fraction == 0.0 the anchor was kept only if anchor_split_is_zero_cost (per #582), while at any nonzero fraction, including the default, request_anchor_endpoint returned raw_anchor unconditionally and the planner pushed Cut { role: Anchor, split_ns: 0, copy_ns: 0 } without charging anything. The PR removes that exemption for all fractions >= 0.0.

Verified in the diff and head source:

Element Where
anchor_split_is_zero_cost() -> bool → anchor_split_ns() -> Option<(u64,u64)>, returning (whole, before+after−whole) checkpoints.rs:430-442 (diff hunk @@ -427,28 +427,18)
request_anchor_endpoint loses the checkpoint_extra_work_fraction != 0.0 || short-circuit checkpoints.rs:449 (diff @@ -456,13 +446,10), budget check at :500-516
zero_budget_anchor → budgeted_anchor (private field of pub struct CheckpointAccounting) checkpoints.rs:28; all uses :452,602,605,611,616,874,876
Planning decision runs for all fractions (if raw_anchor < request.prompt_tokens, no fraction == 0.0 gate); keeps raw_anchor iff split_ns == 0 || extra_spent_ns + split_ns <= allowance(initial_prefill_ns.unwrap_or(whole), fraction), else prompt_tokens checkpoints.rs:572-601
Unknown timings: None if fraction > 0.0 => (raw_anchor, 0); otherwise prompt end checkpoints.rs:599-600
Charging: reserved_ns += anchor_split_ns and Cut { split_ns: anchor_split_ns, copy_ns: 0 } checkpoints.rs:619-627
New early-return guard preserving an unreached, already-charged Anchor cut checkpoints.rs:533-546
Optional candidates filtered by end < raw_anchor (was end < anchor); Endpoint only offered when prompt_tokens != anchor checkpoints.rs:645,648
promote_request_anchor latches budgeted_anchor at every fraction (the fraction == 0.0 && conjunct was deleted) checkpoints.rs:867-877 (diff @@ -854,17 +864,16)

Size accounting. pr_files confirms 11 files / +740/−127. checkpoints.rs is +626/−78, of which the production hunks total roughly +60/−51 and the remainder is inline mod tests (the "prod LOC" figure of "+9 net" in one body version counts the guard hunk as a net add; ~40 lines genuinely change). Docs: docs/cli-design.md, docs/core-design.md, docs/scheduling-runtime-design.md (+41/−36 total). verification/helios-lifecycle/check.py +2/−2 (mutation target string only). No flag, config key, Protobuf/ABI or unsafe appears in the diff — consistent with the body.

What the description says that the diff does not quite do. The body says the tests were "updated"; the reality is that existing fixtures were re-parameterised (finding 2), and one existing test's scenario was rewritten wholesale (exact_system_and_prompt_checkpoints_publish_only_after_snapshot_completion now uses prompt_len = prefill_chunk_size + 3 with a chunk-aligned boundary instead of prompt 13 / boundary 10, so the anchor lands where the budget accepts it).

2. The why

The complaint is old and documented in-repo:

The framing the docs support: docs/core-design.md and docs/scheduling-runtime-design.md:614-638 state that extra captures consume a request-local work allowance; #660 makes the anchor obey the rule it was previously exempt from.

Supersedes / finishes: #582 (merged, same author) — introduced anchor_split_is_zero_cost, zero_budget_anchor, and the fraction == 0.0 gate #660 removes. #660 reuses #582's latch and same-snapshot pricing, and rewrites the doc sentences that stated nonzero-fraction anchoring is "best effort and independent of duration estimates".

Builds on: #645 (merged 2026-11-30, lukealonso) prefill scheduling/cost overhaul (interval_prefill_ns, the catalog this pricing needs); #568 (merged, role-based Endpoint eviction / Anchor guard rows); #459 (merged, cached selection walk); #613 (merged, deferred_prefill checkpoints).

Parallel / competing edits to the same code:

Full file map of checkpoints.rs authors (items_touching): #660 (open), #654 (open), #655 (open), #645, #582, #613, #550, #568, #426, #479, #459, #415, #357, #354, #285.

Checked and judged not relevant: #534 and #600 are fork-specific (AzallazA/hyperflare-inference, PrefillTailMerge), rebutted upstream; #534 concerns unmeasured snapshot cost (the #655 problem), not anchor budgeting.

4. Recent activity

checkpoints.rs is rewritten roughly every 1–3 days: #645 (11-30), #582 (11-29), #613 (11-29), #550, #568, #426, #479, #459, #415, #357, #354, #285 earlier in November. Last main commits in helios/src and docs: a3c80e19 (#657), 5d53040e (#628), e8a3a7c7 (#656), cd1daa3e (#638), a4720050 (#625), e85019b9 (#645), bf7562ae (#646), f2ca2c41 (#647).

5. People

6. Community

Zero engagement: no comments, no reviews, no inline comments, no reactions. related_items shows no discussion. The only signal is indirect — yatesdr's #663, opened 38 minutes after #660, cites it as complementary ("addresses when interior conversation-anchor splits should be budgeted against checkpoint_extra_work_fraction"), i.e. one peer has read and accepted the framing. No autobot review has been triggered, unlike #582 (autobot case file + review) and #655 (two autobot reviews, last "Ready To Merge").

7. Project fit

Lines up:

Does not line up / unanswered:

8. Claims and evidence

Verified from the diff/source: all six structural bullets of the body (see the table in §1), the file/LOC counts, the absence of flags/ABI/unsafe, the docs updates, and — for one of the two predecessors' invariants — the new guard and its two tests (anchor_only_multi_chunk_prefill_preserves_split_cost_and_budget, default_fraction_anchor_guard_revocation_preserves_charged_anchor_split).

Author-reported only (no CI on the head commit, no review):

Premise folded into the harness: because the shared fixtures now set checkpoint_extra_work_fraction: 1.0 (tests.rs:3315, boundary_tests.rs:82), the fixture defaults no longer exercise the changed default path.

9. Reach

10. Process

Draft; opened and last updated 2026-12-01 19:02/19:03; same-day age. No CI checks on the head commit. No reviews, no comments, no triage label (triage:review is absent, while #582 and #655 carry it). The repo's Design-Signed-Off-By trailer could not be verified. Landing in draft with no CI and two circulating bodies means every result in this file should be treated as provisional.


Open questions for whoever decides

  1. Which PR body is authoritative — the 571a4471-based A/B ("not re-run on 22cac916834f") or the exact-candidate 22cac916834f vs 5d53040e table? The two do not agree on workloads, deltas, or disclosed regressions.
  2. Is the mixed-c32 per-user regression (93.9 → 71.0 tok/s, >250 ms gaps 215 → 434) an accepted trade for +96.2% batch throughput, or a control that should block?
  3. Should the two anchor-decision sites (request_anchor_endpoint at checkpoints.rs:509 vs the planner at :588-597) share one budget basis? They differ whenever the budgeted_anchor latch is absent.
  4. Is the loss of late interior Message/Endpoint extras (the diff's own [256,512,640,768,896,1024] → [256,512,768,896,1024] assertion) intended and acceptable, and should the README say so?
  5. Sequencing against #655 (same function, Ready-To-Merge): which lands first, and does #660 need re-basing and re-A/B before review?

What could not be found or verified