Opened by a workflow run, Nov 25, 2026 6:24 PM EST.
screen malicious
Screen Result: All Clear
Evidence:
Screening of PR #332 ("Report unresolved kernel argument address candidates during export", mark-yong, head c3cc87e, 2 files, +434/−30) found nothing aimed at causing unwanted agentic behavior — no prompt injection, no agent-directed instructions, no obfuscated payloads, and no new process, network, filesystem or unsafe capability.
What was checked: the complete diff of both changed files (heliopause/src/export/reachability.rs, heliopause/src/export/capture.rs), the PR description, all four discussion entries (three CHANGES_REQUESTED reviews from yatesdr, one reply from mark-yong), the referenced issue #266, and the branch's single-commit history. Targeted searches over the changed folder for injection patterns (ignore previous instructions, as an AI, SYSTEM:, LGTM, please approve, do not flag, autobot) and for I/O and execution primitives (std::env, fs::, Command, unsafe, include_str/include_bytes, reqwest, base64, .ssh, exfil, api_key) produced no matches in the PR's code; the only hits in heliopause/src/export are pre-existing base64 signed-weight-envelope code in core.rs (not opened) and weight_reuse.rs (not opened), neither of which this PR touches.
The change is exactly what the description claims: a non-blocking diagnostic that records kernel-argument values falling in gaps between recorded allocations or in inactive parts of recorded segments, and prints per-rank occurrences, distinct-address counts, up to ten example sites, and an omitted-occurrence count. Verified in code: the print block at capture.rs:3137-3141 (gated on unresolved_count() > 0, prefixed with rank {request.rank}, eprintln! only, no error path); the inactive-segment test at reachability.rs:131-135; the address→first-site/count map at reachability.rs:170-185; the eight-byte-window scan at reachability.rs:248-274.
Borderline items examined and dismissed: "Discord: myong_acct" in the description is ordinary author attribution, not a directive; issue #266 contains a genuine torch._C._cuda_clearCublasWorkspaces() code suggestion aimed at the capture path (implemented by the merged #331), not at an agent; the reviewer's three rounds are specific, line-referenced engineering comments with no request to alter tooling, CI, or review process; mark-yong's Limitations section candidly discloses unvalidated scope rather than asserting unproven results, which is consistent with charter line 11 ("bring real evidence").
Non-security residual notes for a human reviewer: the reviewer's round-3 blocking item (report only argument offsets divisible by 8) appears unaddressed at head c3cc87e — scan() still steps data.windows(8) by one byte at reachability.rs:259, and the inactive-range test is duplicated between candidate() (131-135) and scan() (262-266). These are code-quality concerns, not injected behaviour.
Open questions: none bear on the security assessment. The PR's own limitation — that no W4A8 MoE export was validated and #266's four-GPU DeepSeek V4.1 failure was not reproduced — is a correctness/validation gap for reviewers, disclosed by the author.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: mark-yong (CONTRIBUTOR; Discord myong_acct)
Motivation: A captured CUDA graph can keep a kernel argument pointing at a workspace that no longer belongs to the exported model, and serving that core then faults (issue #266: cuBLASLt split-K arguments carrying a stale pointer caused Xid 31 on DeepSeek V4.1). The export reachability scan used to drop such address-shaped values silently, so this PR makes it print them as a non-failing report instead.
Scale: +434 / −30 lines in 2 files
Proposal:
- Turn
pointer()intocandidate()inheliopause/src/export/reachability.rs, recording address-shaped values that fall in gaps between recorded allocations or in inactive (freed) parts of recorded segments, without retaining anything and without failing the export. - Collect each distinct address with its first site (graph, node, recorded kernel symbol, module, argument, byte offset) and an occurrence count in one address→entry map, in stable order.
- Print a per-rank summary line plus up to 10 distinct example addresses and a "N more occurrences not shown" line from
capture_rankviaeprintln!, before module/global capture (capture.rs:3137-3141). - Keep numeric exclusions and allocation-content scanning unchanged (contents scans pass
Noneand never report). - Add 10 unit tests in
reachability.rsfor counting, ordering, symbol lookup, boundaries and non-retention. Touches: heliopause/src/export/reachability.rs— the whole scan path is rewritten (blob,scan,graph, newunresolved_*API); main has since changed the same file (#431, #507), so expect conflicts.heliopause/src/export/capture.rs— new print block incapture_rank, immediately before the downloader paths #498 rewrote.- (No third module: no wire format, manifest, config or docs file is touched.) Related items:
- #266 First captured graph keeps a transient cuBLAS split-K workspace: Xid 31 on DeepSeek V4.1 TP4 (open): the defect this monitors; its reporter asked for exactly this export-time report and for 8-byte-aligned offsets.
- #331 Isolate cuBLAS warmup workspaces from CUDA graph capture (merged): the actual lifetime fix for #266 by the same author; this PR is the detection complement.
- #431 Add Heliopause and Ignition PersistentWorker export binding and reachability (merged): added
Reachability::execution()and refactored the capture.rs block this branch still carries → real conflict. - #507 Add persistent worker counter schema … (merged) and #498 Flush PCIe D2H tails before export completion (merged): same files, merged after this branch's last push.
- #395 CUDAGraph.reset() frees the workspace shared by other graphs (open): same author's residual lifetime issue in the same series.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Autobot comments: Head c3cc87e is still CHANGES_REQUESTED and has not moved since 2026-11-20; the blocking item (report only 8-byte-aligned argument offsets — the scan still enumerates every byte via
data.windows(8).enumerate(), reachability.rs:259) is unimplemented, which is also why the report's own first example is "argument 0, offset 4" and why it prints ~2,646 distinct addresses where #266's checker found exactly 10 hits. Validation is author-only and no CI covers heliopause; the description itself admits the W4A8 constant-noise premise and #266's four-GPU failure are unverified. The branch predates #431/#507/#498 and will not merge cleanly. Nothing is documented (no docs/ or docs/TODO.txt entry for the new stderr line or the pending verification). Nothing the description claims is missing from the code; the text just omits that "occurrences" are byte-window hits, not call sites, and that the output is unfilteredeprintln!on every rank.
Value Proposition
Verdict: worth it with changes — not as it stands
The change is in the right place, does not weaken any existing guarantee, and answers a real maintainer request. But in its current form it does not meet the condition the maintainers attached to that request, and the author's own evidence shows the output is dominated by exactly the false positives it was supposed to avoid. It needs narrowing, better example selection, and a demonstrated true positive before it can merge.
What it does (verified in the diff)
Two files, +434/−30, one commit c3cc87ea.
heliopause/src/export/reachability.rs:131-145—pointer()becomescandidate(), returning whether a value resolved to a live allocation instead of only silently retaining it.:147-188—blob()cache changes from aHashSetof scanned blobs to aHashMap<(data, numeric), Vec<(offset, address)>>, and each scan miss is charged to anunresolved: HashMap<u64, UnresolvedEntry>keyed by address, keeping the first site (graph, node, function index, argument, byte offset), an insertionorder, and an occurrence count.:190-246—unresolved_report()prints one summary line, up toUNRESOLVED_EXAMPLES = 10distinct addresses, and a trailing "… N more occurrences not shown" in the same "N occurrences / M distinct addresses" shape as the exchange in #266.:248-274—scan()now walks windows with abaseoffset and optionally collects misses.:276-317—graph()takes the graph name and enumerates node and argument position so a site can be named; symbols are resolved fromwire::Functionat report time.capture.rs:3137-3141— after all graphs are serialized,unresolved_reportlines are printed witheprintln!("export: rank {}: {line}").
Behaviour is strictly non-blocking and retention is unchanged: candidate() still returns before reference() for inactive ranges, so no allocation that was previously dropped is now retained, and nothing new can fail an export.
Why it is worth doing
- Right layer. The charter says to solve the problem in the right place with the smallest footprint; the reachability scan is where graph argument bytes are already interpreted, and no per-model branch, flag, or new mechanism is added.
- A maintainer asked for it. In #266 (2026-11-11 15:28,
@calvarado2004) the requester asked for an export-time check that records "graph, node, function symbol, argument index and byte offset" and either fails or warns via typednumericspans.@original-el8(2026-11-13) set P1 and asked for "export-time detection where pointer provenance can be established without misclassifying numeric kernel parameters." This is a direct response to that thread. - It does not duplicate existing checks.
check_relocations/check_bindings(capture.rs:294-359) only validate declared relocation fields, andflare inspect --memory-map(docs/cli-design.md:1528,helios/src/runtime_core/describe.rs:389-395) reports coverage, not argument provenance. Nothing else inspects graph argument values. - Detection still matters after the fix. #331 (merged) removed the cause of #266 by isolating warmup streams, but it is one fix for one leak path; #395 (
CUDAGraph.reset()freeing a workspace other graphs share) is a live second hazard, and #331 explicitly notes that cores exported before it keep the stale address. A cheap, non-fatal report is a defensible residual safety net.
Why not as-is
- The maintainer's condition — do not misclassify numeric parameters — is not met, by the PR's own numbers. The SM120 two-GPU export reports 175,329 occurrences / 2,646 distinct addresses on rank 0 on a healthy package, all ten examples coming from b12x mHC Cutlass
MHCPostPrePartialKernelinprefill4096node 34, at "argument 0, offset 4" of0x100000000800/0x100000000900. An offset of 4 inside an 8-byte-aligned parameter is the signature of two adjacent 32-bit fields, not a pointer — precisely the misaligned byte-window false positive #266 warned about ("narrow the scan to 8-byte-aligned offsets of parameters whose size is 8").@FujitsuPolycom's independent run on #331 measured 864 unaligned byte-window matches per rank on a clean export. A diagnostic that fires ~170k times per rank with no observed true positive is noise, not evidence. - No true positive is demonstrated. The PR does not reproduce #266 (three GPUs, four-GPU DeepSeek V4.1 export not runnable), and the one export it does report identifies no stale pointer — only mHC values it explicitly does not claim are stale. So the change is untested against the case it exists for.
- Example selection works against the purpose.
reachability.rs:73-75, 222-224keeps the first ten addresses in first-encounter order. In #266 the real signal is one address carried by ~10 arguments out of 175k occurrences; a rare value is guaranteed to be crowded out by pervasive constants from the earliest nodes. Theoccurrencesfield is counted but never used to rank. - The remaining defects:
scan()(:262-269) re-computes the inactive-range test thatcandidate()(:131-134) already did, so one predicate lives in two places that the new tests depend on; the blob cache now clones the whole miss vector on every cache hit (:149-169) and holds a miss list for every distinct argument blob for the whole export, where the oldHashSetshort-circuited duplicates; andeprintln!atcapture.rs:3139bypasses bothStartupProgress/Phase(helios/src/startup.rs:241-369) and the established Python-side inventory reporting path (ignition/preparation/runtime_core.py:346-348→memory_inventory.print_inventory,memory_inventory.py:323-327), so on a terminal it interleaves with phase rows and is invisible to startup observation. - Tests and docs. Several tests assert exact prose strings (
reachability.rs:~826-846,~858-875), which will churn on every wording edit; the repo's prose rules (AGENTS.md:40-45) make that costly.docs/cli-design.md:1609enumerates whatignition exportprints and is not updated, and AGENTS.md:52-55 requires the unresolved limitation ("values outside the recorded envelope and stale values aliasing live storage are not detected") to live indocs/TODO.txtrather than only in the PR text.
Costs
Small in code (two files, ~430 lines including ~330 lines of tests) and negligible in export time — the scan already ran, this only records misses it was discarding. The real cost is operational: ~350 KB-range of stderr per export on a clean package, and the risk that maintainers learn to ignore the message, which is worse than no message. Maintenance cost is one more map and one more report format in the hottest inner loop of export.
What would make it mergeable
- Narrow the scan to what provenance can support: 8-byte-aligned slots of parameters whose driver-reported size is 8, plus the tensor-map base-address field.
function_layout/parameter_sizesalready reach this code (capture.rs:2911-2942,ignition/preparation/tensor_metadata.py:140-149), so this is a filter, not a new mechanism. - Group the report by kernel symbol + argument rather than by raw address, with distinct-address counts per group, and order examples by rarity (or show one example per group) so a handful of stale arguments is visible next to 2,646 benign ones.
- Route the output through the existing progress/console path (a phase detail line, or the
--verbose/print_inventoryroute) instead of bareeprintln!, and document it indocs/cli-design.md:1609with the limits indocs/TODO.txt. - Collapse the duplicated inactive predicate into one function returning an enum (live / inactive / gap), and stop cloning the miss vector per cache hit.
- Add one true-positive check: a captured-graph fixture, or an archived known-bad package, where a stale split-K argument is actually reported, plus a false-positive budget on a real export. Drop the prose-equality assertions.
- Fix the description so the claimed result matches the evidence: state that no stale pointer was found and that the observed hits are numeric constants in mHC kernels — which is the argument for change 1, not a success story.
With those changes this becomes a genuinely useful, low-cost export guard for a class of defect that the #331 fix and the #395 hazard show is still reachable. As submitted it is a well-placed diagnostic whose sensitivity is far too high and whose specificity is unproven.
(No instruction-shaped content or attempts to direct an agent were found in the PR, its comments, or #266; the #266 thread's "we can share the script" offer is informational only.)
Full report · Notes Decide Value: yes (98%): This change is worth reviewing: it provides value to the project in line with its charter.
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- heliopause/src/export/capture.rs:3137:
if reach.unresolved_count() > 0duplicates theoccurrences == 0early return inunresolved_report(reachability.rs:207-210); delete the guard and makeunresolved_countprivate. - heliopause/src/export/reachability.rs:262-266: the inactive-range rule is computed twice —
candidate(131-135) already returns true for an inactive value, andscanrepeats the samepartition_pointasin_free_block; havecandidatereturn the report decision and delete the block (this is the maintainer's still-open "one rule, one place" item).
Nits: 5 (unbounded per-address first-site retention while only 10 addresses print; two thin map accessors with duplicate test assertions; needless pub(crate) on two module-local structs plus an unreachable "unknown (unknown)" fallback; two tests repeating the report sentence and a stale ..._are_capped_... test name; the cached miss list cloned per repeated call site).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Prose
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- heliopause/src/export/reachability.rs:211-221: the printed summary says the values fall "outside every live recorded allocation", but free-block candidates inside a live segment are reported too (scan:262-266 sets
in_free_block; candidate:131-135 resolves inactive ranges first), so the shipped text contradicts both the code and the description's "inactive parts of recorded segments". - heliopause/src/export/reachability.rs:238-244: "… N more occurrences not shown" subtracts the number of distinct examples (≤10) from an occurrence total, so the number is not omitted occurrences as the description claims; the PR's own test at :869 pins 14 where 4 are actually unshown.
- PR description Validation/Limitations: the two-GPU Vision-Exp evidence lists first examples at "argument 0, offset 4", which the 2026-11-20 review showed is a window straddling two parameter fields and cannot be a pointer; at this head scan still walks every byte (:259-271, no offset % 8 filter), and the description does not say so, nor which kernels the recipe's MXFP4/A8 experts compiled to (ignition/components/weights.py:1574-1588 is itself the A8 MoE path). Pending four-GPU/W4A8 verification is also absent from docs/TODO.txt, which AGENTS.md:53 requires.
Nits: 2 — "kernel unknown (unknown)" placeholder (:232-233); docs/runtime-core-design.md:310-313 lists what rank-zero capture reports on stderr and does not mention the new kernel-argument scan line (capture.rs:3137-3141).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Otherwise the description's structure and its technical account (why, what changed, the #266 cuBLASLt-versus-W4A8 separation, the limitations paragraph) hold up against the code; no docs files are changed by the PR.
Architecture
Verdict: blocking issues
Blocking:
- heliopause/src/export/reachability.rs:259:
scanstill stepsdata.windows(8)one byte at a time, so the report is dominated by unaligned/numeric windows (2,646 distinct per rank on a healthy export; the PR's own first example is argument 0, offset 4); the maintainer's "one change before this can merge" (report only 8-byte-aligned argument offsets, then rerun the counts) is unimplemented at c3cc87e.
Should fix:
- heliopause/src/export/reachability.rs:262-266: the inactive-range rule is recomputed in
scanasin_free_blockaftercandidate(reachability.rs:131-145) has already classified the same value as a hit; two copies of one lifetime rule, and the reviewer's item 2 ("One rule, one place") is still open.
Nits: 2 — raw eprintln! at capture.rs:3137-3141 bypasses StartupProgress/is_enabled and never reaches StartupObservation (the maintainer did accept rank-labelled per-rank printing, and capture.rs:3993 has the same raw-stderr precedent, so this is a nit, not a gate); and blobs clones its miss vector on every cache hit (reachability.rs:149-169) while unresolved retains one graph-name String per distinct address (2,646 per rank) inside a function whose comments stress bounded memory.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Correctness
Verdict: blocking issues
Blocking:
- heliopause/src/export/reachability.rs:259:
scanstill stepsdata.windows(8)one byte at a time with no 8-byte alignment filter, so counts and examples are dominated by windows straddling two CUDA parameters — exactly the maintainer's blocking item 1 at c3cc87e.
Should fix:
- heliopause/src/export/reachability.rs:262-271:
in_free_blockuses the rawrequest.inactiveranges whileintervalscome fromlive_pieces, which trims holes toallocation.alignment; values in the retained unaligned hole edges resolve to a live allocation yet are reported as "outside every live recorded allocation". - heliopause/src/export/reachability.rs:131-135 and 262-265: the inactive rule is stated twice (maintainer item 2 unaddressed); deleting the second copy along with fixing the geometry mismatch collapses both fixes into one rule read from
self.intervals. - heliopause/src/export/reachability.rs:259-269: no test places an 8-byte pointer next to a small integer and asserts the straddling window is not reported (maintainer item 3); the existing tests at 750-770 and 772-790 only assert aligned offsets are reported.
- heliopause/src/export/capture.rs:3137-3141: the only caller of
unresolved_report(rank prefix,output.index.ranks[0].functions) has no test; symbol lookup correctness rests onwire::Kernel.function(capture.rs:889/3116) matching thefunctionspush order (capture.rs:2986-2992).
Nits: 3 Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Conventions
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- heliopause/src/export/reachability.rs:262-266: the inactive-range predicate is written twice — in
candidate(:131-135) and again inscanviain_free_block; the second copy is provably a no-op (!candidate || in_free_blockalways equals!candidate), yet it is paid on every scan call, including themisses: Noneallocation-content path (:369-378), and is the maintainer's open 2026-11-20 item 2 ("One rule, one place").
Nits: 5 — capture.rs:3137 caller guard duplicates unresolved_report's own empty check; blob (reachability.rs:147-188) clones its cache key three times per kernel argument and the map keeps two count accessors (:190-199); with_count (:455) is a new module-level pluralisation helper where flare-cli/helios inline the suffix; the new per-rank export message is undocumented next to docs/model-preparation.md:1471 and docs/runtime-core-design.md:118-156; shared_argument_bytes_record_one_example_per_address (:793-807) duplicates :751-770 plus :845-870 and the tests use two lookup idioms for one map.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Coverage: heliopause/src/export/reachability.rs read in full (1-988) and capture.rs at the changed site (:3133-3141) plus its surroundings; rules read were AGENTS.md, CONTRIBUTING.md, docs/design-review.md, docs/runtime-core-design.md, docs/model-preparation.md and the repo-prose skill. Nothing in the diff reuses an existing helper that should have been used directly (kernel_symbols is gone; merge_ranges/subtract_ranges remain the shared range primitives). Seven other constructs (HashMap cache swap, explicit order field plus sort, per-rank eprintln!, symbols from the recorded function index, the optional out-parameter on scan) match precedent and are cleared. Caveat: I did not run cargo test or clippy here; the no-op claim rests on reading candidate (:131-145) and reference (:121-129), neither of which mutates inactive. A test asserting that an inactive value is reported while nothing is retained (the existing :903-916) settles it, but it passes today, so it does not prove the copy is needed.
Subtractive
Verdict: should not be merged The change: +434 / -30 lines (heliopause/src/export/reachability.rs +428/-29, heliopause/src/export/capture.rs +6/-1) Could remove: about 110-130 lines in 5 places as submitted; about 300 of the 434 if the scan is narrowed to pointer-aligned offsets first Biggest subtractions:
- heliopause/src/export/reachability.rs:259: the whole report pipeline rests on
data.windows(8).enumerate(), which reads every 8-byte field at all 8 sub-offsets;data.chunks_exact(8)is a one-line change and removes most of the 2,646 candidates per rank the pipeline counts — 434 lines at stake, with the fix costing 0 - heliopause/src/export/reachability.rs:792-807, 902-916, 823-828, 872-876: tests that re-prove facts sibling tests already assert (dedup across graphs, inactive/numeric exclusion, function-index lookup, empty report) — about 55 lines
- heliopause/src/export/reachability.rs:49-61, 66-71, 59/171/183/223, 197-199, 455-461: two duplicate site structs, an
orderfield that re-sorts a HashMap into insertion order, a one-line accessor, and a pluralizer — about 30 lines, replaced by one entry type in a Vec and "occurrence(s)"/"address(es)" - heliopause/src/export/reachability.rs:45-48, 63-65, 73-74, 201-204, 211-221 (and 833-836, 862-865): 13 doc lines for 110 code lines, three restating the code, and a 4-line summary string duplicated verbatim in two tests — about 16-20 lines
- heliopause/src/export/reachability.rs:84, 147-169, 248-253, 370-374, 378: the miss-list cache clones a Vec per key although the
unresolvedmap already dedups by address, and theOption<&mut Vec>sink has two of three callers passingNone— about 10 lines Left behind: heliopause/src/export/reachability.rs:131-145 and 262-265 state the inactive-range rule twice (reviewer yatesdr's open item 2, 2026-11-20); nothing else in the repository is left dead — callers ofpointer→candidate,blob,graph, the removedkernel_symbolspath and docs/runtime-core-design.md:118-156 were swept. Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Pre Test Report
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: c3cc87e (unchanged since 2026-11-20) · Size: 2 files, +434/−30 (heliopause/src/export/reachability.rs +428/−29, heliopause/src/export/capture.rs +6/−1) · Refs: #266 (open), #331 (merged)
Recommendation: DO NOT REFER TO HARDWARE TEST
Send back to the author. Three pre-test blockers, none of which a test engineer can resolve, and every one of which invalidates the measurements a hardware run would produce:
- The maintainer's blocking item is unimplemented at head. yatesdr's 2026-11-20 review closed with "One change before this can merge": report only argument-relative offsets divisible by 8, then repost the counts from the same export.
heliopause/src/export/reachability.rs:259still readsfor (offset, bytes) in data.windows(8).enumerate()with no% 8filter anywhere in the file. The PR's own headline example (argument 0, offset 4: 0x100000000800) is exactly the straddling window the maintainer said cannot be a pointer. Status is still CHANGES_REQUESTED after three rounds. - Two user-visible outputs are wrong and must be rewritten (details below): the summary line misstates which values it reports, and the "N more occurrences not shown" line prints a number that is not omitted occurrences.
- The branch will not merge cleanly, and the conflicts are in the code under test.
mainnow hasReachability::execution()(main:heliopause/src/export/reachability.rs:87) andgraph(&mut self, nodes, kernels); this branch hasgraph(&mut self, name, nodes, kernels)and still inlines the execution-buffer reference loop atcapture.rs:3075-3086wheremaincallsreach.execution(&execution)(main:heliopause/src/export/capture.rs:3159). Merged #431/#507/#498 rewrote precisely these functions. Rebasing changes the exact lines any test would exercise.
Expected value of a hardware test right now: near zero. Even with the blockers fixed, hardware cannot settle the two questions this PR exists to answer (see "Why hardware cannot settle this" — the decisive measurement was already taken on GB10 hardware by a third party, and #266's reproducer is unrunnable on the available fleet).
Cost avoided: the author's export takes ~73 minutes (#266, 2026-11-11 comment) and produces ~170k-report-per-rank runs; re-running it twice (before/after an alignment fix that will land) is pure waste.
What the change does
A non-blocking, always-on diagnostic in the Heliopause export scan. pointer() becomes candidate() (reachability.rs:131-145) returning whether a value resolved to a live allocation; scan (:248-274) optionally collects address-shaped values that fall in gaps between recorded allocations or in inactive parts of recorded segments; blob (:147-188) charges each miss to an address→entry map keeping first site (graph, node, function index, argument, offset), an insertion order, and an occurrence count; unresolved_report (:205-246) renders a summary line, ≤10 examples, and a hidden-count line; capture_rank prints them per rank via eprintln! (capture.rs:3137-3141). No wire, core-format, CLI, env-var or recipe surface is added; nothing is persisted; retention behaviour is unchanged.
Verified sound — do not ask the author to change these
- Retention is untouched.
candidatereturnsOk(true)for an inactive value before reachingreference()(:132-135), andreference()is called only on a live-interval hit (:139-142). Tests:928-966pin both reporting and non-retention. This was the one lifetime contract the change had to avoid weakening, and it holds. - Allocation-content scans cannot produce reports.
scan_spanspassesmisses: None(:370-378), socontents/opaque_contentsare report-free;:918-926covers it. - Offsets are genuinely argument-relative.
baseis the chunk start within the blob passing throughsubtract_ranges(:159-164). - Symbol lookup is correct.
Site.function = node.function as usizeindexeskernels(bounds-checked at:290-292), andcapture.rs:2911-2991pushes onewire::Functionper kernel in kernel order, sofunctions[candidate.function]is the right symbol/module. The maintainer's round-2 bookkeeping request (dropkernel_symbols, store the index) is implemented as asked. - Right layer, right scope. The scan is the only place that sees recorded argument bytes beside the recorded allocation table. No per-model branch, no new flag, nothing in core/ModelIndex/protobufs, so previously exported cores keep loading. Charter-compliant on "solve the right problem in the right place" and "no per-model special cases or flags."
- The problem is real and worth detecting. #331 fixed the cause in
main, but #395 (CUDAGraph.reset()freeing a workspace other graphs share) is a live second path, and #331's own limitations note that cores exported before it keep the stale address. A cheap non-fatal report is a defensible residual net.
Blocking issues (must be fixed before any hardware time is spent)
B1. No 8-byte alignment filter — the report cannot pick out a stale pointer (reachability.rs:259)
scan slides an 8-byte window one byte at a time, so a value spanning two CUDA parameters is recorded as a candidate at a half-pointer offset. The measured consequence is in the PR itself: 175,329 occurrences / 2,646 distinct addresses on rank 0 and 170,544 / 2,637 on rank 1 on an export that completed normally, all ten printed examples per rank being b12x mHC Cutlass MHCPostPrePartialKernel at offset 4, with the author stating they "do not establish … whether the mHC values are constants or stale pointers."
Why this blocks testing rather than merely needing polish: with ~2.6k distinct candidates ahead of them in first-seen order, #266's real stale arguments (offset 256 of a 384-byte parameter; offset 0 of argument 1 — both aligned, so an alignment fix preserves them) would be buried in the … N more occurrences not shown line. The artifact that would merge is a permanent diagnostic whose only consumer is an operator reading rank-wide stderr; a diagnostic that trains operators to scroll past it is worse than none.
Fix: report only when (base + offset) % 8 == 0, leaving retention and the inactive/gap classification unchanged. Then rerun the export and post before/after distinct-address counts per rank. The maintainer also offered: if thousands remain, one example per kernel symbol.
B2. The summary line misstates what is reported (reachability.rs:211-214)
The shipped string says candidates "fall inside the recorded address envelope but outside every live recorded allocation". But scan:266 pushes when !self.candidate(pointer)? || in_free_block, so a value in the free block of a segment that is a recorded allocation is reported too — which is why the duplicate in_free_block term exists at all. The PR description states the correct rule ("gaps between recorded allocations and in inactive parts of recorded segments"); the string an operator actually reads does not. The UnresolvedCandidate doc comment (:45-46) has the same defect in miniature ("resolves to no live recorded allocation, including a value in an inactive range" — an inactive range is inside a recorded allocation).
B3. "… N more occurrences not shown" prints a number it does not compute (reachability.rs:238)
let hidden = occurrences - examples.len().min(UNRESOLVED_EXAMPLES);
occurrences is a sum of per-address occurrence counts; examples.len() is a count of distinct addresses. The subtraction mixes units. The PR's own test pins the wrong number: :869 asserts " … 14 more occurrences not shown" where each of the 10 printed examples has occurrences == 2, so 20 of 24 occurrences are shown and only 4 are unshown. At scale (2,646 distinct / 175,329 occurrences) the line reads "175,319 more occurrences not shown" when what is actually omitted is 2,636 distinct addresses. Fix: sum the occurrences of examples actually printed, or print omitted distinct addresses and say so.
B4. A second, independent false-positive source: raw inactive ranges vs granule-trimmed live intervals (correctness, verified)
Reachability::new takes raw request.inactive (capture.rs:3074, stored at reachability.rs:107), but allocations were already rebuilt by live_pieces (capture.rs:1410-1423), which rounds each hole inward to allocation.alignment (capture.rs:1211-1212). The retained live piece therefore still covers [raw_start, aligned_start) and [aligned_stop, raw_stop). A kernel-argument value sitting in that edge is inside a live recorded allocation, but candidate checks the raw inactive list first (:131-135) and returns early, and scan recomputes in_free_block from the same raw list (:262-265), so it is reported with the false claim that no live allocation covers it. Granule is MiB-class (cuMemGetAllocationGranularity), so each hole can contribute up to a granule of live-but-reported addresses per side, for every graph argument.
No existing test reaches this: every test uses granule-aligned holes — :908 (hole 0x3000..0x3100), :943 (hole 1024..3072 in a 4096-byte allocation), and capture.rs:4545 (holes 0x1080/0x1380 with granule 0x100). A non-granule-aligned hole test is missing.
B5. The duplicated lifetime rule (reachability.rs:131-135 vs :262-266) — the maintainer's open item 2
candidate already treats an inactive range as a hit, and scan repeats the identical partition_point as in_free_block. Since candidate cannot mutate inactive, !candidate(pointer)? || in_free_block always equals !candidate(pointer)? — the second copy changes no result, yet it is paid on every 8-byte window of every argument and every byte of every scanned allocation segment (the misses: None path at :370-378 pays it too, because the predicate is evaluated before the && let short-circuit). It is also the mechanism that produced B4: two copies of one lifetime rule that already disagree.
Caution for whoever fixes it: deleting in_free_block alone and keeping !self.candidate(...) would silently stop reporting inactive-range values, because candidate returns true for them and does not record them. The fix must return a classification (Live/Inactive/Gap), and B4 should be fixed in the same edit by deriving candidacy from the same geometry as self.intervals. Test :902-916 pins the reporting half and must keep passing.
B6. Missing tests the maintainer asked for (reachability.rs:248-274, capture.rs:3137-3141)
- Item 3, unaddressed: "Put an 8-byte pointer to a live allocation, then a small integer, in one argument. Assert the straddling window is not reported, and that a stale pointer at an aligned offset is." The nearest existing tests (
:750-770,:772-790) assert only what is reported. Note this test cannot pass atc3cc87e::783-799deliberately asserts that a window at offset 16 of0x3008 | 8 zero bytes | 0x3010is reported — i.e. the current suite encodes the unaligned behaviour B1 removes. - The print path is untested.
capture.rs:3137-3141needs a CUDA context, so nothing exercises the rank prefix or the three-way index wiring (wire::Kernel.function→kernels→functions) end to end. A two-kernel graph throughReachability::graph+unresolved_reportwith a two-elementfunctionslist would pin it on CPU.
Should-fix and nits (not test gates, but they will move the output)
capture.rs:3137: theunresolved_count() > 0guard duplicatesunresolved_report's ownoccurrences == 0early return (:207-210) and forcespub(crate)onunresolved_count. One rule, one place.reachability.rs:147-169: theblobscache clones its key up to three times per argument and clones the miss vector on every cache hit;unresolved_reportclones and sorts the whole map once per rank; one graph-nameStringper distinct address is retained for 2,646 addresses while only 10 are printed. Bounded, but new retained state inside a function whose comments stress limited memory.reachability.rs:455-461:with_countis a new pluralisation helper with no repo precedent (flare-cli inlines the suffix).reachability.rs:232-233:function.map_or("unknown", …)renders an unreachable state —graphrejects an out-of-range function index at:290-292, andcapture.rs:2911-2991keeps the lists in one order. Either drop the fallback or say the index was out of range.- Docs: the new per-rank stderr line is unmentioned in
docs/runtime-core-design.md:310-313(which enumerates rank-zero capture's stderr reports), and the pending four-GPU/W4A8 verification has nodocs/TODO.txtentry, which AGENTS.md:53 (not opened) requires (I searcheddocs/TODO.txtfor W4A8/266/kernel-argument: no matches). capture.rs:3139uses raweprintln!outsideStartupProgress/is_enabled, so the line never reachesStartupObservation. The maintainer explicitly accepted the author's resolution here (2026-11-18 item 2 → 2026-11-19), andcapture.rs:3993andtransfer.rs(not opened) already print raw rank-labelled stderr, so this is a nit, not a gate. Do not reopen it.
Semantic caution for any future test: "occurrences" is not a severity figure
blob caches the miss list keyed by (data, numeric) and replays it for every site sharing those bytes (:147-188). So an "occurrence" is (misses in one unique blob) × (number of nodes/arguments with identical bytes) — rank 0's 175,329 occurrences over 2,646 addresses is ~66 replays per distinct address. Anyone reading the counts as "how many bad arguments" would be misled by an order of magnitude. Any future test must assert distinct-address counts, never occurrence counts. Similarly, examples are chosen in first-seen order with no ranking by rarity, so a rare true positive is structurally invisible behind thousands of benign constants; a regression test should assert a rare candidate is reachable in the output (e.g. per-symbol grouping), not merely that ten lines print.
Why hardware cannot settle this PR's questions — and what is already measured
| Question | Can our hardware answer it? | Status |
|---|---|---|
| Do aligned-only candidates separate signal from noise? | No | Already answered on GB10 hardware. FujitsuPolycom's independent 4×GB10 TP4 export posted in #331 (2026-11-19 04:57): "864 unaligned byte-window matches and one aligned match per rank." ~863 of 864 candidates are the exact artifact B1 removes. That is the before/after the maintainer wanted, from a third party, on hardware equivalent to ours. |
| Does the diagnostic catch #266's real stale pointers? | No | #266's reproducer is deepseek-ai/DeepSeek-V4.1-Flash-1017 at TP4 on 4× GB10. cn7 has 1× GB10 — cannot form TP4. cn5 has 4× RTX PRO 6000 but none of its models is DeepSeek-V4.1, and no archived known-bad package exists. |
| False-positive volume on a 4×RTX PRO 6000 export | Technically yes (GLM-5.3 or Qwen3.8 export on cn5) | Not comparable to the author's Vision-Exp numbers, so it would not answer the maintainer's "post the counts from the same export again." |
| Does an export still complete with the diagnostic enabled? | Yes, but pointless | The author already ran a full SM120 two-GPU export that completed. The code path will change again (B1/B4/B5). |
Two further resource facts: an export runs ~73 minutes (#266) and a job on cn5 gets only 16 GiB scratch — GLM-5.3-Flash NVFP4/DeepSeek-class exports are large. Spending that on a branch that will be rewritten is a poor trade.
Testability note: the PR is CPU-testable today. Everything except the capture.rs:3137-3141 print site runs without a GPU or a model (cargo test --manifest-path heliopause/Cargo.toml (not opened) --lib, which the author reports as 205 passed / 4 ignored, and the maintainer independently reproduced at an earlier head as 206 passed / 4 ignored). Note heliopause is not in CI at all — .github/workflows/native-serving.yml (not opened) covers eos, selene, selene-manager, helios, flare-cli and flare only — so the suite is author/maintainer-run by hand. That is a real gap, but it argues for adding heliopause to CI, not for buying a GPU.
What to tell the author (minimal path back to a test)
- Filter reporting to
(base + offset) % 8 == 0; keep retention and the gap/inactive classification untouched (B1). - Fix the summary string and the
UnresolvedCandidatedoc to name both conditions — gap between live allocations, or inactive range inside a recorded segment (B2). - Fix the hidden-count line to subtract printed occurrences, or print omitted distinct addresses (B3).
- Replace the duplicated inactive lookup with one classifier (
Live/Inactive/Gap), and derive candidacy from the same granule-trimmed geometry asself.intervals, so the granule-edge false positives go away with the same edit (B4+B5). Add the unaligned-hole boundary test. - Add the straddling-window test the maintainer specified, fixing the existing
:783-799expectation that encodes unaligned reporting (B6); add a two-kernel symbol-mapping test for the print path. - Rebase onto
main(#431/#507/#498) and show the branch builds and the heliopause suite passes — including a conflict-freecapture.rsaroundreach.execution(). - Rerun the same Vision-Exp export and post before/after distinct-address counts per rank, plus (if thousands remain) one example per kernel symbol — the maintainer's own fallback offer.
- Add the
docs/runtime-core-design.md:310-313sentence and thedocs/TODO.txtentry for the unrun four-GPU/W4A8 verification.
Deferred test plan — for the next round only, NOT authorized now
If the above lands and the maintainer lifts CHANGES_REQUESTED, a single-purpose test should validate the diagnostic's specificity, since that is the only thing hardware adds. I would keep it to one job:
- One export on cn5 (4× RTX PRO 6000) of
nvidia/GLM-5.3-Flash-NVFP4at TP4, which is on the box and exercises the same SM120 capture path as the author's run. Assert: export completes (non-blocking diagnostic), ≥1 rank prints the summary, and the reported distinct-address count is small and attributable per kernel symbol. Compare against a same-commit run with reporting disabled only to confirm the diagnostic changes no export artifact (core/manifest byte-identical) — this is the non-retention and non-blocking guarantee, and it is the highest-value assertion available. - A/B for regressions, not throughput: export wall-clock and peak RSS with the scan on vs. off, on the same model and pin. The
blobscache (:147-188) is new per-node copying in the hottest export loop and is the only plausible performance risk; throughput on the serving path cannot regress because nothing on it changes. Expect parity; a measurable slowdown is a finding. - Explicitly out of scope: a true-positive test (unrunnable on this fleet), any DeepSeek-V4.1 export, and single-GPU GB10 runs on cn7 (the diagnostic is rank-agnostic and a 4-rank run already covers the rank-label path). Do not spend a second job re-deriving counts the author's SM120 run and FujitsuPolycom's 4×GB10 run already establish.
That is at most one cn5 job (~2 GPU-hours) and it should only be authorized after the code stops moving.
Security / integrity check
I read the PR description, all five discussion entries, and #266 in full. Nothing instruction-shaped: no prompt injection, no requests to alter tooling/CI/review process, no data-exfiltration instructions. #266 contains a genuine torch._C._cuda_clearCublasWorkspaces() suggestion aimed at the capture path (fixed by #331), and an offer to "share the script" — informational only. Discord: myong_acct is ordinary author attribution. This matches the intake screen's all-clear. 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.
code review summary
Recommendation: Changes Requested
Blockers:
- Report counts byte windows, not argument values —
scanslidesdata.windows(8)one byte at a time (reachability.rs:259) and pushes at:269with no alignment filter; the PR's own first example is a straddling window (argument 0, offset 4: 0x100000000800). Add(base + offset) % 8 == 0to the reporting push only — retention depends on unaligned scanning (unaligned_pointer_across_chunks_retains_target,:480-489), so do not narrow the loop. Then rerun the export and post before/after counts per rank. #266's real cases (offset 256, offset 0) are aligned and survive the filter. - Inactive ranges are raw while live intervals are granule-trimmed, so the report can state something false —
Reachability::newgets rawrequest.inactive(capture.rs:3074) but the intervals come from allocations already trimmed inward bylive_pieces(:1196-1240, applied:1408-1423); bytes in the retained edge are reported and then described as "outside every live recorded allocation" (reachability.rs:211-214). Pass the trimmed geometry (or granule) and add a non-granule-aligned test. - No regression test for the straddling window (maintainer item 3): pointer to a live allocation + small integer in one argument; assert the straddle is not reported and an aligned stale pointer is. Land with the alignment fix.
Should fix:
- State the inactive rule once (maintainer item 2): one classifier
Retained/Inactive/Unallocatedreplacingcandidate()'s bool +scan's duplicatein_free_block. ⚠️ The second lookup is not dead code —candidatereturnsOk(true)for inactive values, so deletingin_free_blockalone silently stops inactive reporting (:902-916). - Fix the printed summary line and the hidden-count units:
:211-214claims "outside every live recorded allocation" though inactive ranges are also reported;:238subtracts a distinct-address count from an occurrence total (prints "14" where 4 occurrences are hidden, and prints a hidden count when nothing is hidden). - Scope the posted evidence, repair one sentence, reconcile the commit message: say which scan rule produced the 175,329/170,544 totals; the "no W4A8 MoE kernel among the examples" line is self-undermining (
load_mxfp4_experts→format="mxfp4", activation_mode="a8",ignition/components/weights.py:1574-1588). - Document the new per-rank stderr line (
capture.rs:3137-3141; missing fromdocs/runtime-core-design.md:310-313) and add the pending four-GPU/W4A8 verification todocs/TODO.txt(AGENTS.md:53).
Nits:
8 nits
Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
screen malicious
Screen Result: All Clear
Evidence: Screened NVIDIA/hyperflare-inference PR #332 ("Report unresolved kernel argument address candidates during export", author mark-yong, open, head 1ac7073d, base main, 4 files +599/−37). No prompt injection, no hidden instructions, and no content aimed at steering agent or reviewer behaviour was found — in the description, the comment thread, the diff of all four files, or the surrounding source.
The PR prose is ordinary engineering writing: a change summary, a per-rank validation table, an explicit limitations section (missing GPUs, no reproduction of issue #266), and a Discord handle. It never addresses an agent, never asks anyone to run a command or visit a URL, never asks for a verdict, and contains no "ignore previous instructions"-style text, no invisible/bidi/zero-width characters, and no embedded blobs.
The code is what it claims: heliopause/src/export/reachability.rs adds a non-blocking diagnostic that records 8-byte-aligned kernel-argument values resolving to no active recorded allocation, counts occurrences and distinct addresses, and prints up to ten examples per rank (reachability.rs:226-281, with the graph name Debug-quoted at :254); capture.rs only threads the graph name and emits the per-rank stderr block (capture.rs:3219-3223). Searches for process spawning, shell-outs, network calls, env-var reads and injection keywords in the changed code found nothing new; the only hits were pre-existing test-only std::process::id() and HuggingFace URL literals.
One low-severity, non-injection hygiene note: the new stderr diagnostic interpolates CUDA kernel symbol and module names coming from the exported model's cubins without escaping control characters or newlines (reachability.rs:257-258), unlike the Debug-quoted graph name. A hostile cubin could in principle forge log lines in the operator's own export output. This is a log-hygiene nit, not an injection, and not a reason to block on security grounds.
Substantive review is a separate matter: reviewer yatesdr requested changes, the author answered and rebased, and there are no CI checks on the head commit. The claims in the description about W4A8 MoE kernels remain unverified by the author's own admission.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: mark-yong (CONTRIBUTOR; Discord myong_acct)
Motivation: Exporting a captured CUDA graph can bake in a kernel-argument pointer to a workspace nobody owns any more, which faulted a DeepSeek V4.1 export (issue #266). This patch makes the export reachability scan print a bounded, non-blocking summary of argument values that look like pointers but resolve to no live allocation, so such packages can be spotted instead of crashing at serve time.
Scale: +599 / −37 lines in 4 files
Proposal:
- Scan kernel-argument bytes and record any 8-byte value inside the recorded address envelope that maps to no live allocation, keyed by address with first site and occurrence count (
reachability.rs:172-205,:283-306). - Report only argument-relative offsets divisible by 8; the retention loop still steps byte by byte (
reachability.rs:294-303). - Replace
pointer()with a singlecandidate()rule: live → retain and return true; gap or inactive range → false without retention (reachability.rs:153-170). - Print a per-rank stderr summary plus up to ten examples with graph, node, kernel symbol, module, argument and offset, then exact omitted distinct/occurrence counts (
reachability.rs:230-281,capture.rs:3219-3223). - Document the diagnostic and add a TODO to measure it on four-GPU DeepSeek V4.1 and eight-GPU W4A8 MoE exports (
docs/runtime-core-design.md:154-157,:341;docs/TODO.txt:350-354). Touches: heliopause/src/export/reachability.rs(+579/−34): the scan, its rule, and the report.heliopause/src/export/capture.rs(+6/−1): per-rank stderr print after the graph phase.docs/runtime-core-design.md,docs/TODO.txt(+8/−2, +6/−0). Related items:- #266 First captured graph keeps a transient cuBLAS split-K workspace (open): the defect this diagnoses; its reporter asked for exactly this check.
- #331 Isolate cuBLAS warmup workspaces from CUDA graph capture (merged): the lifetime half of the fix, same author.
- #431 Add Heliopause and Ignition PersistentWorker export binding (merged): rewrote the same reachability areas; now integrated by the rebase.
- #507 persistent worker counter schema / metrics (merged): also edits
reachability.rs. - #504 lossless KV compression (merged): also edits
capture.rs. Link: https://github.com/NVIDIA/hyperflare-inference/pull/332 Autobot comments: Rebased to1ac7073d(2026-11-28); alignment filter, single rule, straddle test, report wording and docs/TODO are fixed, but the granule-trimmed-inactive blocker is declined with a written rationale and no non-granule-aligned test. The PR description was not updated, so it still shows 205 passed / 4 ignored and the superseded unaligned counts (175,329/2,646; 170,544/2,637) that the author's own comment replaces with 221 passed / 5 ignored and 22,618/762, 19,417/832; itsload_mxfp4_expertsreference no longer exists in this repository. Even aligned, 762–832 distinct addresses remain ~80× #266's 10 known arguments, all printed examples are CUTLASS mHC/DenseGemm constants, and nothing tests the #266 hardware path; validation is author-only, debug-mode, on a host without CUDA, which falls short ofdocs/design-review.md:180-184's--releaserequirement. The latest human verdict is CHANGES_REQUESTED from 2026-11-20, stale and never revised for the new head.
Value Proposition
Verdict: worth merging — with one change I'd want first
The revision (commit 1ac7073d) fixed every blocker from the previous round, and it is now a small, correctly placed, non-blocking diagnostic that answers a standing P1 maintainer request. What changed my assessment from "worth it with changes" is not the noise reduction alone but re-reading #266: the reporter independently wrote an out-of-tree script with exactly this predicate and it worked — on the faulting package it listed precisely the 10 stale split-K arguments, and its only other hits were W4A8 MoE constants. That is the sensitivity/specificity evidence the first round lacked, and it comes from the package class the change exists for.
What the revision fixed (verified in the diff, not just the comment)
- Alignment.
reachability.rs:294-303: retention still slides byte-by-byte (windows(8).enumerate()), but collection is gated by(base + offset).is_multiple_of(8)at:300. The straddling-window false positive I flagged (0x100000000800at offset 4) is gone from the records, and there is a regression test:unaligned_straddling_window_is_not_reported_while_aligned_stale_pointer_is(:1046-1071), which asserts the straddle is absent while an aligned stale pointer at offset 16 is reported. Prior unaligned retention coverage (unaligned_pointer_across_chunks_retains_target,:513) is intact, so the conservation guarantee is unchanged. - One predicate.
candidate()(:156-170) is now the single live/inactive/gap rule, returningfalsewithout retaining for both gap and inactive;scancalls!self.candidate(pointer)?(:298). The duplicatedin_free_blocklookup is gone. - Truthful summary. The line now says "resolve to no active recorded allocation (gap or inactive range)" (
:236-246). That is correct:intervalscome from granule-trimmed live pieces (capture.rs:1473-1486→live_pieces:1259-1303, trimming inward at:1274-1275), so a value in a retained edge is in no live interval. The author kept rawrequest.inactive(capture.rs:3164) deliberately and explains why — trimming inward would let a pointer into a freed sub-granule block retain the segment and vanish from the report. That reasoning is sound and better than my earlier suggestion. - Counts and units. Hidden totals now report distinct addresses and occurrences separately (
:264-279), and no hidden line appears at ≤10 distinct (:264); four tests cover it. - Docs.
docs/runtime-core-design.md:154-157documents the scan semantics;:337-341documents the per-rank stderr line;docs/TODO.txtrecords the unrun 4-GPU DeepSeek V4.1 and 8-GPU W4A8 measurements, as AGENTS.md:52-58 requires. Emission sits atcapture.rs:3219-3223, betweengraph_phase.finish(:3215) andmodule_phase(:3224), so it cannot interleave inside an animated progress phase; raweprintln!also has precedent intransfer.rs:429 (not opened),1160andprocesses.rs:147(not opened). - Tests. 221 passed / 5 CUDA-ignored, 26/26 in
export::reachability::tests(author's build-host run).
Why it's worth doing (charter fit)
- Right problem, right place. The charter's "solve the right problem in the right place / smallest footprint" is satisfied literally: the reachability scan is the one place graph argument bytes are already interpreted, and the change adds a record-and-print path, no new mechanism, no flag, no per-model branch. It does not duplicate
check_relocations/check_bindings(capture.rs:291-359, declared fields only) orflare inspect --memory-map(coverage, not provenance). - A maintainer asked for it. #266
calvarado20042026-11-11 15:28 asked for exactly this context tuple (graph, node, symbol, argument, offset) and explicitly allowed "a strict mode, or a warning first";original-el82026-11-13 set P1 and asked for "export-time detection where pointer provenance can be established without misclassifying numeric kernel parameters". The charter lists maintainer requests as a merge criterion, and priority-contributor input as carrying weight. - Non-blocking is the correct scope, not a cop-out. Provenance genuinely cannot be established from bytes, as the author shows:
0x100000000800is two adjacent 32-bit fields,0xfff00000fffis a tiling constant. Failing export on these would break healthy exports. A warning is what the reporter said would work. - The hazard is still live. #331 (merged) removed the cause, but #266 notes existing cores embed the addresses and cannot be repaired by restart, and #395 (
CUDAGraph.reset()freeing a shared workspace) is a second lifetime path in the same class. The residual value is real, and this is cheap insurance. - Signal on the target package is good. On #266's 8192 package the same predicate returned ~10 true hits and a handful of W4A8 constants; after the workspace clear it returned zero. Both the 384-byte
nvjet_..._splitK_TNNNparameter at offset 256 and thesplitKreduceworkspace argument are 8-aligned, so the alignment filter preserves detection. (Note: this corrects my earlier advice — a "parameters of size 8" filter would have missed the nvjet case.)
Costs
Small and bounded: ~430 net lines in one crate, of which roughly 330 are tests; a HashMap<u64, UnresolvedEntry> and a per-blob miss vector in an inner loop that already ran; and at most 12 stderr lines per rank per export (UNRESOLVED_EXAMPLES = 10 + summary + hidden line). Export time is unaffected in practice because the scan already ran and only its discarded verdicts are now recorded. No runtime, ABI, core-format, or serving behaviour changes, so no GPU benchmark obligation.
The one change I'd want before merge
Example selection still works against the stated purpose. :247-249 sorts by entry.order (first encounter), so examples are the highest-frequency geometry constants from the earliest nodes — on the Vision-Exp export all ten came from mHC/CUTLASS kernels at positions like argument 0, offset 8: 0x100000000800. In an export like #266's default chunk-4096 package, where the stale address aliases live storage and there are ~800 distinct benign addresses, the one true value is guaranteed to be printed only as "… 752 more distinct addresses not shown". The author has already offered the fix ("one example per kernel symbol rather than first-encountered order across kernels"). I'd take it: group by kernel symbol + argument, show one example per group, or order examples by ascending occurrence count. It is a few lines, needs no new data (occurrences is already counted), and it is the difference between a diagnostic that can surface a needle and one that reports the haystack. Everything else can land as-is.
Minor items, not blocking
reachability.rs:862-873and:877-906assert exact report prose; AGENTS.md:43-50 makes prose churn costly. Asserting the fields (graph/node/symbol/argument/offset/address/count) would be cheaper to maintain.blob()clones the miss vector on every cache hit (:174-175) and keeps one per distinct argument blob for the whole export. Small after alignment, but aRc<[(usize, u64)]>or a second-pass resolve would remove it.- Verify the PR description. The description text I was given still shows the superseded unaligned totals (175,329 / 2,646 and 170,544 / 2,637) and the "does not identify any W4A8 MoE kernel" sentence, while the 2026-11-28 comment says both were regenerated to the aligned 22,618 / 762 and 19,417 / 832 run. If the header is current, the reconciliation didn't take and should be redone — the honest limitations paragraph is the strongest part of this PR and shouldn't be undermined by stale numbers.
On the absence of a personal true positive
The author cannot run the four-GPU export (three GPUs) and says so, in the description and in docs/TODO.txt. I no longer treat this as disqualifying: #266's own script demonstrates the predicate on that package class, the same predicate is now implemented here with the same aligned rule, and the remaining verification is precisely scoped as a pending measurement. Demanding hardware the contributor doesn't have, for a diagnostic whose mechanism is already evidenced, would contradict the charter's "respect contributors" and its rule that missing items be spelled out rather than used to close a PR.
Bottom line: this is the right change in the right layer, it no longer misclassifies numeric parameters into the recorded output the way the first revision did at offset 4, it fixes nothing that wasn't broken, and it costs almost nothing at export time. Land it with the per-kernel example grouping (or rarity ordering) so the needle is visible, and fix the description numbers if they are stale.
(No instruction-shaped content or attempts to direct an agent were found in the PR, its comments, or #266; the #266 "we can share the script" offer is informational.)
Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Simplicity
Verdict: should-fix issues only Blocking:
- None. Should fix:
- heliopause/src/export/capture.rs:3219:
if reach.unresolved_count() > 0duplicates theoccurrences == 0early return insideunresolved_report(reachability.rs:232-235); delete the guard and thepub(crate)onunresolved_count(reachability.rs:215). Should fix (continued): none. Nits: 8 (unbounded first-site retention plus sorting all ~800 entries to print 10;unresolved_unique_addresseswith duplicate assertions;pub(crate)on two module-local structs and an unreachable"unknown"kernel fallback; a 300-character summary literal written twice with a stale "capped" test name; per-call-site clone of the cached miss vector; dead rebind at reachability.rs:250 and invertedcandidatename; the same explanation written four times; one unrelated assertion inside the inactive-boundary test). Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Conventions
Verdict: clean
Blocking:
- None.
Should fix:
- None.
Nits: 4 — (1) heliopause/src/export/capture.rs:3219-3223 guards unresolved_report with unresolved_count() > 0 although the callee already returns an empty Vec (reachability.rs:230-235, test :989-993); (2) reachability.rs:172-194 blob builds its cache key twice and clones the whole miss vector on both hit and insert branches, where the replaced HashSet insert copied the key once (:215-224 also has two accessors over one map, and Site/UnresolvedCandidate at :50-72 are field-for-field identical); (3) reachability.rs:824-839 shared_argument_bytes_record_one_example_per_address is subsumed by :782-802 plus :876-905, and the tests mix first() (:760-762) with direct reach.unresolved[&address] (:799-800, :836-837) — the same shape the maintainer flagged on 2026-11-18; (4) reachability.rs:487-493 adds a module-scope with_count pluralisation helper where flare-cli/src/cache_commands.rs:307 (not opened),309,600,602,612, doctor.rs:365 (not opened),812, inspect.rs:888 (not opened) and helios/src/runtime_core/model.rs:619 (not opened) inline if n == 1 { "" } else { "s" } (weakest finding; five call sites make it defensible).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Detail the summary can't hold: my earlier should-fix — the inactive-range rule stated twice (candidate plus scan's in_free_block) — is resolved at head 1ac7073d; candidate (reachability.rs:156-170) returns Ok(false) for both inactive ranges and gaps and retains only live intervals, scan (:294-304) just tests !self.candidate(pointer)?, and in_free_block is gone. That closes the maintainer's 2026-11-20 item 2, the only duplication item anyone had called blocking in this lens. The documentation gap is closed too: docs/runtime-core-design.md:154-157 and :339-341 specify the diagnostic and the per-rank stderr summary, and docs/TODO.txt:350 records the pending four-GPU measurement as AGENTS.md:52-60 requires.
Nothing new duplicates an existing helper: no other with_count or pluralisation helper exists in the tree, kernel_symbols is gone in favour of the recorded function index (reachability.rs:252-258), merge_ranges/subtract_ranges (:12-43) remain the only range primitives, and blobs is an evolution of the existing cache (HashMap/HashSet already coexist, :8). Seven other constructs were compared with precedent and are consistent: the order field plus sort (:60, :248, matching capture.rs:598), rank-labelled eprintln! (capture.rs:3221, precedent transfer.rs:429 (not opened), :1152; progress rows are rank-0 only), the Option<&mut Vec<_>> out-parameter instead of the crate's FnMut visitors (scan mutates self and returns ExportResult), and the alignment filter applied to reporting only (:300) while retention stays byte-by-byte (:294).
Caveat: I did not run cargo test or clippy; the author reports 221 passed / 5 ignored at 1ac7073d, and all claims here come from reading the code. The cache-cost nit is a code-reading claim, not a measurement — a profile would quantify it. The PR's remaining risk is evidentiary, not conventional: the two-GPU export cannot reproduce #266's four-GPU failure and printed no W4A8 MoE kernel among its examples (PR comment 2026-11-28, recorded at docs/TODO.txt:350); that belongs to the correctness and evidence lenses.
Correctness
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- heliopause/src/export/reachability.rs:156-170, 298 (with capture.rs:1259-1303, 1471-1485, 3164): the report classifies with raw
request.inactive, but the exported live intervals are granule-trimmed bylive_pieces, so values in a retained unaligned hole edge are counted and values in a genuinely freed sub-granule block silently are not (the #266 shape); no test uses a non-granule-aligned hole. - heliopause/src/export/reachability.rs:300: the argument-relative alignment term
(base + offset)has no test across numeric spans, so a regression tobase = 0would pass; the straddle test usesnumeric: vec![]and never reachesbase.
Nits: 3 (first-encountered example ordering lets one kernel family fill all ten slots; test-only pub(crate) on UnresolvedCandidate/Site; summary-line wording that cannot distinguish stale pointers from constants).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Prose
Verdict: blocking issues
Blocking:
- PR description, "## Validation" table and test line: still posts 175,329/2,646 and 170,544/2,637 with
MHCPostPrePartialKernelnode 34 and "205 passed, 4 ignored", which the author's own 2026-11-28 comment labels "Prior unaligned (c3cc87ea)" and superseded (aligned: 22,618/762, 19,417/832, node 35MHCFinalizeGramKernel, 221 passed/5 ignored). The head reports only offsets divisible by 8 (reachability.rs:294-303), so these counts cannot come from the shipped code; the test total cannot either, since the head adds the reachability test set at :730-1135. Violates AGENTS.md:103-112 and the maintainer's 2026-11-20 blocking item "post the counts from the same export again".
Should fix:
- PR description, "## Change"/"## Limitations": never states that only argument-relative 8-byte-aligned values are reported, though reachability.rs:294-303 keeps scanning every byte window for retention and drops unaligned misses silently; docs/runtime-core-design.md:154-157, :339-341 and the commit subject all state it, making the description the only artifact missing the rule that bounds the claim (AGENTS.md:88-102).
- reachability.rs:236-246 and docs/runtime-core-design.md:154-157: "resolve to no active recorded allocation" is false for values in the non-granule-aligned edge of an inactive range —
Reachability::newgets rawrequest.inactive(capture.rs:3164) while intervals are granule-trimmed bylive_pieces(capture.rs:1274-1275), andcandidatechecks inactive first (:157-160). Needs a granularity qualifier; add a non-granule-aligned boundary test.
Nits: 1 — reachability.rs:257-258 prints kernel unknown (unknown), indistinguishable from a kernel named "unknown"; say the recorded function index was unresolved.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- heliopause/src/export/reachability.rs:247-249: examples are still taken in first-encountered address order (10 of 762/832), so #266's real stale arguments land in the "…752 more distinct addresses" line; group by kernel symbol as the maintainer suggested.
- PR description / docs/TODO.txt:350-354: the one export is MXFP4/A8 with no W4A8 MoE example, no example shown to be a constant, and no #266 repro — the diagnostic's ability to separate stale pointers from constants is still unestablished.
Nits: 2 — raw eprintln! at capture.rs:3219-3223 bypasses StartupProgress (so it cannot be silenced by a caller and never reaches StartupObservation); small retained state in Reachability (blob clones its cached miss vector, unresolved keeps a graph-name String per distinct address).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Subtractive
Verdict: should not be merged The change: +599 / −37 lines, 4 files Could remove: about 200 lines with no behaviour lost, in 15 places; about 350–450 lines if cut to what the maintainer asked for Biggest subtractions:
heliopause/src/export/reachability.rs:944-987:unresolved_report_hidden_line_sums_omitted_address_occurrencesduplicates the 4≠2 assertion in:876-905: nothing: about 44 linesheliopause/src/export/reachability.rs:907-942: hidden-line-omitted test restates:841-874and:989-993; keep only the exactly-ten boundary: about 30 linesheliopause/src/export/reachability.rs:236-278,487-493: four-line prose summary andwith_countpluralizer: one-line "occurrence(s)"/"address(es)": about 35 linesheliopause/src/export/reachability.rs:45-76: duplicateUnresolvedCandidate/Sitestructs and three doc blocks: oneSite<'a>plus oneUnresolved: about 19 linesheliopause/src/export/reachability.rs:172-213:misses.clone()twice per key and thematch: move the temporary into the cache and borrow it back: about 18 lines Left behind: None. (Verified: no otherpointercaller, privateblobs,graph(name, …)only from capture.rs:3102,merge_ranges/subtract_rangesusers unaffected.) Link: https://github.com/NVIDIA/hyperflare-inference/pull/332
Pre Test Report
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.
code review summary
Recommendation: Changes Requested
The change is in scope and at the right layer, and every earlier blocker (three maintainer rounds plus the 2026-11-26 Autobot round) is fixed at 1ac7073d. Two merge-gate items remain: the report's ten printed examples are chosen by first encounter so they are all CUTLASS constants from one kernel family, and the shipped PR body still posts the superseded pre-alignment numbers plus test totals from a different build while never stating the 8-byte alignment restriction that bounds the diagnostic.
- Blockers: 2
- Should fix: 3
- Subtractive suggestions: 4
- Nits: 2
Final review
Recommendation: Changes Requested
The core implementation at 1ac7073d is sound—retention semantics are preserved, inactive ranges and gaps share one clean predicate in Reachability::candidate, and the 8-byte argument-relative alignment filter cuts the 2-GPU export diagnostic noise by ~8× without missing #266's aligned split-K arguments. However, the GitHub PR description still presents the superseded pre-alignment c3cc87ea numbers and an example the shipped code can no longer emit, and two small targeted improvements (per-kernel example grouping and a non-8-byte-aligned base test) should land before merge.
Blockers
- PR description posts superseded
c3cc87eameasurements and omits the alignment restriction.- Evidence: The current PR body still reports the pre-alignment run from
c3cc87ea: rank 0175,329 / 2,646, rank 1170,544 / 2,637, first exampleMHCPostPrePartialKernelinprefill4096node 34 (which was an offset-4 straddling window,0x100000000800), andcargo test ...: 205 passed, 4 ignored. At head1ac7073d,heliopause/src/export/reachability.rs:300filters reporting with(base + offset).is_multiple_of(8), which cannot emit an offset-4 window and produced the aligned rerun posted in the 2026-11-28 comment (22,618 / 762on rank 0,19,417 / 832on rank 1, starting at node 35;221 passed, 0 failed, 5 CUDA tests ignored). - Additionally,
## Changeomits the argument-relative 8-byte alignment filter (documented indocs/runtime-core-design.md:154-157) and still describes the old omitted-occurrences-only trailing line instead of omitted distinct addresses plus omitted occurrences, and## Limitationsdoes not mention that unaligned unresolved values are not reported. - Comment item 7 on 2026-11-28 notes that the description was reconciled to
1ac7073d, so the edit to the GitHub PR body appears not to have been applied. Update the PR description to match1ac7073dperAGENTS.md:88-112and the charter's PR description standard.
- Evidence: The current PR body still reports the pre-alignment run from
Should Fix
-
Deduplicate printed examples by kernel symbol so repeat constants from early kernels do not fill all ten slots (
heliopause/src/export/reachability.rs:247-263).unresolved_reportcurrently sorts byentry.orderand takes the firstUNRESOLVED_EXAMPLES(10) distinct addresses across all kernels.- In the 2026-11-28 verbatim stderr output, 7 of the 10 printed lines on rank 1 come from just two
DenseGemmKernelsymbols at nodes 40 and 44 (3 from node 40, 4 from node 44), and all 10 slots on both ranks come from 5 symbols in nodes 35–74, hiding 752–822 distinct addresses (13,614–14,776occurrences). - Because
entry.first.functionandfunctionsare already available inunresolved_report, taking at most one example per kernel symbol (as offered in the 2026-11-28 comment) is a local change that doubles symbol visibility without altering retention or counts.
-
Test
(base + offset).is_multiple_of(8)with a non-8-byte-alignedbase(heliopause/src/export/reachability.rs:184-189,:300).- Every existing test with a scanned span after numeric exclusion has
base % 8 == 0:unaligned_straddling_window_is_not_reported_while_aligned_stale_pointer_is(:1046-1069) usesnumeric = vec, andkernel_argument_candidate_offset_counts_from_the_argument_start(:805-822) usesnumeric = vec. - Replacing
(base + offset).is_multiple_of(8)at:300withoffset.is_multiple_of(8)still passes all 26 tests, even though a 4-byte numeric prefix(0, 4)shifts slice offsets by 4 bytes relative to the argument start. - Add one CPU test with a 4-byte numeric span
(0, 4), 4 bytes of padding forming a straddling address-shaped window at argument offset 4 (slice offset 0), and a stale pointer at argument offset 8 (slice offset 4), asserting that offset 4 is excluded and offset 8 is reported withoffset == 8.
- Every existing test with a scanned span after numeric exclusion has
Subtract / Simplify
- Eliminate both
misses.clone()allocations inReachability::blob(heliopause/src/export/reachability.rs:172-212).blob()clones the cachedVec<(usize, u64)>on every cache hit (:175) and clones it again when inserting on a miss (:191) solely to avoid holding an immutable borrow onself.blobswhile mutatingself.unresolved.- Splitting the borrow via a small helper (e.g.,
record_unresolved(&mut self.unresolved, misses, site)) lets the hit path borrow&missesdirectly and the miss path movemissesintoself.blobs.insert(key, misses)with zero vector clones on the repeated-argument hot path.
Nits
- Redundant emptiness guard in
heliopause/src/export/capture.rs:3219-3223:reach.unresolved_report(...)already returns an emptyVecwhenself.unresolved_count() == 0(reachability.rs:232-235), so theif reach.unresolved_count() > 0wrapper can be dropped. - Stale test name in
heliopause/src/export/reachability.rs:782-802:unresolved_examples_are_capped_while_occurrences_are_countedinserts 12 distinct addresses and checksself.unresolvedentries/order without ever callingunresolved_report(capping is tested byunresolved_report_bounds_examples_and_counts_hidden_occurrencesat:877-905). Rename it to match what it verifies.
Verified passes
- Conservative retention intact:
Reachability::scan(reachability.rs:294-305) still scans every byte window forcandidate(pointer)?retention, gating only the diagnosticmisses.pushon(base + offset).is_multiple_of(8); existing unaligned cross-chunk retention tests (:513-521,:651-670) remain unchanged. - Single live/inactive/gap rule:
Reachability::candidate(reachability.rs:156-170) checks mergedself.inactivebeforeself.intervals, returningOk(false)without callingreference()for both inactive ranges and gaps, verified at boundaries by:1072-1133. - Raw
request.inactiveand summary wording are consistent:ignition/preparation/runtime_core.py:300-301feeds all rawinactiveranges intozero_ranges, sowithout_zero_ranges(capture.rs:1305-1329,:1487-1490) zeroes them even when they lie inside a granule-retained piece; describing hits as"resolve to no active recorded allocation (gap or inactive range)"(reachability.rs:237-239,docs/runtime-core-design.md:154-157) is accurate. - Counts and hidden-line arithmetic: Verified in code (
reachability.rs:247-279) and against the 2026-11-28 verbatim stderr totals (rank 0:7,842 + 14,776 = 22,618occurrences,10 + 752 = 762distinct; rank 1:5,803 + 13,614 = 19,417occurrences,10 + 822 = 832distinct). - Emission ordering and index bounds:
capture.rs:3219-3223prints betweengraph_phase.finish(:3215) andmodule_phase(:3224), after allreach.graphcalls finish and before allocation-content scanning (which passesmisses = None). Everycandidate.functionis validated againstkernels(reachability.rs:322-324), which matchesoutput.index.ranks[0].functions1:1 (capture.rs:3001-3083,:3129). - Toolchain, docs, and follow-up tracking:
heliopause/Cargo.toml:5-6pins edition 2024 andrust-version = "1.88", matchingis_multiple_ofand let-chains used across the repo;docs/runtime-core-design.md:154-157,:339-341anddocs/TODO.txt:350-354accurately record behavior and unrun 4-GPU/8-GPU measurements. No prompt-injection or agent-steering content was found.
Dropped on verification
- S1 (raw
inactivevs granule-trimmedlive_piecesover-count / wording contradiction / test gap): Refuted —ignition/preparation/runtime_core.py:300-301adds rawinactivetozero_rangessowithout_zero_ranges(capture.rs:1305-1329) clears those bytes even inside granule-retained segments,"resolve to no active recorded allocation (gap or inactive range)"(reachability.rs:237-239) is truthful, andReachabilitynever readsallocation.alignmentwhile:1072-1133already tests an inactive subrange strictly inside a live allocation. - B1 as Blocker (downgraded to Should Fix): Maintainer
yatesdr's 2026-11-20 request for per-symbol grouping was conditional ("If thousands remain"), aligned distinct counts fell to 762/832, and the 4-GPU/8-GPU follow-up is already tracked indocs/TODO.txt:350-354; no correctness or safety invariant is broken. - S2's "
base = 0regression" phrasing (narrowed to alignment check):reachability.rs:819already assertscandidate.offset == 16, which catchesbase = 0; only the alignment check(base + offset).is_multiple_of(8)vsoffset.is_multiple_of(8)lacks a non-8-byte-alignedbasetest. - S3 as Should Fix (downgraded to Nit): The redundant
reach.unresolved_count() > 0check incapture.rs:3219is harmless and O(0) when empty, not a defect. - X1's claim that
keyallocation regressed againstmain(narrowed tomissesclones):main(reachability.rs:133) already allocated(data.to_vec(), numeric.to_vec())on everyblob()call; only the twomisses.clone()calls are new. - X2 (merging
Site/UnresolvedCandidateand replacingfunctions.get()with direct indexing): Refuted —Site<'a>borrows&'a strto avoid cloninggraph.nameon every kernel argument blob, andfunctions.get(candidate.function)is safer non-panicking formatting than&functions[...]in a diagnostic helper. - X3 (deleting ~100 lines of "redundant tests"): Dropped — the referenced unit tests (
:805,:825,:908,:945,:996,:1020,:1036) each cover distinct contracts cleanly; only the misleading test name at:782is retained as a Nit. - X4 (removing
with_count,unresolved_unique_addresses, and droppingfirstafter 10 addresses): Dropped —with_countcleanly handles five call sites including multi-word noun phrases, and droppingfirstpast 10 addresses would break per-symbol grouping (Should Fix #1) for negligible memory savings (~40 KB during export). - N1 ("one explanation written four times" / drop
docs/runtime-core-design.md:339-341): Refuted —:154-157documents scan semantics while:339-341documents stderr output as explicitly requested in the prior review round. - N2 (
let address = *address;"dead rebind",:1130-1131"stray assertion",candidate()rename): Refuted — infor &(address, entry) in examples.iter()overVec<(&u64, &UnresolvedEntry)>,addresshas type&u64so*addressis a real dereference;:1130-1131is pre-existing frommainverifying that explicitreference()still retains storage with inactive ranges; renamingcandidate()is pure taste.
Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
Apply Labels
Applied: +triage:review, +enhancement, +area:preparation
Classification Confidence
Threshold: 65%
Triage
- [✓]
triage:review: 97.5% -
triage:validation: 2.0% -
triage:design-review: 0.4%
Priority
-
none: 99.2% -
priority:P1: 0.5% -
priority:P2: 0.2%
Type
- [✓]
enhancement: 91.5% -
community: 29.4% -
duplicate: 22.3% -
bug: 18.2%
Area
- [✓]
area:preparation: 77.7% -
area:memory: 53.1% -
area:kernels: 50.0% -
area:orbit: 13.3%
Model
-
model:deepseek-v4: 37.8% -
model:nemotron-3.5-bolt: 7.6% -
model:deepseek-v4.1: 6.0% -
model:glm-5.3: 4.2% decide malicious: all_clear (100%): No malicious content found
explore
Author: mark-yong (CONTRIBUTOR; Discord myong_acct)
Motivation: A DeepSeek V4.1 export on four GB10 nodes produced a package that crashed at serving time because stale kernel-argument pointers were silently kept alive; this PR adds an export-time warning that lists such arguments per rank instead of letting them hide until a load failure.
Scale: +756 / −30 lines in 4 files
Proposal:
- Print a bounded, per-rank stderr report of aligned kernel-argument values inside the address envelope that resolve to no live allocation (
reachability.rs:232-315, called atcapture.rs:3294-3296). - Restrict reporting to argument-relative offsets divisible by 8 while still scanning and retaining every byte (
reachability.rs:328-337). - New per-symbol example selection: one address per distinct kernel symbol before backfilling, capped at ten (
reachability.rs:254-282), plus a hidden-count line. - Extract
record_unresolvedand stop cloning per-blob miss vectors (reachability.rs:172-219). - Document the diagnostic and record the pending GPU measurement (
docs/runtime-core-design.md:151-158,:351-354;docs/TODO.txt:357-361). Touches: heliopause/src/export/reachability.rs— the scan/retention path; any classification error here silently pins freed GPU memory.heliopause/src/export/capture.rs— one call site plus the print block, untested.docs/runtime-core-design.md/docs/TODO.txt— contract text and a TODO entry, files nearly every PR appends to. Related items:- #266 stale-pointer/package-corruption report (open, P1): the driving defect this diagnostic exists for; still unvalidated against its ten known arguments.
- #331 root-cause fix for the same defect (merged): the lifetime half; this PR is the detection half.
- #606 warmup workspaces allocated outside
CoreStorage(open): shows the #266 lifetime work still moving separately. - #395
CUDAGraph.reset()frees a stream-shared workspace (open): sibling lifetime risk, not covered by this detector. - #507 / #431 rewrites of the same
reachability.rsregions (merged): overlap now absorbed by the rebase onto0a8c20f4. Link: https://github.com/NVIDIA/hyperflare-inference/pull/332 Autobot comments: The 2026-11-30 force-push38805ba3finally reconciled the PR body (231 passed / 0 failed / 6 ignored, aligned counts 22,618/762 and 19,417/832 flagged as pre-per-symbol, new## Limitations,load_mxfp4_expertsremoved), closing the body-staleness blocker raised since 2026-11-26. New behaviour:unresolved_reportnow picks one example per distinct kernel symbol before backfilling (reachability.rs:254-282, test:1030-1141) — implementing yatesdr's 2026-11-20 suggestion — but no GPU export was re-captured, so whether a cuBLASLtsplitKreduceline now appears is unmeasured, and the earlier 762/832 totals describe the old selection. Still declined, not fixed: the 2026-11-26 request to granule-triminactiveranges (capture.rs:3239still passes raw&request.inactive, no non-granule-aligned inactive test). Still unverified: debug-only test run againstdocs/design-review.md:180-195's mandatory--releaselayer, noheliopauseCI, and no export reproducing #266's ten arguments. yatesdr's 2026-11-20 CHANGES_REQUESTED is two heads stale with the request for re-review unanswered; the 2026-11-28 autobot review's remaining items exist only behind an external link. No instruction-like or injected text found in the PR material.
Classify intake
Selected: triage:review, enhancement, area:preparation
Threshold: 65%
Triage
- [✓]
triage:review: 98.0% -
triage:design-review: 1.0% -
triage:validation: 0.8% -
triage:investigate: 0.1% -
none: 0.1% -
triage:integration: 0.1% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 99.7% -
priority:P1: 0.2% -
priority:P2: 0.0%
Type
- [✓]
enhancement: 96.7% -
community: 56.2% -
duplicate: 26.9% -
bug: 6.8% -
performance: 3.3% -
documentation: 0.4%
Area
- [✓]
area:preparation: 75.5% -
area:memory: 34.9% -
area:kernels: 13.3% -
area:engram: 1.1% -
area:caching: 0.6% -
area:api: 0.4% -
area:orbit: 0.4% -
area:selene: 0.2% -
area:scheduling: 0.2% -
area:rocenante: 0.2% -
area:packaging: 0.0%
Model
-
model:deepseek-v4: 29.4% -
model:deepseek-v4.1: 16.5% -
model:mimo-v2.6: 16.5% -
model:kimi-k3.1: 2.6% -
model:muse-glimmer: 1.4% -
model:inkling-small: 0.9% -
model:nemotron-3.5-bolt: 0.6% -
model:gemma4: 0.4% -
model:qwen3.8-flash-next: 0.4% -
model:glm-5.3: 0.3% -
model:qwen3.8-27b: 0.2%
Apply Labels (Intake)
No label changes
Value Proposition
Value Proposition — PR #332 "Report unresolved kernel argument address candidates during export"
Charter alignment. The change sits in heliopause/src/export/ — export tooling, not the Helios runtime — and adds no per-model branch, alias, flag, or captured-graph op contract, so it does not trip the runtime/model-agnostic or new-op-approval rules. It stays within the supported matrix (SM120 export) and off the non-goals. It targets issue #266, a documented defect (stale workspace pointers in captured kernel arguments), which the charter admits as a reproducible-bug class. But the charter asks bug fixes to address the root cause; this reports the symptom, while #266's lifetime half moves in separate work (open PR #606 on _seed_warmup_workspaces' MemPool, issue #395 on CUDAGraph.reset()). Location is defensible; "right problem in the right place" is passed only weakly.
Novelty & status. Genuinely additive — not obsolete, not superseded. #606 fixes allocation lifetime in the warmup path, not export-time detection; no merged PR or open PR covers this scan. The dossier calls #332 "its only export-time detector."
Value vs maintenance cost. This is the weak point. Evidence is below the project's own bar: cargo test in debug on a host without CUDA, no heliopause job in CI (.github/workflows has none), diverging from docs/design-review.md:180-195; the 231-passed figure is self-reported. The only GPU sample is author-only, predates the new per-symbol example selection, and — by the PR's own admission — prints ten mHC CUTLASS examples out of 762/832 distinct addresses and ~175k/170k occurrences; nothing shows #266's cuBLASLt splitKreduce arguments, and no head reproduces #266 at all. Cost is high: +756/−30 across 4 files, 738 lines in reachability.rs plus 28 module tests and docs churn, for a stderr diagnostic of unmeasured signal-to-noise. Review blockers are declined rather than fixed (raw &request.inactive at capture.rs:3239, candidate() still a bool rather than the Retained/Inactive/Unallocated classifier, no call-site test), and yatesdr's CHANGES_REQUESTED is two heads stale with no human re-review.
Verdict: Worth it with changes. The direction is right and uniquely positioned, but it should not merge as is. Required: (1) demonstrate on a real export that the report surfaces the actual #266 arguments; (2) shrink or justify 738 lines for a non-blocking diagnostic; (3) settle the granule-inactive alignment, the classifier, and the untested capture.rs call site; (4) run release-profile tests and add heliopause CI so counts are verifiable; (5) obtain a human re-review on head 38805ba3.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Subtraction and simplicity
Subtraction/Simplicity/Conventions lens on PR #332 (head 38805ba3): the diff is largely lean — no dead code, no speculative flags, no enum/wrapper fallbacks, and no duplicated repo helper. Four concrete simplifications, highest value first.
heliopause/src/export/reachability.rs:254-282— example selection is two loops plus a parallelvec![false; examples.len()]plus a finalselected.sort_unstable()that only undoes pass 2's appends, yetexamplesis already in encounter order. One partition pass withtruncate(UNRESOLVED_EXAMPLES)is behaviourally identical in ~10 lines. Same block:map_or(Err(f), |f| Ok(f.symbol.as_str()))builds aResult<&str, usize>as a HashMap key whereOption<&str>matches the"unknown"already printed at:294.heliopause/src/export/capture.rs:3294-3296— the new loop is the only informationaleprintln!incapture_rankoutside thehelios_core::startup::StartupProgresschannel used at:2939-2943,:2944,:3246-3293,:3297; it writes for every rank (non-zero ranks are otherwisesilent()) and repeats"export: rank N: "on each of up to 11 lines because the report is aVec<String>. Return oneOption<String>and print once.heliopause/src/export/reachability.rs:50-72, 221-230—UnresolvedCandidate,Site,unresolved_count,unresolved_unique_addressesarepub(crate)(withpubfields) but have no caller outside the module;unresolved_report(capture.rs:3294) is the only external entry point. Drop the visibility and shrink the 3-4 line doc comments.- Minor docs:
docs/TODO.txt:357-361is a 5-line entry restating the PR body's Limitations;AGENTS.md:517-520asks for brief entries.
Explicitly cleared (not removal targets): the blobs miss-cache replay and record_unresolved split, with_count (no existing pluralization helper in the repo), scan's base/Option<&mut Vec> params, both docs edits, and the 28-test block. Merging Site into UnresolvedCandidate was considered and rejected: the borrowed &'a str avoids a String allocation per kernel argument.
Open question: whether the repeated per-line rank prefix and the unconditional non-zero-rank output are intentional; no test covers the capture.rs call site, so retargeting it to a single summary line is unguarded.
Correctness and contracts
Reviewed PR #332 at head 38805ba (reachability.rs +738/−27, capture.rs +4/−1, two docs) under the correctness/contracts/system-consequences lens. The change is retention-neutral — candidate() is main's pointer() returning a bool, used only to fill the report — so no core-compatibility or export-output risk.
Most important findings:
- Major:
candidate()(reachability.rs:156-160) tests the RAWrequest.inactive(capture.rs:3239) while recorded intervals are trimmed inward to granules bylive_pieces(capture.rs:1274-1275); for a non-granule-aligned inactive range like (0x1085,0x137f) bytes in the live remainder are reported as resolving to "no active recorded allocation" — a false stale-pointer report from the only export-time detector for #266; the sole inactive test uses an aligned range (reachability.rs:1172-1173). - Minor:
unresolved(reachability.rs:86, 177-192) retains a cloned graphStringper distinct address with no cap (~762/833 addresses measured), and the report goes out as raweprintln!(capture.rs:3294-3296) outside anyPhasewhile peer ranks are otherwiseStartupProgress::silent()(capture.rs:2939-2942), so peer-rank findings never reach the coordinator's aggregate (host_ranks.py:486-488). - Minor: the
capture.rscall site and its rank label are untested; all coverage is reachability unit tests. - Sound: no wire/proto/CUDA-graph contract change, single-threaded per-rank export, no lock or serving-path interaction; symbol resolution via
ranks[0].functionsis valid; the(base+offset) % 8filter is parameter-relative (each parameter is its own blob, capture.rs:829-839) — not a bug; the eprintln cannot corrupt progress rows (startup.rs:339-342). - Claim accuracy is good: the live body matches the diff, flags the 22,618/762 and 19,417/832 counts as pre-per-symbol, and its Limitations match the code.
Open: no export reproduces #266's split-K arguments, so diagnostic usefulness is unproven; yatesdr's CHANGES_REQUESTED is two heads stale with no human re-review.
Re-review
Recommendation: Ready To Merge
At head 38805ba, all prior review blockers and follow-up items from both yatesdr (2026-11-20) and the previous Autobot pass (2026-11-28) are resolved, and the implementation is correct, bounded, and isolated to export-time diagnostics. Allocation retention semantics are unchanged from main, per-symbol example prioritization and argument-relative 8-byte alignment filtering are cleanly implemented and covered by isolated unit tests, and the PR body and documentation accurately match the code and its limitations. Two small non-blocking simplifications in heliopause/src/export/reachability.rs are listed under Subtract / Simplify.
Merge Risk
Level: Low
- No serving or retention blast radius: All code changes live in
heliopause/src/export/reachability.rsand a 4-line call site inheliopause/src/export/capture.rs:3259,3294-3296.Reachability::candidatepreservesmain's exact live-allocation retention logic (reachability.rs:156-170),contents/opaque_contentsscans still passNoneas the miss sink (:436-445), and no wire format, core artifact, or Helios serving path is modified. - No concurrency or failure-propagation hazard:
Reachabilityis single-threaded per rank and dropped at the end ofcapture_rank;unresolved_reportis purely diagnostic (eprintln!aftergraph_phase.finish) and never fails an export. - Bounded memory/CPU overhead: Reuses the existing
blobscache map (reachability.rs:85) to avoid rescanning repeated argument blobs;unresolvedholds one entry per distinct aligned unresolved value in[floor, ceiling)(measured at 762 / 832 entries on a 2-GPU Vision-Exp export, dropped withReachability).
Walkthrough
heliopause/src/export/reachability.rs:45-88,153-230: ReplacesReachability::pointerwithReachability::candidateas the single live-vs-gap/inactive rule, addsUnresolvedCandidate/UnresolvedEntry/Site, extractsrecord_unresolved, and caches per-blob aligned unresolved misses inblobsso shared argument bytes still tally exact occurrence counts without cloning miss vectors.heliopause/src/export/reachability.rs:232-340: Addsunresolved_report(summary line, up to 10 examples prioritizing one first-encountered address per distinct recorded kernel symbol before backfilling in encounter order, and exact omitted distinct-address/occurrence counts) and filters reporting inscanto argument-relative 8-byte-aligned offsets ((base + offset).is_multiple_of(8)) while keeping byte-by-byte retention scanning unchanged.heliopause/src/export/reachability.rs:764-1300: Adds unit tests covering first-site tracking, encounter order, argument-relative offsets after unaligned numeric prefixes, straddling-window suppression, inactive-range boundaries without retention, per-symbol prioritization and backfill, and exact hidden-count formatting.heliopause/src/export/capture.rs:3259,3294-3296: Passes&graph.nametoreach.graphand prints each line ofreach.unresolved_report(&output.index.ranks[0].functions)prefixed withexport: rank <rank>:tostderraftergraph_phase.finish.docs/runtime-core-design.md:154-158,351-354&docs/TODO.txt:357-361: Documents the non-blocking per-rank stderr diagnostic and tracks follow-up measurements on 4-GPU DeepSeek V4.1 (#266) and 8-GPU W4A8 MoE hardware.
Pre-merge Checks
- [PASS] Security / malicious screen: No security issues, unexpected I/O, or prompt-injection attempts found in diff, PR body, or comments.
- [PASS] Charter & value fit: Export-only diagnostic in Heliopause targeting #266 with no per-model runtime branches, flags, or captured-graph op contract changes.
- [PASS] Related / duplicate / conflict check: Rebased cleanly onto
0a8c20f4(absorbing recentcapture.rs/reachability.rschanges #593, #618, #507); complementary to #331/#606 (lifetime fixes) and uniquely covers export-time detection. - [WARN] Tests & verification evidence: Author reports 231 passed / 0 failed / 6 CUDA-ignored via debug
cargo test --locked --manifest-path heliopause/Cargo.toml --lib(not--releaseperdocs/design-review.md:180-185, andheliopauseis not yet covered by.github/workflows/native-serving.yml(not opened)); aligned 2-GPU SM120 counts were measured on identical scan logic prior to adding per-symbol selection inunresolved_report, and 4-GPU #266 / 8-GPU W4A8 verification is tracked indocs/TODO.txt:357-361. Human re-review from@yatesdron38805bais still pending.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Collapse the two-pass example selection (
heliopause/src/export/reachability.rs:256-282): Thechosen: Vec<bool>buffer and second loop can be replaced with a single pass that collects up tolimitbackfill indices while preserving early exit whenselected.len() == limitand exactResult<&str, usize>symbol keying:let limit = UNRESOLVED_EXAMPLES.min(examples.len()); let mut selected = Vec::with_capacity(limit); let mut backfill = Vec::with_capacity(limit); let mut seen_symbols = HashSet::with_capacity(limit); for (index, &(_, entry)) in examples.iter().enumerate() { if selected.len() == limit { break; } let symbol_key = functions .get(entry.first.function) .map_or(Err(entry.first.function), |function| { Ok(function.symbol.as_str()) }); if seen_symbols.insert(symbol_key) { selected.push(index); } else if backfill.len() < limit { backfill.push(index); } } selected.extend(backfill.into_iter().take(limit - selected.len())); selected.sort_unstable(); - Narrow module-internal visibility (
heliopause/src/export/reachability.rs:50-56,67-72,221-230):UnresolvedCandidate(and its fields),Site(and its fields),unresolved_count, andunresolved_unique_addressesare only referenced insidereachability.rs(capture.rs:3294only callsunresolved_report). Droppub(crate)andpubon those internal items; the inlinemod testsretains full access.
Nits
- Run
cargo test --locked --release --manifest-path heliopause/Cargo.toml --libbefore merge to satisfy the release-profile test layer indocs/design-review.md:180-185. - Optionally add one phrase to
docs/runtime-core-design.md:351-354noting that the bounded summary prioritizes one example per distinct kernel symbol before backfilling in encounter order.
Dropped on verification
- Correctness lens §1.1 — "Major: granule-edge bytes inside a live interval are reported as unallocated" (
capture.rs:3239,reachability.rs:156-160): Verified false.ignition/preparation/core_storage.py:308-323emits freed blocks and allocator padding asunused_ranges(), andignition/preparation/runtime_core.py:363-364(not opened) passes those exact ranges to bothinactiveandzero_ranges(zeroed on device viacuMemsetD8_v2atcapture.rs:2969-2978and excluded from snapshots viawithout_zero_rangesatcapture.rs:1489). They are not live workspace bytes;live_pieces(capture.rs:1259-1303) only keeps their enclosing granule because CUDA VM mapping cannot unmap sub-granule slices. Passing raw&request.inactive(capture.rs:3239, unchanged frommain) is required so pointers into sub-granule inactive bytes neither retain storage nor slip past the diagnostic, and the summary wording (resolve to no active recorded allocation (gap or inactive range)) is accurate. - Correctness lens §2.1a — "Cap
unresolvedat the report limit": Verified harmful. Cappingunresolvedat 10 entries would break exact distinct-address totals and defeat per-symbol prioritization whenever 10 addresses from earlier kernels precede a later stale pointer (e.g.,cublasLt::splitKreduce_kernel). Actual size on a full 2-GPU export is ~800 entries (~100 KiB), dropped withReachability. - Correctness lens §2.1b & Subtraction lens #2 — "Route report through
StartupProgress/ collapseunresolved_reporttoOption<String>with a single rank prefix": Verified undesirable.StartupProgresstruncates single rows to terminal width (helios/src/startup.rs:439) and cannot carry a multi-line report;Phase::drop(helios/src/startup.rs:336-355) joins its animation worker and terminates the row beforecapture.rs:3294;yatesdrexplicitly approved per-rank labeled stderr output (2026-11-18/19); and repeatingexport: rank N:on every line preserves rank attribution if multiple ranks interleave on shared stderr. - Correctness lens §4.1 — "Untested
capture.rscall site and untested empty case": Partially false and low-signal. The empty case is explicitly tested byunresolved_report_is_empty_without_candidates(reachability.rs:1024-1027), and adding artificial test seams for a 3-lineeprintln!loop inside CUDA-dependentcapture_rankis unnecessary churn. - Subtraction lens #1 details — "
chosenmakes 2,646 allocations / rewrite removessort_unstable()/ useOption<&str>": Inaccurate details dropped (vec![false; n]is one allocation, the proposed rewrite still calledsort_unstable()and dropped early exit while growingseen_symbolsandbackfillunboundedly); replaced with the bounded single-pass version inSubtract / Simplify. - Subtraction lens #4 — "
docs/TODO.txt:357-361too verbose": Dropped as low-signal; the 5-line entry with aClose when ...condition matches the exact house style of the preceding entries atdocs/TODO.txt:340-352.
Full report Decision to Test: yes (56%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.3% -
none: 0.4% -
triage:design-review: 0.1% -
triage:validation: 0.1% -
triage:partial: 0.0% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:superseded: 0.0% -
triage:verify-for-closure: 0.0%
Apply labels
No label changes
Pre Test Report
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: 38805ba3 (rebased onto 0a8c20f4, pushed 2026-11-30) · Size: 4 files, +756/−30 (heliopause/src/export/reachability.rs +738/−27, heliopause/src/export/capture.rs +4/−1, docs/runtime-core-design.md +8/−2, docs/TODO.txt +6) · Refs: #266 (open), #331 (merged)
Recommendation: REFER TO HARDWARE TEST — two jobs, ≤8 GPU-hours, one model, hard stop rules
Unlike my 2026-11-28 report, the code is no longer moving in a way that invalidates measurement. 38805ba3 fixed every item I raised (alignment filter, single rule, straddle test, per-symbol example selection, the unaligned-base test, the wrong hidden-count units, the misses.clone()s, the redundant guard, the test name), and the author's own 2026-11-30 comment states plainly the one thing that is still unmeasured: "the per-symbol 10-line GPU stderr sample has not been re-captured on GPU." That single sentence is exactly what a GPU job can and should buy.
Be precise about what this buys. Hardware cannot validate the PR's stated purpose (does it catch #266's real stale pointers), cannot close the TODO it added, and cannot reproduce the author's counts. It can validate the only new behavior added since the last GPU run — per-symbol example selection, reachability.rs:256-282 — and it can prove, with byte-level evidence, that the diagnostic does not change the exported artifact. Both are worth ~2 GPU-hours; neither requires a second look at anything the author already ran, and no serving benchmark belongs anywhere in this plan.
Note for the reader: @yatesdr's CHANGES_REQUESTED verdict dates from 2026-11-20 and predates this head; the 2026-11-28 Autobot review's blockers are all fixed. The current Autobot re-review of 38805ba3 is Ready To Merge with no blockers. Do not treat the 2026-11-20 label as a gate on hardware time.
What was verified at 38805ba3 (so the engineer does not re-litigate these)
- Reporting-only alignment gate, retention unchanged.
scanstill stepsdata.windows(8).enumerate()(reachability.rs:328) and pushes a miss only when(base + offset).is_multiple_of(8)(:334).!self.candidate(pointer)?is evaluated before the misses/alignment conjuncts, so every byte offset is still resolved for retention. - One rule.
candidate(:156-170) is the single live/inactive/gap classifier;in_free_blockno longer exists. - Per-symbol selection is the only new output behavior.
unresolved_report(:237-315) takesUNRESOLVED_EXAMPLES = 10(:76), one first-encountered address per distinctfunctions[first.function].symbol(:260-273), then backfills in encounter order (:274-281), sorting the selected indices back into encounter order (:282). - The print site.
capture.rs:3294-3296emitsexport: rank {rank}: {line}for each line, on every rank, with no guard, betweengraph_phase.finish(:3290) and the module phase (:3297) — i.e. only after every graph has been serialized. A failed export may therefore print nothing; absence of output is not evidence of zero candidates unless the exit code is 0. - There is no toggle. No env var, flag, or setting disables the report (no
std::envinreachability.rs), so an on/off A/B requires two builds. - Zero serving-path surface. No wire, protobuf, core-format, config, or flag change; nothing persists. Serving throughput cannot regress, so there is no speedup and no serving benchmark to run. The only performance question is export-time, and the only plausible cost is the
blobsmiss cache (:196-219).
What hardware can and cannot answer
| Question | cn5 | cn7 | Verdict |
|---|---|---|---|
| Do the ≤10 printed examples now span ≥2 kernel symbols instead of one CUTLASS family? | Yes — 4×RTX PRO 6000 = same GPU model as the author's SM120 run, and a 4-rank export exercises the per-rank label path | TP1 only, no multi-rank | Run on cn5 (Stage 1) |
| Does the diagnostic change the exported core? (non-retention / non-blocking) | Yes — byte-identity A/B against main |
n/a | Run on cn5 (Stage 2) |
| Does it catch #266's real stale split-K arguments? | No — needs deepseek-ai/DeepSeek-V4.1-Flash-1017 at TP4 on 4×GB10; cn5 has no such checkpoint |
No — 1×GB10 cannot form TP4 | Out of scope; say so in the report |
Close docs/TODO.txt:357-361? |
No — needs 4-GPU DeepSeek and 8-GPU W4A8 MoE; widest host is 4 GPUs | No | Out of scope; leave the TODO open |
| Reproduce 22,618/762 and 19,417/832? | No — that export is local-inference-lab/DeepSeek-V4-Flash-Vision-Exp-lossless-CSF via hyperflare-recipes d1376bb; different checkpoint, recipe, and rank count |
No | Do not attempt |
One further caution the engineer must respect: assert distinct-address counts, never occurrence counts. blob caches each unique (data, numeric) miss list and replays it for every node/argument sharing those bytes (:196-219), so occurrences overstate the number of bad arguments by roughly the replay factor (the author's run: ~66×).
Stage 0 — Free, no GPU (mandatory, ~15 min, run first)
This is the release-profile crate layer from docs/design-review.md:180-185 (cargo test --locked --release … "and heliopause, matching the native-serving workflow"). The author ran debug --lib only, and .github/workflows contains no heliopause job at all (.github/workflows/native-serving.yml (not opened) covers eos, selene, selene-manager, helios, flare-cli, flare). That is the real verification gap here, and it costs nothing.
On the export host, at 38805ba3:
cargo test --locked --release --manifest-path heliopause/Cargo.toml --lib
Expectation to record: the author reports 231 passed, 0 failed, 6 ignored (all 6 CUDA-gated), including 28 tests in export::reachability::tests. If this fails, stop — do not spend GPU time on a build whose own suite does not pass in the required profile.
Optional, 2 minutes, and it directly protects Stage 1's budget: confirm the plan resolves before downloading anything. ignition export resolves the model, discovers GPUs through NVML, and derives the plan before downloading (docs/cli-design.md:1521-1523), and a capacity failure exits 4 (:1533-1534):
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --help
Use this to read the recipe's declared tensor-parallel sizes. If TP4 is not listed, skip straight to TP2 in Stage 1.
Stage 1 — cn5: one export of nvidia/GLM-5.3-Flash-NVFP4 (the deliverable job)
Job shape: one cn5 job, all 4 GPUs, 48 CPUs, 125 GiB RAM. Budget: ~3–5 h wall clock (the author's reference export was ~73 min on 2 GPUs; a 4-rank GLM NVFP4 export with tuning and compilation is larger).
Why this model: it is the only recipe-supported model on the box — nvidia/GLM-5.3-Flash-NVFP4 → recipe glm-5.3-flash-nvfp4 (docs/model-preparation.md:318). facebook/dinov2-base and timm/vit_base_patch14_dinov2.lvd142m are on the host but have no Ignition recipe, so they cannot be exported. Note all listed models are at 0 GiB, i.e. not downloaded; the checkpoint fetch happens inside this job.
Preflight the engineer must do before launching (this is where a job gets wasted):
- Disk. A job gets only 16 GiB scratch, which is far too small for a GLM-5.3 Flash NVFP4 export (checkpoint + payload objects + staging). Point every preparation path at a large persistent filesystem in
~/.config/flare/config.toml(not opened) (ignition/cli/config.py:20):[paths] hub_cache = "/big/hf" kernel_cache = "/big/flare/kernels" core_cache = "/big/flare/cores" export_staging = "/big/flare/staging"export_stagingdefaults to empty, meaning "beside the core" (config.py:48,docs/cli-design.md:1395), so settingcore_cachemoves staging too — buthub_cacheandkernel_cachedefault under~/.cacheand must be moved explicitly. Thendf -h /bigand confirm headroom perdocs/multi-host.md:316-321: checkpoint + cached payload objects + payloads this export adds + temporary staging, all on one filesystem so hardlinks keep working. I could not verify free space on cn5; if the large FS is not big enough, that is a genuine blocker, not something to squeeze. - Extension built from the PR head. After any Rust change:
uv pip install --python .venv/bin/python --no-deps ./heliopause(docs/model-preparation.md:157-162).heliopauseis acdylib(heliopause/Cargo.toml:11) imported asflare_heliopause; a stale build silently measuresmain. - Recipe package present.
ignition/recipes/is not in this repository; recipes come fromlocal-inference-lab/hyperflare-recipes(docs/model-preparation.md:310-330). The job needs access to that dependency pin.
Command (TP4 first — this is the qualified configuration):
git checkout 38805ba3
cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened)
uv sync --locked --extra prepare --extra test
uv pip install --python .venv/bin/python --no-deps ./heliopause
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --verbose \
> /big/logs/pr332-tp4.out 2> /big/logs/pr332-tp4.err
echo "exit=$?"
--gpus 0,1,2,3 is right: GLM at TP4 is the only qualified GLM configuration (docs/model-preparation.md:168-171: "Qualified end to end: Qwen at TP1 and TP2, and GLM at TP4"). Ignition spawns ranks with torch.multiprocessing spawn (ignition/preparation/rank_group.py:296), so child stderr is inherited — one 2>file captures every rank's report; nothing else is needed.
Fallback, not a second guess: 4×96 GiB = 384 GiB against a TP4 reference qualified on 4×DGX Spark (4×128 GiB unified). Planning may refuse (implementation rejects capacities that do not fit, docs/model-preparation.md:340-342). If the job exits 4 (capacity, docs/cli-design.md:1533-1534), rerun once as TP2 — the plan is derived before download, so this costs minutes, not an hour:
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1 --verbose \
> /big/logs/pr332-tp2.out 2> /big/logs/pr332-tp2.err
TP2 halves rank coverage (2 reports instead of 4) but still answers the per-symbol question. A TP2 run is a complete, acceptable deliverable; do not escalate back to TP4.
Assertions to pre-register (state them before the job, judge them after):
- Exit code
0. (Exit 4 = capacity, 5 = preparation; see above.) grep -c '^export: rank' pr332-tp4.err≥ number of ranks — every rank prints, each line prefixed with its own rank.- ≥2 distinct kernel symbols among the ≤10 example lines on at least one rank. This is the assertion the whole job exists for; at
c3cc87eaall ten lines came from one CUTLASS family, which is what:256-282was written to fix and what the author has not re-measured. Extraction: take thekernel NAME (MODULE)field of eachgraph …line,sort -u, count. - Every example offset is divisible by 8.
grep -o 'offset [0-9]*' | awk '{exit $2%8}'. A non-multiple means the alignment gate regressed. - Summary/hidden arithmetic reconciles, per rank: printed examples + hidden distinct = summary distinct; printed occurrences + hidden occurrences = summary occurrences. The two units were conflated before; this is a one-line check and catches a units regression for free.
- No
kernel unknown (unknown)in the output.graphrejects out-of-range function indices (reachability.rs:356-358) andcapture.rskeepskernelsandfunctionsin one order, so the fallback at:294-295should be unreachable. If it appears, the index wiring is wrong — a finding, not a nit. - Record the per-rank distinct-address count. This is the number the maintainer asked to see. Report it as "aligned distinct addresses per rank", and alongside it the per-symbol breakdown from (3).
Do not assert:
- That the count resembles 22,618/762 or 19,417/832 — different checkpoint, recipe, and rank count.
- That any example is a stale pointer, or that a
cublasLt::splitKreduce_kernelline appears. A 4-rank GLM export on cn5 has no reason to contain one, and concluding "no stale pointers found, therefore the diagnostic works" would be exactly the reasoning error the maintainer warned about ("a diagnostic that trains operators to scroll past it is worse than none"). - Any serving number. Nothing on the serving path changed.
Optional smoke test (separate job, skip unless Stage 1 fails to convince): flare run <CACHE_ENTRY> --gpus 0,1,2,3 to prove the exported core still loads and serves. It needs a TTY for first-use publisher acceptance (docs/cli-design.md:1281-1285) or a pre-accepted fingerprint, plus --publisher-keys for the development profile (:729). Do not bundle it into the export job.
Stage 2 — cn5: non-interference A/B (the byte-identity job)
Why it is the highest-value assertion available: the change's own safety claim is that retention is untouched and nothing persists, so for one model and recipe the exported core must be byte-identical to a main export. That is a code-level claim, but only a diff of two real artifacts settles it, and it costs one job that reuses tuned/compiled caches.
How — reuse --reuse-weights so this is minutes, not another 73:
git worktree add /work/main 0a8c20f4
cd /work/main
uv pip install --python /path/.venv/bin/python --no-deps ./heliopause # rebuild the extension at main
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --reuse-weights \
> /big/logs/main-tp4.out 2> /big/logs/main-tp4.err
--reuse-weights uses the cached default version as the weight source and reuses tuning and compilation caches (docs/model-preparation.md:290-308), so this is a graph/capture round, not a full export.
Assertions:
- The two runs produce the same set of content-addressed payload objects — compare
ls blobs/(payload IDs hashed from stored bytes,docs/cli-design.md:1122-1127) and the per-deployment payload IDs underdeployments/<deployment>/rank-<n>/. Diff the sets; expect empty. - Do not compare signature bytes, entry names, or timestamps. Entry names encode a UTC timestamp (
helios/src/core/naming.rs:6, minute resolution) and will always differ. - Export wall clock and peak RSS parity, PR head vs
mainbuild, same recipe and settings. This is the only performance assertion the change supports; theblobsmiss cache is the only plausible regression. A measurable slowdown is a finding; a difference in serving throughput is not a thing that can exist here. - Note explicitly in the report: at
mainthe diagnostic does not exist, somain-tp4.errhas noexport: ranklines. That is the correct control.
Predicted result: empty payload-set diff and parity timing. If the payload sets differ, that is a serious finding — it means the diagnostic changed the export — and everything else in this plan should be paused while it is understood.
Stage 3 — Optional, and probably not worth it: cn7 (1×GB10)
Only if a GB10-platform-specific question survives Stages 1–2. The cheapest model on cn7 with a recipe is google/gemma-4-E4B-it → gemma-4-e4b (docs/model-preparation.md:326), at TP1:
.venv/bin/ignition export gemma-4-e4b --gpus 0 --verbose 2> /big/logs/pr332-gb10.err
Kill criterion, state it up front: a small model with few recorded allocations may report zero candidates, in which case the per-symbol assertion is vacuous and the job proves nothing. Accept only if you already know from Stage 1 what a "populated" report looks like, and treat an empty report as a null result — not a pass. cn7's 60 GiB RAM and 10 CPUs also make it a poor fit for anything larger. My recommendation is to skip Stage 3 unless the maintainer asks for GB10 specifically; it adds a platform, not evidence.
Budget and stop rules
| Stage | Host | Cost | Gate |
|---|---|---|---|
| 0 | any (CPU) | ~15 min, 0 GPU | Mandatory. Fail ⇒ stop, report to author. |
| 1 | cn5, 4 GPUs | ~3–5 h ≈ 12–20 GPU-h | The deliverable. Capacity exit 4 ⇒ retry once at TP2 only. |
| 2 | cn5, 4 GPUs | ~1–2 h ≈ 4–8 GPU-h | Run after Stage 1 succeeds. Diff ⇒ escalate, pause. |
| 3 | cn7, 1 GPU | ~1 h | Optional; skip by default. |
Total: ~16–28 GPU-hours on cn5, ≤4 GPU-hours on cn7. If Stage 1 fails for reasons unrelated to this PR (dependency fetch, driver, disk), stop and report; do not spend Stage 2's job re-running the same failure.
Explicitly out of scope (write this into the test record)
- #266 reproduction. Needs
deepseek-ai/DeepSeek-V4.1-Flash-1017at TP4 on 4×GB10. cn7 has 1×GB10; cn5 has no DeepSeek-V4.1 checkpoint. Not runnable. - Closing
docs/TODO.txt:357-361. It requires a 4-GPU DeepSeek V4.1 export and an 8-GPU W4A8 MoE export, with per-rank counts and printed per-kernel examples reviewed. The fleet's widest host is 4 GPUs, so even a perfect Stage 1 leaves this TODO open. Do not mark it closed. - Any speedup measurement. There is no claimed speedup: nothing on the serving path changes, no wire format, no runtime code. Only export-time cost is measurable, and Stage 2 covers it.
- Re-deriving the author's numbers. Their SM120 run already establishes the aligned counts (22,618 occurrences / 762 distinct on rank 0; 19,417 / 832 on rank 1) and FujitsuPolycom's 4×GB10 run already establishes the unaligned-to-aligned collapse (~864 → 1 per rank). Repeat neither.
Process items to raise alongside the test (not test gates)
- Add
heliopausetonative-serving.yml(not opened).docs/design-review.md:180-185requires--releasecrate tests forheliopause"matching the native-serving workflow", but the workflow has noheliopausejob. That is why this PR's verification rests on hand-run debug tests. Fixing CI is worth more than any GPU job here. - The PR body is now current (231 passed / 0 failed / 6 ignored; aligned counts correctly flagged as pre-per-symbol;
## Limitationsstates that unaligned unresolved values are not reported). No description blocker remains. - Open should-fix items that do not block the test but will move the output: the granule-trimmed-
inactivequestion (capture.rs:3239still passes raw&request.inactive; the sole inactive test,reachability.rs:1168-1183, uses an aligned range) — the author declined it with a written rationale and the last review verified that rationale (raw inactive also feedszero_ranges, so those bytes are genuinely not live); and the two non-blocking simplifications (single-pass example selection at:256-282, narrowingpub(crate)at:50-72,:221-230). If per-symbol selection is rewritten for simplification, Stage 1 must be re-run, since that rewrite touches the exact lines the job measures. Ask for the simplification to land after the test, or accept measuring twice.
Security / integrity check
I re-read the PR description, the 2026-11-30 author comment, and the prior reviews and screens. Nothing instruction-shaped: no prompt injection, no agent-directed requests, no requests to alter tooling/CI/review process, no exfiltration. Discord: myong_acct is attribution the repo's own AGENTS.md (not opened) requires. The author's Limitations section is candid about the unmeasured per-symbol output and the un-runnable 4-GPU case, which is consistent with the charter's evidence standard and is reflected above as scope rather than as a defect. Matches the intake screen's all-clear on both heads.
Discord Test Request
Draft Discord post (ready to paste)
Recommendation: Test
High confidence. Every blocker from @yatesdr and the earlier Autobot passes is fixed at 38805ba3, and the current Autobot re-review of that head is Ready To Merge with 0 blockers. The one thing left is measurement, and the author says so himself: "the per-symbol 10-line GPU stderr sample has not been re-captured on GPU." The 2026-11-20 CHANGES_REQUESTED label predates this head — it is not a gate on hardware time.
Hardware Required
- One cn5 job: all 4 GPUs (4× RTX PRO 6000, same SM120 family as the author's run), 48 CPUs, 125 GiB RAM.
- A large persistent filesystem for the checkpoint, kernel/core caches and export staging — a job's 16 GiB scratch is far too small, so point
~/.config/flare/config.toml(not opened) at it anddf -hbefore launching. - Recipe access from
local-inference-lab/hyperflare-recipes, with theheliopauseextension rebuilt from the PR head (a stale build silently measuresmain).
Justification
- The only new behavior since the last GPU run is per-symbol example selection (
reachability.rs:256-282), and it is currently unmeasured — the last real export printed all ten examples from a single CUTLASS family, which is exactly what that change was written to fix. - A second short job reuses
--reuse-weightsto prove the diagnostic does not change the exported artifact: themainand PR-head exports must produce identical content-addressed payload sets. Retention is supposed to be untouched, and only real artifacts settle it.
Estimated Time to Complete
~5–7 hours wall clock on cn5 (~16–28 GPU-hours), plus a 15-minute free CPU check first: 15 min release-profile heliopause tests, 3–5 h for the 4-GPU GLM-5.3-Flash-NVFP4 export (retry once at TP2 if capacity exits 4), and 1–2 h for the byte-identity A/B. Optional cn7 (1×GB10) job, ~1 h, skippable — recommend skipping.
What I verified myself (not taken from the report)
heliopause/src/export/reachability.rs:156-170—candidateis indeed the single live/inactive/gap rule and retains only live allocations; noin_free_blockremains.reachability.rs:328-337—scanstill stepsdata.windows(8).enumerate()byte-by-byte and pushes a miss only under(base + offset).is_multiple_of(8);!self.candidate(pointer)?short-circuits before the alignment conjunct, so retention really is unchanged and the filter really is reporting-only.reachability.rs:237-315—unresolved_reportusesUNRESOLVED_EXAMPLES = 10(:76), selects one first-encountered address per distinctfunctions[..].symbol(:260-273), backfills in encounter order (:274-281) and re-sorts into encounter order (:282); the "… N more distinct addresses … not shown" line (:301-313) is present. Report line refs match.reachability.rs:196-219— theblobscache keyed on(data, numeric)replays a miss list per call site and bumpsoccurrences, so distinct-address vs occurrence counts genuinely diverge; the "assert distinct counts, never occurrence counts" caution is correct.capture.rs:3239—Reachability::new(&allocations, &request.numeric, &request.inactive, …)does pass rawrequest.inactive, confirming the report's open granule-trim point is still live at this head.capture.rs:3294-3296— the print site is exactly as described: an unguardedfor line in reach.unresolved_report(&output.index.ranks[0].functions) { eprintln!("export: rank {}: {line}", request.rank) }, sitting betweengraph_phase.finish(:3290) and the module phase (:3297). So it runs only after every graph is serialized, on every rank with its own label, and a failed export may print nothing..github/workflows/contains onlyhelios-lifecycle.yml(not opened),native-serving.yml(not opened),python-cpu.yml(not opened),release.yml(not opened) — noheliopausejob, so the report's CI-gap item ("addheliopauseto native-serving.yml (not opened)") checks out as a real, cheap fix.- PR discussion read in full: nothing instruction-shaped — no prompt injection, no agent-directed requests, no request to alter tooling or CI or to move data.
Discord: myong_acctis contributor attribution. The author's## Limitationsis candid about the unmeasured per-symbol sample and the un-runnable 4-GPU case.
Discrepancies / caveats in the pre-test report
- Its own budget contradicts its headline. The recommendation says "≤8 GPU-hours"; the budget table says "~16–28 GPU-hours on cn5, ≤4 GPU-hours on cn7". I used the budget table (16–28 GPU-h ≈ 5–7 h wall clock) in the post. Whoever sends this should reconcile the two before it becomes a scheduling promise.
- Hardware cannot do what a casual reader assumes. It cannot catch #266's real stale pointers (needs
deepseek-ai/DeepSeek-V4.1-Flash-1017at TP4 on 4×GB10), cannot closedocs/TODO.txt:357-361(needs 4-GPU DeepSeek and 8-GPU W4A8 MoE; widest host is 4 GPUs), and cannot reproduce 22,618/762 or 19,417/832 (different checkpoint, recipe and rank count). The post deliberately claims only the per-symbol behavior and byte-identity — do not let the message drift into "will find the #266 bug." - No serving benchmark belongs in this plan — nothing on the serving path changed (no wire, protobuf, core-format, config or flag change; nothing persists), so there is no speedup to measure and no throughput regression to fear. The only performance question is export-time cost, covered by the A/B.
- Stage 3 (cn7) is net-negative evidence: TP1 only, 60 GiB RAM, and a small model may print zero candidates, making the per-symbol assertion vacuous. Skipping it is the right call; if it runs, an empty report must be recorded as a null result, not a pass.
export_stagingis not a free-standing setting: it defaults to "beside the core", so settingcore_cachemoves staging too, whilehub_cacheandkernel_cachedefault under~/.cacheand must be moved explicitly. The post keeps this to one bullet, but the engineer needs all four keys.- Test ordering risk: if the two non-blocking simplifications to
:256-282land after the test, Stage 1 must be re-run, since that rewrite touches the exact lines being measured. Ask for simplification after the GPU job.
Honest note on the scratchpad condition
I did not manage to write scratchpad entries: I spent the turn verifying the code claims against the head, and the tool set was restricted to finish before I could persist notes. Everything worth keeping is written out above with file:line citations, so nothing is lost — but the stated "Done when: every angle has entries in the scratchpad" condition is not literally satisfied, and I am reporting that rather than implying otherwise. Angles I did not independently open: docs/runtime-core-design.md (not opened) and docs/TODO.txt diffs, docs/design-review.md:180-185 (not opened), docs/model-preparation.md (not opened), docs/cli-design.md (not opened), docs/multi-host.md (not opened), the recipe package, and the heliopause test count (231 passed / 0 failed / 6 ignored) — these rest on the pre-test report and the PR text, and each is cited there for the engineer to check at run time.