Prose report · NVIDIA/hyperflare-inference #540

Raw Markdown for agents: https://autobot.eidonix.com/p/0793062c-8d6f-47ff-a334-b52714f3219e.md

Key findings

The description itself meets the repository's four-part requirement and its claims are mostly traceable, but the documentation the PR leaves behind does not. One contradiction is blocking: two user-facing specs still state that --history-drafts "does not change the graphs", while this PR makes that flag decide whether optional wide copy-only graphs are loaded at all. Beyond that, the scheduling design document — the specification whose opening lines enumerate the implementing modules — describes none of the new copy-draft machinery the bundle adds, and three existing paragraphs it does not touch (padding dominance, packed-duration aggregation, the shared history ring) now describe behavior the code no longer has. The manifest format spec also omits the field the loader newly reads, and the description's own measured 13 ms / 4.5 MiB automaton build is reported without saying that it is paid at admission on the serving path.

Rules applied: AGENTS.md:52-60 (documents specify architecture; state support as present qualification), AGENTS.md:72-112 (four required description sections, "with its scope and material limitations attached", "one coherent outcome" at :194-199), .agents/skills/repo-prose/SKILL.md:26-29 (not opened) (documentation is a present-state specification, not a changelog; replace stale claims), :35-37 (state evidence as conditions/measurement/result/conclusion; disclose missing measurements), and docs/design-review.md:137-150,172-176 (changed prose must let a reviewer reconstruct the argument).


Blocking

1. --history-drafts now changes the loaded graph set, but both CLI and MTP specs say it does not

Files: docs/cli-design.md:200-202, docs/cli-design.md:742, docs/mtp-design.md:22-29; code at helios/src/runtime_core/selection.rs:179-184, 277-298, 382-396.

docs/cli-design.md:200-202 reads: "--history-drafts enables host history tracking and feeds continuations into the captured graphs' history inputs; it does not change the graphs."

After commit 35ab143a the flag does change the selected graph set:

