Value proposition scratchpad · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/9a95f64a-9454-4e55-99d8-d7ac24dd30db.md

#1 [high] PR #332 facts and citations

PR #332 (mark-yong, open), "Report unresolved kernel argument address candidates during export", refs #266. Files: heliopause/src/export/capture.rs (+6 -1), heliopause/src/export/reachability.rs (+428 -29). One commit c3cc87ea.

#2 [high] Review findings: defects and evidence gaps in #332

  1. Example selection defeats the purpose. reachability.rs:73-75 UNRESOLVED_EXAMPLES=10; :222-224 sorts by entry.order = insertion order of first occurrence; entry.occurrences tracked but only used for the hidden-occurrence count. From the PR's own SM120 run all 10 examples per rank come from prefill4096 node 34, while 175,329 occurrences / 2,646 distinct addresses exist. In #266 the real signal is ONE address in ~10 arguments (below the ~66 occurrences/address average), so it would be crowded out of the first-10 window by benign values from the earliest nodes. A genuinely stale pointer is rare; ubiquitous constants are not. Sorting by ascending occurrence count (or grouping per graph/kernel with distinct-address counts) is a small change that would surface the target.
  2. scan() duplicates candidate()'s inactive test (reachability.rs:262-269 vs :131-134): if (!self.candidate(pointer)? || in_free_block). Two copies of one predicate that tests rely on; should be one function returning an enum (Live/Numeric-free/Gap/Inactive).
  3. blobs cache regression: HashSet->HashMap<(Vec,Vec<usize,usize>), Vec<(usize,u64)>> (:84, :147-169) and Some(misses) => misses.clone() re-copies the miss list on every cache hit, plus stores misses for every distinct blob for the whole export. Previously a duplicate blob short-circuited.
  4. Reporting path: capture.rs:3137-3141 raw eprintln!, bypassing StartupProgress/Phase (helios/src/startup.rs:241-369) used by every other export stage. No structured channel, not captured by startup observation, interleaves with phase rows on a terminal.
  5. Tests assert exact prose (reachability.rs:826-846, 858-875): brittle churn; repo prose rules (AGENTS.md:40-45) make this costly to maintain.
  6. Docs: docs/cli-design.md:1609 enumerates what ignition export prints; a new per-rank diagnostic emitted on every export is undocumented. AGENTS.md:52-55 requires unresolved limits in docs/TODO.txt; limitations currently live only in the PR text.
  7. No true positive evidence: SM120 2-GPU Vision-Exp export shows only benign mHC matches; #266 not reproduced (only 3 GPUs). #331 (merged) already fixed the root cause and its 4xGB10 DeepSeek V4.1 export still showed 864 unaligned byte-window matches + 1 aligned match per rank, i.e. the scan as written fires heavy noise even on a healthy package.
  8. Not implemented: #266's suggested narrowing (8-byte-aligned slots of 8-byte params + tensor-map base field), which is what would make the output actionable. parameter_layouts (ignition/preparation/tensor_metadata.py:140-149, capture.rs:2927-2942) already supplies typed parameter sizes, so the narrowing is cheap.
  9. Scope/layer is right: Heliopause reachability scan is the correct place, no per-model branches, no flags, non-blocking so no guarantee is weakened; retention semantics unchanged (candidate() returns before referencing inactive, same as former pointer()).

#3 [high] Verdict for #332

