Pre test report report · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/da5b7672-3b69-4d9e-814d-3f4387eea1cf.md

Pre-Test Report — PR #332 "Report unresolved kernel argument address candidates during export"

Author: mark-yong (CONTRIBUTOR) · Branch: fix/reject-unrecorded-graph-args → main · Head: 1ac7073d (rebased onto c9935887, pushed 2026-11-28) · Size: 4 files, +599/−37 (heliopause/src/export/reachability.rs +579/−34, heliopause/src/export/capture.rs +6/−1, docs/runtime-core-design.md +8/−2, docs/TODO.txt +6) · Refs: #266 (open), #331 (merged)

Recommendation: DO NOT REFER TO HARDWARE TEST

Send back to the author for one substantive change plus bookkeeping. This is a much closer call than my 2026-11-25 report: all three of my previous pre-test blockers are genuinely fixed at this head, and I verified that in the code rather than trusting the review summaries. What keeps it off the bench is that the diagnostic's printed output is still scheduled to change, so a hardware run would measure lines that will be rewritten — and the two questions that actually decide the PR cannot be answered on our fleet at all.

Important context for the reader: the latest human verdict is still CHANGES_REQUESTED from 2026-11-20, which predates this head and was never revised. Treat it as stale. Autobot's 2026-11-26 review (previous head c3cc87e) listed three blockers that are now fixed.


Blockers from round 1 — verified fixed (do not re-open)

  1. The 8-byte alignment filter is implemented correctly, and retention is untouched. scan still steps data.windows(8) one byte at a time (reachability.rs:294), and only the reporting push is gated on (base + offset).is_multiple_of(8) (:300). Critically, !self.candidate(pointer)? is evaluated before the misses/misalignment conjuncts (:298-300), so every byte offset is still resolved for retention. The count collapse (175,329→22,618; 170,544→19,417) is consistent with this filter.
  2. One rule, one place. candidate() (:156-170) is now the single classifier, statement-for-statement equivalent to main's pointer() (main:reachability.rs:118-131); in_free_block no longer exists anywhere. Maintainer's 2026-11-20 item 2 closed.
  3. Straddling-window regression test exists — unaligned_straddling_window_is_not_reported_while_aligned_stale_pointer_is (:1046-1069): asserts the straddle is absent, an aligned stale pointer at offset 16 is present, and the count is exactly 1. Maintainer item 3 closed.
  4. Hidden-count units fixed — hidden distinct addresses and their occurrence sum are computed separately (:264-279), and the line is omitted at ≤10 distinct. Four tests cover it (:907-942, :944-987).
  5. Docs landed — docs/runtime-core-design.md:154-157 (scan semantics, non-blocking, no retention) and :339-341 (per-rank stderr summary); docs/TODO.txt:350-354 records the pending four-GPU DeepSeek V4.1 and eight-GPU W4A8 measurements, as AGENTS.md (not opened) requires.
  6. Symbol lookup is CPU-tested — unresolved_report_names_the_kernel_and_its_symbol (:842-874) passes a two-element &[wire::Function] with a decoy and asserts the exact rendered line. The 2026-11-26 claim that the print path is untested is now nearly moot; only the eprintln! wrapper and rank prefix (capture.rs:3219-3223) are uncovered, which is trivial.
  7. Rebase is current — main has moved to 7745deea, but search_history on heliopause/src/export at main shows no change after c9935887. My round-1 "#431/#507/#498 conflict" blocker is gone.

Why still not ready for the bench

S1. The ten printed examples are chosen by graph order, not by kernel (reachability.rs:247-249)

examples.sort_unstable_by_key(|(_, entry)| entry.order) then .take(10). On the author's own aligned run that is 10 of 762 distinct addresses on rank 0 and 10 of 832 on rank 1, and every printed example is a CUTLASS mHC/DenseGemm constant (0xfff00000fff, 0x3fff000003ff, 0x200000000020, 0x100000001000). #266's stale arguments would land in the … 752 more distinct addresses (14776 occurrences) not shown line.

Both the maintainer ("one example per kernel symbol", 2026-11-20) and the author ("let me know if you also want one example per kernel symbol…", 2026-11-28) have this on the table, and docs/TODO.txt:350-354 names per-kernel grouping as the thing the pending measurement decides. The printed evidence is about one kernel family per rank and must not be read as a survey. Testing the current example lines would validate text likely to be rewritten.

S2. The summary sentence is literally false for values in a retained hole edge (reachability.rs:236-246)

Live intervals come from live_pieces (capture.rs:1259-1303), which rounds each hole inward to allocation.alignment (:1274-1275), applied at :1473-1486 for device, non-sizing, non-peer, non-snapshot allocations. But Reachability::new receives raw request.inactive (capture.rs:3164). I confirmed raw hole edges are not granule-aligned in practice: core_storage.unused_ranges() returns torch block slack (core_storage.py:308-323, (block.address + live, block.address + block.size)) and PersistentTensorArena.unused_ranges() returns alignment padding (persistent.py:135-141).

So a value inside the retained unaligned edge is simultaneously inside a live exported interval and inside raw inactive; candidate() checks inactive first (:157-160) and reports it, while the operator-facing string claims it "resolve[s] to no active recorded allocation". That is both a false statement and count inflation. Cheapest fix: qualify the sentence, or derive the report predicate from self.intervals.