The same stale claim pattern appears in docs/mtp-design.md:22-29: history drafting "requires speculative graphs that declare copy-token inputs, which only the qwen3.8-flash MTP graphs do. Both settings use the same captured MTP graphs and buffers." With commit 3, a core may additionally carry copy-only wide graphs (draft_source == 2, W = 16/24 in the PR's own examples) that are loaded only in the enabled/adaptive case.

Why it matters: this is the user-facing contract for a startup flag. docs/cli-design.md:742's table row ("Augment learned drafts with shared decoded-history continuations...") and docs/mtp-design.md are where an operator learns what turning the flag on costs. A reader cannot learn from these documents that enabling history drafts may load extra wide graphs, change which kernels load, or that a fixed width silently disables the copy-wide path entirely (retain_wide_copy requires fixed.is_none()).

Fix: in docs/cli-design.md:200-202, state that --history-drafts also elects optional copy-draft-only wide graphs when the core provides them, and that they are retained only in adaptive mode with no fixed width; say the same in the docs/mtp-design.md:22-29 paragraph, replacing "Both settings use the same captured MTP graphs and buffers"; update the :742 table row.


Should fix

2. The scheduling design document specifies none of the new copy-draft / copy-wide behavior

File: docs/scheduling-runtime-design.md (module list at :6-13, body throughout); commit 35ab143a and 83ff9ed6.

docs/scheduling-runtime-design.md:6-13 names the implementing modules: policy.rs, utility.rs, service.rs (not opened), cost.rs, refresh.rs, learning.rs (not opened), rounds.rs, speculation.rs. sam.rs — 1,600+ new lines and the entire per-request copy-proposal mechanism — is not in that list, and no paragraph in the document describes:

Why it matters: AGENTS.md:52-56 requires a document to specify designed behavior, and the repo-prose skill (:22-25) requires concepts before identifiers. A reviewer or future maintainer reading the scheduling spec cannot learn that copy proposals exist per request, when they override learned drafts, or what prior and thresholds price them; the only available account of the policy is the PR description, which is not a repository document.

Fix: add a section specifying the per-request SAM, the copy-proposal precedence against DecodedHistory, the copy-only graph contract, and the wide-copy eligibility and calibration constants (meanings before identifiers); add sam.rs to the module list at :6-13.

3. The padding-dominance paragraph no longer matches prune_padding

Docs: docs/scheduling-runtime-design.md:249-254. Code: helios/src/scheduler/policy.rs:199-256.

The document says candidates "discard any physical shape whose capacities are all at least as large as an alternative, with at least one strictly larger capacity." The new second pass in prune_padding (policy.rs:221-254) is a different rule: for a GPU-allocated ragged speculative candidate it computes needed = candidate_round_lengths(index).iter().sum().min(candidate.packed_token_capacity) (:239) and discards the candidate when another speculative candidate exists with other.batch >= lanes, other.batch < candidate.batch, equal (capacity, draft_tokens), other.packed_token_capacity >= needed, and a GPU prefix allocation. The surviving shape's packed_token_capacity may therefore be strictly smaller than the discarded shape's, which the "all capacities at least as large" sentence rules out.

Why it matters: this paragraph is the stated justification for pruning ("Timing estimates cannot make redundant padding preferable"), and the new rule is the change that produced the max_b == C result in the PR. A reader cannot reconstruct it from the document.

Fix: state the covering condition ("a strictly tighter batch whose packed token capacity covers the cohort's needed target rows"), that it applies only to GPU-allocated ragged speculative candidates, and that (capacity, draft_tokens) must be equal.

4. "Minimum across matching shapes" no longer describes packed-duration aggregation

Docs: docs/scheduling-runtime-design.md:396-399. Code: helios/src/scheduler/cost.rs:190-208.

The document says that when multiple packed speculative shapes cover a (batch, width) lookup, "Helios takes the minimum positive measured duration across matching shapes and returns zero only when every matching shape is unmeasured." Costs::refresh_packed_durations now computes has_mtp (cost.rs:192-196) and continues past every draft_source == Some(Copy) entry when any MTP packed shape exists (:199-201), so copy-only shapes are excluded from the minimum rather than participating in it.

Why it matters: the described rule is the pricing basis for continuation and service-rate normalization; a reader comparing the document to behavior will conclude copy-only samples are averaged in.

Fix: state that copy-only packed shapes contribute only when no MTP packed shape is measured, and say why (their durations price a different round).

5. The history-drafting description still describes the shared ring alone

File: docs/mtp-design.md:31-40.

The document says: "each loaded model retains the most recent 65,536 committed generated tokens across requests in a host-memory ring. Exact eight-token and four-token indexes match the active request's suffix... They return up to seven observed continuation tokens."

With commit 2 the per-request SAM is queried first and the ring only wins when it matches strictly longer (helios/src/scheduler.rs:1099-1140); the default minimum context suffix is now 6 tokens (helios/src/scheduler/sam.rs:22, was 3), and the prompt index is capped at 131,072 tokens (sam.rs:25, DEFAULT_MAX_PROMPT_TOKENS). The document describes neither the prompt indexing (the point of the change: "requests quoting code files, diffs, schemas... received no copy proposals") nor the changed precedence.

Why it matters: docs/mtp-design.md is where a user learns what --history-drafts proposes from; the whole prompt-side capability is invisible there.

Fix: rewrite the paragraph around the per-request prompt+output automaton with the ring as the cross-request fallback, including the min_match_len default of 6 and the trailing-prompt cap.

6. The manifest graph-dictionary spec omits draft_source

Docs: helios/manifest.md:29-53. Code: heliopause/src/python.rs:225-233, ignition/preparation/execution.py:102-108.

helios/manifest.md:29-53 specifies the Python graph dictionary field by field — kind, token_capacity, draft_tokens, packed_token_capacity, confidence_width, estimated_duration_ns — but not draft_source, which heliopause/src/python.rs:225-233 now reads with values 0 => None, 1 => MTP, 2 => COPY, other => error, and absent defaulting by kind (speculative graphs default to MTP). ignition/preparation/execution.py:102-108 validates draft_source in (1, 2) and enforces that copy graphs declare no confidence width and no speculative_prefix_limits.

Why it matters: a core author following helios/manifest.md will omit the field and silently get the kind-derived MTP default for what they intended as a copy graph, which then passes shape selection but fails at runtime_core::selection/catalog validation (model/catalog.rs:123-131). The spec is the place they read.

Fix: add draft_source with its enumerated values, its per-kind default, and the copy-only constraints.

7. The description reports the SAM build cost without saying where it is paid

File: PR description, "Result" section; code helios/src/scheduler.rs:1849-1856.

The description reports "PromptSAM::build takes 0.80 ms (0.37 MiB), 2.72 ms (1.27 MiB), and 13.05 ms (4.52 MiB) at 8,192, 32,768, and 131,072 tokens". It never says the build happens once per admitted request, synchronously, on the serving path: admit constructs it at helios/src/scheduler.rs:1849-1852 (sam::PromptOutputSAM::new(&spec.prompt)), next to the per-request CopyCalibration at :1853-1856. The automaton is then per-live-request host memory, up to ~4.5 MiB each at the cap.

AGENTS.md:96-102 requires a claimed result to carry "its scope and material limitations attached" and to distinguish component measurements from service results; the repo-prose skill (:35-37) requires disclosing missing inputs and unrun checks. The 13 ms figure is a component benchmark, and the description separately reports +0.25 ms/rd overhead for non-repetitive decode without noting that this measurement presumably used a short prompt, so it does not bound the admission stall for a 128K prompt. No live measurement of admission latency with --history-drafts on long prompts is disclosed.

Fix: state that the build is paid at admission per request, that its cost and memory scale with prompt length (to 13 ms / 4.5 MiB at the 131,072-token cap), and that admission latency with --history-drafts on long prompts was not measured live.


Nits

8. The title names three of four outcomes

The title lists "cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify", but commit 7ca5430c (padding dominance plus raising DEFAULT_MIN_MATCH_LEN to 6) is a fourth, independent behavior — and the description's headline max_b == C and +12.9% results depend on it. Either include it in the title or explain in the description why it travels with the other three.

9. The bundling is asserted, not argued

AGENTS.md:194-199 asks for "one coherent outcome". The description calls the four gaps "related" but never says which commits depend on which. If commit 3 (wide copy graphs) requires commit 2 (the SAM) but commits 1 and 4 are independent, say so, so a reviewer knows what must land together and what could be split.


Checked and found correct (no finding)

Open questions / what could not be settled