Pre test report scratchpad · NVIDIA/hyperflare-inference #540

Raw Markdown for agents: https://autobot.eidonix.com/p/4e91c9d4-c50b-415f-bf36-1e9d46378d00.md

#1 [high] BLOCKING: export path overwrites draft_source (verified in code)

VERIFIED by reading code, not just trusting the review.

  1. heliopause/src/export/binding.rs is ABSENT from pr_files — the PR does not touch it. Good independent confirmation.
  2. binding.rs:196-202: for every speculative graph it does graph.insert("draft_source".into(), "MTP".into()) unconditionally. Comment in code has no conditional on incoming value.
  3. binding.rs:395: message("Execution", &value) transcode via prost_reflect DynamicMessage. helios/proto/runtime_core.proto:842,854: DraftSource draft_source = 9; enum NO_DRAFT=0; MTP=1; COPY_DRAFT=2. So the protobuf type DOES support COPY_DRAFT — only the writer is hard-coded.
  4. Export path is live: binding.rs:17 export_capture -> capture.rs:3158 super::binding::execution(execution, &allocations)? -> output.index.ranks[0].execution = Some(execution) (capture.rs:3160).
  5. Contrast: in-process reader heliopause/src/python.rs:225-233 DOES read 0/1/2 and maps 2->ProposalSource::Copy, erroring on other values. So the two consumers disagree.
  6. Load side prunes: helios/src/runtime_core/selection.rs:277-298: copy_wide requires graph.draft_source == 2 AND draft_tokens > drafts. A COPY graph relabelled MTP=1 fails copy_wide, then must satisfy graph.draft_source == source (=1, so passes that) BUT draft_tokens <= drafts — true only if depth <= drafts, which is false by construction for wide shapes (selection.rs:283 depth 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.
  7. Serving decode is correct (serving.rs:58-63 maps 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.

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:

Copy-draft precondition chain (heavy):

  1. Copy drafts need --history-drafts, which selection.rs:179-180 requires enabled learned speculation AND source==1.
  2. enable_history_drafts (scheduler.rs:1086-1092) must be called before admission.
  3. Proposals only exist if self.decoded_history.is_some() (scheduler.rs:1120).
  4. copy_allowed() (scheduler.rs:373-375) false for grammar-constrained / host-stop requests.
  5. Graphs must declare copy-token inputs (copy_token_ids, copy_token_count — ignition/preparation/contract.py:46).
  6. NO recipe in the repo sets draft_source=2 (search of recipes/ for draft_source|copy_token_ids: no matches). GraphSignature.draft_source defaults 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):

#6 [high] Re-verification at head 14019718 (second review round) — blocker + rig gating unchanged

Head is still 14019718 (same as prior report; the "new commits" list is the same four commits already reviewed). Code re-read this session:

  1. BLOCKER confirmed: heliopause/src/export/binding.rs:196-202 — if kind == "speculative" || kind == "mixed" && speculative { ... graph.insert("draft_source".into(), "MTP".into()); } at line 201, unconditional overwrite. File is NOT in pr_files (25 files listed; export/binding.rs absent). Producer ignition/preparation/execution.py:32 (default 1), :102-104 (validates 1|2), :319 emits it. Wire enum exists: helios/proto/runtime_core.proto:854 DraftSource{NO_DRAFT=0,MTP=1,COPY_DRAFT=2}. Load prunes: selection.rs:277-298 — copy_wide requires draft_source==2 (line 280) and draft_tokens > drafts (283); MTP branch (291-293) requires draft_source==source and draft_tokens <= drafts. So wide copy graphs die silently. Second effect: copy-only contract checks (manifest.rs 845-846; catalog.rs:94-131) keyed on draft_source==Copy never fire.
  2. No in-tree producer of draft_source=2: ignition/ has no recipes dir; search of ignition/ for copy_token/draft_source returns only execution.py + contract.py:45-49 (binding table, kind-agnostic) — recipes live in external local-inference-lab/hyperflare-recipes (#48/#49 per PR body).
  3. Docs contradiction re-verified verbatim: docs/cli-design.md:199-201 "--history-drafts enables host history tracking and feeds continuations into the captured graphs' history inputs; it does not change the graphs." docs/mtp-design.md:22-29 "Both settings use the same captured MTP graphs and buffers"; :31-40 describes only the 65,536-token ring. Neither file in pr_files.
  4. cost authority: helios/src/scheduler/cost.rs:50-58 Key {drafts,kind,batch,tokens,prefill,packed} — no draft_source; source stored per-Estimate (:166-169) and re-inferred (is_copy_only_step). has_mtp at :190-208 is an existence scan including unmeasured entries.
  5. Dominance: policy.rs:133-174 pairwise (requires same mask via :132-140 checks) vs policy.rs:221-254 second pass over ALL candidates with other.batch >= lanes, equal capacity/draft_tokens, packed >= needed — mask-agnostic; two predicates that must agree but are written separately.
  6. Constants unpinned: speculation.rs:15 WIDE_COPY_PRIOR_RATE=0.88, :18 WIDE_COPY_MIN_MATCH_LEN=6, :20-21 4.0/2.0 (private); sam.rs DEFAULT_MIN_MATCH_LEN=6 (duplicate); rounds.rs +3.
  7. Rig gating: cn5 = 4x RTX PRO 6000 (SM120, matches PR's measured hardware class) but models are GLM-5.3-Flash-NVFP4/dinov2 only — GLM has MTP but does NOT declare copy-token inputs (docs/mtp-design.md:26 says only qwen3.8-flash MTP graphs do), and catalog.rs:99-101 hard-errors when history_drafts is set without the 4 copy inputs → --history-drafts on a GLM core fails at load (seconds to confirm). cn7 = 1x GB10 = SM121/arm64, explicitly unqualified per docs/mtp-design.md:580-581 and the PR's own limitations; it is the only rig holding Qwen3.8-Flash-Next-FP4-Local (the copy-capable checkpoint), listed at 0 GiB.
  8. Metrics for post-fix validation: metrics.rs:937 flare_scheduler_executions_total / _execution_nanoseconds_total {reason=ordinary|discovery|timing_refresh|acceptance_learning}; :941-948 flare_replay_readiness_wait_nanoseconds_total; :1033-1045 flare_speculative_drafts_total{depth,source=mtp|copy,outcome}; flare_speculative_rounds_total{batch,width}.

#7 [high] Report of 2026-11-26 round 2 — final pre-test report (no referral)

Verdict unchanged and strengthened: DO NOT REFER TO HARDWARE TESTING. Head still 14019718 (no new commits since prior review round; "new commits" list in context is the same four). Blocker unfixed. Post-fix plan trimmed to commits 1 (refresh) + 4 (padding dominance), ~4 GPU-h on cn5. Commit 3 (wide copy-verify) blocked by export defect AND no in-tree recipe AND needs a freshly prepared core. Commit 2 (SAM) additionally unqualified on cn7 GB10/SM121.

New angle this round: every model on both rigs is listed at 0 GiB, so any test requires a full Ignition prepare+export (hours) before serving — this makes premature testing especially wasteful. Also: the PR's own measured model (DeepSeek-V4.1-Flash TP4) exists on neither rig, so no headline number is reproducible.

Also new: commit 4's prune_padding second pass (policy.rs:221-254) is mask-agnostic while the pairwise rule (policy.rs:133-174) requires equal masks — a possible over-pruning defect inside the very change I would test; the lane-starvation guard is therefore load-bearing, and fixing the duplication before testing is preferable.

Efficiency recommendation: commits 1 and 4 are independent of the blocker and of each other's prerequisites; if maintainers merge them early, the ~4 h test run can proceed without waiting for the whole PR.

#3 [medium] Padding dominance: two independent predicates

VERIFIED.

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.