#1 [high] Change: PR #728 scope, size, and the stale-base caveat in diff tooling
PR #728 "heliopause,ignition: enforce export reachability, owned warmup pools, native ForwardCache hashing, and Triton AOT guard contracts" by lukealonso (COLLABORATOR), opened 2026-12-04, head 71af7c9, base main, ready for review, no reviews, no comments, CI pending.
Real changed-file list (pr_files, 24 files, +1571/-85):
- docs/TODO.txt +6, docs/preparation-development.md +4/-1, docs/runtime-core-design.md +8/-2
- heliopause/build.rs +3/-1
- heliopause/src/export/binding.rs +12/-4, capture.rs +4/-1, reachability.rs +738/-27, source_identity.rs +36/-1
- ignition/preparation: aot.py +32/-23, capture.py +45/-7, compile_pool.py +12/-6, core_storage.py +12/-0, forward_metadata.py +3/-1, inductor_tuning.py +49/-5, rebuild_manifest.py +2/-1, source_identity.py +111/-0
- tests/preparation (8 files, +494/-5): test_capture_cublas_workspace_cuda.py +134, test_capture_stream_isolation.py +45, test_compile_pool.py +55, test_core_storage.py +25, test_forward_cache_sources.py +39/-4, test_guard_code.py +91, test_inductor_prepared_winners.py +90, test_source_identity.py +15/-1
CAVEAT (verified): the repository snapshot's main ref is far behind the PR's base. pr_diff (whole-PR and per-file) therefore mixes in dozens of unrelated already-merged upstream changes. Evidence: whole-PR pr_diff returned 2,145,065 chars and touched AGENTS.md, docs/api.md, docs/cli-design.md, .github/workflows/helios-lifecycle.yml, .github/workflows/native-serving.yml — none of which are in pr_files. Individual per-file diffs are contaminated too: e.g. per-file pr_diff of ignition/preparation/aot.py shows _b12x_forward_env, _atomic_write_file, _CORRUPT_ARTIFACT_ERRORS, while those symbols do NOT exist on the local main ref (search_code ref=main -> no matches) yet exist at PR head (aot.py:65,74,85,287,879,899,1187,1378) — they are upstream work, not this PR. Same for core_storage.py's Jetson GA10B EXTERNAL_FLOOR 0x900000000/DEVICE_BASE 0x0c00000000 + WindowsHostRegion->HostVmmRegion rename + _host_error/host_vmm layout fields (pr/728 core_storage.py:66-74,107-111,514) which the PR description never mentions.
=> Use pr_files (+/- counts) as the authoritative change list; per-file pr_diff cannot be trusted for "undeclared changes" analysis.
Also unreliable: search_history fails on every ref ("git: error: Could not read c513e46a79f3b6ac510235aaf09bcf055b841958"), and the orientation packet's "Commits on the default branch since this PR branched (cc0a49d): none" is contradicted by this staleness.
#2 [high] Change: distinguishing PR #728's own hunks from stale-base noise (per file)
Condition resolved. Local copy's main is far behind PR #728's real base, so per-file pr_diff hunks include already-merged upstream work. Identified noise (NOT this PR) with evidence:
- ignition/preparation/core_storage.py: Jetson GA10B
EXTERNAL_FLOOR 0x300000000 -> 0x900000000,DEVICE_BASE 0x1200000000 -> 0x0c00000000,WindowsHostRegion->HostVmmRegion(+reserved=flag), new_host_vmm/_host_reserved/_host_errorlayout fields, 6-argflare_core_initialize_window= merged PR #658 ("raise GA10B external floor, reseal unified-memory capture window, warm addmm") and/or the host-VMM work. PR's real core_storage change is exactly +12/-0:self._warmup_pool = None(pr/728 core_storage.py:78) anddef warmup_pool()(pr/728 core_storage.py:309-317). - ignition/preparation/capture.py:
addmm/bias seeding inside_seed_warmup_workspacesand theseal_lowprobe-capture /warmup_storage.seal_low_window()blocks (pr/728 capture.py:209-224, 263-266) are #658 ("warm addmm", "reseal unified-memory capture window"; #658 comment cites capture.py:173-184,226-227 for seal_low_window). PR's real capture.py change is +45/-7. - ignition/preparation/compile_pool.py:
_SMALL_INTEGRATED_*constants,CompilerResources.min_worker_bytes,small_integratedbudget path = merged PR #671 "Scale Ignition preparation memory budgets for <= 16 GiB Linux integrated devices" (kbenkhaled). Real change here is theextra_rootspropagation. - ignition/preparation/aot.py:
_b12x_forward_env,_atomic_write_file,_save_compiled_function,_CORRUPT_ARTIFACT_ERRORS+ corrupt-artifact discard in_load= merged PR #668 ("harden ForwardCache"; #668 review comment names "ForwardCache._load narrowing & atomic-write consolidation (ignition/preparation/aot.py, ignition/preparation/compile_pool.py)"). Real aot.py change is +32/-23 (guard pickler CompiledKernel rejection,_sanitize_static_bundlecall in_load_inductor,forward_source_identityinForwardCache.__init__). - heliopause/src/export/binding.rs: the entire
async_transfersresolution block inexecution()and theweights/scalesnull skip = merged #711/#720 work. Real binding.rs change (+12/-4) isexport_source_identity(..., excluded_files=None)and theexcluded.extend(files)body. - heliopause/src/export/capture.rs:
validate_external_extents+output.external_extents+ test = merged #720 ("unify RankBody and RankOutput payload visitors for external_extents"). Real capture.rs change (+4/-1) isreach.graph(&graph.name, ...)and thereach.unresolved_report(...)stderr loop (pr/728 capture.rs:3417-3419). - heliopause/src/export/reachability.rs: the
execution.async_transfersreferencing block (pr/728 reachability.rs:140-148) is #711 noise. Real change = the ~738-line unresolved-candidate machinery. - docs/runtime-core-design.md: green-context/codec, KV plane eligibility, handle-count and async-transfer paragraphs are upstream noise; the PR's own +8/-2 are the two reachability sentences (design doc line ~163-170 "Argument-relative 8-byte-aligned kernel-argument values ... reported on stderr per rank" and the stderr-rows line ~360).
Conclusion: the PR description's file-by-file account matches pr_files +/- counts closely; I found no undeclared functional change in the PR itself. The only genuinely "undeclared" thing is a doc-side effect: docs/runtime-core-design.md edits sit next to upstream text, and docs/TODO.txt adds a new follow-up item for measuring the diagnostic.
#3 [high] Related work: #332 (open) is exactly the reachability third of #728, by mark-yong not lukealonso
#332 (open, pr) "Report unresolved kernel argument address candidates during export", by mark-yong (CONTRIBUTOR), opened 2026-11-18, last updated 2026-11-30, head 38805ba3, branch fix/reject-unrecorded-graph-args, +756/-30 over 4 files: docs/TODO.txt (+6), docs/runtime-core-design.md (+8/-2), heliopause/src/export/capture.rs (+4/-1), heliopause/src/export/reachability.rs (+738/-27). Refs #266. Labels: area:preparation, enhancement, triage:review.
=> These four file/line counts are EXACTLY the reachability block of #728 (pr_files lists the same four files with the same +6, +8/-2, +4/-1, +738/-27). So the reachability third of #728 is #332's work, carried over wholesale. => #728's description says "integrates #332 by @mark-yong" / "Incorporates #332", and #728 does NOT list #332 in "Closes" (only #724). #332 remains OPEN with unresolved review state as of 2026-11-30. Open question for a reviewer: whether #332 will be closed as superseded by #728 or whether mark-yong's authorship/trailers survive the transfer.
#332 review history (all by yatesdr, maintainer voice, CHANGES_REQUESTED three rounds):
- Round 1 (2026-11-18): blocking = printed raw CUfunction handle instead of symbol; printed on every rank with no rank label (progress output is rank-0 only, capture.rs:2774-2778); first-ten examples are all noise; noise on real exports unmeasured; missing Signed-off-by (CONTRIBUTING requires it). Should-fix: dedup untested; print block untested; duplicated test.
- Round 2 (2026-11-19): symbol, rank label, one example per address, sign-off fixed. Still blocking: no export had run. Also asked to state which kernels actually produce the false positives (cuBLASLt vs W4A8 confusion vs #266), and to report values inside inactive ranges; and a bookkeeping note that storing node.function index removes a kernel_symbols handle map.
- Round 3 (2026-11-20): blocking = report only argument-relative offsets divisible by 8 (
scanslid data.windows(8) byte-by-byte, so offset 4 windows from two fields were reported; #266's real stale args sit at offset 256 of a 384-byte parameter and offset 0 of argument 1); state the inactive rule once; add a straddling-window test; fix commit-message/description disagreement. - mark-yong posted a Measured export: 2-GPU SM120 DeepSeek-V4-Flash-Vision-Exp-lossless-CSF; pre-alignment-filter 175,329 occurrences / 2,646 distinct (rank 0) and 170,544 / 2,637 (rank 1); after alignment filter at 1ac7073d: 22,618 / 762 (rank 0) and 19,417 / 832 (rank 1). Examples dominated by mHC/Cutlass kernels, values like 0xfff000003ff, 0x100000000800. He explicitly said he cannot reproduce #266's four-GPU DeepSeek V4.1 failure (only 3 RTX PRO 6000 GPUs).
- Autobot reviews also flagged that inactive ranges are raw while live intervals are granule-trimmed via live_pieces (capture.rs:1196-1240, applied 1408-1423), so the report can describe a retained edge byte as "outside every live recorded allocation".
- #332 Limitations (as posted): unaligned values, values outside the envelope, and stale values aliasing live storage are NOT reported; the ten-line stderr sample was not re-captured on GPU after per-symbol prioritization; four-GPU DeepSeek V4.1 (#266) and eight-GPU W4A8 MoE exports remain unrun.
#728's docs/TODO.txt hunk inherits exactly this open measurement item ("[ ] Measure the unresolved kernel-argument diagnostic on a four-GPU DeepSeek V4.1 export (issue #266) and an eight-GPU W4A8 MoE export ... Close when both exports have run ..."). => Tension to record: the diagnostic that #728 adds is known, from #332's own measurements, to print ~762-832 distinct addresses and ~19-22k occurrences per rank on a real 2-GPU export; #332's reviewer worried it "can show only noise". #728's description claims it "reports exact graph, kernel, argument offset, and candidate details" (true) but says nothing about the noise volume.
#4 [high] Related work: #606 (open, Ready To Merge) and #574 (open) are carried verbatim into #728, neither closed
#606 (OPEN, pr) "fix(ignition): seed warmup workspaces inside export storage pool", by avifenesh (FIRST_TIME_CONTRIBUTOR), opened 2026-11-29, updated 2026-11-29 18:03, head 8c1a28a, +191/-8 over 5 files: docs/preparation-development.md (+4/-1), ignition/preparation/capture.py (+16/-7), ignition/preparation/core_storage.py (+12/-0), tests/preparation/test_capture_cublas_workspace_cuda.py (+134/-0), tests/preparation/test_core_storage.py (+25/-0). Autobot recommendation on final head 8c1a28a: Ready To Merge, 0 blockers.
=> #728's own diffstat for the same five files contains exactly these numbers (docs/preparation-development.md +4/-1, core_storage.py +12/-0, test_capture_cublas_workspace_cuda.py +134/-0, test_core_storage.py +25/-0), with capture.py +45/-7 = #606's +16/-7 plus the PR's own _seed_auxiliary_workspaces and imports. So #606 is carried in verbatim-plus-additions.
=> #728 says it "integrates rebased #606 by @avifenesh" but does NOT close #606, which stays open and merge-ready. Same pattern as #332.
#606's concrete failure (root cause worth citing): during native runtime-core export on unified-memory GPUs (observed on GB10/DGX Spark), prepare_allocations in heliopause/src/export/capture.rs rejected the unowned VMM MemPool segment after full forward compilation and graph capture with:
error: native core export failed: external allocation 0x4000000000+2097152 is not device memory in the serving context (memory 2, context 0x0, recorded context Some(125396576), serving context 0x7796660)
Cause: _seed_warmup_workspaces allocated its 2 MiB operand + 32 MiB cuBLASLt workspace inside a module-level torch.cuda.MemPool() outside CoreStorage ownership. Fix: CoreStorage.warmup_pool() backed by self._allocator.allocator(), registered in self._preparation_pools.
#606 history: #331 (Isolate cuBLAS warmup workspaces from CUDA graph capture, merged) fixed #266 on the capture-stream side; #606 is its follow-up for export ownership.
#606 evidence: GB10 (spark-b23d) FLARE_RUN_CUDA_TESTS=1 pytest over six preparation test files -> 36 passed, 1 skipped; reversed-order run of test_capture_cublas_workspace_cuda.py -> 2 passed; end-to-end on multiple full 75-/79-graph Qwen3.8 runtime-core exports on GB10. Limitation: single-GPU GB10 (SM 12.1) only; multi-rank not re-measured.
=> Cross-check for #728: #728 says the same container is "Verified on SM120 with real CoreStorage + RuntimeCore.write() ... while leaving _capture._warmup_pools empty" — i.e. #728 re-verified #606's claim on different hardware (SM120 vs GB10/SM121) and offers no GB10 end-to-end export. #728's Limitations admit "Full-model GB10 (SM121) Inkling2 / GLM-5.3 exports ... were not executed on this host."
#574 (OPEN, pr) "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization", by fordbmorris (FIRST_TIME_CONTRIBUTOR), opened 2026-11-28, updated 2026-12-02 06:39, head acbab08, +54/-1 over 2 files (forward_metadata.py +1/-1, test_guard_code.py +53/-0). Labels area:preparation, bug, priority:P2, triage:review. Autobot: Changes Requested x3, single remaining blocker = no pytest recorded on head acbab08 (only py_compile).
=> #574 is the origin of _uses_custom_object_state needing to see external recipe packages. Its 1-line fix adds a literal 'hyperflare_recipes.' to the prefix tuple and explicitly defers the rebuild_manifest.py:365 twin check to maintainers. #728 "generalizes #574" by replacing both literals with prepared_module_roots() derived from bound source_roots() — which is also the fix for the deferred twin. #574 stays open (not closed by #728).
=> #574 caveat recorded: it verified on ARM64 GB10 and end-to-end 4-Spark TP4 Inkling 2 Small exports. #728 explicitly says TP2/distributed Inductor CUDA tests and GB10 exports were NOT run. So on the one axis #574 did verify (GB10 TP4 real export), #728 presents no evidence of its own.
=> #574's Autobot review declined a ContextVar-based approach precisely because CompilePool spawns workers with SubprocKind.SPAWN (compile_pool.py:154-156) so parent ContextVar bindings are not inherited, "unless threaded through CompilePool and cross-rank lending RPCs". #728 does exactly that threading: extra_roots is passed to CompilePool.submit(_compile_forward, ..., extra_roots) and re-bound inside the worker via bind_source_roots(extra_roots) (pr/728 compile_pool.py:180-184, 128-145). This is a direct answer to a review objection raised against #574.
#5 [high] Claims: #724 root cause, the unrun GB10 end-to-end proof, and the unconfirmed "pre-existing failure"
#724 (OPEN, issue) "failed to export inkling-2-mini on GB10", by terryaic, opened 2026-12-04 11:33, updated 2026-12-04 17:30. Labels: area:preparation, bug, priority:P2, triage:investigate. Zero comments. This is the only item #728 claims to close ("Closes #724").
Reproduction: ignition export /home/terry/models/thinkingmachines/Inkling-2-Mini on GB10. Phases: "Prepare and tune kernels" 1002s OK, "Compile model forwards" 162/162 4496s OK, then "[FAILED] Warm compiled forwards. 0/162" after 67.8s with:
error: preparation failed: PicklingError: Can't pickle <class 'triton.compiler.compiler.KernelMetadata'>: attribute lookup KernelMetadata on triton.compiler.compiler failed
Also logged: torch/_inductor/utils.py:1806 Not enough SMs to use max_autotune_gemm mode.
=> The failure is in warmup, not compilation — i.e. the guard/pickle.dumps path, exactly the surface #728's _GuardPickler CompiledKernel TypeError and _sanitize_static_bundle target. But #728 does NOT claim to fix the KernelMetadata pickling itself; it claims to make non-static results pruned/rejected earlier with a clearer TypeError and to reject guarded CompiledKernel references at guard-serialization time. Whether #728's change makes #724's export succeed is not demonstrated: #728's own Triton 3.8.0 evidence is unit-level ("pickle.dumps(compiled.metadata) raises PicklingError" confirmed; guard roundtrips pass) and it explicitly says full-model GB10 Inkling2 exports were NOT run. The Substack of #728's TRITON work is also attributed to companion PRs #163/#151 in local-inference-lab/hyperflare-recipes (the PreparedResidualMix triton_prepared boolean tracking), i.e. the actual Inkling2 fix likely lands outside this repository.
=> Related: #574 was verified on "end-to-end 4-Spark TP4 Inkling 2 Small exports" on ARM64 GB10, which is the closest existing evidence for the Inkling2 path; #728 supersedes that work textually without reproducing that run.
Process/verification notes on #728:
- State: open, "ready for review" (not draft), head 71af7c9, opened and last updated 2026-12-04, CI pending on head. Labels: none. Reviews: none. Comments: none (pr_comments returns "No comments"). So zero human engagement so far, despite incorporating three other people's PRs (#332 mark-yong, #606 avifenesh, #574 fordbmorris) and two companion repos' PRs.
- Author claims in the PR body contradict one CI fact it cites: it says ".github/workflows/python-cpu.yml already runs
cargo test --locked --release --manifest-path heliopause/Cargo.toml --libsince 1da22724" — VERIFIED: pr/728 .github/workflows/python-cpu.yml:34-41 does run exactly that, and :30-33 runs the full CPU pytest suite (CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q). So the Heliopause Rust reachability tests and the new Python tests do get CI coverage, unlike earlier Autobot reviews of #332/#574 that said no CI existed. - The "1 pre-existing unrelated failure" #728 admits:
tests/preparation/test_runtime_triton.py::test_replaces_stock_architecture_probe_with_pointer_width_key. VERIFIED that test exists at pr/728 tests/preparation/test_runtime_triton.py:82-93 and asserts stockplatform_key() == "x86_64,Linux,64bit,ELF"and the patched one == "x86_64,Linux,64bit" — i.e. exactly the behaviour #728 says stock Triton 3.8.0 returns. Nothing in the file reads as broken, and the test was rewritten by merged #624 specifically so it passes under the pinned torch/Triton. So #728's claim that it fails standalone is unconfirmed and looks stale/mistaken; treating it as pre-existing is at minimum unexplained.
#6 [high] Related work/People: open-PR collisions on the same files and the uncosed origin PRs
- PR #728's body states its own provenance transparently: "integrates #332 by @mark-yong", "rebased #606 by @avifenesh", "generalizes #574 by @fordbmorris", "together with local-inference-lab/hyperflare-recipes#163 / #151". It does not claim original authorship of those parts, which is a point in its favour.
- BUT: none of #332, #606, #574 is listed under "Closes", and all three are still OPEN and in a mergeable-or-near-mergeable state (#606 Autobot "Ready To Merge", #574 one blocker = missing pytest on head, #332 Autobot "Ready To Merge" at 38805ba). If #728 merges, three contributors' PRs carry the same content and will need closing by hand. That creates duplicate-authoring/attribution handling and a three-way review-state collision — the exact situation the charter's "Respect contributors / Priority contributors carry extra weight" line speaks to (charter: every PR judged on merits; @lukealonso is a named priority contributor, mark-yong/avifenesh/fordbmorris are CONTRIBUTOR/FIRST_TIME_CONTRIBUTOR).
- #332's author (mark-yong) has three rounds of maintainer review by yatesdr, including a demand for real-export noise measurement and the argument-relative 8-byte alignment filter. #728 carries #332's final content (identical diffstat) — i.e. #728 inherits #332's resolved review history but shows no sign of yatesdr having reviewed the combined PR. yatesdr appears to be the maintainer most invested in heliopause export reachability.
- Overlap on the same files with other OPEN work (coordination/conflict surface, not duplication):
- ignition/preparation/aot.py + compile_pool.py: open #710 (original-el8, COLLABORATOR, draft), #597 (brandonmmusic-max), #639 (original-el8), #678 (brandonmmusic-max), #314.
- ignition/preparation/capture.py: open #723 (lukealonso, same author, same day), #710, #606.
- ignition/preparation/inductor_tuning.py: open #642 (jcartu) — #642 rewrites
InductorSelections.registeraround lines 165-175 and adds_filter_static_autotunersin device_binding.py; #728 adds_prune_static_compile_results/_sanitize_static_bundleat inductor_tuning.py:21-65 and calls them from_selected(:71),_snapshot(:108) andfreeze(:366). Both touch the same freeze/register lifecycle; Autobot told #642 that whichever merges second hits a trivial conflict at :168-174 with #597. - ignition/preparation/source_identity.py: open #678 rewrites the
_EXTRA_ROOTSaccessor story (current_source_roots()public accessor; replaces direct_EXTRA_ROOTSimports in aot.py and rank_group.py). #728 addsprepared_module_roots()/is_prepared_object_module()/forward_source_identity()in the same file AND continues to import private_EXTRA_ROOTSdirectly (pr/728 aot.py:902, compile_pool.py:172). So #728 pre-empts #678's encapsulation, including its stated goal of "zero references to _EXTRA_ROOTS outside source_identity.py". #678 is at Autobot "Ready To Merge". - heliopause/src/export/reachability.rs: #332 (open) exactly overlaps; merged #711/#507/#431 are ancestors.
- heliopause/src/export/capture.rs: open #723 (same author), #332, #314.
- #723 (same author, opened the same day) also touches ignition/preparation/capture.py and heliopause/src/export/capture.rs, so the author has two concurrent PRs over the capture path; #727 is a third same-day PR (helios only). Author velocity: 51 merged PRs in 180 days, 2 open besides this one.
#7 [high] Project fit: charter/roadmap mapping, and the doc/description mismatches
Charter (read_charter) facts that bear on #728, quoted:
- "Solve the right problem in the right place ... Look for the smallest footprint in shared code ... Good ideas in the wrong place will be declined" — #728 puts the hashing in Heliopause Rust (
export_source_identity), the pool inCoreStorage, and derives recipe module prefixes from boundsource_rootsinstead of hardcoding package names, which is explicitly the "no hardcoded recipe names in core Ignition" argument the PR makes. This lines up with the charter. - "Keep the runtime small and model-agnostic. Ignition writes the recipes that handle model computation ... shouldn't accumulate per-model branches (#267, #334)." #728 adds no model branches; it removes two hardcoded package-name tuples ('ignition.', 'b12x.' -> prepared_module_roots()). Lines up.
- "Bring real evidence. Performance PRs need benchmarks ... Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." -> #728's
_prune_static_compile_resultsoffers a "prune silently when require_single=False and some static results survive" path (inductor_tuning.py:39-44) and_load_inductorin aot.py:124-131 now sanitizes non-frozen bundles too. That is a documented pruning of unreferenced/non-static candidates rather than an error-swallow, and #642 independently established that dropping unreferenced static_autotuners is sound. Still, a reviewer should note this is a behaviour change on the non-frozen load path where previously nothing was pruned. - "Support SM103, SM120, SM121" for preparation/serving. #728's hardware evidence is SM120 only (RTX PRO 6000 Blackwell Max-Q); SM121/GB10 (the #724 and #606 target) and SM103 are explicitly untested by this PR, and Windows/GA10B are untouched.
- "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #728 addresses reproducible bugs (#724, #606's GB10 export error, #266's diagnostic) — it fits. But #724's fix may depend on the companion recipe-repo PRs (#163/#151), so the in-repo contribution is guard/diagnostic enforcement rather than the end-user fix.
- "Captured-graph op contracts: adding a new one requires owner approval." #728 adds none.
- "PR descriptions: expect four parts — why, what changed, claimed result, evidence." #728 has all four, with a "Supporting evidence and limitations" section — fully conforming; among the better-formed descriptions seen in related PRs.
- "Code Review Standards: Supported matrix & compatibility ... verify that existing data, artifacts, and exported cores still load." Relevant risk: #728 changes the
ForwardCachecache key derivation (now a singleforward_source_identitydigest under keyb'\0sources\0'), so every existing compiled-forward cache directory is invalidated once (full recompile of all forwards). Theexcluded_filesmechanism must reproduce exactly the old exclusions or caches forprogress.py/__main__.py/cli files will start invalidating. Alsoheliopause/build.rsnow hashes.cpp/.hppintoFLARE_HELIOPAUSE_SOURCE_IDENTITY, which feedsbuild_source_identity()and thereforesource_identity()— so adding a.cppfile anywhere under heliopause/src (even unreferenced) changes the export compatibility identity of every prepared core. Verified: binding.rs:1170-1176 sets helios/heliopause dict from env!, and source_identity.py:205-208 mixes them; heliopause/src currently contains no .cpp files (list_files heliopause/src/**/*.cpp -> none), so the immediate effect is null. - Roadmap: nothing in the roadmap covers export reachability or preparation cache identity directly; the closest is "FlashInfer dependency fix (#215)" (untouched) and "Engram & shared Engram tables (#267)".
Docs changes actually made by this PR (verified against pr_files counts):
- docs/runtime-core-design.md +8/-2: two sentences only — the non-blocking per-rank stderr diagnostic for argument-relative 8-byte-aligned unresolved kernel-argument values (~line 163-170) and the stderr-rows sentence (~line 360). Everything else in the per-file diff is upstream noise.
- docs/TODO.txt +6: one new open item requiring 4-GPU DeepSeek V4.1 (#266) and 8-GPU W4A8 MoE measurements before closing.
- docs/preparation-development.md +4/-1: the cuBLAS warmup workspace sentence now names
CoreStorage.warmup_pool()(~line 88-94). - NOT documented anywhere in this PR: the new
_seed_auxiliary_workspacesgraph-pool seeding for the scratch arena's_auxiliary_stream(pr/728 capture.py:80-110, called at :156). Its docstring covers intent but no docs/ statement was added — the PR body claims "Updateddocs/preparation-development.md" for the auxiliary-seeding half too, and that is only true for the warmup_pool sentence. This is the one description-vs-change mismatch I found (small). - Also NOT documented: the new
ForwardCachecorrupt-artifact discard / atomic-write consolidation that rides along in aot.py (upstream #668 content, so not #728's omission, but a reader of the PR will see it in the diff).
#9 [high] Change: what #728 actually does, in plain terms, part by part
Plain-terms account of the four independent things PR #728 does (each verified in the code at pr/728):
A. Export reachability diagnostics (Rust, heliopause; = #332's work, 738 lines of reachability.rs).
Reachability::pointer becomes candidate -> returns whether a scanned 8-byte value resolved to a live recorded allocation (reachability.rs:159-180). scan keeps its byte-by-byte retention walk but, for kernel-argument blobs only, records misses at argument-relative 8-byte-aligned offsets into a per-blob cache and a HashMap<address, {first site, order, occurrences}> (reachability.rs:200-260, 340-450). unresolved_report(functions) emits one summary line, up to UNRESOLVED_EXAMPLES = 10 example lines prioritizing one address per distinct kernel symbol, and a trailing omitted-count line (reachability.rs:236-340). capture_rank prints them to stderr prefixed export: rank N: after graph serialization (capture.rs:3417-3419). It is NON-BLOCKING: nothing fails. Duration: tracks #266 since 2026-11-11, PR since 2026-11-18.
B. Owned warmup pool + auxiliary-stream seeding (Python; the pool half is #606 verbatim, the auxiliary half is new here).
CoreStorage.warmup_pool() lazily creates one torch.cuda.MemPool(self._allocator.allocator()) and registers it in _preparation_pools (core_storage.py:309-317). capture_forwards seeds the warmup-stream cuBLAS workspace in it when the storage exposes it, else keeps the 2-arg module-pool path (capture.py:151-156). New _seed_auxiliary_workspaces seeds mm/addmm/bmm on the scratch arena's _auxiliary_stream inside warmup_storage.graph_pool (capture.py:80-110, 156). Fixes: cuBLASLt workspaces landing outside declared core mappings (#606's GB10 export error) and auxiliary-stream workspaces landing in transient warmup storage that is unmapped after warmup.
C. Native source hashing for the AOT forward cache.
forward_source_identity() (source_identity.py:53-136) mixes flare_heliopause.export_source_identity digests for ignition, flashinfer-python, flashinfer data/include, flashinfer data/csrc (with a wheel-layout fallback), and each bound extra root; .cpp/.hpp added to the Rust collector (source_identity.rs:48) and to build.rs:143-146; export_source_identity grew an excluded_files argument (binding.rs:1149-1168). ForwardCache.__init__ replaces its rglob('*.py') loop with this digest, mapping the old _COMMAND_SOURCES/_PUBLICATION_SOURCES exclusions onto excluded directories vs files (aot.py:902-918).
D. Triton AOT guard contracts + generalized prepared-module roots.
prepared_module_roots()/is_prepared_object_module() (source_identity.py:31-50) replace the two hardcoded ('ignition.', 'b12x.') tuples in forward_metadata._uses_custom_object_state and rebuild_manifest.weight_views. CompilePool.submit_payload snapshots bound _EXTRA_ROOTS and _compile_forward rebinds them in the spawned worker (compile_pool.py:128-145, 172-181). _prune_static_compile_results/_sanitize_static_bundle (inductor_tuning.py:21-65) reject or prune non-StaticTritonCompileResult entries, called from _selected (:71), _snapshot (:108), freeze (:366) and aot._load_inductor (:126-131, now on the non-frozen path too). _GuardPickler.reducer_override raises a TypeError on a triton.compiler.CompiledKernel (aot.py:223-229).
Size/shape: 24 files, +1571/-85, of which ~+790/-33 Rust heliopause and ~+494 tests. No CLI flag, no config key, no default changed.
Not in the description: (i) the new _seed_auxiliary_workspaces has no docs/ statement although the body implies docs were updated for it; (ii) aot._load_inductor now sanitizes non-frozen bundles, which is a behaviour change on the peer-rank load path; (iii) forward_source_identity raises RuntimeError when FlashInfer data/{include,csrc} are missing under a data/ that exists, whereas the old source_identity() path raised the same error, so no relaxation — but it does silently accept a layout where data/ is absent and include/csrc sit beside the package.
In the description but effectively thin: "export reachability failures report exact graph, kernel, argument offset, and candidate details" — accurate, but the reachability item is a diagnostic; it never fails an export, unlike #266's own request for a failing/rejecting check.
#10 [high] Recent activity and People/Community: what changed in these files, who works them, zero engagement
Recent activity in the areas #728 touches (all verified as already merged and in the PR's base, which is why they show up inside per-file diffs):
- #668 (merged, lukealonso, same author) "reconcile divergent multi-host selections, propagate peer b12x env and kernel cache, and harden ForwardCache" — produced
_b12x_forward_env,_atomic_write_file,_save_compiled_function,_CORRUPT_ARTIFACT_ERRORSand the corrupt-artifact discard now visible inside aot.py. #728 builds directly on it: it reuses_save_compiled_functionincompile_pool._compile_forwardand extends the same source-identity story from.pyto native sources. So #728 is the third in the author's own ForwardCache-hardening series (#668 -> #728), and #668's own review comment is where the atomic-write/_load narrowing was argued. - #671 (merged, kbenkhaled) small-integrated memory budgets —
_SMALL_INTEGRATED_*andCompilerResources.min_worker_bytesin compile_pool.py; #728'sextra_rootsparameter is added alongside without touching it. - #658 (merged, lukealonso) GA10B floor + seal_low_window probe capture + warm addmm in capture.py/core_storage.py — the noise inside those files. #728 adds to the same functions (
_seed_warmup_workspacesnow has bias/addmm from #658 and the newpoolparameter from #606/#728). - #670 (merged) propagated peer source roots into rank_group._peer (aot.py/rank_group.py); #678 (open) generalizes that to
current_source_roots(). #728's CompilePool propagation is the third site in this same "ContextVar does not cross spawn" family and is the one nobody else had covered (process pool workers). - #711/#720 (merged, lukealonso) AsyncTransfer/external_extents — the noise in heliopause binding.rs/capture.rs/reachability.rs; #728's reachability change only touches the
reachability.rsscan/report path, and the async_transfers referencing block it shows is #711's. - #624 (merged) fixed the two CPU-test premises so
.github/workflows/python-cpu.ymlcan be green; #608 (merged) added that workflow. Both are prerequisites that make #728's test claims checkable in CI. No merged change in the touched files reverses or conflicts with #728; the PR is additive to its base. The orientation packet's "recent activity: not available (git error)" and "commits on default branch since branch point: none" are both artefacts of the stale localmain; the real picture is heavy same-day and same-week churn in these exact files, largely by the same author.
People:
- Author lukealonso: COLLABORATOR, named priority contributor in the charter, 51 merged PRs in 180 days, 2 other open (#727, #723). Areas: helios/src (36), docs (31), ignition/preparation (20), tests/preparation (15), flare-cli/src (14). Same-day merged PRs #716, #720, #721 and #723/#727 open the same day as #728 — very high velocity, and #728 is the largest of the batch.
- Who else works these files: original-el8 (COLLABORATOR; #710, #639, #425, #431), brandonmmusic-max (#597, #678), kbenkhaled (#671, #669), voipmonitor (priority contributor; #120, #110, #462, #479, #559), yatesdr (heliopause export reviewer, #332, #367, #504, #527), mark-yong (#332, #331, #185), avifenesh (#606), fordbmorris (#574, #576/#577).
- Engagement on #728 so far: none. Zero comments, zero reviews, zero reactions, no labels, CI pending. That is notable because #728 is a 1,571-line change that carries three other contributors' PRs, and because #332 (one third of it) had three rounds of CHANGES_REQUESTED from yatesdr, #606 was reviewed twice by Autobot to "Ready To Merge", and #574 has an open Autobot blocker. #728 has drawn less scrutiny than any of its parts.
#11 [high] Why: the four problems, how long and how widely wanted, and which orientation leads matter
The four problems #728 addresses have separate, well-documented histories; three of them are reproducible-bug reports with hardware evidence, which is what the charter requires ("What gets merged: ... a reproducible bug, a measured memory/perf issue").
- Export reachability (#266, OPEN, P1, calvarado2004, 2026-11-11): DeepSeek-V4.1-Flash-1017 TP4 on 4x DGX Spark GB10 crashes with Xid 31 on the first prefill8192 prompt; root cause traced by decoding
graphs.safetensorsto 10 kernel arguments holding0x812d3a00000, a 104 MiB gap between recorded allocations, innvjet_..._splitK_TNNN(offset 256 of a 384-byte param) andcublasLt::splitKreduce_kernel(argument 1). The 4096 default is exposed but survives by aliasingdevice-547. #266 explicitly ASKED for an export-time rejecting check ("Record these values with their context ... and fail the export with a list"), and offered an out-of-tree script. Priority-1 triage by original-el8 (2026-11-13). It has been open ~3.5 weeks; #331 (merged) fixed the workspace lifetime in Ignition, and #332/#728 supply the diagnostic — but #728's version is non-blocking and prints rather than rejects. - Unowned warmup pool (#266's follow-up; #606, OPEN, avifenesh, 2026-11-29): the 2 MiB/32 MiB seed landed in a module-level MemPool and GB10 export failed with "external allocation 0x4000000000+2097152 is not device memory in the serving context". Reproduced on real GB10 hardware and validated end-to-end over full 75-/79-graph Qwen3.8 exports.
- Python-only ForwardCache hashing: no issue is cited for this. It is an inference drawn from the code (aot.py's
rglob('*.py')on main), and the PR's evidence is a unit test that editskv_codec_gpu.cu, FlashInferdata/csrc,data/include, and a bound recipe root's.cu/.cpp/.hppand assertsForwardCache.rootchanges. Impact argument: Ignition, FlashInfer, and external recipes all ship CUDA/C++ sources that affect compiled-forward behaviour. So this is the one part of the PR without an external bug report behind it. - External recipe guard pickling (#724, OPEN, P2, terryaic, opened 2026-12-04 — the same day as this PR): Inkling-2-Mini export on GB10 fails in "Warm compiled forwards" with
PicklingError: Can't pickle KernelMetadata. #574 (2026-11-28) is the earlier narrower version and was verified on 4-Spark TP4 Inkling 2 Small exports. Getting from #574 to #724 spans about a week; the Inkling2 import path itself is being fixed in local-inference-lab/hyperflare-recipes#163/#151, not here. Breadth of desire: #266 is P1 and labelled model:deepseek-v4.1/area:memory/area:preparation; #724 is P2 area:preparation; #606 P2 area:preparation; #332 "enhancement, triage:review". All are on the SM120/SM121 + GB10 hardware the charter calls the project's focus ("specifically SM120/SM121 workstations and DGX Spark"). So the why is strongly aligned with the charter. The weak spot is item 3, which no user asked for and which has no measured cost (no timing/memory number, only a correctness-of-cache-key argument) — acceptable for a bug fix, but it does mean "Bring real evidence" leans on unit tests.
Orientation-packet leads followed or dismissed:
- #658, #331, #668, #671, #711, #720 (merged): NOT duplicate work — they are the base #728 sits on; their content appears inside the stale-base per-file diffs. Followed via items_touching + #658/#606/#574 review text.
- #710 (original-el8, draft): touches aot.py/capture.py/compile_pool.py/core_storage.py; its overlap with #728 is
compile_pool.pysizing andtest_forward_cache_sources.py; different purpose (host VMA coalescing, GB300). Coordination, not competition. - #597, #642, #678, #639, #314: open work on the same functions; #642 (inductor_tuning register/freeze), #597 (inductor winners keying), #678 (_EXTRA_ROOTS encapsulation) are the three with real textual collision risk. Recorded in the related-work note.
- #727, #723 (same author, same day): #723 touches capture.py and heliopause capture.rs like #728; #727 is helios-only, not relevant to this PR's content but relevant to the author's load.
- #584 (closed): "Accelerate Ignition forward compilation, kernel tuning, and warmup" — closed, not superseded by #728 content-wise.
- #695, #668, #664, #670: related via test files/env propagation; already recorded above.
- #395 (open issue, CUDAGraph.reset frees shared workspace) and #517 (closed) are referenced by #266; both are adjacent evidence that the captured-workspace lifetime family keeps recurring, but neither is touched by #728.
- #623/#624 (closed/merged): only relevant because they determine whether python-cpu.yml is green — and they make #728's "pre-existing failure" claim suspect.
- #332's Autobot case file and its "Rebased cleanly onto 0a8c20f4 (absorbing #593, #618, #507)" note: an earlier check that #332 (hence #728's third A) was clean against those merges.
#12 [high] Research summary
I gathered a case file on PR #728 (24 files, +1571/−85, open, no reviews, CI pending) covering all eight angles, with 11 scratchpad entries. The most load-bearing findings, which a reader could not get from the description:
Provenance. Three of the four "parts" of #728 are other people's open PRs carried in wholesale, with diffstats that match to the line: #332 (mark-yong, +738/−27 reachability.rs and the same four files/line counts), #606 (avifenesh, all five files and counts identical, Autobot "Ready To Merge"), #574 (fordbmorris, generalized). None of the three is in Closes; all remain open, so merging #728 leaves three contributors' work to be closed by hand. #728 does disclose this in its body, which helps.
Tooling caveat. The local main ref is far behind the PR's real base, so pr_diff (whole and per-file) mixes in dozens of already-merged upstream changes (AGENTS.md, docs/api.md, GA10B floor, HostVmmRegion, _b12x_forward_env, validate_external_extents, …). I verified this symbol-by-symbol and recorded which hunks are noise; pr_files counts are the only trustworthy change list. search_history fails on every ref.
Claims vs evidence. #724 (Inkling-2-Mini, GB10) fails in warmup pickling, and #728 offers no end-to-end GB10/SM121 or SM103 run — the one axis #574 had actually verified. #728's "pre-existing unrelated failure" in test_runtime_triton.py looks mistaken: that test exists at pr/728:82-93 and asserts exactly the behaviour #728 says stock Triton 3.8.0 returns.
Unrecorded in the description: the new _seed_auxiliary_workspaces has no docs statement; aot._load_inductor now sanitizes non-frozen bundles; forward_source_identity does not hash heliopause/src/helios/src although the description says .rs is covered; every existing forward cache is invalidated once; and prepared_module_roots() takes prefixes from source-root directory basenames, widening the "prepared object" predicate.
Collision surface: open #642 (same InductorSelections.register/freeze lines), #597 (same winner keying), #678 (the _EXTRA_ROOTS encapsulation #728 pre-empts while still importing the private name), #710/#639/#723/#314.
Charter: lines up on right-place, model-agnostic, no hardcoded recipe names, and four-part description; gaps on matrix coverage (SM121/SM103 untested) and the evidence bar for the hashing item, for which no issue exists.
#13 [high] Claims: what forward_source_identity hashes (and what it does not), plus cache-invalidation consequences
Verified by reading pr/728 ignition/preparation/source_identity.py:53-136 and heliopause/src/export/source_identity.rs:19-55, 73-100.
forward_source_identity(ignition_root, flashinfer_package, *, excluded_directories, excluded_files, extra_roots) mixes exactly five-ish labelled digests:
ignition— the whole installed ignition package minus excluded dirs/files;flashinfer.python— the flashinfer package tree minusdata/;flashinfer.include—<pkg>/data/include(raises RuntimeError ifdata/exists but a subdir does not);flashinfer.csrc—<pkg>/data/csrc;extra:<label>for each bound source root. Wheel-layout fallback: ifdata/does not exist at all, it hashes<pkg>/../includeand<pkg>/../csrcinstead (source_identity.py:117-127).
NOT hashed: helios/src and heliopause/src. The pre-existing source_identity() in the same file (source_identity.py:139-221) does mix them via flare_heliopause.build_source_identity() (binding.rs:1170-1176, env! from build.rs), but ForwardCache.__init__ calls forward_source_identity, not source_identity. So the PR's stated scope — "hash .py/.rs/.c/.cu/.cuh/.h/.cpp/.hpp … across Ignition, FlashInfer … and external recipe roots" — holds for every root it passes, and the Rust collector does accept .rs (source_identity.rs:48), but no Rust tree is passed, so a Helios/Heliopause edit still does not invalidate a compiled forward. Whether that matters is a judgement call (Rust changes do reach the core via source_identity()/compatibility checks), but the PR text reads as coverage it does not have.
Cache-key consequences (aot.py:899-920, all verified):
- Key is
sha256(pickle.dumps((namespace, options, _b12x_forward_env(), torch_key(), runtime_patches.identity(), properties.name, properties.major, properties.minor, properties.multi_processor_count)))plusb'\0sources\0' + digest. The tuple shape changed from the old(namespace, options, torch_key(), ...), so every existing forward cache directory is invalidated exactly once on upgrade — a full recompile of all forwards. - Exclusions are reconstructed from
_COMMAND_SOURCES = ('cli', 'direct', 'errors.py', 'planning.py', 'progress.py')(aot.py:793) split into excluded directories (non-.py entries) and excluded files, plus__main__.pyand_PUBLICATION_SOURCES(aot.py:795). If that split drifts from the old per-path skip logic, presentation-only edits would start invalidating caches again; the new testtests/preparation/test_forward_cache_sources.py:42-123covers exactly that (edits tocli/main.py,progress.py,__main__.py,core_file.pykeep the root stable;aot.py,kv_codec_gpu.cu, flashinfer.cu/.cuh, recipe.py/.cu/.cpp/.hppchange it). heliopause/build.rs:143-146now also hashes.cpp/.hppunder heliopause/src and helios/src into the build-time identities, so a stray.cppthere changes export/load source identity. Currently no.cppfiles exist under heliopause/src (list_files patternheliopause/src/**/*.cpp-> none).
#15 [high] Open questions a decider should put to the author (consolidated)
- Disposition of #332 / #606 / #574 (all open, all carried here). Will they be closed by hand, and does mark-yong/avifenesh/fordbmorris authorship survive in commit trailers? #332 in particular has three rounds of yatesdr review (symbol instead of CUfunction handle, rank label, one example per address, 8-byte-aligned reporting only, straddling-window test) whose whole value is lost if the combined PR is reviewed from scratch. The charter's "Respect contributors" clause and #229 make this an explicit process question.
- Does #728 actually fix #724? #724's failure is
PicklingError: Can't pickle KernelMetadataduring Warm compiled forwards on GB10. #728 supplies a clearer TypeError on a guardedCompiledKernel, prunes non-staticTritonCompileResults beforedeepcopy/pickle.dumps, and derives recipe module prefixes from bound source roots — but it reports no Inkling-2-Mini or any GB10/SM121 export, and names local-inference-lab/hyperflare-recipes#163/#151 as co-fixes. TheCloses #724claim therefore rests on unit-level evidence only, on different hardware (SM120) and an untested model. - The "1 pre-existing unrelated failure":
tests/preparation/test_runtime_triton.py::test_replaces_stock_architecture_probe_with_pointer_width_keyexists at pr/728:82-93 and asserts stockplatform_key() == "x86_64,Linux,64bit,ELF"then patched== "x86_64,Linux,64bit"— exactly the behaviour #728 says stock Triton 3.8.0 produces. It was rewritten by merged #624 so it passes under the pinned stack, and CI runs it. Ask for the actual failing output, or treat the claim as stale. - Reachability diagnostic usefulness vs noise: #332's own measurements are ~19–22k occurrences / 762–832 distinct addresses per rank on a 2-GPU SM120 export, dominated by mHC/Cutlass numeric constants (
0xfff000003ff,0x100000000800). yatesdr's standing objection was that the sample "can show only noise", and #266's author asked for a failing check, not a printed one. #728's docs/TODO.txt inherits the open 4-GPU DeepSeek V4.1 / 8-GPU W4A8 measurement item, so the diagnostic ships unvalidated on the hardware that motivated it. Also unresolved from #332: inactive ranges are raw while live intervals are granule-trimmed (live_pieces), so a retained-edge byte can be reported as "outside every live recorded allocation". - Unrun matrix, per the PR's own Limitations: full-model GB10 (SM121) Inkling2 and GLM-5.3 exports, SM103/SM87 hardware, TP2 distributed Inductor CUDA tests, Windows. The charter's review standard asks for the supported matrix (SM103/SM120/SM121, multi-host, state transitions, existing cores still loading) — no default/flag changes, so the compatibility risk is the one-time forward-cache invalidation and the widened
prepared_module_roots()predicate, not core loading. - Merge-order coordination with open #642 (same
InductorSelections.register/freezeregion), #597 (winner keying), #678 (_EXTRA_ROOTSencapsulation, which #728 pre-empts while still importing the private name in aot.py:902 and compile_pool.py:172), #710, #639, #723.
#8 [medium] Reach: cache invalidation for all users, widened module-ownership predicate, identity/build surface, no operator-facing changes
Reach — who/what is affected, and compatibility surface:
- Exporters of every core (all models):
ForwardCache.__init__key changes shape, so the first preparation after upgrading recompiles every forward once (no silent reuse of stale artifacts, but a one-time full recompile cost across all supported models). pr/728 aot.py:899-920. - External recipe packages:
prepared_module_roots()derives module prefixes from boundsource_roots()labels AND each root's directory name (pr/728 source_identity.py:31-49). Consequence:_uses_custom_object_state(forward_metadata.py) andrebuild_manifest.weight_viewsnow strip/own objects from any module whose top-level package equals a source-root label or basename, not just ignition/b12x/hyperflare_recipes. That widens the set of objects treated as "prepared", which is the intended generalization of #574, but it is also a behaviour widening: a recipe root whose basename collides with an unrelated top-level package name (e.g. a root directory namedtorch) would claim that package. Guarded byisidentifier()and by "not already seen", not by the package being importable/related. - Recipe packages with .cpp/.hpp sources now invalidate AOT caches (intended; companion PR local-inference-lab/hyperflare-jetson-recipes#7 moves
csrc/into the package and adds package-data so those files exist after install — without that companion PR, jetson recipe native edits would NOT be hashed because the files are absent from the wheel). - CI:
.github/workflows/python-cpu.yml(pr/728:30-41) runs the new tests andcargo test --locked --release --manifest-path heliopause/Cargo.toml --lib; new Rust tests live inside reachability.rs/source_identity.rs test modules (self-contained, no new workflow needed). No workflow change is part of this PR (the workflow-file hunks in the diff are stale-base noise). - Windows:
host_allocate/HostVmmRegion/ GA10B floor changes are upstream noise, not this PR, so no Windows surface change from #728 itself._seed_warmup_workspaceskeeps the 2-argument fallback "for non-export callers and existing test stubs" (capture.py:151-156), so non-export capture is unchanged. - Operators: no new CLI flag, config key, or default.
CoreStorage.warmup_pool()adds one persistent pool per rank (a 2 MiB operand + 32 MiB cuBLASLt workspace, per #606's description) registered in_preparation_pools; #606/Autobot analysis argues this does not inflate exported cores because freed segments are marked inactive byunused_ranges(). - Dependencies: no version change asserted; the Triton static-only invariant uses
torch._inductor.runtime.triton_heuristics.StaticTritonCompileResultandtriton.compiler.CompiledKernel, both private/version-sensitive, and_GuardPicklernow importsfrom triton.compiler import CompiledKernelon every reducer call (aot.py:223) inside a hot pickling path. - Deployment:
heliopause/build.rsnow reruns on.cpp/.hppchanges under heliopause/src and helios/src, so those files enterFLARE_HELIOPAUSE_SOURCE_IDENTITY/FLARE_HELIOS_SOURCE_IDENTITYand thus the multi-hostsource_identity()agreement check (source_identity.py:205-208; build_source_identity at binding.rs:1170-1176). If two hosts build the same commit but one has a stray .cpp in those trees, core export/load identity diverges. Currently no .cpp under heliopause/src. - Documentation: docs/preparation-development.md, docs/runtime-core-design.md, docs/TODO.txt updated (see Project-fit note).
Process facts to state plainly: not a draft; opened and last updated the same day (2026-12-04); CI pending on head 71af7c9; no reviews, no comments, no reactions; no labels; the author is a named priority contributor in the charter and has 51 merged PRs in the last 180 days, including five merged the same day (#716, #720, #721, #711 the day before). The PR itself concedes four unrun verification axes: full-model GB10/SM121 Inkling2 and GLM-5.3 exports, SM103/SM87 hardware, TP2 distributed Inductor CUDA tests, and multi-host.
#14 [medium] Change: the tests this PR adds, and what each one actually pins
All from pr/728 (tests/preparation, +494/-5 across 8 files):
- tests/preparation/test_source_identity.py (+15/-1): reference hasher gains
.cpp/.hpp; adds fixture filesnested/ext.cpp,nested/ext.hpp; new assertion thatexcluded_files=[pkg/progress.py]keeps the digest stable while an unfiltered hash differs (pr/728:82-95). This is the direct unit test for the new Rustexcluded_filesargument. - tests/preparation/test_forward_cache_sources.py (+39/-4):
test_presentation_edits_preserve_forward_cache_but_execution_edits_invalidate(line 42-123) — the end-to-end cache-identity test described in the PR body; alsotest_prepare_group_propagates_source_roots_to_spawned_peers(126-149). Note this file also carries #668/#678-era tests (_b12x_forward_env,_save_compiled_functionatomicity,_atomic_write_file) that are stale-base artifacts, not this PR's. - tests/preparation/test_compile_pool.py (+55):
test_compile_pool_propagates_bound_source_roots_to_workers(line 427) — real spawned pool, asserts the worker sees the bound roots. - tests/preparation/test_guard_code.py (+91):
test_guard_pickler_strips_unguarded_attributes_across_bound_source_roots(line 277) — the generalization of #574's test, using a synthetic bound root instead of the literalhyperflare_recipesname. - tests/preparation/test_inductor_prepared_winners.py (+90):
test_snapshot_and_freeze_prune_or_reject_non_static_triton_compile_results(line 317) calls_sanitize_static_bundledirectly (lines 360, 380, 392) — covers frozen reject vs unfrozen prune. - tests/preparation/test_core_storage.py (+25):
test_warmup_pool_reuses_one_core_allocator_pool(line 230) — lazy reuse +_preparation_poolsregistration via a FakeMemPool (CPU). - tests/preparation/test_capture_cublas_workspace_cuda.py (+134): subprocess-isolated
test_export_warmup_pool_seeds_workspace_inside_core_storage(line 123) withcheck_export_warmup_pool(148-200) — real CoreStorage + ModuleImages +RuntimeCore.write; asserts_capture._warmup_poolsempty (187),warmup_pool().id in storage._preparation_pools(189), and that active pool blocks exist inside it (190-195). CUDA-gated (FLARE_RUN_CUDA_TESTS). - tests/preparation/test_capture_stream_isolation.py (+45):
test_seed_auxiliary_workspaces_uses_graph_pool_and_aux_stream(line 111-153) — pure monkeypatch, asserts ordering["mm","addmm","bmm","sync"]and that the aux stream andgraph_poolcontexts were entered, and that a session without_scratch_arenais a no-op. - Rust: new unit tests inside heliopause/src/export/reachability.rs test module (gap candidate with site context, encounter order, argument-relative offsets after an unaligned numeric prefix, shared-argument-bytes one-example-per-address, per-symbol prioritization + backfill, hidden-count formatting) and heliopause/src/export/source_identity.rs:154-186
hashes_cpp_hpp_and_excludes_exact_files_and_directories. CI coverage exists for all of it:.github/workflows/python-cpu.yml:30-41(full pytest +cargo test --locked --release --manifest-path heliopause/Cargo.toml --lib). GPU-only claims (SM120 warmup-pool containment, Triton 3.8.0 CompiledKernel roundtrips,test_inductor_tuning_cuda.py8 passed/5 skipped,test_recorded_export_graph_cuda.py2 passed) are self-reported and not in CI.