Explore scratchpad · NVIDIA/hyperflare-inference #728

Raw Markdown for agents: https://autobot.eidonix.com/p/1fc89c02-a8ec-44cd-9ff2-42acf017c314.md

#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):

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:

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):

#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:

#6 [high] Related work/People: open-PR collisions on the same files and the uncosed origin PRs

#7 [high] Project fit: charter/roadmap mapping, and the doc/description mismatches

Charter (read_charter) facts that bear on #728, quoted:

Docs changes actually made by this PR (verified against pr_files counts):

#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):

People:

#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").

  1. 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.safetensors to 10 kernel arguments holding 0x812d3a00000, a 104 MiB gap between recorded allocations, in nvjet_..._splitK_TNNN (offset 256 of a 384-byte param) and cublasLt::splitKreduce_kernel (argument 1). The 4096 default is exposed but survives by aliasing device-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.
  2. 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.
  3. 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 edits kv_codec_gpu.cu, FlashInfer data/csrc, data/include, and a bound recipe root's .cu/.cpp/.hpp and asserts ForwardCache.root changes. 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.
  4. 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:

#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:

  1. ignition — the whole installed ignition package minus excluded dirs/files;
  2. flashinfer.python — the flashinfer package tree minus data/;
  3. flashinfer.include — <pkg>/data/include (raises RuntimeError if data/ exists but a subdir does not);
  4. flashinfer.csrc — <pkg>/data/csrc;
  5. extra:<label> for each bound source root. Wheel-layout fallback: if data/ does not exist at all, it hashes <pkg>/../include and <pkg>/../csrc instead (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):

#15 [high] Open questions a decider should put to the author (consolidated)

  1. 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.
  2. Does #728 actually fix #724? #724's failure is PicklingError: Can't pickle KernelMetadata during Warm compiled forwards on GB10. #728 supplies a clearer TypeError on a guarded CompiledKernel, prunes non-static TritonCompileResults before deepcopy/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. The Closes #724 claim therefore rests on unit-level evidence only, on different hardware (SM120) and an untested model.
  3. The "1 pre-existing unrelated failure": tests/preparation/test_runtime_triton.py::test_replaces_stock_architecture_probe_with_pointer_width_key exists at pr/728:82-93 and asserts stock platform_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.
  4. 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".
  5. 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.
  6. Merge-order coordination with open #642 (same InductorSelections.register/freeze region), #597 (winner keying), #678 (_EXTRA_ROOTS encapsulation, 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:

  1. 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.
  2. External recipe packages: prepared_module_roots() derives module prefixes from bound source_roots() labels AND each root's directory name (pr/728 source_identity.py:31-49). Consequence: _uses_custom_object_state (forward_metadata.py) and rebuild_manifest.weight_views now 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 named torch) would claim that package. Guarded by isidentifier() and by "not already seen", not by the package being importable/related.
  3. 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).
  4. CI: .github/workflows/python-cpu.yml (pr/728:30-41) runs the new tests and cargo 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).
  5. Windows: host_allocate / HostVmmRegion / GA10B floor changes are upstream noise, not this PR, so no Windows surface change from #728 itself. _seed_warmup_workspaces keeps the 2-argument fallback "for non-export callers and existing test stubs" (capture.py:151-156), so non-export capture is unchanged.
  6. 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 by unused_ranges().
  7. Dependencies: no version change asserted; the Triton static-only invariant uses torch._inductor.runtime.triton_heuristics.StaticTritonCompileResult and triton.compiler.CompiledKernel, both private/version-sensitive, and _GuardPickler now imports from triton.compiler import CompiledKernel on every reducer call (aot.py:223) inside a hot pickling path.
  8. Deployment: heliopause/build.rs now reruns on .cpp/.hpp changes under heliopause/src and helios/src, so those files enter FLARE_HELIOPAUSE_SOURCE_IDENTITY / FLARE_HELIOS_SOURCE_IDENTITY and thus the multi-host source_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.
  9. 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):