#1 [high] Research summary
I ran out of time before I could write the scratchpad notes, so the findings are here in full, each one checked in the code at head 7ca5430.
What I checked
Repository rules (charter, AGENTS.md, docs/design-review.md, .agents/skills/repo-prose/SKILL.md), the PR description and its four-part structure, the changed documentation, and the diffs of docs/scheduling-runtime-design.md, helios/src/scheduler/{cost,refresh,policy,rounds,speculation,sam,decoded_history}.rs, runtime_core/selection.rs, model/catalog.rs, execution/manifest.rs, heliopause/src/python.rs, ignition/preparation/execution.py, with surrounding code and callers. I did not read the four commit message bodies (only their subject lines), and I did not run any tests, so nothing below is a claim about commit-message compliance or green test runs.
Findings
Blocking — user-facing CLI/protocol specs now contradict the code.
docs/cli-design.md:200-202 still says "--history-drafts enables host history tracking and feeds continuations into the captured graphs' history inputs; it does not change the graphs." After commit 35ab143a, LoadOptions::select retains draft_source == 2 wide copy graphs only when retain_wide_copy (source mtp, history drafts enabled, no fixed width) and otherwise prunes them and narrows speculative_widths (helios/src/runtime_core/selection.rs:278-298, :382-396; test wide_copy_graphs_retain_only_when_history_drafts_enabled at :1876). The flag now changes the loaded graph set, kernel pruning and the reported widths. The same claim pattern survives in docs/mtp-design.md:22-29 ("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."). Fix: state that --history-drafts additionally elects copy-only wide graphs when the core provides them and they are retained only in adaptive mode, and update docs/cli-design.md:742's table entry accordingly.
Should fix — the design document does not specify the new copy-draft or copy-wide scheduling policy at all.
docs/scheduling-runtime-design.md is the specification for Helios scheduling, yet the PR adds a whole policy surface it never describes: the per-request prompt+output suffix automaton (helios/src/scheduler/sam.rs, module list at doc lines 6-13 still omits it), the draft_source/copy-only graph family and its confidence_width == 0 / no-SpeculativePrefixLimit constraints (helios/src/model/catalog.rs:94-131, helios/src/execution/manifest.rs:841-851), the per-request CopyCalibration geometric prior WIDE_COPY_PRIOR_RATE = 0.88 with COPY_STEP_PRIOR_WEIGHT = 4.0 / COPY_DEPTH_SHRINK_WEIGHT = 2.0 (helios/src/scheduler/speculation.rs:14-21, :98-190), the WIDE_COPY_MIN_MATCH_LEN = 6 / copy_len >= base_mtp_drafts + 3 eligibility gate (helios/src/scheduler/rounds.rs:752-772), and the isolation of copy-only completions from MTP acceptance profiles and packed-round durations (helios/src/scheduler.rs:2795-2860, cost.rs:190-208). Repo-prose requires documentation to be a present-state specification and AGENTS.md:52-56 requires designed behavior to be stated; a reader of the design doc cannot learn any of this. Fix: add the copy-proposal and copy-wide selection section, with the prior, threshold and calibration constants named and their meaning explained before the identifiers.
Should fix — the padding-dominance paragraph no longer matches the rule.
docs/scheduling-runtime-design.md:249-254 still 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 (helios/src/scheduler/policy.rs:221-254) dominates a candidate when another batch has other.packed_token_capacity >= needed, where needed = length(index).sum().min(candidate.packed_token_capacity) — i.e. the surviving shape's P may be strictly smaller than the discarded shape's P. The doc must state the "covers the cohort's needed target rows" condition and that the rule applies only to GPU-allocated ragged speculative candidates with equal (capacity, draft_tokens).
Should fix — stale "minimum across matching shapes" and shared-history text.
docs/scheduling-runtime-design.md:396-399 says a (batch, width) lookup "takes the minimum positive measured duration across matching shapes". ActionCosts::refresh_packed_durations now skips copy-only shapes entirely whenever any MTP packed shape exists (helios/src/scheduler/cost.rs:192-201), so the stated rule does not hold. Likewise docs/mtp-design.md:31-40 still describes copy drafting as the shared 65,536-token ring with eight- and four-token indexes returning "up to seven observed continuation tokens"; the code now queries the per-request SAM first and only falls back to the ring when its match is strictly longer (helios/src/scheduler.rs:1099-1136), with DEFAULT_MIN_MATCH_LEN = 6 (sam.rs:22) and a 131,072-token prompt cap.
Should fix — the manifest format spec omits the field the loader now reads.
helios/manifest.md:29-53 is the specification of the Python graph dictionary, and lists draft_tokens, packed_token_capacity, confidence_width — but not draft_source, which heliopause/src/python.rs:223-233 now reads (0 = none, 1 = MTP, 2 = COPY, absent defaults by kind) and which is validated as 1/2 in ignition/preparation/execution.py:102-108. A core author following the manifest doc would silently get the kind-derived default. Fix: add draft_source with its values, default and the copy-only constraints.
Should fix — the description leaves out the admission-path cost it itself measures.
The "Result" section reports PromptSAM::build at 13.05 ms and 4.52 MiB for a 131,072-token prompt, but never says where the build happens. It happens at admission inside RequestScheduler::admit (helios/src/scheduler.rs:1849-1856, sam::PromptOutputSAM::new(&spec.prompt)), on the serving critical path, once per request and per prompt, allocating a heap automaton of up to ~4.5 MiB per live request. AGENTS.md:96-112 requires the claimed benefit to carry "its scope and material limitations attached", and repo-prose requires disclosing limits. Fix: state that the build is paid at admission, that its cost scales with prompt length, that the automaton is per-live-request host memory, and that no live measurement of admission latency with --history-drafts on long prompts was taken.
Nit — the title names three of four outcomes.
The title lists "cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify" but the PR also changes padding dominance and raises DEFAULT_MIN_MATCH_LEN; the description itself concedes the padding/threshold change produced the max_b == C and +12.9% results. Either add it to the title or say in the description why it travels with the other three.
Nit — bundling is asserted, not argued.
AGENTS.md:194-199 asks for "one coherent outcome". The description says the four gaps are "related" but never says whether commits 1 and 4 are independent of 2 and 3. If 3 (wide copy graphs) needs 2 (the SAM) but 1 and 4 do not, say so, so a reviewer knows what must land together and what could be split.
Things I looked for and did not find wrong
The description's four sections are present and in the required order; the claimed results distinguish combined-stack throughput from component measurements ("end-to-end throughput reflects the combined runtime, recipe, and kernel stack") and list unbenchmarked hardware and model scope, as AGENTS.md:96-112 demands. The rewritten timing-refresh paragraphs at docs/scheduling-runtime-design.md:425-463 and :477-486 match the code: idle() is now a documented no-op that retains credit (refresh.rs:95-99), abort still truncates positive credit (:101-105), ordinary credit uses observed_compute_duration_ns while acceptance credit keeps raw duration (:71-80), and the two-tier (bool, u64) refresh_order reproduces the documented partitioning (cost.rs:287-296). The Discord line is present with a username and no leading @.
#2 [high] Blocking: --history-drafts now changes the loaded graph set but docs say it does not
Severity: blocking.
What is wrong: docs/cli-design.md:200-202 still states "--history-drafts enables host history tracking and feeds continuations into the captured graphs' history inputs; it does not change the graphs. --no-history-drafts disables those proposals. Cores exported by Ignition record no history preference."
After commit 35ab143a the flag does change the selected graph set. helios/src/runtime_core/selection.rs:179-184 computes history_enabled and retain_wide_copy = source == 1 && history_enabled && fixed.is_none(); :277-298 retains only graphs where copy_wide is true (draft_source == 2, token_capacity > 1, confidence_width == 0, depth > drafts) and otherwise prunes every draft_source == 2 speculative graph; :382-396 writes the narrowed speculative_widths back into the server config; core.graphs.retain(...) at :375 then drops the pruned graphs' kernels. Test wide_copy_graphs_retain_only_when_history_drafts_enabled (selection.rs:1876-1940) asserts speculative_widths stays [1,6,16,24] with history drafts and narrows to [1,6] without, and asserts no draft_source == 2 graph survives without the flag.
Same claim pattern in docs/mtp-design.md:22-29: "History drafting ... It 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."
Why it matters: the CLI flag table entry at docs/cli-design.md:742 and the runtime-option page are the user-facing contract for what a startup flag does. A user reading them cannot learn that enabling history drafts can load extra wide copy graphs, change which kernels load, or that fixed-width mode silently disables them.
Fix: in docs/cli-design.md:200-202 and docs/mtp-design.md:22-29, state that --history-drafts also elects optional COPY_DRAFT wide graphs when the core provides them, and that they are retained only in adaptive mode with no fixed width; update the :742 flag-table row to match.
Repository rules cited: .agents/skills/repo-prose/SKILL.md:26-29 (documentation is a present-state specification), AGENTS.md:52-56, and docs/design-review.md:172-176 (prose reviewed against four-part scheme).
#3 [high] Should fix: design doc never specifies the new copy-draft / copy-wide scheduling policy
Severity: should fix.
What is wrong: docs/scheduling-runtime-design.md is the specification for Helios scheduling (its opening lines name the implementing modules), yet this PR changes only the funded-refresh/acceptance paragraphs and never specifies the new mechanisms it adds:
- Per-request prompt+output suffix automaton:
helios/src/scheduler/sam.rs(new, 1,606 lines), wired athelios/src/scheduler.rs:1849-1856(sam::PromptOutputSAM::new(&spec.prompt)at admission),:1099-1136(request_history_proposal*),:1228-1236and:3013-3016(push_tokenon commit). The module list atdocs/scheduling-runtime-design.md:6-13still omitssam, and no paragraph describes when a SAM proposal displaces aDecodedHistoryproposal (only when the shared ring's match is strictly longer). - The
draft_sourcegraph family and its constraints:helios/src/model/catalog.rs:94-131(copy-only graphs cannot declareconfidence_widthorSpeculativePrefixLimit),helios/src/execution/manifest.rs:841-851(same geometry validation),helios/proto/runtime_core.proto:842,854(DraftSource { NO_DRAFT=0; MTP=1; COPY_DRAFT=2; }). - Per-request
CopyCalibration:helios/src/scheduler/speculation.rs:14-21(WIDE_COPY_PRIOR_RATE = 0.88,WIDE_COPY_MIN_MATCH_LEN = 6,COPY_STEP_PRIOR_WEIGHT = 4.0,COPY_DEPTH_SHRINK_WEIGHT = 2.0) and:98-190(aged geometric prior with monotone clamp). - Wide-copy candidate eligibility:
helios/src/scheduler/rounds.rs:752-772— copy shapes compete only whendecoded_historyis Some, no fixed width,shape.drafts > base_mtp_drafts,match_len >= WIDE_COPY_MIN_MATCH_LEN,copy_len >= min_copy_lenwheremin_copy_len = base_mtp_drafts + 3. - Isolation of copy-only completions from MTP acceptance learning and packed-round durations:
helios/src/scheduler.rs:2795-2860(copy_only_step,host_population/collect_calibrationgating,observed_source = Copy) andhelios/src/scheduler/cost.rs:190-208(copy shapes skipped frompacked_round_durationswhen any MTP packed shape exists). expected_copy_tokens/wide_copy_curve(helios/src/scheduler/rounds.rs:541-556).
Why it matters: AGENTS.md:52-56 requires designed behavior to be stated as present-state specification, and docs/design-review.md:137-150 (principle 16) requires changed prose to let a reviewer reconstruct the argument. A reader cannot learn from the design doc that copy drafts exist per request, when they override learned drafts, or what prior and thresholds price them.
Fix: add a section specifying the per-request SAM, the copy-proposal precedence rule against DecodedHistory, the copy-only graph contract, and the wide-copy eligibility/calibration constants with their meanings explained before the identifiers. Add sam.rs to the module list at lines 6-13.