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.
- Should fix —
docs/mtp-design.md:542-544: the "Implementation status and acceptance" list still presents copy proposals as coming only fromhelios/src/scheduler/decoded_history.rs(not opened), omittinghelios/src/scheduler/sam.rs(the primary, per-request source) and the copy-only wide graph family this PR adds. - Nit —
docs/api.md:295-296anddocs/cli-design.md:1790: both still describe--history-drafts/flare_history_drafts_enabledpurely as "shared decoded history" augmentation. - Nit —
docs/scheduling-runtime-design.md:429-433: the combined(batch, width)lookup sentence overstates when a lookup returns zero;helios/src/scheduler/cost.rs:237-251can returnNonein a case the doc says yields zero.
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:
--history-draftsgraph selection is now documented truthfully.docs/cli-design.md:200-208states 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 inspeculative_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-34agrees. This matcheshelios/src/runtime_core/selection.rs(previously verified:retain_wide_copyat :184,copy_wide/prune at :277-298,prune_kernelsat :382,retained_widthsat :384-393). The earlier sentence claiming the flag does not change the loaded graphs is gone. This matters because the printer of the statement inAGENTS.md:52-56is exactly a present-state specification of load behavior.draft_sourceis no longer overwritten on export.heliopause/src/export/binding.rs:201-216derivesCOPY_DRAFTfrom wire value2, defaults absent/0/1toMTP, rejects unknown values, and rejects copy-only on non-speculative graphs; the protobuf round-trip test is atbinding.rs:1490-1498.docs/mtp-design.md:386-387("draft depth D, verification width, and proposal source") is therefore true, andignition/preparation/execution.py:104-108rejectsdraft_source == 2onmixed/decode, consistent withhelios/src/runtime_core/selection.rs:244-247.- The scheduling specification now specifies the new mechanism.
docs/scheduling-runtime-design.md:6-15listssam.rsanddecoded_history.rs(not opened);:71-90is a new "Proposal sources and calibrated wide copy-verify" section covering the copy-only graph contract, the--history-draftsretention gate, the 6-token /base_mtp_drafts + 3/base_mtp_drafts + 1eligibility gates and theCopyCalibrationconstants (0.88,4.0,2.0, 128-token half-life), matchinghelios/src/scheduler/rounds.rs:882-916andspeculation.rs:14-37,136-222;:273-283describes the ragged-batch dominance pass atpolicy.rs:239-256;:425-433describes the per-source packed-duration tables.docs/scheduling-theory.md:576-582now 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"), matchinghelios/src/scheduler/refresh.rshaving noidlemethod;:717-744gives the two-tier unattempted-first refresh order matchingcost.rs:324-333.scripts/scheduling_sim/learning_policy.py:668-673still 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:
- Wrong primary source. The code queries the per-request SAM first:
helios/src/scheduler.rs:1112-1149(resolve_copy_match) buildsrequest.sam.as_ref().and_then(|sam| sam.propose(maximum)…)and consults the shared ring at:1134-1138, taking the ring only when its match length is strictly longer (:1140-1142), andhelios/src/scheduler.rs:1151-1153documents that order explicitly: "querying its per-request prompt+output suffix automaton first, falling back to the shared decoded-history ring when the shared ring has a strictly longer match or the per-request SAM misses." A reader of the status list concludes the per-request prompt copying this PR's headline feature adds does not exist. - Missing graph family. The copy-only wide speculative graphs (
draft_source = COPY_DRAFT, retained/pruned perhelios/src/runtime_core/selection.rs:184,277-298) are implemented and are named indocs/cli-design.md:200-208anddocs/mtp-design.md:26-34, but not in the status list, so the list is inconsistent with the rest of the same document.
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
- Refresh and acceptance prose.
docs/scheduling-runtime-design.md:465-520matcheshelios/src/scheduler/refresh.rs:71-93andcost.rs:21-38: compute duration excludes measured readiness wait,wall_nsis the fallback only when GPU timing is absent, raw physical duration is retained for acceptance learning, and the aggregate bounds (P <= 0.002 / 0.998 * O + Dtiming refresh,P <= 0.01 / 0.99 * O + Dacceptance) are stated correctly. docs/cli-design.md:747(the settings table row for the flag) is consistent with:200-208.helios/manifest.md:38documentsdraft_source, matchingselection.rs:244-247andheliopause/src/export/binding.rs:201-216.- PR description. It answers why / what / result / evidence in that order per
AGENTS.md:72-112; it discloses thatPromptSAM::buildruns synchronously at admission (matchinghelios/src/scheduler.rsadmission path), labels the combined-stack live results as combined-stack rather than attributing them to this PR (AGENTS.md:99-101), gives per-commit scope with the affected files, keeps the aggregate-bound compatibility claim, and closes with an explicit Limits paragraph naming the unrun per-commit GPU A/B, live copy-only wide export (W=16/24), power-limit cost-refresh transitions, non-DeepSeek models, SM121/GB10 and multi-host RoCE — exactly the "state what remains untested" requirement atAGENTS.md:105-106. Test counts are given per suite with the exact commands, and the SAM microbenchmark numbers state their hardware and token counts, satisfyingAGENTS.md:107-112. - No injected or instruction-like text appears in the PR body, its comments, or the changed docs; the description's only calls to action are ordinary review framing and the Discord handle.
- Previously flagged items I could still check are implemented as described: per-lane zero-duration forecast reuse in
policy.rsadd_candidate/mixed_candidates,draft_sourcecarried incost::Key/Candidate/ScheduledStep, and thehas_mtpexistence scan removed (the per-source table incost.rs:204-252replaces it).
Open questions and what could not be settled
- Admission-time SAM cost in serving.
PromptSAM::buildruns synchronously on admission; the description reports 0.80 / 2.72 / 13.05 ms at 8,192 / 32,768 / 131,072 tokens, which bounds the stall but does not show whether it is visible in a live mixed workload. Only a live--history-draftsrun with ~128K-token prompts would settle it. The description already discloses the synchronous build, so this is an evidence limit, not a prose error. - Document ownership of the copy-only wide graph description. Three documents now describe it (
docs/cli-design.md:200-208,docs/mtp-design.md:26-34,docs/scheduling-runtime-design.md:71-90) and one omits it (docs/mtp-design.md:542-544, the should-fix above). Once the status list is updated the redundancy is acceptable, but if the maintainers prefer a single canonical site,scheduling-runtime-design.mdis the natural owner. - No checks run. I ran no test suite or benchmark this turn and there are no CI checks on
e5a69669; all findings are from reading code and docs at that commit. Prose findings of this kind need no test, but the two behavior-adjacent doc sentences (the zero-return rule and the flag's graph effect) were verified by readingcost.rs:237-251andselection.rsrather than by executing the paths.