#1 [high] Change: shape and size of PR #540
PR #540 "helios: cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify" by FujitsuPolycom. Open, ready for review, opened and updated 2026-11-26, base main, head 7ca5430c. 25 files +3965/-119. No comments at all (pr_comments returns empty), no reviews, no CI checks on head.
Four commits atop main 33ab6df5:
- a85be397 "Recover stale Helios graph costs across idle gaps and readiness stalls" (cost.rs, refresh.rs, policy.rs, rounds.rs, policy_tests.rs, docs)
- 83ff9ed6 "helios: add per-request prompt+output suffix automaton for copy drafts" (new helios/src/scheduler/sam.rs +1606, scheduler.rs, decoded_history.rs, model/packing.rs, server/runtime.rs, tests)
- 35ab143a "helios: add cost-calibrated wide copy-verify graph scheduling and packing" (ignition/preparation/execution.py, heliopause/src/python.rs, many helios files)
- 7ca5430c "helios: tighten speculative batch padding dominance and raise default SAM min_match_len to 6"
Files (pr_files): docs/scheduling-runtime-design.md +31/-23; heliopause/src/python.rs +14/-3; helios/src/execution/manifest.rs +7/-2; execution/tests.rs; model/catalog.rs +13; model/packing.rs; model/testing.rs; model/tests.rs +324; runtime_core/selection.rs +109/-12; runtime_core/serving.rs +7; scheduler.rs +180/-9; scheduler/checkpoints.rs; scheduler/cost.rs +120; scheduler/decoded_history.rs +13; scheduler/policy.rs +119/-14; scheduler/policy_tests.rs +501; scheduler/refresh.rs +17/-9; scheduler/rounds.rs +194/-12; scheduler/sam.rs added +1606; scheduler/speculation.rs +103; scheduler/speculative_lifecycle_tests.rs; scheduler/tests.rs +583; server/runtime.rs +6/-2; server/runtime/phase_tests.rs; ignition/preparation/execution.py +10/-1.
#2 [high] Change: what the four commits actually do (plain terms)
- Cost-refresh recovery (a85be397). helios/src/scheduler/refresh.rs:
RefreshState::idle()is now an empty body (previously clamped both credit ledgers to <=0) and the clamping moved intoabort()(refresh.rs:96-105 in the diff). helios/src/scheduler/cost.rs addsobserved_compute_duration_ns(observed duration minusReadinessIntervals::wait_ns()) andtiming_refresh_duration_ns(compute duration, else wall_ns fallback); ordinary income and timing-refresh episode charges use these, acceptance learning keeps raw physical duration (refresh.rs complete()).ActionCosts::refresh_orderchanged from u64 to(bool, u64): tier 0 = never attempted since becoming stale (last_attempt_ns < observed_at + ttl), tier 1 = attempted while stale, keyed by oldest attempt. - Per-request Suffix Automaton (83ff9ed6). New helios/src/scheduler/sam.rs (1607 lines):
PromptSAM(immutable, compacted flat edge table,build/build_capped, DEFAULT_MAX_PROMPT_TOKENS = 131_072),OutputSAM(dynamic, Link-Cut Tree over suffix-link tree, sam.rs:564-735, keepsmax_endposexact and gives recency tie-break),PromptOutputSAM(Arc + lazy OutputSAM seeded with DEFAULT_BOUNDARY_OVERLAP = 512 prompt tokens, 1-token lag, DEFAULT_MAX_OUTPUT_TOKENS = 131_072, DEFAULT_MIN_MATCH_LEN = 6). Wired in scheduler.rs:1852sam: Option<sam::PromptOutputSAM>created at admission only whenself.decoded_history.is_some()(i.e. history drafts enabled);push_tokenon commit paths (scheduler.rs:1231-1237 and ~3013);RequestScheduler::request_history_proposal[_with_match_len](scheduler.rs:1099-1163) prefers the SAM unless the shared DecodedHistory ring has a strictly longer match;request_copy_match_stats(pub(crate)) for the wide-copy gate. Model packing and server runtime switched fromhistory_proposal(live.tokens(), ..)torequest_history_proposal(handle, ..)(model/packing.rs:399-405, server/runtime.rs:2145). - Cost-calibrated wide copy-verify (35ab143a). Adds per-graph
draft_source: Option<ProposalSource>to GraphDescriptor (execution/manifest.rs:188-193), validated (manifest.rs:839-851), read from proto (runtime_core/serving.rs:58-63) and from the Python manifest (heliopause/src/python.rs:225-237), declared by recipes viaGraphSignature.draft_source(ignition/preparation/execution.py:32, 102-108, 315-319). selection.rs retains optionaldraft_source=2graphs only when proposal source is mtp + history drafts + adaptive (retain_wide_copy, selection.rs:182-184, 277-298) and narrowsspeculative_widthsback to source widths otherwise (selection.rs:379-393). Newspeculation::CopyCalibration(aged per-depth survival + per-step rate, prior WIDE_COPY_PRIOR_RATE = 0.88, speculation.rs:98-190),rounds.rs wide_copy_curve/expected_copy_tokens, and a wide-copy candidate builder insidepacked_round_candidates(rounds.rs:749-900) that is gated ondecoded_historypresent, adaptive width,shape.drafts > base_mtp_drafts,request.copy_allowed(),match_len >= WIDE_COPY_MIN_MATCH_LEN (6),copy_len >= base_mtp_drafts + 3. Copy-only rounds are excluded from host/gpu MTP acceptance learning (copy_only_stepin scheduler.rs:2795-2801, 2860-2875) and from the MTP packed duration table (cost.rs:189-202). - Padding dominance + threshold (7ca5430c). policy.rs
dominates_padding_withgains a branch for strict batch-width domination with equal (capacity, draft_tokens) andsmaller.packed_token_capacity >= min(sum lane ceilings, larger.packed);prune_paddingadds a whole-list pass marking any GPU-allocated ragged speculative candidate dominated when a strictly narrower batch (>= active lanes) with the same (capacity, drafts) offers at leastmin(lane ceilings, own packed)(policy.rs:221-254).Candidategains anexpectedfield (zero-duration useful value) used only for RefreshStart ranking (compare_refresh, policy.rs:1265-1332, 1413-1425). DEFAULT_MIN_MATCH_LEN 3 -> 6 (sam.rs:22).
#3 [high] Undeclared gap: heliopause export overwrites draft_source with MTP
heliopause/src/export/binding.rs:196-202 (unchanged by this PR, identical on main, confirmed by reading the file at ref main): for every graph whose kind is "speculative" (or mixed with speculation_enabled) the export path does graph.insert("draft_source".into(), "MTP".into()) unconditionally. That JSON is what becomes the wire Execution via message("Execution", &value) (binding.rs:390-395) — the JSON->protobuf transcode will not fail on the mismatch because it is a string enum, but the declared copy source is lost.
Consequence (connection): ignition/preparation/execution.py:316-319 is the only place that emits draft_source = 2 (from GraphSignature.draft_source), and heliopause/src/python.rs:225-233 is the only consumer of that dict — but the dict consumed by python.rs is the one built by PreparedExecution.manifest()/export_manifest() in ignition, whereas the dict that becomes the core's wire metadata goes through RuntimeCore.write -> export_capture -> binding::execution (ignition/preparation/runtime_core.py:108-140, capture.rs:3157-3160). Those are two different paths; only the second one is rewritten to "MTP".
So a recipe that declares copy-only wide graphs (the feature part 3 exists for) cannot get draft_source=2 into the exported core through the standard PreparedExecution/RuntimeCore export, unless it patches binding.rs (which this PR does not). This is exactly the kind of thing the PR's own "no core re-export required" / "Ignition declares draft_source" claim glosses over, and the author's Limitations do admit W=16/W=24 copy-only GPU export/replay was not benchmarked.
Importance: high — a reader has to know the declarative half of the feature is not plumbed end-to-end in this repository.
#4 [high] Change: details the description does not say
Multiple changes in the diff that the description does not mention:
- helios/src/server/metrics.rs:
Workernow passes draft_tokens 0 tometrics.speculative_completedfor copy-only steps (server/runtime.rs:1718-1724), so copy-only rounds stop counting towardflare_learned_draft_*/draft-source depth counters as learned drafts. Wire of metrics unchanged; interpretation oflearned_draft_stepschanges for cores with copy graphs. Not in the description. - helios/src/scheduler/decoded_history.rs: new
lookup_with_match_lenreturning match length (8 or 4 for the n-gram tiers), andlookupdelegates to it. Behaviour oflookupunchanged, but the old early-return usedmaximum.min(COPY_DRAFT_CAPACITY)inconsistently in the empty case; tidied. - policy.rs:
Candidategained a publicexpected: f64(zero-duration useful value) andrefresh_expectedcomputation, pluscompare_refreshused only for RefreshStart ranking (policy.rs:1265-1332, 1413-1425). So the funded-refresh probe winner is now chosen by expected tokens rather than value rate — a behaviour change to refresh targeting beyond therefresh_ordertier key that the description does mention. - rounds.rs: packed-round candidates now carry a zero-duration
expected(base_zero / ranking-based recomputation) purely for that comparison. - docs/scheduling-runtime-design.md accepts the credit-retention change, but docs/mtp-design.md and docs/cli-design.md are untouched (docs/mtp-design.md:22-40 still says --history-drafts augments "Qwen's learned MTP proposals" from a "shared decoded history" ring of 65,536 tokens, only qwen3.8-flash declares copy inputs, and docs/cli-design.md:200-201,742 says "shared decoded-history continuations"; docs/cli-design.md:201 even says "--history-drafts ... does not change the graphs", which the draft_source=2 retention rule now contradicts). docs/mtp-design.md:515-518 lists implementation status as decoded_history.rs only.
- No tests outside helios/ + heliopause were added: pr_files has no tests/ paths, so the new Python-side validation (execution.py:102-108) and heliopause/src/python.rs draft_source parsing (default-Mtp fallback, rejection of >2) have no new test; the PR's evidence line claims 'tests/preparation/{test_execution,test_packed_speculative_contract,test_runtime_core,test_capture_graph_metadata}.py (102 passed)' but those files are unmodified.
#5 [high] Recent activity / ownership: PR rewrites Luke Alonso's refresh design and reverses its idle-credit contract
The PR states Upstream main 33ab6df5. Verified from search_history at pr/540: the four commits a85be397, 83ff9ed6, 35ab143a, 7ca5430c sit directly atop 33ab6df5 (PCCessna, #508, 2026-11-26) and the PR has no merge conflicts reported (autobot packet says head 7ca5430, base main).
Code area ownership (search_history for the touched files):
- helios/src/scheduler/policy.rs: 39 commits, almost all Luke Alonso (18cb0efc "Schedule prepared graphs by expected useful value per time", b9ad16b7, fc00f1dc, d7938c98, b0077378 "Avoid exploring prefill graphs that add only padding", 8c117854). Recent neighbours: 7ca5430c/a85be397 (this PR), fd6c0f3b Luke Alonso 2026-11-24 #510 "Preserve positive measured packed round durations when sibling shapes are unmeasured", da578c5c Jason Cook #426, e091689b Martin Vit #479.
- helios/src/scheduler/cost.rs: d7938c98 "Retain measured graph costs and fund scheduler timing refresh" (the feature this PR modifies), d2036807 "Reduce decode graph overhead and isolate readiness stalls in cost estimates" (ReadinessIntervals), fd6c0f3b (#510).
- helios/src/scheduler/refresh.rs: d7938c98, 596d64cd, bce032c0, 28f0833b — all Luke Alonso. #540 is the first non-Luke change to refresh.rs since 2026-10-30.
- helios/src/scheduler/decoded_history.rs: bd7167dc Luke Alonso 2026-10-22 "Share decoded-token history across speculative requests" (origin), 7303efb1, 1909e3cc, 28f0833b. sam.rs is brand new.
- heliopause/src/python.rs: latest 716df00f yatesdr #504, 27716185 Luke Alonso.
- ignition/preparation/execution.py: last changed by 27716185 / da037284 Luke Alonso; GraphSignature geometry rules were built by Luke Alonso (#499/#508 era) and PCCessna.
So: the PR rewrites/extends the funded-refresh design by its original author (Luke Alonso, docs author, 365 commits in docs / 207 in helios/src) and replaces the oldest scheduler refresh tests' assertions (refresh_skips_infeasible_ages... renamed to refresh_skips_infeasible_shapes_and_ranks_unattempted_tier_by_expected_value; ordinary_income_excludes_queued_wall_wait_and_idle_discards_only_positive_credit renamed to ..._idle_retains_credit_while_abort_discards_positive). Two existing test names encode the previously documented contract that idle discards positive credit, and this PR changes that contract.
#6 [high] Related work: overlaps, prerequisites, and same-day conflict with #538
- #538 (open, same author, 2026-11-26) "Restrict cold pure-prefill discovery to natural-fit graph capacities" — same docs file, same policy.rs/policy_tests.rs region, same
ValueRate-zero-duration theme (its "Why" says unmeasured candidates outrank measured ones). It is a separate branch (perf/helios-natural-fit-prefill-discovery at 5a55f0bf) targeting the same files as this PR's part 4 (policy.rs padding dominance) and part 1 (policy.rs refresh ordering). Both were opened the same day; expect textual conflicts in helios/src/scheduler/policy.rs, policy_tests.rs and docs/scheduling-runtime-design.md if both land. Not marked as stacked against each other. - #510 (merged, Luke Alonso) "Prevent unmeasured packed speculative shapes from zeroing measured round durations" — last commit to cost.rs before this PR; this PR builds on it (cost.rs:189-216
refresh_packed_durationsnow additionally skips Copy rows when MTP rows exist). - #414 (merged, yatesdr) "Seed each request's host acceptance estimate from earlier requests" — created
AcceptanceProfilepopulation andobserved_prefixesused by this PR's MTP/copy isolation; alsodocs/scheduling-runtime-design.mdacceptance section that this PR edits. - #521 (closed) / #515 (merged), #522 (merged) Martin Vit — GPU confidence calibration and packed surplus; this PR's
copy_offline/collect_calibrationgating sits next to that machinery. - #534 (open issue, semireg) "Checkpoint captures deadlock on an unmeasured snapshot cost" — same subsystem (cost freshness / funded refresh in policy.rs); its proposed fix adds a probe path in cost.rs/checkpoints.rs. This PR does not address it; note checkpoints.rs is touched here only mechanically (+2
draft_source: None). - #289 (merged, shadownetX) "Bound history proposals by logical lane length" — the last bug in the copy-proposal path; this PR changes which proposal source feeds copy inputs (
request_history_proposalinstead ofhistory_proposal) but keeps thelane.tokens - 1bound at call sites (model/packing.rs:399-405, server/runtime.rs:2143-2148). - #306 (open, original-el8) "Start acceptance estimates from the acceptance of earlier requests" — overlaps #414's population and thus the acceptance-learning bounds this PR edits.
- Companion external PR: description says it is the "Prerequisite for the companion local-inference-lab/hyperflare-recipes copy-draft speculation PR (after bumping ignition in uv.lock)". So the recipe side of part 3 lives in a different repository, outside this repo's review.
#7 [high] People: author history and standing; no reviewers yet
Author FujitsuPolycom, GitHub association CONTRIBUTOR (not one of the charter's priority contributors @voipmonitor/@original-el8/@lukealonso). Last 180 days: 5 merged, 10 open. Merged: #508 (recipe-declared row-sharded attention planning + PreparationManifest metadata), #499 (row-sharded prefill planning, PCIe DMA/RoCE row-shard collectives), #498 (flush PCIe D2H tails), #386 (image input for Qwen3.8 27B), plus one more. Areas their merged PRs touched: docs (3), ignition (3), ignition/cli (3), ignition/preparation (3), tests/cli (3) — i.e. an Ignition/CLI/docs contributor, not previously a helios scheduler contributor. Open ones (same day, same thesis of "scheduler/packing gaps"): #538 (prefill discovery), #539 (engram/heliopause export blob reuse), #512, #497, #496, #284/#283/#282 (DeepSeek V4.1 row-sharded prefill, flagged by original-el8 as conflicting with main), #387. Reviewer culture in this area: yatesdr and original-el8 review with "Should fix" lists and demand per-model scope and evidence (see #414 discussion: reviewer asked the author to name untested recipes, scope single-run claims, fix stale docs). #414's reviewer review and the follow-up are a template for what a review of #540 will demand — #540 names only DeepSeek-V4.1-Flash live, and hello docs staleness is present here too. No one has engaged on #540: pr_comments returns no comments, no reviews, no CI checks on head 7ca5430c.
#8 [high] Reach: who/what is affected — SAM built at admission, per-request memory, min_match_len default change, opt-in gating
- The SAM is built synchronously inside admission:
self.decoded_history.is_some().then(|| sam::PromptOutputSAM::new(&spec.prompt))(helios/src/scheduler.rs:1846-1852), i.e.PromptSAM::build_cappedruns on the admitting thread for every request whenever--history-draftsis enabled. PR's own microbenchmark numbers are 0.80 ms (8,192 tokens), 2.72 ms (32,768), 13.05 ms (131,072) and 4.52 MiB memory at 131k. So enabling --history-drafts adds up to ~13 ms CPU per large admission plus ~1.1–4.5 MiB per request (Arc-shared only when prompts are shared, whichPromptSAM::buildnever does —from_shared_promptexists but nothing in the diff calls it with a shared prefix SAM). The description reports only the microbenchmark, not the admission-latency cost; it does report +0.25 ms/rd scheduler overhead on non-repetitive 256-token decode. - Memory is per request:
max_activeconcurrent requests at 131k tokens each could hold up to ~4.5 MiB × concurrency for prompt SAMs plus up to 131k output tokens per request in the dynamic OutputSAM (DEFAULT_MAX_OUTPUT_TOKENS = 131_072, sam.rs:28). - Defaults changed for existing users of --history-drafts: DEFAULT_MIN_MATCH_LEN 3 -> 6 (sam.rs:22). Every request with a 3–5 token echoed span stops getting a copy proposal. The description frames this as deliberate (avoid overriding learned drafts with coincidental 3-token matches).
- New configuration surface: recipes can declare
draft_sourcein GraphSignature (execution.py:32), andspeculative_proposal_sourcesemantics in LoadOptions now also decide whether copy-wide graphs are retained (selection.rs:182-184). No new CLI flag was added — wide copy graphs are opt-in only via core contents +--history-drafts+ adaptive (non-fixed) width. Users running--no-mtp-adaptive-verification(fixed width) never get wide copy graphs regardless of core (rounds.rs:755-762speculative_fixed_width.is_some()skips). - Codec/offload identity: selection.rs test
offload_identity_separates_selected_state_without_fragmenting_compatible_limits(pre-existing) uses draft_source to separate offload identities; nothing new needed. - Compatibility: proto already had
DraftSource {NO_DRAFT, MTP, COPY_DRAFT}on main (helios/proto/runtime_core.proto:842,854 — verified at ref main), so no wire change is true.draft_sourceabsent in old cores -> heliopause/src/python.rs:231-232 defaults speculative graphs to Mtp, and a core whose Execution JSON omits field 9 (proto3 default 0 = NO_DRAFT) would be rejected by serving.rs:58-62 only if it is speculative... careful: old cores written before draft_source was populated get 0 -> None, and selection.rs:244 requires[1,2]for speculative graphs, so old cores must already carry 1; the pool claims "existing W=8-only cores load" and there is a test (wide_copy_verify_catalog_packs_23_sam_tokens_and_preserves_legacy_w8_cores, model/tests.rs) that only covers the Rust descriptor path, not an old on-disk core.
#9 [high] Project fit: charter requirements and doc obligations, where met and where not
Charter (read_charter) lines relevant as facts:
- "Keep the runtime small and model-agnostic ... Helios ... shouldn't accumulate per-model branches (#267, #334)." This PR adds only model-agnostic scheduler mechanisms (no per-model branch), which lines up.
- "Captured-graph op contracts: Adding a new one—even if it reuses an existing graph kind—requires owner approval before you write it." Part 3 introduces a new op contract in practice: copy-only speculative graphs (
draft_source=2, no GPU confidence, no speculative_prefix_limits, four copy input buffers,GraphSignature.draft_source+ validation in ignition/preparation/execution.py:102-108). No evidence of owner approval is cited anywhere in the description. - "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)." Provided: 4x RTX PRO 6000, DeepSeek-V4.1 Flash TP4, temperature 0, C=1..16 tables, plus a single-stream repetition benchmark (+12.9% tok/s) and an admission-overhead number. Weak points: single trials, "combined runtime, recipe, and kernel stack" caveat, and the wide-copy path itself never ran on a GPU (Limitations).
- "PR descriptions: Expect four parts: why, what changed, claimed result, evidence." Present and extensive.
- Design docs: docs/scheduling-runtime-design.md is updated for parts 1 and 4's contract (credit retention, readiness exclusion, refresh ordering) — lines in diff. Not updated: docs/mtp-design.md (copy-draft mechanism still described as a 65,536-token shared ring from
decoded_history.rs, docs/mtp-design.md:31-40, 515-518; still claims only qwen3.8-flash declares copy inputs) and docs/cli-design.md:200-201 ("--history-drafts ... does not change the graphs", contradicted by copy-wide graph retention) — a docs-completeness gap against the same standards the reviewers enforced in #414 ("stale docs" as a Should fix). - "No per-model special cases or flags" — fine; "Be explicit and pin everything. No magic defaults" — the new defaults (min_match_len 6, prior rate 0.88, COPY_STEP_PRIOR_WEIGHT 4.0, WIDE_COPY_MIN_MATCH_LEN 6, copy_len >= base+3, 512-token boundary overlap, 131,072 caps) are hardcoded constants in sam.rs/speculation.rs/rounds.rs with no configuration surface; two of them (min_match_len, 131,072) are reachable only through the non-public
SamConfig(nothing outside sam.rs useswith_config; scheduler.rs:1852 usesPromptOutputSAM::new).
#10 [high] Claims and evidence: what is backed, what is self-reported, what is untested
Claims and what backs them (all from the PR description; nothing verified here by running tests):
- "615 passed, 0 failed, 5 ignored" (
cargo test --locked --manifest-path helios/Cargo.toml) and "1,625 passed, 44 ignored" (--lib --features runtime-core,server --skip template) on tip 7ca5430c — self-reported; no CI checks exist on the head commit ("CI on the head commit: no checks"), so nothing is independently reproduced. Note the two suites' counts differ from what #538 (same author, same base) reports for a comparable command (1,690 passed on tree 93ef9518), so the numbers are branch-local. - "cargo check heliopause ... passed", "pytest tests/preparation/test_core_boundary.py: 4 passed" — but no Python test files are modified in this PR (pr_files has no tests/ entries), so new Python validation in execution.py:102-108 and heliopause/src/python.rs:225-233 is exercised only by the existing suite the PR says it ran (test_execution.py:299 asserts decoded.draft_source == 1 for a mixed graph with default signature; nothing asserts 2 or the rejection cases).
- "120 randomized brute-force SAM oracle trials" — backed by a real test: sam.rs
exact_oracle_equivalence_randomized_streams_and_repetitionsloopstrial in 0..120against a brute-force oracle with several min_match_len and prompt lengths (sam.rs:1401-1469). This is the strongest evidence in the bundle. - "Suffix automaton latency: 0.80 ms / 2.72 ms / 13.05 ms build; 140/145/317 ns per step" — a CPU release microbenchmark; the corresponding test loop exists (sam.rs:1547 iterates [8_192, 32_768, 131_072]) but the timings are not checked in.
- Live claims — "max_b == C on every cell vs B16 at C=4 and B32 at C=6..16 before", "C=4 9.19 vs 9.55 ms/rd, +5.1%", "C=6 -7.9%", "C=8 -5.2%", "+0.57 tokens/round and +12.9% tok/s on a 512-token repetitive code-edit prompt", "+0.25 ms/rd overhead" — single machine, single model, single core, temperature 0; the description itself says "end-to-end throughput reflects the combined runtime, recipe, and kernel stack", i.e. the delta is not attributable to this parent alone. No artifacts, no per-run scatter, no repeat counts.
- "Aggregate timing-refresh (P <= 0.002/0.998O + D) and acceptance-learning (P <= 0.01/0.99O + D) bounds remain preserved" — asserted; the refresh bound is actually re-tested in the changed test
refresh_funding_requires_earned_credit_and_accounts_for_repeated_attempts_and_idle(policy_tests.rs, updated assertionordinary_ns * 0.002/0.998 - refresh_ns), andpower_cap_restore_recovers_largest_prefill_chunk_across_idle_requestsassertsrefresh_ns <= ordinary_ns*0.002/0.998 + last_refresh_ns. The acceptance bound is only implicitly covered (unchanged code path except the readiness split). - "existing W=8-only cores ... load, prune, pack, and schedule with no Protobuf wire changes and no core re-export required" — partially verified: proto already carried DraftSource on main, so no wire change is correct; but the "existing cores load" claim is only tested against a synthetic manifest built in-process (
wide_copy_verify_catalog_packs_23_sam_tokens_and_preserves_legacy_w8_cores, helios/src/model/tests.rs), not an on-disk exported core. - Claimed-but-not-shown: the description says copy-only wide graphs are declared through Ignition, but the export path rewrites draft_source to MTP (see the undeclared-gap note), and Limitations concede W=16/W=24 GPU export/replay was not benchmarked — so the ec2e feature has never been exercised end-to-end.
#11 [medium] Process and community: no engagement, no CI, no upstream issue asking for it
- State: open, "ready for review", opened and last updated 2026-11-26 (same day), head 7ca5430c, base main 33ab6df5. No comments, no reviews, no labels, no CI checks on the head commit.
- Two review-process signals: (a) the case-file/auto-review bot has not posted on #540 (compare #538, same author, same day, which already has a flare-autobot case-file comment), so no automated intake report exists yet; (b) nothing in the PR discussion, so no reviewer has begun.
- Size relative to review norms in this area: 3,965 added lines across 25 files, of which 1,606 are a new sam.rs and ~1,400 are tests (policy_tests.rs +501, scheduler/tests.rs +583, model/tests.rs +324, sam.rs in-file tests). That is a large single PR; the four commits are described as atomic but only one of them (part 1) is a small behavioural fix; parts 2–4 depend on each other (wide copy needs SAM; padding dominance can stand alone).
- Merge-order claim: "Standalone on main ... Prerequisite for the companion local-inference-lab/hyperflare-recipes copy-draft speculation PR (after bumping ignition in uv.lock)" — so nothing in this repo consumes the Ignition half yet, and the recipe that would declare copy graphs lives outside this repo.
- The PR's own justification for splitting: "existing W=8-only cores without copy-only wide graphs load ... with no Protobuf wire changes and no core re-export required".
- Cross-check on age/demand: no issue in the repository asks for any of the four changes (search_items for "cost refresh stale graph estimates idle" and "copy drafts prompt repetition code" return only #534 = same subsystem but a different bug, and #540 itself). The problems are asserted by the author from their own serving runs, not reported by users. The one user-facing bug in the same area (#534, opened by semireg 2026-11-26) is not fixed by this PR.
- The PR body carries the required "Discord: Dooner" line and the four-part structure the charter asks for.
#12 [medium] Reach: precise gating, no operator-visible configuration, admission cost
- Wide copy-verify is gated on
request.copy_allowed()(helios/src/scheduler.rs:373-375) =!grammar_constrained && !host_stops, plusdecoded_history.is_some()(rounds.rs:761), non-fixed width, andshape.drafts > costs.max_mtp_draft_tokens()(rounds.rs:749-763). Grammar-constrained and host-stop requests never take a wide copy round (the testwide_copy_verify_selects_w24_on_long_sam_match_and_falls_back_to_mtp_otherwiseasserts a grammar-constrained request stays at W=1);--no-mtp-adaptive-verificationusers never get it; a core with only W=8 MTP graphs and no wide copy graphs is unaffected. - Part 2 (SAM copy proposals), unlike part 3, changes behaviour for EVERY existing
--history-draftsuser on existing cores: it changes what is uploaded into the four copy input buffers on ordinary W=8 MTP speculative steps too (model/packing.rs:399-405 switched fromhistory_proposal(live.tokens(), ..)torequest_history_proposal(lane.request, ..)), plus the default threshold 3 -> 6. --history-draftsinteraction:if self.history_drafts == Some(true) && (!enabled || source != 1)errors (selection.rs:179-181), so copy-wide retention only applies with the MTP source; the newhistory_enabledfallback also readsconfig["history_drafts"](selection.rs:182-183), so a core/config declaring history drafts retains wide copy graphs even if the CLI flag is not set.- No new CLI flags and no operator-visible configuration:
speculative_proposal_sourcestill takes only mtp/copy (selection.rs:144-148, speculation.rs:31-37).sam::SamConfigis public, but nothing outside sam.rs constructs one (onlyPromptOutputSAM::newat scheduler.rs:1852), so min_match_len / max_prompt_tokens / boundary_overlap / the 0.88 prior / the "base+3" copy-length rule (rounds.rs:766) are not tunable. - Admission cost and memory:
PromptOutputSAM::new(&spec.prompt)runs on the admitting thread whenever history drafts are on (scheduler.rs:1846-1852), i.e. up to ~13 ms CPU and 4.52 MiB per 131k-token admission per the PR's own microbenchmark; the dynamic output automaton can hold up to 131,072 tokens per request (sam.rs:28).PromptSAMis Arc-shared but nothing in the diff builds one from a shared prefix (from_shared_promptis only used in tests, sam.rs:1523-1524). - Docs affected: docs/scheduling-runtime-design.md updated (+31/-23). Untouched though they describe what this changes: docs/mtp-design.md:22-40 (65,536-token shared ring, "only qwen3.8-flash MTP graphs declare copy-token inputs"), docs/mtp-design.md:515-518 (implementation status names decoded_history.rs only), docs/mtp-design.md:359, docs/cli-design.md:200-201 ("does not change the graphs"), docs/cli-design.md:742. docs/api.md untouched; the meaning of
flare_learned_draft_*/draft depth counters changes only in interpretation (server/runtime.rs:1718-1724 now reports draft depth 0 for copy-only steps). - Deploy/dependency reach: no new crates, no dependency bumps; uv.lock untouched, but the description says the companion
local-inference-lab/hyperflare-recipesPR follows "after bumping ignition in uv.lock" — the consuming change lands outside this repo.