Prose report · NVIDIA/hyperflare-inference #540

Raw Markdown for agents: https://autobot.eidonix.com/p/685a84dc-c705-4cad-87b7-bb24e2ddae1e.md

Key findings

Reviewed the prose of PR #540 at head e5a69669 (33 files, +4306/−310) against the repository's own rules: AGENTS.md:43-65 (before writing or reviewing repository prose, read and apply .agents/skills/repo-prose/SKILL.md (not opened); every repository document is a present-state specification; state designed-but-unimplemented behavior as such; record unrun checks and pending measurements in docs/TODO.txt, not in design documents), AGENTS.md:72-112 (a PR description must answer why / what exactly changed / what benefit is claimed / what evidence supports it, in that order, with limits and unrun checks visible), and the charter's requirement to check compatibility across the supported model, cache, parallel and hardware matrix.

No blocking prose issues remain at e5a69669. The three blockers I raised at the earlier head 14019718 are all fixed and I re-verified each against the code. One should-fix and two nits remain.

Nothing was run this round; every claim below is from reading code and docs at e5a69669, and there are no CI checks on the head commit.


Blocking — none

The three previously blocking prose errors are fixed at e5a69669:

  1. --history-drafts graph selection is now documented truthfully. docs/cli-design.md:200-208 states that the flag enables per-request prompt-and-output suffix-automaton plus shared decoded-history tracking, that under adaptive learned speculation it retains captured copy-only speculative graphs (draft_source = COPY_DRAFT) wider than the selected MTP draft depth and keeps their widths in speculative_widths, and that otherwise load-time selection prunes copy-only graphs, drops kernels referenced only by pruned graphs, and removes the copy-only widths; docs/mtp-design.md:26-34 agrees. This matches helios/src/runtime_core/selection.rs (previously verified: retain_wide_copy at :184, copy_wide/prune at :277-298, prune_kernels at :382, retained_widths at :384-393). The earlier sentence claiming the flag does not change the loaded graphs is gone. This matters because the printer of the statement in AGENTS.md:52-56 is exactly a present-state specification of load behavior.
  2. draft_source is no longer overwritten on export. heliopause/src/export/binding.rs:201-216 derives COPY_DRAFT from wire value 2, defaults absent/0/1 to MTP, rejects unknown values, and rejects copy-only on non-speculative graphs; the protobuf round-trip test is at binding.rs:1490-1498. docs/mtp-design.md:386-387 ("draft depth D, verification width, and proposal source") is therefore true, and ignition/preparation/execution.py:104-108 rejects draft_source == 2 on mixed/decode, consistent with helios/src/runtime_core/selection.rs:244-247.
  3. The scheduling specification now specifies the new mechanism. docs/scheduling-runtime-design.md:6-15 lists sam.rs and decoded_history.rs (not opened); :71-90 is a new "Proposal sources and calibrated wide copy-verify" section covering the copy-only graph contract, the --history-drafts retention gate, the 6-token / base_mtp_drafts + 3 / base_mtp_drafts + 1 eligibility gates and the CopyCalibration constants (0.88, 4.0, 2.0, 128-token half-life), matching helios/src/scheduler/rounds.rs:882-916 and speculation.rs:14-37,136-222; :273-283 describes the ragged-batch dominance pass at policy.rs:239-256; :425-433 describes the per-source packed-duration tables. docs/scheduling-theory.md:576-582 now separates simulator semantics ("idle earns no credit and discards positive credit while retaining debt") from Helios ("retains bounded earned credit and negative debt across idle gaps while discarding positive credit only on abort"), matching helios/src/scheduler/refresh.rs having no idle method; :717-744 gives the two-tier unattempted-first refresh order matching cost.rs:324-333. scripts/scheduling_sim/learning_policy.py:668-673 still discards credit, and the doc now states that as a deliberate divergence rather than contradicting it.

Should fix

1. docs/mtp-design.md:542-544 — the implementation-status list omits the per-request suffix automaton and the copy-only wide graphs.

The text reads: "Implemented for Qwen: token-vector completions (ignition/components/completion.py (not opened)), copy proposals from shared decoded history (helios/src/scheduler/decoded_history.rs (not opened)), the MTP loader and decoder (…), adaptive width selection (helios/src/scheduler/), and the compact recurrent commit (PreparedGDNCommit)."

Two problems, both present-state accuracy errors under AGENTS.md:52-56:

Fix: add "copy proposals from a per-request prompt+output suffix automaton (helios/src/scheduler/sam.rs) with the shared decoded-history ring as fallback (helios/src/scheduler/decoded_history.rs (not opened))" and "copy-only wide speculative graphs (draft_source = COPY_DRAFT)" to that list.

Nits

2. docs/api.md:295-296 and docs/cli-design.md:1790 still describe history drafts in ring-only terms. api.md says flare_history_drafts_enabled "reports whether shared decoded history augments learned proposals in the serving process"; cli-design.md:1790 describes a core's speculation settings as "whether drafts can be copied from shared decoded history". Since --history-drafts now also enables the per-request suffix automaton (docs/cli-design.md:200-202) and selects copy-only graphs, both should read "copy proposals from the per-request suffix automaton and the shared decoded history". The metric name and its presence are right; only the gloss is stale, so this is a nit rather than a should-fix.

3. docs/scheduling-runtime-design.md:429-433 overstates when a combined lookup returns zero. The text: combined (batch, width) lookups "prefer a positive measured MTP duration, fall back to a positive measured COPY_DRAFT duration …, and return zero only when covering shapes exist without a positive measurement". In helios/src/scheduler/cost.rs:237-251 the function returns None when mtp is None, copy is Some(0), and any MTP packed row anywhere in the catalog is measured (:244-249) — that is, when an unmeasured COPY_DRAFT shape is the only cover and the MTP table is populated elsewhere. The parenthetical at :433 hints at this, but the sentence as written says that case yields zero. Suggested wording: return zero only when the covering shapes are unmeasured and no MTP packed shape exists in the catalog.

Checked clean

Open questions and what could not be settled