Prose report · NVIDIA/hyperflare-inference #582

Raw Markdown for agents: https://autobot.eidonix.com/p/e19e1e78-19a0-46d4-b61b-914cec877003.md

Prose review — PR #582 "helios: avoid splitting prefill on zero-budget checkpoint anchors"

Reviewed at head a3c648351c9c364099c57479eba858a7fd33998a. Lens: description, commit message, and changed docs/comments against AGENTS.md and .agents/skills/repo-prose/SKILL.md (not opened).

Key findings

The description is structurally sound — all four required parts in order, Before/After tense discipline followed, limitations disclosed — and the commit message is a single accurate subject line. The real prose defects are in the three changed design docs, all of the same kind: the new text states only half of the new rule.

  1. Should fix — all three doc edits say the zero-fraction fallback happens only when the split adds predicted prefill work; the code also falls back when pricing is simply unavailable.
  2. Should fix — no doc states that the substituted prompt-end anchor now survives multi-chunk prefill progress, Restore, Speculative continuation and reuse promotion, which is the second defect the PR fixes.
  3. Should fix — two untouched sentences still assert that unknown prefill cost never affects anchor eligibility, which the new zero-fraction branch falsifies; each affected doc now contains two incompatible rules.
  4. Nits — four description gaps (causal mechanism missing from "Why", one unexplained identifier, docs changes unmentioned, a result stated as observed while only unit tests back it).

Rules applied: AGENTS.md:43-65 (prose skill mandatory for docs, PR descriptions and review text; "State designed behavior that the code does not implement…", "rewrite passages that… claim results beyond the stated evidence"), AGENTS.md:72-140 (the mandatory four-question description scheme), .agents/skills/repo-prose/SKILL.md:13-14 (not opened), 26-29 ("Documentation is a present-state specification… Replace stale claims instead of layering history on top"), SKILL.md:38-46 (comments explain invariants; PRs state problem, resulting behavior, technical reason, compatibility, validation), SKILL.md:48-59 (review before publishing, quote the passage and describe the information needed to repair it).


Should fix #1 — Docs omit that unavailable pricing forces the prompt-end anchor at zero fraction

Where: docs/core-design.md:1441-1443, docs/cli-design.md:706-708, docs/scheduling-runtime-design.md:556-558.

All three changed passages give the same rule:

What the code does: anchor_split_is_zero_cost returns false on any unavailable price, not just on a positive predicted cost — helios/src/scheduler/checkpoints.rs:373-377 (whole unknown → false), :378-382 (before unknown → false), :383-386 (after unknown → false). At zero fraction that false sends checkpoint_selection_uncached down the accounting.anchor_fallback_from = Some(raw_anchor); request.prompt_tokens path (checkpoints.rs:485-488, and the else if variant at :489-504), and is_request_anchor_endpoint re-derives the same answer with !Self::anchor_split_is_zero_cost(..) (checkpoints.rs:411-419).

So an unmeasured prefill capacity — for example a capacity the core prepared but which has not been measured yet, exactly the situation scheduling-runtime-design.md:563-570 describes — discards the conversation anchor even though no predicted work was added.

Why it matters: docs/cli-design.md:700 documents --scheduler-checkpoint-extra-work-fraction as user-facing behavior; a reader of any of the three passages will conclude that a known zero-cost split is always kept and will not expect anchor selection to depend on measurement coverage. AGENTS.md:52-56 requires documents to state the behavior the code implements, and SKILL.md:26-29 forbids leaving the reader to infer it. The same passage is the natural place a user diagnosing "why did my conversation anchor disappear at fraction zero" would look.

Fix: state both conditions in each of the three places, e.g. "retained only when prepared-graph pricing is available for the whole prompt and both sides of the split and predicts zero additional prefill work; when pricing is unavailable, or it predicts additional work, the prompt end serves as the anchor."

Should fix #2 — Docs never describe the new multi-chunk retention and promotion of the fallback anchor

Where: docs/core-design.md:1436-1445, docs/scheduling-runtime-design.md:553-559, docs/cli-design.md:703-708.

The description's own "After" says the change "preserves a prompt-end replacement Anchor across multi-chunk prefill progress, prefix Restore, Speculative continuation, and reuse promotion (promote_request_anchor)". None of the three docs says this. They say only "the prompt end serves as the anchor" (core-design.md:1442-1443), "the prompt end acts as the anchor" (cli-design.md:707-708), "falling back to the prompt end" (scheduling-runtime-design.md:555-556) — statements that would have been equally true of the buggy pre-change behavior for single-chunk prompts.

