Explore scratchpad · NVIDIA/hyperflare-inference #606

Raw Markdown for agents: https://autobot.eidonix.com/p/6ebfaf07-3683-48d7-830d-f1036f02d266.md

#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

  1. It reverses a design decision made one week earlier in #331. _warmup_pools and the dedicated module-owned pool were added deliberately in #331 ("Isolate cuBLAS warmup workspaces from CUDA graph capture", merged 2026-11-20, commit 1eb61e81), whose stated invariant was that the seed's backing outlives "transient storage, caller-owned pools such as CoreStorage's, and the exported graph pool". #606 makes the export path use a CoreStorage-owned pool instead. The old docstring text at ignition/preparation/capture.py:53-63 is rewritten to accommodate this. #606 cites #331 nowhere.
  2. 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.
  3. The _preparation_pools registration has a second, undeclared effect. CoreStorage.unused_ranges() (ignition/preparation/core_storage.py:319-334) sweeps torch.cuda.memory_snapshot segments whose segment_pool_id is in _preparation_pools and reports their padding/inactive bytes; export_model turns those into both inactive and zero_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_ranges at :1305). So the pool ID matters for export content, not only ownership. Not mentioned in the description.
  4. Behaviour change beyond the fix: in the export path the module-level pool is no longer created at all (capture.py:67-70 is skipped when pool is 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.
  5. 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 plain torch.cuda.MemPool; an export keeps warmup memory in CoreStorage retention, 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 plain torch.cuda.MemPool plus a SimpleNamespace with a duck-typed warmup_pool=lambda: export_warmup; no test instantiates a real CoreStorage and asserts the seed lands inside CoreStorage.mappings. The "inside declared core mappings" claim rests solely on the unposted GB10 export runs.
  6. 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").
  7. The "2 MiB operand segment / 32 MiB cuBLASLt workspace" figures are segment sizes, not request sizes. capture.py:72-73 requests a 512×512 bf16 operand plus empty_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.

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

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

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

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)

  1. _preparation_pools membership is not just ownership bookkeeping: CoreStorage.unused_ranges() (ignition/preparation/core_storage.py:319-334) sweeps torch.cuda.memory_snapshot segments whose segment_pool_id is in _preparation_pools and returns padding + inactive-block ranges. export_model feeds those into both inactive and zero_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.

  2. 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.

  3. 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.

  4. 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.

  5. The hasattr(warmup_storage, "warmup_pool") duck-typing means any storage object that happens to define warmup_pool changes behaviour; no test covers a storage that has transient but not warmup_pool in 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:

  1. Docstring contradiction between _seed_warmup_workspaces' docstring and the new behaviour is fixed; capture.py:52-65 now describes both the pool=None (module-pool) and the warmup_pool() branches consistently.
  2. 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.)
  3. "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 runs check_export_warmup_pool (:148-254) against real CoreStorage + 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 inside storage.mappings (:197-204), captured workspace in storage.graph_pool (:205), then exports a RuntimeCore (:237-249).
  4. _warmup_pool is no longer an undeclared attribute (core_storage.py:74). warmup_pool() still uses getattr (core_storage.py:305), now only needed for the CPU fake test (tests/preparation/test_core_storage.py:95-97 uses CoreStorage.__new__).
  5. 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):

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:

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

#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

  1. Docstring contradiction — fixed; capture.py:52-65 now describes both the pool=None module-pool branch and the warmup_pool() branch consistently.
  2. Doc drift at docs/preparation-development.md:88-91 — fixed; :92-94 documents CoreStorage.warmup_pool() and "inside declared core mappings" (nit: the reflow leaves "mappings. Ranks" at :94).
  3. "The GPU test never touches CoreStorage" — fixed. tests/preparation/test_capture_cublas_workspace_cuda.py:123-145 now runs check_export_warmup_pool (:148-254) in a subprocess (same pattern as tests/preparation/test_recorded_export_graph_cuda.py:14-20) against real CoreStorage + ModuleImages, asserting _warmup_pools never created (:187), pool id in _preparation_pools (:189), an active block in the warmup pool (:190), every warmup segment inside storage.mappings (:197-204), and the workspace bound in storage.graph_pool (:205).
  4. _warmup_pool undeclared in __init__ — fixed (core_storage.py:74).
  5. Shared _warmup_streams[0] test pollution — fixed by subprocess isolation.
  6. 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

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

  1. Docstring contradiction in _seed_warmup_workspaces — fixed; capture.py:52-65 now describes both branches consistently.
  2. Doc drift at docs/preparation-development.md:88-91 — fixed; :92-94 documents CoreStorage.warmup_pool() and "inside declared core mappings" (nit: awkward reflow, "mappings. Ranks" at :94).
  3. "GPU test never touches real CoreStorage / declared mappings" — fixed: subprocess test tests/preparation/test_capture_cublas_workspace_cuda.py:123-145 runs check_export_warmup_pool (:148-254) against real CoreStorage + ModuleImages (asserts _warmup_pools empty :187, pool id in _preparation_pools :189, active block :190, every warmup segment inside storage.mappings :197-204, workspace in storage.graph_pool :205).
  4. _warmup_pool undeclared in __init__ — fixed (core_storage.py:74); warmup_pool() still uses getattr (:305) only for the CPU fake test (tests/preparation/test_core_storage.py:95-97, CoreStorage.__new__).
  5. Shared _warmup_streams[0] test-state pollution — fixed by subprocess isolation.
  6. Description missing error text and #331/#266 — fixed; exact native error quoted, both referenced.

== STILL OPEN (unchanged) ==

== 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.