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.