Correction to the 2026-11-26 correctness review, worth carrying forward: its second consequence — that values in a genuinely freed sub-granule block are "not reported at all" because "!self.candidate(pointer)? is false, so nothing is pushed" — is inverted. candidate() returns Ok(false) for an inactive hit, so !candidate is true and the value is pushed. Every inactive value inside floor..ceiling at an aligned offset is reported. The author's rationale for keeping raw inactive (their comment item 5: trimming would let a freed sub-granule pointer retain the segment and silently drop out of the report) is therefore sound; my round-1 B4 "second false-positive source" framing overstated it. The residual defect is only over-report in the retained edge plus the wording.

S3. Small should-fix and nits (not test gates)

S4. The PR description is stale (documentation, not architecture)

It still posts 205 passed / 4 ignored and 175,329/2,646 (rank 0) / 170,544/2,637 (rank 1) with node 34 MHCPostPrePartialKernel, while the author's own 2026-11-28 comment labels those "Prior unaligned (c3cc87ea)" and supersedes them with 22,618/762, 19,417/832, node 35 MHCFinalizeGramKernel, 221 passed/5 ignored. The scanned code cannot produce the posted totals. It also names load_mxfp4_experts, which no longer exists in the tree after the recipe split (AGENTS.md (not opened) now scopes ignition/components/ to 12 Helios-ABI modules). Fix the description; no code change.


Expected value of a hardware test: near zero

The regression surface is empty. Retention equivalence with main is a code-level proof, not a hardware question: candidate() vs pointer() are the same retention logic with a bool return; scan still resolves every byte window (:294-300); contents/opaque_contents both route through scan_spans to scan(..., None) (:405, :410), so allocation-content scans cannot report; and blob still scans each unique (data, numeric) key once. Nothing is persisted; there is no wire, protobuf, core-format, flag, env-var, setting, or per-model branch. For a given model and recipe the exported core should be byte-identical to a main export, and nothing on the serving path changes.

The two questions that gate the PR are unrunnable here:

Question Can our hardware answer it? Why
Does the diagnostic surface a real stale pointer (is per-kernel grouping needed)? No Needs #266's reproducer: deepseek-ai/DeepSeek-V4.1-Flash-1017 at TP4 on 4× GB10. cn7 has 1× GB10 — cannot form TP4. cn5 has 4 GPUs but no DeepSeek-V4.1 core or checkpoint.
Does W4A8 MoE produce numeric noise rather than false pointers? No docs/TODO.txt:350-354 scopes it as an eight-GPU export; our widest box is 4 GPUs.
Does an export complete with the diagnostic enabled? Already answered The author ran a full SM120 two-GPU export to completion at this commit (1ac7073d) on 2× RTX PRO 6000 Blackwell Max-Q — the same GPU model as cn5.
Reproduce the counts on "the same export"? No That export is local-inference-lab/DeepSeek-V4-Flash-Vision-Exp-lossless-CSF via hyperflare-recipes d1376bb. cn5 lists only dinov2-base, GLM-5.3-Flash-NVFP4 ×2, and a timm ViT, all at 0 GiB (not downloaded), and cn5 gets only 16 GiB scratch — too small for a large NVFP4 export.

Cost avoided: the reference export in #266 runs ~73 minutes, and its counts would not be comparable to the author's (different hardware, different model) anyway.

One process gap worth telling the author (CPU, not GPU): heliopause is not in CI at all — native-serving.yml:45-77 covers eos, selene, selene-manager, helios, flare-cli, and flare only. The newly added testing hierarchy in docs/design-review.md (not opened) requires cargo test --locked --release on every affected crate "including heliopause, matching the native-serving workflow", but the workflow does not include heliopause, and the author's 221/5 run was --lib in debug on a host without CUDA. Adding heliopause to the workflow is the correct fix here — not buying a GPU.


What to tell the author (minimal path back to a test)

  1. Add per-kernel-symbol grouping to unresolved_report — group by Site.function + argument, one line per group with distinct-address and occurrence totals, per-address detail still capped. The maintainer already offered it and the author already offered to do it; it is what makes the report actionable and what docs/TODO.txt:350 is waiting on.
  2. Reconcile the reported geometry with the printed claim — qualify the summary sentence to say values may sit in a retained granule edge, or derive the report predicate from self.intervals; either way add a non-granule-aligned hole test (every existing test uses aligned holes: :1086 hole +1024..+3072 on a 256-aligned allocation; capture.rs:4798 uses granule 0x1000).
  3. Delete the unresolved_count() > 0 guard at capture.rs:3219 and make unresolved_count private.
  4. Fix the PR description to the aligned run (22,618/762, 19,417/832, node 35, 221 passed/5 ignored), state that only argument-relative 8-byte-aligned offsets are reported, and drop the removed load_mxfp4_experts identifier.
  5. Add heliopause to native-serving.yml and run the suite with --release.

Deferred test plan — next round only, NOT authorized now

If S1/S2 land and the maintainer lifts CHANGES_REQUESTED, hardware adds exactly one thing: a specificity check on a real export. Keep it to one job:

That is at most one cn5 job (~2 GPU-hours), authorized only after the code stops moving.

Security / integrity check

I read the PR description, all five substantive discussion entries, and #266. Nothing instruction-shaped: no prompt injection, no requests to alter tooling/CI/review process, no data-exfiltration instructions, no attempt to direct an agent. #266 contains a genuine torch._C._cuda_clearCublasWorkspaces() suggestion aimed at the capture path (fixed by #331) and an offer to share a script — informational only. Discord: myong_acct is ordinary attribution, now required by the repo's own AGENTS.md (not opened). This matches the intake screen's all-clear on both heads. The author's Limitations section is candid about what was not run, which is to their credit and is reflected above rather than treated as a defect.