PR #658: fix(ignition): raise GA10B external floor, reseal unified-memory capture window, warm addmm, and mark vocab_ids numeric

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/d664da1f-04d7-451a-87fe-72b4131a69cc

Opened by a workflow run, Dec 1, 2026 12:37 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: lukealonso (COLLABORATOR; charter-named priority contributor, 35 merged PRs in 180 days, dominant committer in ignition/preparation, ignition/components and tests/preparation; Discord lukealonso) Motivation: On Jetson Orin (GA10B/8.7) unified-memory GPUs, core export was fragile: static library tables can look like pointers, the first CUDA graph capture reopens address spans preparation had sealed, cuBLAS addmm workspaces were not pre-seeded outside capture, and a persistent token table was scanned for pointers. The PR raises an address floor for that one GPU, adds a probe capture plus re-sealing, seeds addmm, and marks the token table numeric. Scale: +180 / −3 lines in 5 files (production ≈ +27 / −3; tests +153 / −0) Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #658 (fix(ignition): raise GA10B external floor, reseal unified-memory capture window, warm addmm, mark vocab_ids numeric)

Charter alignment. The diff sits entirely in Ignition's preparation/export layer — no Rust, Protobuf, CLI, config or core-format change — so it does not bloat Helios or add runtime per-model branches, consistent with "keep the runtime small and model-agnostic." SM87/GA10B is absent from the charter's Goal sentence (SM103/120/121), but shipped code already supports it (ignition/planning.py:38), so this follows the code rather than fighting it. Two frictions: a (8,7)-only EXTERNAL_FLOOR is a per-GPU special case in shared preparation code (precedent exists in the same file, so continuation not new departure), and raising a floor to dodge a pointer-scan collision mitigates the heuristic instead of removing the false-positive mechanism — against "bug fixes need to address the root cause."

Novelty & status. Neither obsolete nor superseded. The corrected constant came from c9935887 (2026-11-27, same author) and is still on main; nothing merged reseals the low window after CUDA graph capture, though the existing reseal sites (core_storage.py:252-254,268-296) show how easily the gap reappears. Open PR #606 edits the same three files and the same _seed_warmup_workspaces function with compatible but different intent — overlap, not competition; whoever lands second hand-rebases (including the colliding test_core_storage.py:83+ region).

Value vs maintenance cost. Beneficiaries are Linux integrated GA10B preparation users — narrow but real — and the author is a charter priority contributor and dominant owner of these directories. Footprint is small (+27/−3 production). Evidence, however, is thin for a bug fix: the cuRAND collision is assertion only (no dump, log or error string in the tree), both new tests check ordering/config and would pass on unfixed main, the CUDA tests covering the changed capture path were not run, and the live SM87 export / Orin Nano serving results are self-reported on a checkout preceding the rebase onto the reviewed head.

Required changes. (1) Attach the export log or address dump backing [0x3_0000_0000, 0x3_0300_0000], or drop defect #1. (2) Fix the arithmetic — 0xf_0000_0000 is DEVICE_BASE − RESERVATION_BYTES, so the band is 36 GiB not 24 GiB — and strengthen test_ga10b_… to assert the real span. (3) Update docs/runtime-core-design.md:113-116 and docs/windows.md:226, still saying 256 GiB. (4) Reconcile with #606; gate or document the Windows probe-capture/reseal asymmetry; quantify the per-graph seal_low_window() scan over 4→36 GiB. (5) Justify or drop vocab_ids, which has no in-tree consumer.

Verdict: Worth it with changes — genuine low-address hygiene in the right layer, contingent on the evidence and documentation corrections above.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, area:memory, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +area:memory, +area:preparation

Subtraction and simplicity

Subtraction/Simplicity review of PR #658. The production diff is lean (+27 lines, 3 files; no new flags, config keys, env vars, fallback branches, or dead code), so findings concentrate in the tests plus one duplicated reseal. Six ranked suggestions; ~40 lines removable with no coverage loss.

