#1 [high] Research summary
Case file: PR #606 — fix(ignition): seed warmup workspaces inside export storage pool
Note: I could not write scratchpad entries this turn (only finish was available), so the findings are all here, organised by angle with citations.
Key findings a reader could not get from the description
- It reverses a design decision made one week earlier in #331.
_warmup_poolsand the dedicated module-owned pool were added deliberately in #331 ("Isolate cuBLAS warmup workspaces from CUDA graph capture", merged 2026-11-20, commit1eb61e81), whose stated invariant was that the seed's backing outlives "transient storage, caller-owned pools such asCoreStorage's, and the exported graph pool". #606 makes the export path use aCoreStorage-owned pool instead. The old docstring text atignition/preparation/capture.py:53-63is rewritten to accommodate this. #606 cites #331 nowhere. - No linked issue, and no linked bug report. The PR body says the failure was "observed on NVIDIA GB10 / DGX Spark" but links nothing. The only open related report is #266 (open, P1,
calvarado2004), the first-captured-graph cuBLAS workspace defect that #331 fixed — #606 neither references nor re-tests it. AGENTS.md:165-169 requires "a demonstrated defect" for a contribution; nothing in the repo or tracker corroborates this specific native-export rejection. - The
_preparation_poolsregistration has a second, undeclared effect.CoreStorage.unused_ranges()(ignition/preparation/core_storage.py:319-334) sweepstorch.cuda.memory_snapshotsegments whosesegment_pool_idis in_preparation_poolsand reports their padding/inactive bytes;export_modelturns those into bothinactiveandzero_ranges(ignition/preparation/runtime_core.py:296-301), which the native exporter uses to split/omit allocation content (heliopause/src/export/capture.rs:1471-1490,without_zero_rangesat:1305). So the pool ID matters for export content, not only ownership. Not mentioned in the description. - Behaviour change beyond the fix: in the export path the module-level pool is no longer created at all (
capture.py:67-70is skipped whenpoolis supplied), so an export process now holds one warmup pool (~34 MiB/rank) instead of two. Retention cost is moved, not added — consistent with the description, but worth knowing. - Same evidentiary critique that #331 already received applies here. In #331's review (2026-11-18,
yatesdr) the author was told: "the test uses a plaintorch.cuda.MemPool; an export keeps warmup memory inCoreStorageretention, which the test never touches … Either post one export with the out-of-allocation pointer check from #266 … or change it to 'Refs #266'." #606's new GPU test (tests/preparation/test_capture_cublas_workspace_cuda.py:123-173) again uses a plaintorch.cuda.MemPoolplus aSimpleNamespacewith a duck-typedwarmup_pool=lambda: export_warmup; no test instantiates a realCoreStorageand asserts the seed lands insideCoreStorage.mappings. The "inside declared core mappings" claim rests solely on the unposted GB10 export runs. - No note that previously exported cores are unaffected/affected. The description does not say whether cores exported before this change on unified-memory GPUs still carry the unowned segment and need a re-export — exactly the note #331's reviewer required for the analogous change (yatesdr, 2026-11-19, "the description should say that cores exported before this change … need a new export").
- The "2 MiB operand segment / 32 MiB cuBLASLt workspace" figures are segment sizes, not request sizes.
capture.py:72-73requests a 512×512 bf16 operand plusempty_like= 1 MiB total; 2 MiB is the pool segment. Not wrong, but the description's wording implies tensor bytes.
The change, in plain terms
4 files, +101/−5, one commit 2535841 on fix/ignition-export-warmup-pool off 44f59df; base main.
ignition/preparation/capture.py:52—_seed_warmup_workspaces(stream, device, pool=None); the_warmup_pools[index]lookup/creation (:67-70) now only runs when no pool is passed.ignition/preparation/capture.py:118-122—capture_forwardsaskswarmup_storage.warmup_pool()when the storage object has it (hasattrduck-typing) and passes it; otherwise it keeps the exact 2-argument call.ignition/preparation/core_storage.py:300-309—CoreStorage.warmup_pool()lazily builds onetorch.cuda.MemPool(self._allocator.allocator()), caches it onself._warmup_pool(viagetattr, not declared in__init__, unlike_retention_poolatcore_storage.py:73), and addspool.idto_preparation_pools. Same shape asscratch_pool()(:294-298) andtransient()(:277-282).- Tests:
tests/preparation/test_core_storage.py:83-105(CPU, monkeypatchedFakeMemPool, asserts reuse, allocator identity, id registration) andtests/preparation/test_capture_cublas_workspace_cuda.py:123-173(GPU-gated onFLARE_RUN_CUDA_TESTS=1).
Scope facts: production capture_forwards callers in this repo are ignition/bench/study.py:48, ignition/bench/observations.py:87 (not opened), and test fixtures (helios/tests/gather_core_fixture.py:85 (not opened)); the serving/export path reaches capture through recipe code in local-inference-lab/hyperflare-recipes (AGENTS.md:9-13), which is not in this repository, so the export wiring (warmup_storage=CoreStorage, retain_graphs=True, pool=storage.graph_pool.id) is only visible here through ignition/cli/serve.py:227-232, :303-316 and ignition/preparation/rank_group.py:60-69 (not opened), whose capture_forwards invocation lives in the external recipe module. Existing repo-level users of a real CoreStorage as warmup_storage: tests/preparation/test_recorded_export_graph_cuda.py:52 (not opened) — it now silently takes the new path.
Why (problem addressed)
CoreStorage is a CUDA-VMM-backed preparation storage whose device window is declared to the native exporter as preserve_address=True allocations (runtime_core.py:308-310) plus discover_allocations=True (runtime_core.py:360). Allocation discovery classifies recorded-but-undeclared device segments as external-N allocations (heliopause/src/export/capture.rs:1331-1380) and validates each by cuPointerGetAttribute memory kind and owning context against the serving context (capture.rs:1455-1466), rejecting with "external allocation … is not device memory in the serving context". On integrated GPUs CoreStorage additionally reserves everything below EXTERNAL_FLOOR (core_storage.py:126-187) and rejects retained device allocations below that floor (capture.rs:3381-3389, fed by runtime_core.py:364). So the described failure mode is consistent with real code paths; I could not reproduce or find a report of it. The GB10/DGX Spark target is squarely in the charter's goal set (charter: "serve captured CUDA graphs from Rust on SM103, SM120, and SM121").
Related work
- #331 (merged) — introduces the code being changed; see Key findings 1 and 5. Tracked issue #266 (open, P1) and follow-up #395 (open,
CUDAGraph.reset()shares stream workspace). - #425 (merged,
ea756eef, "Order compiled forward warmup by largest CUDA allocation request") and #543 (merged,f377dc85) both last touchedcapture.py's warmup path before this PR; #559 (3e2fcd27) touchedcapture_forwards. - #394 (open) "Assemble temporary core payloads in the rank export workspace" and #605 (open, same author: ForwardCache source hash) run in the same neighbourhood; #581 (open,
FujitsuPolycom) also editscapture.py(node-priority flag) — a file-level conflict candidate.related_itemsadds #410, #297, #246, #509, #479, #474, #465, #432, #427, #408, #262, #245, #222, #122, #110 as file-overlapping PRs. No competing/duplicate fix for this specific problem was found in the local tracker. - Native-side pointer-provenance work is #332 (open, from #266) — an export-time out-of-allocation pointer check, which would have made this class of defect self-detecting. #606 does not mention it.
Recent activity in the areas
ignition/preparation (last 180 days): Luke Alonso 156 commits, Martin Vit 52, Eugene Rakhmatulin 36. tests/preparation: Luke Alonso 204, Martin Vit 34, jasonc 23. Last commits to capture.py before this: 3e2fcd27 (2026-11-28, GC deferral), f377dc85 (2026-11-26, removed joint kernel tuning), b0d35934/509, ea756eef/#425, 1eb61e81/#331. main has no commits since 44f59df touching the four changed files (orientation packet), so there is no merge conflict today. This change builds on #331's plumbing and partially reverses its isolation choice; it conflicts with no other merged change.
People
Author avifenesh (Avi Fenesh), FIRST_TIME_CONTRIBUTOR, not one of the priority contributors named in the charter (@voipmonitor, @original-el8, @lukealonso). Their 180-day record: #605 (open, ForwardCache source hash, 2026-11-29), #567 (closed, resident prefixes on completion, 2026-11-28), zero merged. #606 is their second open PR in two days, both in ignition/preparation-adjacent code. Area owners who would normally review: Luke Alonso (also the capture.py/core_storage.py owner of record), Martin Vit, original-el8, mark-yong (author of #331), yatesdr (standing reviewer of the warmup-workspace contract), FujitsuPolycom (#331 validation, #581). No one has engaged on #606.
Community
Zero comments, zero reviews, zero reactions; opened and last updated the same minute (2026-11-29 16:28). No labels. No subscribers from the #266/#331 thread (calvarado2004, yatesdr, FujitsuPolycom, mark-yong) have been pulled in, although they are the people with the reproducing GB10 setups.
Project fit
- Fits charter goals: SM103/SM120/SM121 preparation and GB10/DGX Spark are named targets; the change keeps native export validation intact rather than relaxing it, which matches AGENTS.md's "Reject weakened guarantees … Do not remove validation, suppress errors" (AGENTS.md:182-187).
- Also matches the charter's "Solve the right problem in the right place … smallest footprint in shared code": 23 lines of production code, no flags, no config, no per-model branch (charter "Keep the runtime small and model-agnostic" is untouched).
- Tension: "Bring real evidence … Bug fixes need to address the root cause" — the root cause is arguably that allocation discovery classifies any undeclared segment as an export error; #606 relocates the allocation instead. Whether that is the right layer is a judgement call the report should surface, not settle.
- Not in the restricted-authorship category (AGENTS.md:474-486): it is PyTorch/pool/export orchestration, not kernel or fusion design.
- AGENTS.md's cross-path rule ("inspect the shared components and equivalent paths in every supported recipe",
:500-503) is only partly met: single-GPU GB10, text-only, Qwen3.8, with multi-rank explicitly unmeasured (the description says so).
Claims and evidence
| Claim | Backing | Gap |
|---|---|---|
| Fixes native export rejection on unified memory | Code path is real (capture.rs:1455-1466, :3381-3389); GB10 export runs claimed |
No linked issue/report, no reproduction command, no log or error text quoted |
| 35 passed, 1 skipped across 5 test files | Stated, with FLARE_RUN_CUDA_TESTS=1 command |
Not runnable here (needs CUDA + flare_heliopause); no CI on the head commit — the packet reports "no checks" |
| End-to-end 75/79-graph Qwen3.8 runtime-core exports succeed | Stated for spark-b23d |
Recipe and checkpoint live in the external recipes repo; no pointer-scan result (#266's check) and no flare run serving replay reported |
| Both allocations "stay inside declared core mappings" | Asserted for exports only; the in-repo GPU test uses a fake storage and plain MemPool |
No test asserts CoreStorage.mappings coverage; the unit test only checks pool identity/id/allocator |
| Non-export capture behaviour preserved | Verified by reading capture.py:118-122; 2-arg call kept, existing stubs (test_capture_rank_readiness.py:56 (not opened), test_capture_stream_isolation.py:44 (not opened), test_preparation_reclamation.py:41 (not opened), test_transient_retention.py:131 (not opened), test_forward_compile_options.py:309 (not opened), test_capture_graph_metadata.py:181 (not opened), test_capture_roce_wait.py:40 (not opened)) still match |
test_capture_cublas_workspace_cuda.py:97's non-export _warmup_pools[0] assertion is unaffected |
Reach
Affects only the export/preparation path on integrated (unified-memory) GPUs; per-rank CoreStorage instance, so multi-rank behaviour is independent by construction (as claimed). Adds one long-lived MemPool per CoreStorage; no CLI flag, config, default, dependency or metadata/schema change; exported core contents shift slightly because the new pool ID enters unused_ranges() → inactive/zero_ranges. Documentation reference docs/preparation-development.md:88-91 still describes only "eager warmups allocate from its transient pools" and is not updated by this PR — a small doc drift introduced by the change.
Process
Open, "ready for review" per the packet; one commit 2535841; no CI checks on the head; no reviews; no labels; no Signed-off-by evidence available (CONTRIBUTING.md (not opened) is cited by reviewers elsewhere in #331 for this requirement — worth checking before merge). The description meets AGENTS.md's four-part requirement (why / what changed / claimed benefit / evidence + limitations) and carries Discord: avi7066 as required. Age at review: opened 2026-11-29, same day as #605.
#2 [high] Change: what PR #606 does, in plain terms and size
PR #606 "fix(ignition): seed warmup workspaces inside export storage pool", author avifenesh, branch fix/ignition-export-warmup-pool, head 2535841, base main (branched at 44f59df). Open, ready for review, no labels, no reviews, no CI. 4 files, +101/-5, one commit.
Production change (23 lines):
- ignition/preparation/capture.py:52
_seed_warmup_workspaces(stream, device, pool=None); the_warmup_pools[index]lookup/creation moved insideif pool is None:(capture.py:67-70). - capture.py:118-122:
warmup_pool = warmup_storage.warmup_pool() if hasattr(warmup_storage, "warmup_pool") else None; passes it if non-None, else keeps the exact 2-arg call_seed_warmup_workspaces(warm, device). - ignition/preparation/core_storage.py:300-309
CoreStorage.warmup_pool(): lazily onetorch.cuda.MemPool(self._allocator.allocator()), cached onself._warmup_poolvia getattr (not declared in__init__, unlike_retention_poolat core_storage.py:73), addspool.idto_preparation_pools. Same shape asscratch_pool()(core_storage.py:294-298) andtransient()(:277-282). - Tests: tests/preparation/test_core_storage.py:83-105 (CPU, monkeypatched FakeMemPool; asserts reuse, allocator identity, id in _preparation_pools); tests/preparation/test_capture_cublas_workspace_cuda.py:123-173 (GPU-gated on FLARE_RUN_CUDA_TESTS=1; uses plain
torch.cuda.MemPool()+ SimpleNamespace withwarmup_pool=lambda: export_warmup).
Docstring at capture.py:53-63 rewritten to say the seed may live in an export storage pool; previously it promised the seed stayed outside "any caller-owned pool, and the exported graph pool".
Seed allocations (capture.py:72-73): 512x512 bf16 operand + empty_like = 1 MiB requested; the 2 MiB and 32 MiB figures in the description are pool segment sizes, not request sizes.
Existing in-repo caller that now silently takes the new path: tests/preparation/test_recorded_export_graph_cuda.py:52 (passes a real CoreStorage as warmup_storage). Production capture_forwards callers in this repo: ignition/bench/study.py:48, ignition/bench/observations.py:87, helios/tests/gather_core_fixture.py:85; the serving/export path itself is wired from the external recipe repo (see separate note).
#3 [high] Change: undeclared effects (preparation_pools/export content, no module pool in export, doc drift)
-
_preparation_poolsmembership is not just ownership bookkeeping:CoreStorage.unused_ranges()(ignition/preparation/core_storage.py:319-334) sweepstorch.cuda.memory_snapshotsegments whosesegment_pool_idis in_preparation_poolsand returns padding + inactive-block ranges.export_modelfeeds those into bothinactiveandzero_ranges(ignition/preparation/runtime_core.py:296-301), and the native exporter uses them to split allocations and to skip/zero content (heliopause/src/export/capture.rs:1471-1490 live_pieces, :1305 without_zero_ranges, :1487-1489 zero). So registering the warmup pool changes exported allocation content, not only ownership. Not mentioned in the PR description. -
In the export path the module-level pool is now never created (capture.py:67-70 skipped when a pool is passed), so an export process holds one warmup pool instead of two. Retention moves rather than grows — but the description does not say the old module pool is no longer allocated for exports.
-
Doc drift: docs/preparation-development.md:88-91 still says only "When capture_forwards receives warmup_storage, ... eager warmups allocate from its transient pools and release them before capture". The PR does not update it, although it changes where the warmup seed lives during export.
-
The PR does not say whether cores exported before this change on unified-memory GPUs still carry the unowned segment and need a re-export. In #331 the reviewer (yatesdr, 2026-11-19) explicitly required such a statement for the analogous change.
-
The
hasattr(warmup_storage, "warmup_pool")duck-typing means any storage object that happens to definewarmup_poolchanges behaviour; no test covers a storage that hastransientbut notwarmup_poolin the export path other than pre-existing stubs (test_capture_rank_readiness.py:70 uses SimpleNamespace(transient=nullcontext) — the else branch).
#5 [high] Amendment (2026-11-29, head 8c1a28a): what changed, what is resolved, what is new
Delta since report #4 (was head 2535841, +101/-5, 4 files). New head 8c1a28a "test(ignition): verify CoreStorage.warmup_pool in isolated subprocess and polish docs", +191/-8, 5 files (PR #606, updated 17:13 UTC; author replied "@flare-autobot"; no re-review posted yet).
PRODUCTION CODE IS SUBSTANTIALLY UNCHANGED. New only: self._warmup_pool = None in CoreStorage.__init__ (ignition/preparation/core_storage.py:74) and an inline comment at ignition/preparation/capture.py:123. The rest of the delta is the rewritten GPU test (+134 lines, tests/preparation/test_capture_cublas_workspace_cuda.py:123-254), docs (+4/-1), and the description body.
RETRACT these findings from report #4:
- Docstring contradiction between
_seed_warmup_workspaces' docstring and the new behaviour is fixed; capture.py:52-65 now describes both thepool=None(module-pool) and thewarmup_pool()branches consistently. - Doc drift is fixed: docs/preparation-development.md:88-94 now says cuBLAS warmup workspaces are seeded into
CoreStorage.warmup_pool()and stay "inside declared core mappings". (Nit: line 94 reads "mappings. Ranks" — an awkward reflow.) - "The GPU test never exercises CoreStorage / declared mappings" is fixed. The test is now a subprocess (
test_export_warmup_pool_seeds_workspace_inside_core_storage, :123-145, same pattern as tests/preparation/test_recorded_export_graph_cuda.py:14-20) that runscheck_export_warmup_pool(:148-254) against realCoreStorage+ModuleImages: asserts module pool never created (assert not _capture._warmup_pools, :187), pool id in_preparation_pools(:189), active block inside the warmup pool (:190), every warmup segment insidestorage.mappings(:197-204), captured workspace instorage.graph_pool(:205), then exports aRuntimeCore(:237-249). _warmup_poolis no longer an undeclared attribute (core_storage.py:74).warmup_pool()still usesgetattr(core_storage.py:305), now only needed for the CPU fake test (tests/preparation/test_core_storage.py:95-97 usesCoreStorage.__new__).- Description now quotes the exact native error and references #331 and #266 (read_item 606). Error text: "external allocation 0x4000000000+2097152 is not device memory in the serving context (memory 2, context 0x0, recorded context Some(125396576), serving context 0x7796660)".
STILL OPEN (unchanged, current line numbers):
_preparation_poolsregistration still changes exported byte content viaunused_ranges()(core_storage.py:320-335) ->inactive/zero_ranges(ignition/preparation/runtime_core.py:298-301) ->live_piecessplitting/renaming ofdevice-N(heliopause/src/export/capture.rs:1259-1303) andwithout_zero_ranges(:1305). Description still silent.- Still no note on whether cores exported before this change need a re-export (yatesdr required that note on #331).
- Still no linked issue/bug report (only inline error text); #266 remains open/P1 and is referenced, not tested; #332 not mentioned.
- #331's "outside any caller-owned pool" invariant reversal is cited now but still framed as "preserves all of #331's safety invariants" — it does not preserve that one.
- Reversed-order claim and 36-passed evidence remain self-reported; unrelated to CI (see below).
NEW FINDINGS:
A. The new test still never runs the validation that produced the reported error. It exports through RuntimeCore.write (tests/preparation/test_capture_cublas_workspace_cuda.py:244), whose request dict (runtime_core.py:122-133) omits discover_allocations (serde default false, heliopause/src/export/mod.rs:177-178) and leaves device_address_floor at its constructor default 0 (runtime_core.py:98). So neither discovery/containment (capture.rs:1426-1468, the branch that emits "external allocation ... is not device memory in the serving context") nor the floor rejection (capture.rs:3380-3389) executes. The only regression signal for the actual fix is the Python-level assert not _capture._warmup_pools (:187) and the mappings containment assert. The real export path is export_model, which sets discover_allocations=True and device_address_floor=storage.EXTERNAL_FLOOR if storage.integrated else 0 (runtime_core.py:360-364); the test bypasses it entirely. Fix: route the test through export_model (precedent: helios/tests/fixed_core_fixture.py:171) or pass those two fields.
B. Consequently the test would also pass if the warmup pool landed below EXTERNAL_FLOOR (core_storage.py:42), i.e. at addresses a serving context cannot restore — the exact class of failure this PR is about. It also never calls storage.unused_ranges(), so the _preparation_pools export-content effect is untested.
C. Coverage lost in the rewrite: the old test asserted not _active_pool_blocks(transient.id); the new export test checks nothing about transient storage. That assertion now survives only for the non-export path (:94-96).
D. The CI gap is structural, not incidental: .github/workflows/ holds only helios-lifecycle.yml, native-serving.yml, release.yml, and none runs pytest/python tests (pytest, unittest, tests/preparation -> no matches under .github); FLARE_RUN_CUDA_TESTS appears nowhere under .github/. Every CUDA assertion in this PR is therefore local-only by design; a maintainer must confirm the author's GB10 run, not wait for CI.
E. Mechanistic corroboration worth relaying: in the quoted error context 0x0 is a null CUcontext from cuPointerGetAttribute(...,1,...) with recorded context Some(125396576), i.e. the pointer was not a valid allocation in the serving context at all — consistent with a default-caching-allocator segment on unified memory, and consistent with the fix (core-allocator segments are covered by declared device-N mappings with preserve_address=True, runtime_core.py:308-310, so discovery skips them at capture.rs:1437-1442). Address 0x4000000000 is exactly CoreStorage.EXTERNAL_FLOOR (core_storage.py:42); "+2097152" is the 2 MiB operand segment.
RECOMMENDATION UPDATE: still Changes Requested, but the blocker narrows from "test never touches CoreStorage" to "test bypasses the export validation the fix targets (discover_allocations / device_address_floor)". Remaining should-fix: state the inactive/zero_ranges export-content effect, the re-export question, and route the test through export_model.
#6 [high] Amendment supplement: why the new test still cannot reproduce the defect
Supplementary to entry #5 (same head, 8c1a28a).
NEW BLOCKER-LEVEL DETAIL (refines entry #5 A):
RuntimeCore.write cannot enable allocation discovery at all. Its signature is write(self, path, graphs, *, execution=None, server=None, progress=None, core_data=None, publisher=None, sources=False, rebuild_weights=None, zero_ranges=()) (ignition/preparation/runtime_core.py:108-109) and the request dict it builds (runtime_core.py:122-133) never sets discover_allocations (serde default false: heliopause/src/export/mod.rs:177-178). The only place in the repo that sets it is export_model (runtime_core.py:360). device_address_floor IS settable through the constructor (runtime_core.py:97-103) and is forwarded at :128, but the test (tests/preparation/test_capture_cublas_workspace_cuda.py:237-243) constructs RuntimeCore without it, so it is 0. Net: the new test cannot reach the two validations the PR exists to satisfy — prepare_allocations discovery/containment (heliopause/src/export/capture.rs:1426-1468, error string at :1462-1465) and the below-floor rejection (capture.rs:1380-1389). A test that reproduces the reported defect must call export_model (precedent: helios/tests/fixed_core_fixture.py:171, helios/tests/gather_core_fixture.py:134) or write must grow the flag.
OTHER DELTAS NOT IN ENTRY #5:
- Module docstring of the test file is now stale: tests/preparation/test_capture_cublas_workspace_cuda.py:4-13 still says "The test uses plain MemPools for transient storage and the shared graph pool handle so it needs no package-export resources", while the file now also contains a test that imports
ModuleImages,CoreStorageandRuntimeCore(:148-154). Same class of doc drift the commit set out to fix incapture.py/docs. - Coverage dropped in the rewrite: the previous test called
_seed_warmup_workspaces(fresh_stream, 0, export_warmup)directly to check the third-argument branch on a fresh stream; the new test only reaches that branch indirectly throughcapture_forwards, and the oldassert not _active_pool_blocks(transient.id)(transient cleanliness in the export path) is gone — transient is now only asserted in the non-export test (:94-96). - PR metadata delta vs report #4: labels now
area:preparation, bug, triage:review(report #4 said "no labels"); description rewritten with the native error string, #331/#266 references, the 6-file test command, "36 passed, 1 skipped", the reversed-order run, and an explicit limitation (single-GPU GB10, multi-rank not re-measured). Description still does not say whether cores exported before this change need a re-export — the exact note yatesdr required on #331 and which #331's final description carries ("Cores exported before this change may retain a transient workspace address and need a new export", #331 description). - Retract from report #4: "GPU test pollutes shared
_warmup_streams[0]state" — subprocess isolation fixes it (test file :123-145 docstring says so; same pattern as tests/preparation/test_recorded_export_graph_cuda.py:14-20). - Comment thread: author's reply 2026-11-29 17:13 claims all review items addressed; zero human replies; no re-review yet at head 8c1a28a. PR #606 updated 17:13, still open.
#7 [high] Amendment: exported-core cost of the new warmup pool (32 MiB/rank written, unmarked)
New finding for report #4 amendment (head 8c1a28a). Not in entries #5/#6.
The 32 MiB cuBLASLt warmup workspace now gets written into every exported core, and nothing marks it as content-free.
- The seed runs on the warmup stream inside
CoreStorage.warmup_pool()(ignition/preparation/capture.py:72-74 through :119-121), so the cuBLASLt workspace block isactive_allocatedin a pool whose id is in_preparation_pools(core_storage.py:309). CoreStorage.unused_ranges()only reports padding below a block'srequested_sizeas inactive (core_storage.py:329-332); the fully-active workspace block is not reported.export_modelfeeds those ranges into bothinactiveandzero_ranges(ignition/preparation/runtime_core.py:300-301) and sends them to the native exporter (:362-363). Only the graph pool's segments are additionally treated as zero (runtime_core.py:298-299).- Consequence: the ~32 MiB workspace (plus the 1 MiB operand the seed allocates, capture.py:73-74) counts as live retained device bytes, so
write_allocationdownloads it into the core (heliopause/src/export/capture.rs:3391-3400). No captured graph references that buffer — the seed only populates the warmup stream's (handle, stream) cache (capture.py:53-58), and the capture stream/allocation cache is populated insidestorage.graph_pool— so the bytes are dead weight at serving time, per rank, on unified-memory hosts where the whole point is RAM pressure. - So the autobot review's "avoiding ... bloat exported cores by 32 MiB/rank" (its Merge Risk section) is wrong: the new pool avoids co-location with live tensors, but the workspace is still exported because it is live in a preparation pool.
- Concrete fix, cheap and in-repo by precedent: append
storage.warmup_pool()segment addresses to the existingzero_rangesextension at runtime_core.py:298-299, so the address extent stays declared (validation satisfied) while the content is never written (without_zero_ranges, capture.rs:1305-1320; content-vs-state semantics, heliopause/src/export/weight_payload.rs:1031). Alternative: haveunused_ranges()treat warmup-pool segments as inactive — but that would drop the addresses entirely throughlive_pieces(capture.rs:1259-1303), which is wrong here. - Neither the description nor the new test covers this: the test's
RuntimeCore.writecall passes nozero_ranges(tests/preparation/test_capture_cublas_workspace_cuda.py:237-249) and asserts nothing about inactive/zero ranges or exported size. So the export-content delta stays untested and unexplained.
#8 [high] Research summary
Amendments to the #606 case file (new head 8c1a28a, 2026-11-29 17:13 UTC; +191/−8, 5 files)
Scope of the change: production code is materially unchanged. New only: self._warmup_pool = None in CoreStorage.__init__ (ignition/preparation/core_storage.py:74) and one inline comment (ignition/preparation/capture.py:123). Everything else is test rewrite (+134 lines), docs (+4/−1) and the PR description. Labels are now area:preparation, bug, triage:review; one author comment claiming all review items addressed; still no human review and no CI (see D).
Superseded findings from my earlier report — do not repeat these
- Docstring contradiction — fixed;
capture.py:52-65now describes both thepool=Nonemodule-pool branch and thewarmup_pool()branch consistently. - Doc drift at
docs/preparation-development.md:88-91— fixed;:92-94documentsCoreStorage.warmup_pool()and "inside declared core mappings" (nit: the reflow leaves "mappings. Ranks" at:94). - "The GPU test never touches
CoreStorage" — fixed.tests/preparation/test_capture_cublas_workspace_cuda.py:123-145now runscheck_export_warmup_pool(:148-254) in a subprocess (same pattern astests/preparation/test_recorded_export_graph_cuda.py:14-20) against realCoreStorage+ModuleImages, asserting_warmup_poolsnever created (:187), pool id in_preparation_pools(:189), an active block in the warmup pool (:190), every warmup segment insidestorage.mappings(:197-204), and the workspace bound instorage.graph_pool(:205). _warmup_poolundeclared in__init__— fixed (core_storage.py:74).- Shared
_warmup_streams[0]test pollution — fixed by subprocess isolation. - No error text / no #331/#266 reference in the description — fixed; the exact native error is quoted and both are referenced.
Still open, unchanged by 8c1a28a
_preparation_poolsregistration still changes exported allocation content throughunused_ranges()(core_storage.py:320-335) →inactive/zero_ranges(ignition/preparation/runtime_core.py:298-301) →live_piecessplitting/renaming ofdevice-N(heliopause/src/export/capture.rs:1259-1303). Neither the description nor any test mentions or covers it; the new test callsRuntimeCore.writewith nozero_rangesand never callsunused_ranges().- Still no statement on whether cores exported before this change need a re-export — the note
yatesdrrequired on #331 and that #331's final description carries ("Cores exported before this change may retain a transient workspace address and need a new export"). #606's description omits it. - #331's "outside any caller-owned pool, and the exported graph pool" invariant is now cited but still claimed "preserved"; it is not — that specific invariant is reversed.
- #266 remains referenced, not tested; #332 (export-time pointer-provenance reporting) still unmentioned.
New findings
A. The new test still cannot reach the validation that produced the reported error (narrowed blocker). The quoted failure comes from prepare_allocations' discovery/containment branch (heliopause/src/export/capture.rs:1426-1468, message at :1462-1465) or the below-floor rejection (capture.rs:3380-3389). The test exports through RuntimeCore.write, whose request dict (runtime_core.py:122-133) never sets discover_allocations — the serde default is false (heliopause/src/export/mod.rs:177-178) and the only writer is export_model (runtime_core.py:360) — and it constructs RuntimeCore without device_address_floor (tests/..._cuda.py:237-243 (not opened); default 0 at runtime_core.py:98), whereas the real path passes storage.EXTERNAL_FLOOR on integrated GPUs (runtime_core.py:364). So neither check executes, and the test would also pass if the warmup seed landed below EXTERNAL_FLOOR (core_storage.py:42) — i.e. at addresses a serving context cannot restore, the very failure class at issue. Fix: route the test through export_model (precedent helios/tests/fixed_core_fixture.py:171, helios/tests/gather_core_fixture.py:134 (not opened)) or extend write. Independent of whether the discovery branch actually trips in a service, this leaves the fix's central claim untested in CI-able form.
B. Export cost of the new pool, and a cheap correct fix. The seed's cuBLASLt workspace block is active_allocated in a pool registered in _preparation_pools (core_storage.py:309), and unused_ranges() only reports padding below requested_size (:329-332), so the block is not reported inactive. The device-N extent therefore stays declared and is not treated as content-free anywhere, unlike the graph-pool segments, which are added to zero_ranges explicitly (runtime_core.py:298-299). Whether its bytes are actually transferred depends on reachability: the download loop only visits allocations reached from roots/execution/recorded graph pointers (capture.rs:3167-3182, :3390), and export_model passes no roots (runtime_core.py:354-370), so a workspace no graph references is probably skipped — but that is incidental, unasserted, and would change the moment anything in the pool is numeric-classified. The robust and in-repo-precedented fix is to append the warmup pool's segments to the same zero_ranges extension at runtime_core.py:298-299: the addresses stay declared (validation satisfied) and the content is never written (without_zero_ranges, capture.rs:1305-1320). This also means the earlier autobot review's "avoids bloat by 32 MiB/rank" reasoning is not established by the code as written.
C. Coverage lost in the rewrite. The old test called _seed_warmup_workspaces(fresh_stream, 0, export_warmup) directly, exercising the new third argument on a fresh stream; the new test only reaches it indirectly via capture_forwards. The old transient-cleanliness assertion for the export path is also gone — _active_pool_blocks(transient.id) is now asserted only in the non-export test (:94-96). And the test file's own module docstring is stale: tests/preparation/test_capture_cublas_workspace_cuda.py:4-13 still claims the file "needs no package-export resources" while it now imports ModuleImages, CoreStorage and RuntimeCore (:148-154) — the same class of doc drift the commit set out to fix elsewhere.
D. The CI gap is structural, not a missing run. .github/workflows/ contains only helios-lifecycle.yml (not opened), native-serving.yml and release.yml (not opened); none invokes pytest or the Python suite (pytest, unittest, tests/preparation → no matches under .github), and FLARE_RUN_CUDA_TESTS appears nowhere there. Every CUDA assertion in this PR is local-only by design, so a maintainer must confirm the author's GB10 evidence rather than wait for checks.
E. Mechanism corroboration worth relaying. In the quoted error context 0x0 is a null CUcontext from cuPointerGetAttribute(..., 1, ...) with recorded context Some(125396576) (capture.rs:1443-1460), i.e. the pointer was not a valid allocation in the serving context at all — consistent with a default caching-allocator segment on unified memory. The address 0x4000000000 is exactly CoreStorage.EXTERNAL_FLOOR (core_storage.py:42) and +2097152 is the 2 MiB pool segment, not the 1 MiB of requested tensor bytes (capture.py:73-74). The fix is plausible: core-allocator segments lie inside declared device-N mappings with preserve_address=True (runtime_core.py:308-310), so discovery skips them at capture.rs:1437-1442.
Recommendation update: still Changes Requested. The blocker narrows from "test never touches CoreStorage" to "the test bypasses the two export validations the fix targets (discover_allocations, device_address_floor)" — items A and C, plus should-fix B (state and zero-range the warmup pool) and the re-export question. Items from my earlier report covered by retractions above should be withdrawn.
#9 [high] FINAL AMENDMENT SET for report #4 — head 8c1a28a (retractions + new findings + recommendation)
This note is the authoritative AMENDMENT to report #4 (which described head 2535841). Entries #5/#6/#7 hold the detail; this note fixes scope, retractions, and corrections, and supersedes #7's cost claim.
HEAD: PR #606, head 8c1a28a ("test(ignition): verify CoreStorage.warmup_pool in isolated subprocess and polish docs"), updated 2026-11-29 17:13 UTC, +191/-8, 5 files. Author avifenesh; one author comment claiming all review items addressed; still zero human reviews; labels area:preparation, bug, triage:review.
PRODUCTION CODE ESSENTIALLY UNCHANGED. New only: self._warmup_pool = None (ignition/preparation/core_storage.py:74) and one inline comment (ignition/preparation/capture.py:123). Rest of the delta = test rewrite (+134), docs (+4/-1), description rewrite.
== RETRACT these from report #4 (downstream must not repeat them) ==
- Docstring contradiction in
_seed_warmup_workspaces— fixed;capture.py:52-65now describes both branches consistently. - Doc drift at
docs/preparation-development.md:88-91— fixed;:92-94documentsCoreStorage.warmup_pool()and "inside declared core mappings" (nit: awkward reflow, "mappings. Ranks" at :94). - "GPU test never touches real CoreStorage / declared mappings" — fixed: subprocess test
tests/preparation/test_capture_cublas_workspace_cuda.py:123-145runscheck_export_warmup_pool(:148-254) against realCoreStorage+ModuleImages(asserts_warmup_poolsempty:187, pool id in_preparation_pools:189, active block:190, every warmup segment insidestorage.mappings:197-204, workspace instorage.graph_pool:205). _warmup_poolundeclared in__init__— fixed (core_storage.py:74);warmup_pool()still usesgetattr(:305) only for the CPU fake test (tests/preparation/test_core_storage.py:95-97,CoreStorage.__new__).- Shared
_warmup_streams[0]test-state pollution — fixed by subprocess isolation. - Description missing error text and #331/#266 — fixed; exact native error quoted, both referenced.
== STILL OPEN (unchanged) ==
_preparation_poolsregistration changes exported allocation content viaunused_ranges()(core_storage.py:320-335) ->inactive/zero_ranges(ignition/preparation/runtime_core.py:298-301) ->live_piecessplit/rename ofdevice-N(heliopause/src/export/capture.rs:1259-1303). Undeclared in description; untested (test passes nozero_ranges, never callsunused_ranges()).- No statement whether cores exported before this change need a re-export — required of #331 by yatesdr and present in #331's description.
- #331's "outside any caller-owned pool, and the exported graph pool" invariant is now cited but still claimed preserved; it is the invariant #606 reverses.
- #266 referenced, not tested; #332 unmentioned.
== NEW FINDINGS (A-E) ==
A. NARROWED BLOCKER — test bypasses both validations the fix targets. Quoted failure comes from discovery/containment (capture.rs:1426-1468, msg :1462-1465) or below-floor rejection (capture.rs:3380-3389). Test exports via RuntimeCore.write, whose request dict (runtime_core.py:122-133) never sets discover_allocations (serde default false, heliopause/src/export/mod.rs:177-178; sole setter is export_model, runtime_core.py:360) and constructs RuntimeCore with default device_address_floor=0 (runtime_core.py:98; real path passes EXTERNAL_FLOOR on integrated GPUs, :364). So neither check runs; test would also pass if the seed landed below EXTERNAL_FLOOR (core_storage.py:42). Fix: route through export_model (precedent helios/tests/fixed_core_fixture.py:171, helios/tests/gather_core_fixture.py:134) or extend write.
B. EXPORT-COST CORRECTION (supersedes entry #7's "bytes are written" claim — that was asserted, not proven): the seed's workspace block is active in a preparation pool (core_storage.py:309) and is NOT marked inactive (:329-332); its extent stays inside a declared device-N allocation and — unlike graph-pool segments, which are explicitly added to zero_ranges (runtime_core.py:298-299) — is not treated as content-free anywhere. Whether bytes are transferred depends on reachability: the download loop only visits allocations reached from roots/execution/recorded graph pointers (capture.rs:3167-3182, :3390), and export_model passes no roots (request at runtime_core.py:354-370), so an unreferenced workspace is probably skipped. That is incidental and unasserted. Recommended fix (cheap, in-repo precedent): append warmup-pool segments to the zero_ranges extension at runtime_core.py:298-299 so the address stays declared while content is never written (without_zero_ranges, capture.rs:1305-1320). Also: the earlier autobot review's "avoids 32 MiB/rank of bloat" is not established by the code.
C. COVERAGE LOST in the rewrite: the direct _seed_warmup_workspaces(fresh_stream, 0, export_warmup) call on a fresh stream is gone (third-arg branch now only reached indirectly); the export-path transient-cleanliness assertion is gone (_active_pool_blocks(transient.id) now only in the non-export test, :94-96). Stale module docstring: tests/preparation/test_capture_cublas_workspace_cuda.py:4-13 still says the file "needs no package-export resources" though it now imports ModuleImages/CoreStorage/RuntimeCore (:148-154) — same drift class the commit set out to fix.
D. CI GAP IS STRUCTURAL: .github/workflows/ has only helios-lifecycle.yml, native-serving.yml, release.yml; none runs pytest/the Python suite (pytest, unittest, tests/preparation -> no matches under .github) and FLARE_RUN_CUDA_TESTS appears nowhere there. All CUDA assertions are local-only by design; a maintainer must confirm the author's GB10 evidence, not wait for checks.
E. MECHANISM CORROBORATION: in the quoted error context 0x0 is a null CUcontext from cuPointerGetAttribute(...,1,...) with recorded context Some(125396576) (capture.rs:1443-1460) — the pointer was no valid allocation in the serving context, consistent with a default caching-allocator segment on unified memory. 0x4000000000 is exactly CoreStorage.EXTERNAL_FLOOR (core_storage.py:42); +2097152 is the 2 MiB pool segment, not the 1 MiB of requested tensor bytes (capture.py:73-74). Fix is plausible: core-allocator segments fall inside declared device-N mappings with preserve_address=True (runtime_core.py:308-310), so discovery skips them (capture.rs:1437-1442).
== RECOMMENDATION ==
Still Changes Requested. Blocker narrows to: the new test bypasses the two export validations the fix targets (discover_allocations, device_address_floor) — findings A and C. Should-fix: B, the re-export note, and stating the inactive/zero_ranges export-content effect.