Explore report · NVIDIA/hyperflare-inference #697

Raw Markdown for agents: https://autobot.eidonix.com/p/eb2bba7a-790c-443f-b850-eb308a1ec67a.md

Case file: PR #697 "helios/scheduler: preserve interior anchor for open-reasoning prompts"

Open, ready for review, head bfae28a, base cc0a49d, opened and last updated 2026-12-02. 16 files, +510/−35.

Key findings


The change

Plain terms: a request whose chat template opens a reasoning block gets its last complete-message checkpoint kept unconditionally (under the shipped nonzero fraction), instead of being dropped when splitting prefill there costs more than the extra-work allowance.

Mechanism, verified at head:

Size: production diff +37/−8 across 4 Rust files, net +29. Verified structurally (scheduler.rs +5, runtime.rs +4, request.rs +4, checkpoints.rs +24/−8). The remaining ~+470 lines are tests: helios/src/server/runtime/phase_tests.rs +248 for one test, and mechanical preserve_message_anchor: false literals in model/tests.rs, model/packed_round_tests.rs, scheduler/{boundary,checkpoint_lifecycle,policy,tests}.rs, server/runtime/prompt_tests.rs.

What the description understates or omits:

  1. The second snapshot row per preserved turn (above) — the preserved branch only skips the interior split charge, not the prompt-end Endpoint copy, which is charged (copy_ns from Snapshot cost).
  2. request_anchor_endpoint returns before the budgeted_anchor latch check (:484) and before the full-prompt GPU cache-hit / ready_by_prefix logic (:495-525), so preserved requests get no cache-ready verification for their anchor — matching the existing nonzero-fraction best-effort branch, not the cache-checked zero-fraction branch.
  3. Suppressing the latch at :908 means every decode step re-enters request_anchor_endpoint; for preserved requests this returns early at :480 before catalog pricing, so no measurable per-step cost — but it is a behavior change in the hot path worth knowing.
  4. The description lists OutputStart::ToolBody among non-preserved starts, but no test covers ToolBody (phase tests cover Reasoning, Content ×2, RecipientHeader, RecipientFrame ×2, Completions).
  5. "Without debiting split_ns" is accurate about accounting only; the real GPU prefill still stops at raw_anchor and launches a second tail prefill — which is the disclosed Turn-1 cost.

The why

Problem stated: PrefixCheckpointCache::lookup matches exact published checkpoints, so a Turn-k checkpoint whose stored prefix includes a reasoning tail the client stripped cannot match Turn k+1's divergent history; only a checkpoint at or before the last complete-message boundary can. Verified in helios/src/cache.rs:552-579 — nodes are filtered by history.key_at(node.prefix.consumed_tokens) == Some(node.prefix) and the longest match wins. The mechanism is real.

LiveRequest::checkpoint_anchor() (checkpoints.rs:118-125) returns the last eligible message_boundaries entry, else prompt_tokens — so the "interior anchor" is the last complete-message boundary from the native frontend.

Provenance of the problem: #660, merged 2026-12-02, disclosed it as a trade-off (quoted in Key findings) and suggested raising --scheduler-checkpoint-extra-work-fraction to 0.15 as the workaround. #697 supersedes that workaround. So the bug is one day old and self-reported by the author rather than filed by a user; no linked issue reports it. A related disclosure from the frontend layer exists in #396 (merged, yatesdr, 2026-11-19), whose "client-visible effects" list states that echoed-back control text "re-enters as ordinary tokens, so the replayed prefix differs from the generated one and cache reuse for such turns is lost" — the same divergence family, not cited by #697.

The preserve_message_anchor value is a property of the chat template/parser configuration, not the model name: OutputStart::Reasoning is set by the output parser per dialect (e.g. helios/src/output/chatml.rs:432 (not opened), 930, 1037; helios/src/output/argument_tags.rs:160 (not opened)).

Recent activity

The orientation packet's per-area commit history is unavailable (git: Could not read c513e46a...), and it records "commits on the default branch since PR branched (cc0a49d) touching its changed files: none" — the branch is essentially at repository head. Activity reconstructed from merged PRs:

Two people (FujitsuPolycom and yatesdr) are rewriting this area at several merges per day. No merged neighbour changed the interior-anchor retention rule between #660 and #697 — #697 is the first semantic change to that rule since #660 landed hours earlier.

People

Community

Nothing on #697: pr_comments returns no comments; no review, no review request, no reaction, no label, and — unlike every neighbour — no flare-autobot intake or review comment, despite #660, #655, and #661 each receiving one within ~2h and going through 2–3 review rounds. #582 drew 10 discussion entries including two blocker rounds and an APPROVED review. The PR has no requested reviewers.

Project fit

Charter (read_charter) lines that line up:

Where it sits in tension:

Claims and evidence

Verified:

Author-run but not independently verifiable here:

Not backed:

Reach

Process

Open questions / not found