Lean and not flagged: capture.py:69-73 addmm seeding, core_storage.py:66-73 constants, sampling.py:125-131, the probe capture itself (necessary — the per-graph reseal at :226 happens after that graph's capture).

Open: intended band 24 vs 36 GiB; evidence for the cuRAND pattern range; whether transient()'s reseal is believed insufficient for the probe; Windows asymmetry intentional?; merge order with open #606, which edits the same function and the same test_core_storage.py:83+ region.

Full report · Notes

Correctness and contracts

Reviewed PR #658 (head f4851b3) across correctness, system-level consequences, contracts and tests. One major ordering defect, one major claim-accuracy defect, and four minor issues; the wire/export contract side is sound.

  1. Major — the new post-capture reseal runs one graph too late and is skipped entirely on the elif retain_graphs: path (ignition/preparation/capture.py:222-228). The seal after capture N only protects capture N+1, so each serving capture still runs with the previous capture's reopened low spans available; the new test enshrines that wrong order.
  2. Minor — redundant sweep: capture.py:184 seals again immediately after with warmup(): exits, and CoreStorage.transient already empties the cache and seals (core_storage.py:287-296).
  3. Minor/Major unmeasured cost — the floor moved 12→36 GiB while seal_low_window still scans from 4 GiB (core_storage.py:42-44,164-191), so each sweep covers 32 GiB instead of 8, run 1+once-per-exported-graph (10 passes on the reported 9-graph export); no measurement given.
  4. Major — the new comment and the PR text state the external band is "24 GiB [0x9_0000_0000, 0xf_0000_0000) … below DEVICE_BASE (0x12_0000_0000)" (core_storage.py:67-70), but 0xf_0000_0000 is DEVICE_BASE − RESERVATION_BYTES; the band is 36 GiB. The added assertion (tests/preparation/test_core_storage.py:113) is too loose to catch it.
  5. Major — the cuRAND collision claim has no in-repo evidence, and the live SM87 runs are self-reported on a pre-rebase checkout (a747a5a5) while head is f4851b3; the CUDA tests over the changed path are env-gated and were not extended (test_capture_cublas_workspace_cuda.py:22-23).
  6. Minor — no new test fails on main: the GA10B test fakes _Cuda() to raise, bypassing _reserve_low_window entirely; the other three assert ordering/config only.
  7. Minor — platform parity: the probe capture is gated on integrated alone (capture.py:173) while seal_low_window no-ops on Windows (core_storage.py:170), and the design docs still claim a 256 GiB floor.
  8. Minor — addmm seeding does not pin preferred_blas_library, so which workspace is warmed depends on ambient settings.

Sound: no wire/Protobuf/CLI/Rust change; device_address_floor semantics and core load compatibility preserved; new constants stay inside the 128 GiB GA10B window; the vocab_ids registration is inert outside CoreStorage numeric scope; no uninitialised read in the addmm seed.

Open: what evidence backs the cuRAND range; whether the band should be 24 or 36 GiB; whether defect #4 was ever observed; who rebases against overlapping open PR #606.

Full report · Notes

Final review

Recommendation: Changes Requested

The production fixes across core_storage.py, capture.py, and sampling.py are small (+27/−3 production lines), technically sound, and address real unified-memory preparation and address-hygiene defects without touching Helios, core wire formats, or serving hot paths. Before merging, please fix two concrete defects in the new code/tests: a sys.modules test-isolation leak in the dead-in-CI flashinfer import stub (tests/preparation/test_core_storage.py:122-128), and an incorrect external address band (24 GiB [0x9_0000_0000, 0xf_0000_0000) instead of 36 GiB [0x9_0000_0000, 0x12_0000_0000)) in both ignition/preparation/core_storage.py:68-70 and the PR description; also consider dropping the redundant post-warmup() sync/reseal at ignition/preparation/capture.py:183-184.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. Fix the external address-band arithmetic in ignition/preparation/core_storage.py:68-70 (and PR description): The new comment claims external library allocations lie in "the 24 GiB [0x9_0000_0000, 0xf_0000_0000) range" below DEVICE_BASE (0x12_0000_0000). The actual constants (EXTERNAL_FLOOR = 0x900000000 = 36 GiB, DEVICE_BASE = 0x1200000000 = 72 GiB, RESERVATION_BYTES = 48 << 30 = 48 GiB) are internally consistent (72 + 48 = 120 GiB < 128 GiB), which leaves a 36 GiB band [0x9_0000_0000, 0x12_0000_0000) below DEVICE_BASE—not 24 GiB ending at 0xf_0000_0000 (60 GiB). Update the comment on core_storage.py:68-70 and the PR description to state 36 GiB [0x9_0000_0000, 0x12_0000_0000) (or adjust the constants if 60 GiB was actually intended).
  2. Remove the dead, sys.modules-leaking flashinfer stub in tests/preparation/test_core_storage.py:122-128: CI installs flashinfer-python[b12x] via uv sync --extra prepare --extra test (.github/workflows/python-cpu.yml:29 (not opened), pyproject.toml:25), and existing CPU tests already import DeviceRequestState directly at module scope (tests/components/test_state_transfer.py:13). Worse, when flashinfer is absent and the stub branch executes, monkeypatch.delitem(sys.modules, "ignition.components.sampling", raising=False) records nothing if sampling was not previously imported, so the subsequent from ignition.components.sampling import DeviceRequestState leaves a stub-poisoned ignition.components.sampling module (with filter_probabilities_out = None, probability_filter_workspace = None, sample_probabilities = None) cached in sys.modules after test teardown. Delete lines 122-128 and import DeviceRequestState directly (and optionally exercise a real tensor_metadata.NumericStorage() context instead of monkeypatching record_numeric_tensor, since NumericStorage works on CPU tensors).

Subtract / Simplify

  1. Drop redundant stream.synchronize() and warmup_storage.seal_low_window() after the probe with warmup(): block (ignition/preparation/capture.py:183-184): When warmup_storage is a CoreStorage, warmup is bound to warmup_storage.transient (capture.py:116), whose __exit__ (ignition/preparation/core_storage.py:290-296) already runs torch.cuda.synchronize(self.device) unconditionally and—because retain_transient_backing() closed at capture.py:144 (shared == False)—runs del pool, torch.cuda.empty_cache(), and self.seal_low_window(). Lines 183-184 therefore repeat a sync and a full low-window sweep immediately after transient().__exit__() on every integrated-GPU export (both GA10B and GB10). Delete capture.py:183-184 (and update test_capture_graph_metadata.py:559-568 by having the fake transient() invoke seal_low_window() on exit, matching CoreStorage.transient()), or document in the comment why a post-transient() sweep is still required (e.g., if an outer retain_transient_backing() caller is supported).
  2. Deduplicate the ExportGraph + torch.cuda monkeypatch setup in tests/preparation/test_capture_graph_metadata.py:527-544: Lines 527-544 repeat test_capture_forwards_export_sets_node_priority_instantiation_flag (:332-348) nearly verbatim. Extracting a small helper removes ~18 lines of boilerplate.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: no (78%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.