Verdict: worth it with changes (not as-is). Why worth doing: layer is right (Heliopause reachability scan, heliopause/src/export/reachability.rs), it is non-blocking so no guarantee is weakened, no flags/per-model branches, and #266 (calvarado2004, 2026-11-11 15:28) asked exactly for an export-time report with graph/node/symbol/argument/offset; original-el8 (2026-11-13) asked for export-time detection "where pointer provenance can be established without misclassifying numeric kernel parameters". Detection is still needed because #331's warmup-stream isolation only prevents this leak class, and #395 (graph.reset frees shared workspace) is another live lifetime hazard; old cores keep the stale address. Why not as-is: (a) the maintainer condition (provenance / no misclassification) is not met; (b) author's own SM120 run shows 175,329 occurrences / 2,646 distinct addresses on a healthy export with all 10 examples from one benign kernel, and the sample value is at byte offset 4 of a parameter (0x100000000800 -> looks like two adjacent 32-bit fields), i.e. the output is dominated by misaligned numeric constants; (c) no true positive demonstrated — #266 not reproduced (3 GPUs only); (d) examples kept in first-encounter order so a rare stale pointer (10 args out of ~175k occurrences in #266) would be buried; (e) code issues: duplicated inactive predicate, blobs cache now stores+clones miss vectors, raw eprintln! bypassing StartupProgress and the existing Console-based print_inventory path (ignition/preparation/runtime_core.py:346-348, memory_inventory.py:323-327), tests asserting exact prose. Required changes: narrow to 8-byte-aligned slots with parameter size 8 and the tensor-map base field (parameter sizes already reach capture.rs:2917-2942 / tensor_metadata.py:140-149); group report by kernel+argument with per-group distinct counts, and rank examples by rarity or by group rather than first encounter; show examples under --verbose / progress detail; collapse the duplicate predicate into one function returning an enum; fix the miss-cache clone; drop prose-equality assertions; document in docs/cli-design.md:1609 and docs/TODO.txt (AGENTS.md:52-55); add one true-positive check (an argument that a known-bad layout would flag, or an archived faulting package) plus a false-positive budget on a real export.

#5 [high] Round 2: what the revision fixed in #332

PR #332 @ 1ac7073d (rebased on c9935887). Files: reachability.rs +579/-34, capture.rs +6/-1, docs/runtime-core-design.md +8/-2, docs/TODO.txt +6.

Fixed since c3cc87ea (all verified in code):

  1. Alignment: reachability.rs:294-303 — retention still byte-by-byte (data.windows(8).enumerate()), reporting gated by (base + offset).is_multiple_of(8) at :300. Tests: unaligned_straddling_window_is_not_reported_while_aligned_stale_pointer_is (:1046), aligned/unaligned in :1072.
  2. Single predicate: candidate() :156-170 is the only live/inactive/gap rule; scan uses !self.candidate(pointer)? at :298 — the duplicate in_free_block lookup is gone.
  3. Wording: summary now says "resolve to no active recorded allocation (gap or inactive range)" (:236-246), which is TRUE because intervals are the granule-trimmed live pieces (capture.rs:1473-1486 via live_pieces :1259-1303 / :1274-1275 trims inward) — a value in the retained edge is in no live interval. Author kept raw request.inactive (capture.rs:3164) deliberately: trimming inward would let pointers into freed sub-granule blocks retain the segment and vanish from the report.
  4. Hidden-count units: distinct addresses and occurrences reported separately (:264-279) with 4 tests; no hidden line when <=10 distinct (:264).
  5. Docs: runtime-core-design.md:154-157 (scan semantics) and :337-341 (per-rank stderr line). TODO.txt new item: 4-GPU DeepSeek V4.1 + 8-GPU W4A8 measurement.
  6. Author claim: cargo test --lib heliopause 221 passed / 5 CUDA ignored, 26/26 reachability tests.
  7. Emission site capture.rs:3219-3223 sits after graph_phase.finish (:3215) and before module_phase creation (:3224), so it does not interleave inside an animated phase.

New aligned export counts (author, 2x RTX PRO 6000 SM120, DeepSeek-V4-Flash-Vision-Exp): rank0 22,618 occ / 762 distinct; rank1 19,417 / 832 (was 175,329/2,646 and 170,544/2,637). Printed output bounded at UNRESOLVED_EXAMPLES(10)+2 = 12 lines/rank. Residual noise is structural: e.g. 0x100000000800 == two adjacent 32-bit fields (0x1000, 0x800) at an 8-aligned offset; 0xfff00000fff; 0x7cb800000004. Alignment cannot separate these from pointers.

CORRECTION to my earlier advice: a "parameters whose size is 8" filter would MISS #266's primary case. #266 lists the nvjet split-K parameter as a 384-byte parameter, offset 256; only the cublasLt::splitKreduce_kernel is argument 1. Both offsets (256 and 0) are 8-aligned, so the author's alignment-only filter preserves detection while a size-8 filter would not.

#6 [high] Round 2: #266's own evidence for the mechanism

#266 (calvarado2004) 2026-11-11 15:28 / 16:12 — decisive for the evidence question:

Remaining gaps: author has no personal true positive on 4-GPU hardware (has 3 GPUs); example ordering is still first-encounter (reachability.rs:248 sort by entry.order), so a lone stale pointer in a 762-distinct-address export could be crowded out of the 10 shown (author offered one example per kernel symbol). Some report tests assert exact prose (:842-876, :877-906).