#1 [high] BLOCKING: export path overwrites draft_source (verified in code)
VERIFIED by reading code, not just trusting the review.
heliopause/src/export/binding.rsis ABSENT frompr_files— the PR does not touch it. Good independent confirmation.binding.rs:196-202: for every speculative graph it doesgraph.insert("draft_source".into(), "MTP".into())unconditionally. Comment in code has no conditional on incoming value.binding.rs:395:message("Execution", &value)transcode via prost_reflect DynamicMessage.helios/proto/runtime_core.proto:842,854:DraftSource draft_source = 9;enumNO_DRAFT=0; MTP=1; COPY_DRAFT=2. So the protobuf type DOES support COPY_DRAFT — only the writer is hard-coded.- Export path is live:
binding.rs:17export_capture->capture.rs:3158super::binding::execution(execution, &allocations)?->output.index.ranks[0].execution = Some(execution)(capture.rs:3160). - Contrast: in-process reader
heliopause/src/python.rs:225-233DOES read 0/1/2 and maps 2->ProposalSource::Copy, erroring on other values. So the two consumers disagree. - Load side prunes:
helios/src/runtime_core/selection.rs:277-298:copy_widerequiresgraph.draft_source == 2ANDdraft_tokens > drafts. A COPY graph relabelled MTP=1 fails copy_wide, then must satisfygraph.draft_source == source(=1, so passes that) BUTdraft_tokens <= drafts— true only if depth <= drafts, which is false by construction for wide shapes (selection.rs:283depth as usize > drafts). So pruned/skipped. Nuance to state carefully: an over-depth graph arriving as MTP may instead be DROPPED by the retain closure (line 292) rather than tripping the stricter MTP filter at 296-297 — but either way it does not run. I did not run CI to observe which. - Serving decode is correct (
serving.rs:58-63maps 1->Mtp, 2->Copy), so loss is on the write side only, silently.
CONCLUSION: commit 35ab143a's headline capability (wide copy-verify W=16/W=24 graphs) cannot reach the runtime through the export path. PR Limitations concede W=16/W=24 GPU export/replay was never benchmarked, consistent with the defect.
#2 [high] Docs contradiction: --history-drafts "does not change the graphs"
VERIFIED by reading both docs and selection.rs.
docs/cli-design.md:200-201(NOT in PR file list): "--history-draftsenables host history tracking and feeds continuations into the captured graphs' history inputs; it does not change the graphs." After this PR:helios/src/runtime_core/selection.rs:184retain_wide_copy = source == 1 && history_enabled && fixed.is_none();:277-298retains draft_source==2 copy graphs only when copy_wide;:365-380prunes kernels of unselected graphs;:382-396rewrites speculative_widths. So the flag now changes which graphs/kernels load and rewrites exported config.docs/mtp-design.md:22-40(NOT in PR file list): still says 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." and describes only the shared 65,536-token 4/8-gram ring returning "up to seven" continuation tokens. After PR the primary source is the per-request prompt+output SAM (scheduler.rs:1099-1159), ring is fallback only on strictly-longer match, DEFAULT_MIN_MATCH_LEN 3->6, 131,072 prompt cap.docs/scheduling-runtime-design.mdmodule index (~:7-12) omitssam.rs.helios/manifest.md:29-53graph dictionary spec omitsdraft_source.
Project rule: AGENTS.md treats inaccurate documentation as a mergeable defect. Only docs/scheduling-runtime-design.md was updated (and only for refresh ordering/idle/readiness-wait — verified in its diff, which is accurate).
#4 [high] Hardware/test-plan facts: rigs, models, preconditions, metrics
Key facts for the test plan.
Hardware:
- cn5: 4x RTX PRO 6000 Blackwell Max-Q, 96GiB, amd64, 48 CPU/125GiB. Models: dinov2-base, GLM-5.3-Flash-NVFP4 (local + nvidia), timm vit. NO Qwen3.8-Flash.
- cn7: 1x GB10, arm64, 10 CPU/60GiB. Models: Qwen3.8-27B-DFlash2, Qwen3.8-27B-NVFP4, Qwen3.8-Flash-Next-FP4-Local.
- PR's own measurements used 4x RTX PRO 6000, DeepSeek-V4.1-Flash TP4 — a model/hardware combination NOT on either rig. So headline numbers are not reproducible here.
Copy-draft precondition chain (heavy):
- Copy drafts need
--history-drafts, which selection.rs:179-180 requires enabled learned speculation AND source==1. enable_history_drafts(scheduler.rs:1086-1092) must be called before admission.- Proposals only exist if
self.decoded_history.is_some()(scheduler.rs:1120). copy_allowed()(scheduler.rs:373-375) false for grammar-constrained / host-stop requests.- Graphs must declare copy-token inputs (
copy_token_ids,copy_token_count— ignition/preparation/contract.py:46). - NO recipe in the repo sets
draft_source=2(search of recipes/ for draft_source|copy_token_ids: no matches).GraphSignature.draft_sourcedefaults to 1 (execution.py:32). => Testing commit 2/3 on hardware means first authoring a recipe and running Ignition capture/export. That is hours of rig time, not a smoke test.
Observability available for a hardware test (helios/src/server/metrics.rs):
flare_scheduler_execution_nanoseconds_total{reason=ordinary|discovery|timing_refresh|acceptance_learning}andflare_scheduler_executions_total{...}(:932-939) -> directly validates the refresh-recovery commit.flare_speculative_rounds_total{batch,width},flare_speculative_gpu_nanoseconds_total{batch,width},emitted_tokens_total,offered_drafts_total,accepted_drafts_total(:987-1032) -> validates padding dominance (max_b == C) and copy acceptance.flare_speculative_drafts_total{depth,source=mtp|copy,outcome=offered|accepted}(:1033-1045) -> direct evidence whether the SAM/copy path ever fires at all.flare_history_drafts_enabled(:949-951).flare_replay_readiness_wait_nanoseconds_total,flare_replay_readiness_samples_total(:941-948) -> readiness-wait exclusion in timing refresh.
#3 [medium] Padding dominance: two independent predicates
VERIFIED.
helios/src/scheduler/policy.rs:139-174dominates_padding_with: for speculative candidates adds a GPU-ragged path (needed = long().sum().min(larger.packed_token_capacity), requires smaller.batch < larger.batch, equal capacity & draft_tokens, both packed nonzero).helios/src/scheduler/policy.rs:221-254prune_paddingsecond pass: re-implements a DIFFERENT predicate inline -other.batch >= lanes && other.batch < candidate.batch && other.capacity == candidate.capacity && other.draft_tokens == candidate.draft_tokens && other.packed_token_capacity >= needed. Does NOT require other.packed_token_capacity equality/nonzero and does not requireother.mask/prefill_slotmatching (it iterates ALL candidates, not same-group peers).- In the second pass
lanes = candidate.mask.count_ones(), andother.batch >= lanes- but no check thatother.maskis the same cohort. So the second pass can prune on a candidate from a different mask/cohort. This is a genuine "two dominance predicates that must agree but are written independently" risk, as Value Proposition lens flagged. - Padding-dominance result is measured (max_b == C, +5.1% at C=4) but bundled.
Constants verified unpinned: speculation.rs:15 WIDE_COPY_PRIOR_RATE=0.88, :18 WIDE_COPY_MIN_MATCH_LEN=6, :20-21 COPY_STEP_PRIOR_WEIGHT=4.0 / COPY_DEPTH_SHRINK_WEIGHT=2.0 (private), sam.rs:22 DEFAULT_MIN_MATCH_LEN=6 (duplicate of the above with no cross-check), rounds.rs:766 min_copy_len = base_mtp_drafts + 3.