Value proposition scratchpad · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/189c713c-64f3-4c03-b5b1-f20406d4b972.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.