Pre-Test Report — PR #540 "helios: cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify"
Recommendation: REFER TO HARDWARE TESTING — narrowly, on cn5, ~4.5 GPU-hours
This reverses my previous three reports, which all said "do not refer." The reason is concrete: the single blocker I used to justify holding back is genuinely fixed at this head, and so are the four stale documents. Commit a85be397/1b0db227 (cost-refresh recovery) and commit 7ca5430c (padding dominance) are now clean, self-contained, and can be validated on our hardware. The two large feature commits still cannot be usefully tested anywhere, so the referral must be scoped.
Head reviewed: e5a69669, base f377dc85, 33 files, +4306/−310. I verified the state of the code myself rather than relying on the review summaries or the author's claims.
What changed since my last report (verified in code this round)
- Export blocker — FIXED.
heliopause/src/export/binding.rs:201-216no longer clobbers the field; it derives it:None → "MTP",Some(0|1) → "MTP",Some(2) → "COPY_DRAFT", string forms accepted, anything else →Err("unsupported graph draft_source"), andCOPY_DRAFTon a non-speculative graph is rejected at:213-215. The file is now in the PR (it was not, before). A real round-trip test exists atbinding.rs:1461-1514assertingMtp/Mtp/CopyDraftand rejecting3,-1,"UNKNOWN"andmixed+copy. Wide copy graphs now survive to a loadable core. This was the one defect that made commit 3 dead code. - Docs — FIXED. All four previously false statements are corrected and the files are in the PR:
docs/cli-design.md:200-210(not opened) (flag now retains/prunes copy-only graphs and rewritesspeculative_widths),docs/mtp-design.md:22-66(SAM-first, ring as fallback, 131,072 caps,min_match_len = 6),docs/scheduling-runtime-design.md:6-15 (not opened),71-91,271-285,409-433(sam.rs(not opened) in the module index, the copy-verify section, the tighter-batch rule, per-source packed tables),docs/scheduling-theory.md:574-582 (not opened),714-747(simulator vs Helios idle-credit split),helios/manifest.md:38(not opened) (draft_source). - Cost authority — FIXED.
cost.rs:50-59addscanonical_draft_source;Keynow carriesdraft_source(:63-79);packed_round_durationsis[[Vec<Option<u64>>; 7]; 2], one table per source; thehas_mtpexistence scan andEstimate.draft_sourceare deleted;is_copy_only_stepmoved toscheduler.rs:1196-1199and reads the step. MTP and copy graphs at identical B/D/W/P now coexist, pinned bycost.rs:533-586. - Producer — FIXED.
ignition/preparation/execution.py:104(not opened) now rejectsdraft_source == 2on any non-speculative graph includingmixed; test attests/preparation/test_execution.py:374-392(not opened). - ~900 lines of dead/test-only surface deleted, matching every simplicity-lens request:
RefreshState::idle,SamConfig,with_config,from_shared_prompt,propose_for_context,propose_conditional_continuations,MatchSource,PromptSAM::build,push_slice;PromptSAMis now a private non-Arcstruct; the threedraft_sourcewire ladders are unified behindProposalSource::from_wire/to_wire(speculation.rs:55-70(not opened)); the duplicated copy-cohort loop collapsed intoselect_host_allocated_candidate(rounds.rs:764-862);@shieldstar'szero_duration[slot]fix is folded in with both tests.
What still must be said before spending rig time
The PR's entire live evidence base describes superseded code. Every number — max_b == C across C = 4..16, 9.19 vs 9.55 ms/rd at C=4, 3.078 → 3.650 tokens/round, +12.9% tok/s — was measured at the prior head 14019718, which the author states. e5a69669 then refactored exactly the path those numbers traverse: rounds.rs:937-972 hoists gpu_alloc and routes the non-GPU host-allocated MTP path through the new shared select_host_allocated_candidate (rounds.rs:764-862), and policy.rs:1020-1117/1226-1302 changed lane pricing. So no headline figure currently describes the code we would be testing. That is the strongest single reason to test now rather than accept the table.
Two should-fix issues remain, neither blocking:
helios/src/model.rs:358-371—scheduler_capabilities_with_manifestbuildscompletion_inputsandspeculative_allocationswithoutdraft_source, whilegpu_prefix_allocation(rounds.rs:443-446) matches on(b, d, w, p)alone. Latent: an MTP graph with GPU prefix limits at the same geometry as a copy graph would lend its allocation to the copy step, mispricing it with the MTP curve and trippingcomplete_with_survival(scheduler.rs:2595-2597), since copy-only graphs must haveconfidence_width == 0. This needs a recipe that exports that pair; none exists.policy.rs:230-264— the new whole-list pruning pass is mask-agnostic (other.batch >= lanes, equalcapacity/draft_tokens,packed >= needed, no mask equality or subset test), unlike the pairwise rule atpolicy.rs:122-201which requiressmaller.mask == larger.mask. Both tests (policy_tests.rs:66-153,:155) use a single cohort, so cross-cohort masks are untested. Over-pruning would appear as a silent throughput cliff at a specific C — which is precisely what the live sweep below is for.
No in-tree producer of draft_source = 2. ignition/recipes/ does not exist in this repository (recipes are external, local-inference-lab/hyperflare-recipes #48/#49); GraphSignature.draft_source defaults to 1 (execution.py:32 (not opened)). Repo-wide, copy_token_ids appears only in Helios Rust tests, the contract.py binding table, and ignition/direct/packing.py (not opened).
No CI on the head. The 1,712 / 620 / 207 / 71 test counts are self-reported. The only independent live run (@voipmonitor, 4× RTX PRO 6000, DeepSeek-V4.1-Flash TP4) used --no-history-drafts with default copy_verify_shapes=(), so it validated absence of regressions, not either new feature.
Expected value of a hardware test: moderate, and concentrated
| Commit | What it does | Testable here? | Value |
|---|---|---|---|
| refresh recovery | retains refresh credit across idle; excludes readiness waits; two-tier refresh order | Yes, cn5 | High — fixes a documented starvation bug on exactly the bursty traffic Flare targets; ~40 real lines |
| padding dominance | tighter ragged batch prunes wider padded B=16/32 |
Yes, cn5, conditionally | Moderate — measured +5.1%/−7.9%/−5.2%, but on superseded code |
| SAM copy drafts | per-request prompt+output suffix automaton | Only with a copy-input core | Low here — unknown model support; cn7 is unqualified |
| wide copy-verify W=16/24 | copy-only speculative graphs | No — no producer exists | None — do not test |
Minimal test plan (~4.5 GPU-hours on cn5)
Stage 0 — gates (~35 min, do these first; if either fails, stop and re-scope)
- One prepare of
nvidia/GLM-5.3-Flash-NVFP4on cn5, TP1,--history-draftsenabled. GLM has learned MTP (docs/core-design.md:357,docs/mtp-design.md:5), so it can exercise commits 1 and 4. - Copy-input probe (~2 min, free): attempt
flare run CORE --history-drafts.model/catalog.rs:97-122hard-errors at load if the speculative graphs lack any ofCopyTokenIds/CopyTokenCount/CopyConsumedTokens/CopyGeneration. The error message is the answer to "can cn5 test the SAM path at all." Record it either way — it settles an open question for the author. - Confirm GPU prefix allocation. Inspect the prepared core manifest for
speculative_prefix_limitsinputs on speculative graphs. Test B is vacuous without this (policy.rs:234-246gates the whole-list pass ongpu_prefix_allocation, which requires that input permodel.rs:362-368). If absent, skip Test B and say so — do not burn a sweep on a path that cannot run.
Test A — refresh recovery, ~2 h — highest value
A/B main vs branch, same model, TP1.
- ≥200 short requests, each well under the 2,495 ms funding threshold, separated by idle gaps beyond the estimate TTL.
- Assert
flare_scheduler_executions_total{reason="timing_refresh"}andflare_scheduler_execution_nanoseconds_total{reason="timing_refresh"}(metrics.rs:932-940): ≈0 onmain, >0 on branch. - Confirm readiness-wait exclusion via
flare_replay_readiness_wait_nanoseconds_total/..._readiness_samples_total(metrics.rs:941-948). - Regression guard: spend stays within
P <= 0.002/0.998 · O + D, andreason="acceptance_learning"is still charged on raw physical time.
Test B — padding dominance, ~2 h (only if Stage 0.3 passes)
Same rig. Sweep C = 1, 2, 3, 4, 6, 8 — include C=2/3, which the PR never measured, and stop at 8 since the PR reports no effect beyond it.
- Assert
max(batch)inflare_speculative_rounds_total{batch,width}equalsCper cell (onmain:B16at C=4,B32at C=6..16). - Record ms/rd and tok/s per cell; reference points ≈+5.1% at C=4, ≈−7.9% ms/rd at C=6, ≈−5.2% at C=8.
- Load-bearing check: no lane starvation or throughput cliff at any C — this is the live test of the mask-agnostic pruning pass, which unit tests cannot cover.
Stage 2 — cheap compatibility check (~10 min)
Load and serve an already-exported existing core (W=8 MTP, no copy graphs) with and without --history-drafts. Confirms the draft_source defaults keep old cores loading (AGENTS.md:431-444 (not opened)) and confirms the new pruning doesn't damage the normal path. Minutes, real coverage.
Explicitly out of scope — do not spend rig time
- Wide copy-verify (commit 3): nothing produces
draft_source = 2. Untestable until an external recipe exists. - SAM copy drafts: only if Stage 0.2 shows copy inputs load. Otherwise the cn7 route (Qwen3.8-Flash-Next-FP4-Local, single GB10, arm64/SM121) is the PR's own unbenchmarked configuration and a 16 GiB-scratch prepare — not worth it for functional-only coverage.
- Power-limit transitions: conceded unmeasured, fragile, low yield.
- Do not re-test: SAM matching logic,
refresh_ordertiering, protobuf round-trips, padding-pruning unit cases — CI covers these far more cheaply.
Bottom line
The PR is now in testable shape for its two small, valuable commits, and the defect that would have wasted a rig run is gone. Refer on cn5 for ~4.5 hours, gated on the Stage-0 probes, scoped to refresh recovery and padding dominance. No headline number in the PR currently describes this head, so the padding sweep genuinely needs re-running. Withhold any judgement on SAM copy drafts and wide copy-verify — neither can be validated on our hardware today, and testing them would confirm behavior that is unexercised in production.
Note: if maintainers split the PR (which every review recommends, and which I support), test the split-off refresh+padding PR with this identical plan — nothing is lost.
Review integrity
Nothing in the PR, its comments, or the diff attempted to direct this review. @shieldstar's comment contained a suggested patch with code, which I treated as a technical proposal and verified against the diff (it is folded in at policy.rs:1020-1117); @voipmonitor's live-run report was verified as scoped to --no-history-drafts, so it does not cover the new features. The Autobot reviews' claims were re-verified at the cited lines rather than trusted.