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

Raw Markdown for agents: https://autobot.eidonix.com/p/c746b252-4cdf-4760-be99-f2fe1399e6a6.md

#1 [high] PR #332 head-state verification (blocking issues)

PR #332 "Report unresolved kernel argument address candidates during export" (mark-yong, CONTRIBUTOR), head c3cc87ea, base main, 2 files +434/-30 (heliopause/src/export/reachability.rs +428/-29, heliopause/src/export/capture.rs +6/-1). Review status CHANGES_REQUESTED (yatesdr 2026-11-18, 11-19, 11-20); head unchanged since 2026-11-20; no CI checks. flare-autobot case file 2026-11-25.

VERIFIED IN CODE AT HEAD:

MERGEABILITY: main moved. main heliopause/src/export/reachability.rs has execution() (:87) and graph(&mut self, nodes, kernels) (no name param); main capture.rs:3159 calls reach.execution(&execution)?. This branch's reachability.rs has no execution() and its capture.rs:3075-3086 still inlines the execution-buffer reference loop. Branch predates merged #431/#507/#498 → rebase mandatory, conflicts in the exact functions this PR rewrites.

CI: .github/workflows/native-serving.yml runs eos, selene, selene-manager, helios, flare-cli, flare tests — heliopause is NOT in CI at all. Author-only validation (205 passed, 4 ignored, claimed on build host).

#2 [high] Recommendation: no hardware test for PR #332

REFER TO HARDWARE TEST: NO. Return to author first.