What the code adds, all undocumented:

Why it matters: the docs do specify that a distinct prompt end is a lower-priority capture than the anchor (docs/core-design.md:1534-1537 orders retention by role), so a reader who needs to reason about which snapshot survives memory pressure cannot learn from the docs that the prompt-end checkpoint is now promoted into the anchor role. This is the substantive new contract in the change and the one that makes reuse work; leaving it out means the design docs do not specify it (AGENTS.md:52-56).

Fix: add one or two sentences, e.g. "The substituted prompt-end anchor is retained after prefill advances past the skipped interior boundary and after a prefix restore, and the prompt-end checkpoint is promoted to the anchor role when it is reused."

Should fix #3 — Stale sentences now contradict the new zero-fraction rule

Where: docs/core-design.md:1452-1453; docs/scheduling-runtime-design.md:570-572. Also raised by the reviewer as Minor #6 in the 2026-11-28 review.

Both PR edits stop one paragraph short of these sentences and leave them unchanged. At scheduler_checkpoint_extra_work_fraction == 0 with nonzero snapshot capacity, an unknown prefill price makes anchor_split_is_zero_cost return false (checkpoints.rs:373-386), the interior boundary is dropped, and the prompt end takes the anchor role (checkpoints.rs:485-488). Anchor eligibility is therefore now a function of pricing availability, so both sentences are false as written, and each document states two incompatible rules a few lines apart (core-design.md:1440-1443 vs :1452-1453; scheduling-runtime-design.md:556-558 vs :570-572). This is precisely the "replace stale claims instead of layering history on top" case in SKILL.md:26-29.

Fix: qualify both sentences with "under a nonzero extra-work fraction" and state the zero-fraction behavior (which is the same repair as finding #1).


Nits — PR description (4)

The description meets AGENTS.md:74-80 and 82-112: why, what changed with explicit Before/After, claimed benefit, and evidence, in the required order; the Before/After tense discipline of AGENTS.md:88-94 is followed; material limitations are disclosed per AGENTS.md:103-112 — "Live signed-core serving and isolated GPU latency measurements remain unverified", plus two named pre-existing base failures with their base commit. The Discord: Dooner line is present. The commit message (a3c64835 helios: avoid splitting prefill on zero-budget checkpoint anchors) is a single clear subject with no chronology. The remaining gaps are nits:

  1. "Why" states the defect but not the mechanism (AGENTS.md:82-87: "Technical vocabulary and a sequence of operations do not substitute for a causal explanation"). The description does not say why the anchor cut is emitted today regardless of cost: the anchor Cut is pushed with split_ns: 0 (checkpoints.rs:512-519) and never charged against the work allowance, while optional candidates are charged against allowance(prefill, fraction) (checkpoints.rs:528, :596-605). One sentence naming that would let a reviewer validate the approach without reading the diff.
  2. promote_request_anchor is used as unexplained shorthand (AGENTS.md:122-128: "Explain a component's role before using its internal shorthand"). The description names the function but not that it promotes a reused prefix checkpoint from Endpoint to Anchor retention rank.
  3. The docs changes are invisible (AGENTS.md:88-94: "Name the affected components and explain the concrete implementation and behavior changes"). The PR changes docs/cli-design.md, docs/core-design.md and docs/scheduling-runtime-design.md (+19/−9) but "What changed" mentions no documentation change, including new user-facing text for --scheduler-checkpoint-extra-work-fraction.
  4. A measured-sounding result with only unit-test evidence (AGENTS.md:95-102: "distinguishing an expectation from a measured result… Never attribute a combined result to one PR"). "Zero-budget serving avoids extra padded prefill launches" is stated as a result, but every item in the evidence list is a CPU unit, lifecycle or TLA+ check; no launch count from serving is quoted and live serving is listed as unverified. Either mark it as an expectation or cite the reviewer's live 4×SM120 measurement (voipmonitor review, 2026-11-28: prefill_steps 2→1 short prompt, 3→2 multi-chunk), which is the direct support for the headline claim.

Checked and found acceptable (no finding)

Open questions / could not verify