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)
- The 8-byte alignment filter is implemented correctly, and retention is untouched.
scanstill stepsdata.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. - One rule, one place.
candidate()(:156-170) is now the single classifier, statement-for-statement equivalent tomain'spointer()(main:reachability.rs:118-131);in_free_blockno longer exists anywhere. Maintainer's 2026-11-20 item 2 closed. - 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. - 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). - 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-354records the pending four-GPU DeepSeek V4.1 and eight-GPU W4A8 measurements, asAGENTS.md(not opened) requires. - 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 theeprintln!wrapper and rank prefix (capture.rs:3219-3223) are uncovered, which is trivial. - Rebase is current —
mainhas moved to7745deea, butsearch_historyonheliopause/src/exportatmainshows no change afterc9935887. 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)
capture.rs:3219—if reach.unresolved_count() > 0duplicatesunresolved_report's ownoccurrences == 0early return (:232-235) and is the only reasonunresolved_countispub(crate). Delete the guard.reachability.rs:172-194—blobclones the cached miss vector on every cache hit (:175) and again on insert (:191). The key(data.to_vec(), numeric.to_vec())was already built once per call onmain(main:134), so key cost is not new; the per-hit miss clone is.:250let address = *address;is a redundant rebind;UnresolvedCandidate(:50) andSite(:67) are field-identical (String vs&str) and bothpub(crate)though module-local;function.map_or("unknown", …)(:252-258) is unreachable becausegraph()rejects out-of-range indices at:322-324.
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)
- Add per-kernel-symbol grouping to
unresolved_report— group bySite.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 whatdocs/TODO.txt:350is waiting on. - 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::1086hole+1024..+3072on a 256-aligned allocation;capture.rs:4798uses granule0x1000). - Delete the
unresolved_count() > 0guard atcapture.rs:3219and makeunresolved_countprivate. - 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_expertsidentifier. - Add
heliopausetonative-serving.ymland 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:
- One export on cn5 (4× RTX PRO 6000) of
nvidia/GLM-5.3-Flash-NVFP4at TP4 — on the box, same SM120 capture path as the author's run, and 4 ranks exercise the per-rank label path in one run. Assert: the export completes (non-blocking), ≥1 rank prints the summary, and the reported distinct-address count is small and attributable per kernel symbol. - A/B for non-interference, not throughput: a same-commit export with reporting disabled, asserting core/manifest byte identity. This is the highest-value assertion available and covers the non-retention guarantee. Export wall-clock and peak RSS parity is the only plausible performance risk (the
blobscache); serving throughput cannot regress because nothing on it changes. - Explicitly out of scope: a true-positive test (unrunnable on this fleet), any DeepSeek-V4.1 export, and single-GPU cn7 runs. Do not spend a second job re-deriving counts the author's SM120 run already establishes.
- Assert distinct-address counts, never occurrence counts — an "occurrence" is misses in one unique argument blob replayed across every node sharing those bytes, which overstates severity by roughly an order of magnitude.
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.