Reasons (none of them hardware-fixable):

  1. Blocking maintainer item unimplemented at head c3cc87e: yatesdr 2026-11-20 "One change before this can merge … report only argument-relative offsets divisible by 8, and post the counts from the same export again." reachability.rs:259 still data.windows(8).enumerate() with no filter. All counts/examples/hidden lines regenerate after the fix → any hardware measurement now is discarded work.
  2. User-visible text is wrong in two independent ways and both must change: summary line reachability.rs:211-214 claims "outside every live recorded allocation" although free-block candidates inside a live segment are reported (scan :266 || in_free_block); and hidden = occurrences - examples.len().min(10) (:238) subtracts a distinct-address count from an occurrence total, so the "N more occurrences not shown" line is not omitted occurrences (the PR's own test :869 pins 14 where 4 are unshown).
  3. Branch will not merge as-is: main has Reachability::execution() (main reachability.rs:87) and graph(&mut self, nodes, kernels); this branch has graph(&mut self, name, nodes, kernels) and inlines the execution-buffer loop at capture.rs:3075-3086 where main calls reach.execution(&execution) (main capture.rs:3159). Merged #431/#507/#498 touched the same functions → rebase/conflict resolution in the exact code under test.
  4. Duplicated lifetime rule (candidate :131-135 vs scan :262-266) is a refactor the maintainer already demanded; removing it changes the code path being tested.
  5. Granule-mismatch false positives (correctness lens S1) need a code fix + new test, not a hardware run.

Expected value of hardware testing NOW: near zero. The only hardware-only facts are (a) real candidate counts on a real export and (b) whether alignment filtering separates signal from noise. (a) the author already produced on equivalent SM120 hardware (2x RTX PRO 6000: 175,329/2,646 rank0, 170,544/2,637 rank1) and (b) is already answered by FujitsuPolycom's independent 4xGB10 run in #331 discussion (2026-11-19 04:57): "864 unaligned byte-window matches and one aligned match per rank" — i.e. ~863 of 864 candidates are the misaligned artifact this PR must filter. That measurement already exists on GB10 hardware; we do not need to buy it again.

HARDWARE CANNOT RUN THE DECISIVE TEST: #266's reproducer is deepseek-ai/DeepSeek-V4.1-Flash-1017 at TP4 on 4x GB10. cn7 has 1x GB10 (cannot reach TP4). cn5 has 4x RTX PRO 6000 but none of the listed models is DeepSeek-V4.1 or any known-bad package; no archived stale-pointer package exists. So a true-positive test is impossible on the available fleet — hardware testing could only re-measure false-positive volume on a different model (GLM-5.3 / Qwen3.8), which is not comparable to the author's Vision-Exp numbers.

CI gap: .github/workflows/native-serving.yml tests eos, selene, selene-manager, helios, flare-cli, flare — heliopause is not in CI at all. But the PR's logic is CPU-testable: everything except the capture.rs print call site and the 3-way index wiring (wire::Kernel.function → kernels → functions) runs without a GPU, so a test engineer is not needed to validate it.

Verified sound (do not change): retention unchanged (candidate returns Ok(true) for inactive before reference(); reference only on live-interval hit); report additive/non-blocking; allocation-content scans pass misses=None (:370-378) so they cannot report; offsets are argument-relative (base is chunk start, :159-164); symbol lookup index is correct because capture.rs:2911-2991 pushes one wire::Function per kernel in kernel order and node.function indexes kernels (reachability.rs:290-292 validates bounds); no wire/core/CLI/config surface added.

#5 [high] #332 head 1ac7073d verification — prior blockers fixed, remaining issues

HEAD: 1ac7073d (rebased onto c9935887), 4 files +599/-37. Main has moved to 7745deea (2026-11-28) but did not touch heliopause/src/export (search_history path=heliopause/src/export ref=main: latest is 7745deea, which is engram). So the rebase is current for this crate.

RESOLVED at head (verified in code, not from the review text):

STILL OPEN (my own reading):

  1. Example selection is first-encounter order: :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 (rank 0) / 10 of 832 (rank 1) distinct addresses, and all printed examples are CUTLASS mHC/DenseGemm constants (0xfff00000fff, 0x3fff000003ff, 0x200000000020, 0x100000001000). #266's stale args would land in the "… 752 more distinct addresses (14776 occurrences) not shown" line. Maintainer offered "one example per kernel symbol" (2026-11-20 item 1); author offered it (2026-11-28). So output WILL change.
  2. Granule geometry disagreement: live intervals come from live_pieces (capture.rs:1259-1303) which rounds holes INWARD to allocation.alignment (:1274-1275 start.div_ceil(granule)*granule, stop/granule*granule), applied at :1473-1486 for memory=="device" && sizing.is_none() && !peer && snapshot_spans.is_none(). But Reachability::new gets RAW request.inactive (capture.rs:3164). Verified: raw hole edges are torch-block slack (core_storage.py:308-323, (block.address+live, block.address+block.size)) and PersistentTensorArena padding (persistent.py:135-141), so they are NOT granule-aligned in practice. Consequence: a value in the retained unaligned hole edge is inside a live exported interval AND inside raw inactive; candidate() checks inactive first (:157-160) so it is reported, and the summary string "resolve to no active recorded allocation" (:236-246) is literally false for it. Inflates counts. IMPORTANT CORRECTION to the 2026-11-26 correctness review: its second consequence ("values inside a genuinely freed sub-granule block are not reported at all ... !candidate 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. So the author's rationale for keeping raw inactive (comment item 5: trimming would let a freed sub-granule pointer retain the segment and drop out of the report) is sound, and the only real defect left is the over-report/wording in the retained edge. No test uses a non-granule-aligned hole (freed-interval test :1071-1133 uses hole 1024..3072 = aligned to the 256 alignment; capture.rs:4798 uses granule 0x1000 with holes at 0x1080/0x1600/0x1f00 -> live_pieces test exists but not a reachability-report test).
  3. capture.rs:3219 if reach.unresolved_count() > 0 duplicates unresolved_report's own occurrences == 0 early return (:232-235) and is the only reason unresolved_count is pub(crate).
  4. reachability.rs:172-194 blob: key (data.to_vec(), numeric.to_vec()) built for the probe, misses.clone() on cache HIT (:175) and again on insert (:191). main did one to_vec pair per call too (:134), so key cost is not new; the added cost is the per-hit miss-vector clone. Bounded, small.
  5. Nits: let address = *address; at :250 is a redundant rebind (needed-shape only; LowerHex works through &u64); UnresolvedCandidate (:50) and Site (:67) are field-identical (String vs &str) with graph name cloned at :202; both pub(crate) though module-local; with_count (:487-493) is a new module-scope pluralizer with no repo precedent; function.map_or("unknown", ...) (:252-258) is unreachable in production because graph() rejects out-of-range indices at :322-324.
  6. PR DESCRIPTION IS STALE (not code): still posts 205 passed/4 ignored and 175,329/2,646 rank 0 + 170,544/2,637 rank 1, 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 description also names load_mxfp4_experts, which the prose lens says no longer exists in the tree after the recipe split (ignition/components reduced to the 12 Helios-ABI modules per AGENTS.md). Violates AGENTS.md evidence rules but is documentation, not architecture.

#6 [high] Testability of #332 — CI gap and why hardware adds little

CI: heliopause is NOT covered. search_code path=.github/workflows pattern=heliopause -> no matches. native-serving.yml (:45-77) runs cargo test --locked --release for eos, selene, selene-manager, helios (--features runtime-core,server), flare-cli, flare only. So the 221/5 heliopause result is hand-run. Note docs/design-review.md's new testing hierarchy (added in the commits since my last report) says to run cargo test --locked --release on every affected crate "including heliopause, matching the native-serving workflow" — the workflow does not in fact include heliopause, and the author ran --lib in DEBUG on a host without CUDA, not --release. That is a process gap worth telling the author, not a GPU job.

RETENTION EQUIVALENCE is a code-level proof, not something hardware must show:

WHAT HARDWARE COULD ADD AND WHETHER WE CAN DO IT:

MUCH of the printed output is scheduled to change: example ordering/grouping is explicitly on the table (maintainer offer + author offer + TODO.txt:350-354 names it as the thing the pending measurement decides), and the granule-edge over-report may change too. Testing the current example lines would measure output that is likely to be rewritten.

#3 [medium] Semantics + test-gap details for #332

Note for the pre-test report: "occurrences" semantics. reachability.rs:147-188 — blob caches the miss list keyed by (data, numeric) and REPLAYS it for every site (every node/argument with identical bytes). So occurrences = (misses per unique blob) x (number of call sites sharing those bytes). Rank 0 reported 175,329 occurrences over 2,646 distinct addresses ≈ 66 replays per distinct address across thousands of nodes. Consequence: "occurrences" is NOT a count of distinct bad arguments and must not be read as severity/volume. Any future test plan must assert distinct-address counts, not occurrences.

Also note for the eventual post-fix test: examples are chosen in first-seen order (order field + sort_unstable_by_key, :222-224), capped at UNRESOLVED_EXAMPLES=10 (:75), with no ranking by rarity. With thousands of benign candidates the ten printed examples are systematically uninformative — the maintainer's suggestion of "one example per kernel symbol" addresses this. A regression test should assert that a rare candidate is reachable in the output (e.g. per-symbol grouping), not just that ten lines print.

Alignment fix caution: deleting in_free_block while keeping !candidate(...) silently stops reporting inactive-range values (candidate returns true for them). Test :902-916 pins the reporting half, so the fix must return a classification (Live/Inactive/Gap) rather than a bool, and the alignment filter must apply to the reporting decision only — retention must not change.

Granule mismatch (correctness S1), my verification: capture.rs:1410-1423 rebuilds allocations via live_pieces (:1196-1240) which rounds each hole inward to allocation.alignment (:1211-1212), so retained live pieces still cover the raw hole's unaligned edges; but Reachability::new at capture.rs:3074 gets raw request.inactive and candidate checks that raw list FIRST (:131-135). So a value inside a live retained piece but inside the raw hole edge is reported as "outside every live recorded allocation" — false. Existing tests all use granule-aligned holes (reachability :908 hole 0x3000..0x3100; :943 hole 1024..3072 in 4096-byte alloc; capture.rs:4545 test holes 0x1080/0x1380 with granule 0x100) so none exercises an unaligned edge. Fix belongs together with the "one rule, one place" refactor.