#1 [high] Change: what PR #711 adds, in plain terms, and size
PR #711 by lukealonso, opened 2026-12-03, open/ready for review, base main, head 6916f22. 57 files, +6387/−72 (pr_files). No comments/reviews (pr_comments returned none).
Four separable pieces bundled in one PR:
- New Helios subsystem
helios/src/async_transfer/(new files: mod.rs, ring.rs 623, scheduler.rs 857, worker.rs 1411, io_backend.rs 301, lifecycle_tests.rs 342, kani_proofs.rs 217) — a host worker per declared channel that does O_DIRECT/io_uring reads from core payload extents into a pinned host pool and Copy-Engine copies host→device pool, driven by a mapped-host SPSC command ring. - New protobuf surface:
Capacity::DEVICE_POOL = 2(helios/proto/runtime_core.proto:781),Execution.async_transfersfield 9 (:837-859),RankBody.external_extentsfield 18 +ExternalExtentTable(helios/proto/core.proto:176-186). Additive; defaults are empty. - Runtime-sizing knobs and VRAM accounting: new
PoolMemoryLimittype (helios/src/runtime_core/limits.rs) + CLI--pool-vram-memory/--pool-ram-memoryand[memory] pool_vram/pool_ram(flare-cli/src/cli.rs, config.rs); device VRAM reserve for pinned-host MMU page tables + 256 MiB margin before sizing DEVICE_POOL and KV (helios/src/runtime_core/memory.rs). - Ignition capture seeding:
_seed_auxiliary_workspacesand_seed_library_device_cachesin ignition/preparation/capture.py, plusretain_transient_backingspan across uncompiled warmups (capture.py), and Python-side refusal of async_transfers (PreparedExecution/PreparedModelraise "async transfer channels require native core serving").
Genuinely separate from all that: helios/src/server/metrics.rs async-transfer Prometheus renderer, helios/src/server.rs attach hook, helios/build.rs, helios/manifest.md, verification/helios-lifecycle/AsyncTransfer.{tla,cfg} + check.py harness.
Description explicitly excludes: whole-model recipe implementations and end-to-end serving throughput benchmarks.
#2 [high] Change: method caveat — pr_diff is polluted by newer main, pr_files is authoritative
The local repo snapshot is inconsistent: pr_diff and ref: main are computed against a stale base (cc0a49d), so pr_diff shows unrelated newer-main work as if it were part of this PR. Evidence: pr_diff for docs includes docs/TODO.txt, docs/api.md, docs/core-design.md, docs/model-preparation.md, docs/prefix-cache-offload.md, none of which appear in pr_files; pr_diff for flare-cli includes flare-cli/src/orbit/* typo fixes ("a orbit"→"an orbit") that are newer-main only (search_code at ref main finds "a orbit" in flare-cli/src/orbit/mod.rs:36); pr_diff for helios/src includes helios/src/server/http.rs PreparationError/failure_response and host_cache_disk_reserved/pool_inbound metrics, absent from pr_files.
Consequences for reading the diff:
helios/src/runtime_core/cache_memory.rs(+1/−0 in pr_files) is a huge alias_plane/Layout::new/plan_mapping_handles rewrite in pr_diff — that rewrite is NOT this PR (probably a merged main PR or #659 work). The PR's single line is likely#[derive(Clone, Debug)]onLayout(needed by the new clone() use).helios/src/runtime_core/memory.rs(+336/−3) real content = async_transfer_device_reserve / PlannedHostBudgets / DEVICE_POOL sizing +resize_device_pool_buffer+ tests; thelargest_countargument threading intoalias_planeis newer main (PR's alias_plane still has 6 args because main moved it).helios/src/runtime_core/mod.rs(+248/−2) andprotobuf.rs(+149/−0) diffs read fine as PR content. So: rely on pr_files for scope; read pr_diff for the four PR areas only (helios/src/async_transfer/, runtime_core/protobuf.rs+mod.rs+memory.rs+limits.rs, heliopause/src/export/binding.rs+capture.rs, ignition/preparation/execution.py+capture.py+runtime_core.py, flare-cli/src/{cli,config,main}.rs).
#3 [high] Project fit: charter's captured-graph op-contract approval rule vs new contract surface
The charter (read_charter) says under Standards: "Captured-graph op contracts: Adding a new one—even if it reuses an existing graph kind—requires owner approval before you write it." Also "Keep the runtime small and model-agnostic" and "No per-model special cases or flags", "Be explicit and pin everything", "Bring real evidence: Performance PRs need benchmarks showing an actual speedup over main on a served workload".
PR #711 adds new captured-graph contract surface: Execution.async_transfers + opcodes DISK_TO_HOST/HOST_TO_DEV/DISK_TO_DEV/CANCEL_EPOCH + Capacity::DEVICE_POOL + RankBody.external_extents. Under the charter this is exactly the "new op contract" case needing owner approval; description records no approval. #711 IS authored by lukealonso, who the charter names as a project owner / priority contributor ("@lukealonso"), so "owner approval" is arguably self-supplied — but there is also no human review recorded (pr_comments empty), and no second-owner sign-off.
Also relevant: the charter's "New model recipes ... prove they export and serve cleanly from the PR branch" — #711 explicitly excludes whole-model recipes and any end-to-end serving benchmark, i.e. the new primitive ships with no in-repo consumer and no served-workload benchmark. PR record shows CI pending on head 6916f22.
Cross-connection: in #664's Autobot reviews, the same gate (docs/design-review.md:22-26) is cited as a hard blocker for adding Encoding.BF16/Method.IDENTITY — the "new contract surface needs recorded owner approval + linked producer" rule is applied to another author's PR. Consistency question for reviewers of #711.
#4 [high] Project fit: design-review principles 1, 12, 13 applied to #711
docs/design-review.md:22-26 (Principle 1): "Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso lalonso@gmail.com. Shape and capacity variants are allowed within an unchanged operation contract. A new operation contract requires approval even if it reuses a graph kind or enum value. A design acknowledgment does not grant approval."
Applied to #711: the PR introduces a new captured-graph operation family (async transfer commands DISK_TO_HOST/HOST_TO_DEV/DISK_TO_DEV/CANCEL_EPOCH with a new mapped-host ABI_VERSION=1 control region, plus new Capacity::DEVICE_POOL, plus authenticated RankBody.external_extents). The project owner named in Principle 1 is Luke Alonso = the PR author, so the approval requirement is in practice self-satisfied, but there is no recorded approval note nor any second-owner review on the PR (pr_comments empty; reviews: none).
docs/design-review.md:116-123 (Principle 13): "Every engine version must load models supported by previous engine versions without re-export ... Protobuf additions must preserve existing behavior through compatible defaults ... Validate previous cores through loading and serving." #711 asserts compatibility ("Previously exported cores without async_transfers, external_extents, or DEVICE_POOL load and serve unchanged") but lists no run of a previously exported core through flare run in its evidence.
docs/design-review.md:106-115 (Principle 12): "Performance claims require equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements ... Correctness failures block performance claims; keep raw measurements and disclose unrun checks". #711 has no served-workload benchmark; the PR says "Whole-model recipe implementations and end-to-end serving throughput benchmarks are intentionally excluded from this PR".
docs/design-review.md:171-178 testing hierarchy: hardware execution/core-compat/serving benchmarks remain governed by 12/13.
Also docs/design-review.md:163-169 (Principle 17) requires a Discord contact line; #711 has "Discord: lukealonso" — satisfied.
#5 [high] Related work: #430 persistent_workers is the direct precedent (and the approval model #711 lacks)
- #430 (merged 2026-11-23, original-el8, "Add Execution.persistent_workers green-context lifecycle") is the closest precedent: it added
Execution.persistent_workers(field 8) +PersistentWorkerand a bounded 5 s drain with stickyFailedDrainretaining GPU resources. Its thread shows exactly how Principle 1 approval is recorded: yatesdr asked "Does that need approval as a new captured-graph operation contract before merge?", and lukealonso ended withreview: APPROVED — "Approved, including Principle 1 approval for the Execution.persistent_workers captured-graph operation contract."#711 reproduces the same shape (newExecution.async_transfers+Reference control, bounded 5 s drain,ChannelState::FailedDrain, resources retained to process exit) but with no recorded approval and no reviewer. - #711's
AsyncTransferis structurally the sibling ofPersistentWorker: sameReference-into-MappedHostcontrol-region pattern, same bounded-drain/retain-on-failed-drain lifecycle, same "channels run only through exported cores served by flare run" restriction (cf. #430's rejection of in-process execution). Helios/src/async_transfer/* is new; items_touching("helios/src/async_transfer") returns only #711, so no competing implementation exists. - Overlap/dependency candidates from items_touching on the changed files: #709 (open, same author, runtime_core/memory.rs), #659 (open, same author, memory.rs), #694 (open, yatesdr, memory.rs + metrics.rs + verification/check.py), #554 (open draft, ateska, verification/helios-lifecycle + metrics.rs + proto), #664 (open, kbenkhaled, proto + binding.rs), #674/#646/#613/#620 merged, memory.rs/proto churn. No PR is superseded or undone by #711.
- #640 (open) "helios: allow persistent workers on rank 0 of local multi-rank cores" and #622 (open) also touch the same proto/worker area — the persistent-worker contract is still being extended, so #711's async_transfer contract will face the same multi-rank questions (#711 itself says TP>1 is untested).
#6 [high] Related work: #606 overlaps #711's capture.py workspace seeding
Most important: ignition/preparation/capture.py is being edited simultaneously by several open PRs in the same functions:
- #606 (open, avifenesh, FIRST_TIME_CONTRIBUTOR, "fix(ignition): seed warmup workspaces inside export storage pool") adds
CoreStorage.warmup_pool()and changes_seed_warmup_workspaces(stream, device, pool=None)+ thecapture_forwardscall site (capture.py:52-75, :118-124 per its Autobot review) to stop allocating warmup cuBLAS workspaces outsideCoreStorage.mappings. #711 instead adds_seed_auxiliary_workspaces(...)(capture.py:74-100 region) usingwarmup_storage.graph_poolandsession._scratch_arena._auxiliary_stream. Both fix "seeded workspace lives outside exported/persistent storage", in adjacent code, with different pools (warmup_pool vs graph_pool). Textual conflict is likely; semantic duplication is plausible. - #658 (open, same author lukealonso) edits capture.py (GA10B floor/unified-memory capture window); #710 (open, original-el8) edits capture.py; #597 (open) touches test_transient_retention.py; #608/#641 (merged) touched test_transient_retention.py.
- test_transient_retention.py is the shared test file for #597, #608, #641, #658 and now #711 (+88 lines) — a known churn hotspot.
#7 [high] People: author is the named Principle-1 approval owner, with 42 merged PRs in 180 days
Author: lukealonso, GitHub association COLLABORATOR, named in the charter as one of three priority contributors whose PRs must not be closed out of hand, and named in docs/design-review.md:22-23 as the project owner who must approve new captured-graph operation contracts. Two other project owners are @voipmonitor and @original-el8 (charter line on Priority contributors). History: 42 merged PRs and 5 open in the last 180 days. Areas their merges touch: helios/src (29), docs (23), ignition/preparation (14), flare-cli/src (10), tests/preparation (10). Recent merged examples: #708 (VLM feature tokens), #695 (local tuning across TP ranks), #684 (sampling loop collapse), #683 (ignition CLI prog), #670 (THINK_TAGS/TAGGED_JSON), #667 (Orbit payload integrity/GB10 page cache), #646 (Orbit rank cache/NVML), #613 (deferred_prefill checkpoints), #645 (prefill scheduling overhaul), #614 (lifecycle test parallelization), #595 (TLA+ invariant blindspot). Open concurrently: #709 (lossless KV compression), #707 (RoCE ABI-14 sync), #668 (multi-host selections), #659 (null continuation row alias). So the author owns the areas and the rules; reviewers of #711 are effectively checking a self-approved contract extension by the repo's most prolific committer. Nobody else has engaged yet: pr_comments returns nothing (no human comments, no Autobot review posted yet), reviews: none. People who usually work in the touched areas (from items_touching): yatesdr (selene/offload/metrics/verification), original-el8 (capture.py/GB300), voipmonitor (proto/engram/collectives), FujitsuPolycom (scheduler/lifecycle), ateska (#554), kbenkhaled (#664), jcartu (#687 flare-cli man page), WynnD (metrics). None have commented on #711.
#9 [high] Claims vs evidence: code matches described defaults/limits; all measurements are self-reported
Claims in the description vs what the tree/test evidence shows: VERIFIED BY READING CODE:
- Additive protobuf, empty/zero defaults:
Capacity::DEVICE_POOL = 2appended after KV_PAGES (helios/proto/runtime_core.proto:781);Execution.async_transfers = 9andRankBody.external_extents = 18appended (runtime_core.proto:837, core.proto:176-186);#[serde(default)]added in helios/build.rs for async_transfers/device_completions/extents.helios/src/core/schema.rsallocation_extentnow accepts sizing capacity 0|1|2 and still requires Device memory + fixed address;decodeandpayload_rankdefaultexternal_extents: vec![]. Legacy cores therefore decode; but see the compatibility caveat entry. - Python in-process rejection: PreparedExecution.start_executor / .serve (ignition/preparation/execution.py:458-465, :481-488), PreparedModel (model.py:96-101) raise "async transfer channels require native core serving"; heliopause/src/python.rs:311-322 rejects non-empty async_transfers in the direct-execution manifest. Matches the description.
- VRAM accounting:
ASYNC_TRANSFER_DEVICE_MARGIN_BYTES = 256 MiB,page_tables = pinned.div_ceil(512),PlannedHostBudgets { offload_host, async_transfer_host_caps }in helios/src/runtime_core/memory.rs:24-105, applied before DEVICE_POOL/KV sizing (memory.rs ~1113-1213) and passed into prepare_async_transfers. Matches "2 MiB per GiB + 256 MiB margin". Unit testasync_transfer_device_reserve_accounts_for_pinned_host_page_tablesasserts 160 GiB → 320 MiB + bounce + margin. - Bounded concurrency and drain: worker.rs:40-50 DRAIN_TIMEOUT 5 s, DEFAULT_MAX_TOTAL_IO 32, BG_IO 8, TOTAL_DMA 16, BG_DMA 4, 16 bounce slots × 32 MiB = MAX_BOUNCE_POOL_BYTES. Matches description numbers.
- CLI:
--pool-vram-memory/--pool-ram-memory(flare-cli/src/cli.rs:945-964),[memory] pool_vram/pool_ram(flare/src/configuration.rs:49-50, :92-101), forwarded in rank_options (cli.rs:1170-1178),PoolMemoryLimitparse/validate/Display with zero-as-valid (helios/src/runtime_core/limits.rs:128-205). Tests in cli.rs and limits.rs match the claimed "7 passed" style coverage. NOT VERIFIABLE FROM REPO / SELF-REPORTED ONLY: - Every measured number in "Supporting evidence": TLC 26,242 states/2,383 distinct/8 invariants, all 10 TLA+ models, 9 Rust conformance harnesses/314 transitions, 4/4 Kani proofs, and the per-crate test tallies (eos 12, selene 585+1, selene-manager 205+12 binaries, flare 251, flare-cli 7, heliopause 230, helios 1,851, Python 220 + 1 GPU test). Those commands are disclosed but not attached as logs; CI is pending.
- The SM120 measurement "2.00 MiB/GiB (320.00 MiB for 160 GiB)" is consistent with the code's div_ceil(512) arithmetic but is a self-reported hardware measurement.
- No end-to-end serving benchmark and no whole-model recipe (explicitly excluded by the author).
#11 [high] The why: no linked issue, bug, or roadmap item — demand is asserted
The "why" as stated: captured CUDA graphs cannot do host O_DIRECT/io_uring reads, cannot pin host memory, cannot size VMM device pools at load time, cannot drive asynchronous CE transfers with stream-ordered completion, and cannot run bounded teardown drains — so models whose read-only weight payloads exceed single-GPU VRAM need this primitive in Helios. No linked issue, bug report, or prior request is cited anywhere in the description. search_items for "async transfer O_DIRECT io_uring device pool", "pinned host pool weight offload captured graph", "offload weights to host memory larger than VRAM", "DEVICE_POOL capacity sizing", "model weights exceed VRAM offload host memory tiered" all return ONLY #711 itself. So the demand is asserted, not documented — there is no recorded user/field report, no regression, no roadmap item behind it. Charter's "What gets merged" list requires a maintainer request, roadmap item, reproducible bug, measured performance/memory issue, or bad docs; #711's own rationale (an architectural enabler for external recipes that do not exist yet) fits none of those on its face and depends on the owner's judgment. Adjacent evidence that big-weight/big-table memory pressure is a live concern in the repo: #664 (kbenkhaled, open) exists because Gemma-4 PLE tables take 4.38–5.25 GiB on unified-memory GPUs; #554 (ateska, open draft) exists because DeepSeek V4.1 Engram tables are 188.8 GiB and heap pressure forces disk mode, citing issue #193 (gb202 TP4 on 4× RTX PRO 6000 with 125 GiB host RAM). Those solve the same class of problem with model-specific/lower-layer mechanisms, which strengthens the case that the need is real while showing #711's generality claim is not demonstrated by any of them.
#15 [high] Change: load-time behaviors not in the description (rank-min pool, buffer shape rewrite)
Code-level risks a decider should know (not a code review, just what the change does at runtime):
- The pinned host pool is registered during
NativeModel::load, i.e. GPU-side page tables are consumed at load, before serving. The reserve is computed only whenhas_async_transfers(helios/src/runtime_core/memory.rsallocate_caches), and DEVICE_POOL physical backing is mapped at the fixed VA insideallocate_cachesviaNativeResources::map_device_pool(helios/src/runtime_core/mod.rs:1410-1460: cuMemCreate + cuMemMap + grant access + cuMemsetD8 + cuCtxSynchronize). A failure here fails load, not serving. - The DEVICE_POOL size is the min across ranks (
agreed_bytes = agreed_bytes.min(chosen)), so a rank with less free VRAM shrinks every rank's pool;resize_device_pool_bufferthen rewritesExecution.buffersviews tofloor(bytes/row_bytes)rows (memory.rsresize_device_pool_buffer), silently truncating the declared shape — a captured graph expecting more slots than fit would see a different shape than exported. Nothing in the description says the pool is rank-min-agreed or that buffer shapes are rewritten at load. - Channel enumeration reads
cores[0].allocationsto discover DEVICE_POOL names and then requires each rank to have an allocation of the same name (rank lacks matching device pool allocationerror) — so a partly-declared pool is a load error rather than a fallback. cache_geometrynow skips any sizing withcapacity == 1only (else if sizing.capacity == 1) instead of the previouselse, so a DEVICE_POOL allocation can never be mistaken for a KV plane — but any future capacity value would silently be ignored too.prepare_async_transfersopens each extent's backing file and builds the io_uring backend per channel at load; on non-Linux thePreadBackendpath is compiled but never exercised in this PR (author-disclosed).- Every consumer path in Python is blocked from in-process execution (4 raise sites), so async_transfers can only ever be exercised through
flare runon an exported core.
Compatibility claim check: PR says "Previously exported cores without async_transfers, external_extents, or DEVICE_POOL load and serve unchanged." Code supports this (all new fields default empty; allocation_extent widens 0|1 → 0|1|2; required_payloads only adds payloads when tables exist; teardown loops over an empty channel list). But no previously-exported core is shown being loaded/served at this head — design-review Principle 13 requires that demonstration.
#17 [high] Synthesis: what the description does not tell a decider
The one thing a reader cannot learn from the PR description, in one place:
- The PR introduces a new captured-graph operation family (
Execution.async_transfers, opcodes 1-4, mapped-host ABI v1) plus a new core payload class (RankBody.external_extents, signed asPayloadRole::Weights) and a newCapacity::DEVICE_POOL— the exact case docs/design-review.md:22-26 reserves to project-owner approval, and the exact case yatesdr challenged on #430 until lukealonso wrote "Approved, including Principle 1 approval". #711 records no such approval and has no reviewer at all. - No issue, bug, field report, roadmap item, recipe, or benchmark backs it — every search for prior demand returns #711 itself. The problem class is real (#664, #554/#193) but nothing in the repo consumes the new primitive, and the author excludes whole-model recipes and serving throughput benchmarks.
- It quietly changes load-time VRAM accounting for every core that declares a channel: a fixed 256 MiB margin plus 2 MiB/GiB of registered host memory is subtracted from
availablebefore DEVICE_POOL and KV sizing, DEVICE_POOL size is the minimum across ranks, andExecution.buffersviews onto the pool are rewritten to floor(bytes/row_bytes) rows at load. - It overlaps an open PR (#606) fixing the same transient-workspace seeding problem in the same
capture_forwardsregion of ignition/preparation/capture.py, on top of merged #331, and edits a test file (tests/preparation/test_transient_retention.py) that #597/#608/#641/#658 all touch. - The diff shown by tooling against the stale base over-attributes a large
cache_memory.rsmapping-layout rewrite and unrelateddocs/*,server/http.rs, and orbit-typo changes to this PR; the authoritative file list is 57 files, +6387/−72, andcache_memory.rscontributes exactly one line. - Evidence quality: formal artifacts (TLA+ AsyncTransfer.tla + cfg, conformance harness, four Kani proofs) follow the repo's house style for new concurrency mechanisms and are a genuine strength; all numeric results and per-crate test tallies are self-reported, CI on 6916f22 is pending, and TP>1 / cross-node / SM103/SM121 / Windows are explicitly untested even though "models larger than one GPU" is the stated motivation.
#18 [high] Research summary
Case file for PR #711 (lukealonso, open, ready for review, head 6916f22, 57 files +6387/−72, no comments/reviews, CI pending, <1 day old). 17 scratchpad entries cover all eight angles; the findings are summarized below.
What it is. Four things bundled: (1) a new helios/src/async_transfer/ subsystem (worker/ring/scheduler/io_backend, ~3,700 lines) that reads 4 KiB-aligned core extents via O_DIRECT+io_uring into a pinned host pool and DMAs them into a runtime-sized device pool, driven by a mapped-host SPSC command ring (ABI v1, 4 opcodes, DEMAND/PREFETCH/WARM priorities, epoch cancellation, bounded 5 s drain); (2) new protobuf surface Capacity::DEVICE_POOL = 2, Execution.async_transfers field 9, RankBody.external_extents field 18, all additive with empty defaults; (3) two new operator settings --pool-vram-memory/--pool-ram-memory plus load-time VRAM accounting (256 MiB margin + 2 MiB/GiB of registered host memory reserved before DEVICE_POOL and KV sizing); (4) Ignition capture seeding fixes (_seed_auxiliary_workspaces, _seed_library_device_caches, retain_transient_backing span) — the last piece is unrelated to the first three.
Key things the description does not say. The change introduces a new captured-graph operation family and a new signed core payload class (external_extents exported as PayloadRole::Weights, inflating core size) — the exact case docs/design-review.md:22-26 reserves to project-owner approval, and the exact case yatesdr challenged on #430 until lukealonso recorded "Approved, including Principle 1 approval". #711 records no such approval and has no reviewer. It also silently rewrites Execution.buffers views onto the pool at load (floor(bytes/row_bytes) rows) and sizes the pool to the minimum across ranks. There is no linked issue, bug, field report, roadmap item, in-tree producer/consumer, or benchmark — every search for prior demand returns only #711 itself (adjacent need is real: #664, #554/#193). All measured numbers and test tallies are self-reported; TP>1, cross-node, SM103/SM121 and Windows are explicitly untested even though "models larger than one GPU" is the motivation.
Related work / conflicts. #430 is the structural precedent (same control-region + bounded-drain + FailedDrain pattern). #606 (open, avifenesh) fixes the same transient-workspace seeding problem in the same capture_forwards region, on top of merged #331 — likely textual and semantic overlap. tests/preparation/test_transient_retention.py (not opened) and helios/src/runtime_core/memory.rs are churn hotspots touched by many open PRs (#597/#608/#641/#658; #709/#659/#694). Nothing supersedes or undoes #711.
Method caveat recorded for downstream readers: pr_diff and ref: main in this snapshot are computed against a stale base and over-attribute newer-main work — notably a large cache_memory.rs mapping-layout rewrite, server/http.rs PreparationError, docs/api.md metric changes, and the orbit "a orbit→an orbit" typo fixes (#687) — to this PR. pr_files is authoritative; cache_memory.rs contributes exactly one line (#[derive(Clone, Debug)]).
People/community. The author is a charter-named priority contributor and the design-review-named approval owner, with 42 merged PRs in 180 days concentrated in exactly these areas; nobody else has engaged on the PR (no comments, no labels, no Autobot intake). Project fit: the formal artifacts (AsyncTransfer.tla + cfg, conformance harness, four Kani proofs) follow house style and are a genuine strength; the gaps are the missing Principle-1 approval, the missing backward-compat serving replay required by Principle 13, and the absence of any served-workload benchmark under Principle 12.
#19 [high] File map: what each area of the 57-file change contains
Authoritative file map for the report body (from pr_files; NOT pr_diff — see method caveat):
- helios/src/async_transfer/ (new, all of it): mod.rs +30, ring.rs +623, scheduler.rs +857, worker.rs +1411, io_backend.rs +301, lifecycle_tests.rs +342, kani_proofs.rs +217. 28 files under helios/src in total, +4880/−14.
- helios/src/runtime_core/: mod.rs +248/−2 (NativeResources::map_device_pool, prepare_async_transfers, start/stop_async_transfers, snapshots, handles, teardown), memory.rs +336/−3 (async_transfer_host_ram, async_transfer_device_reserve, PlannedHostBudgets, DEVICE_POOL sizing in allocate_caches, resize_device_pool_buffer, cache_geometry
capacity == 1, 2 unit tests), protobuf.rs +149 (validate_async_transfers, payload_rank external extent resolution), model.rs +75/−2 (prepare_async_transfers orchestration + async_transfer_handles), limits.rs +104 (PoolMemoryLimit), selection.rs +11, format.rs +12/−1, driver.rs +21/−1, cache_memory.rs +1/−0 (#[derive(Clone, Debug)]), describe.rs/engram.rs/persistent_worker.rs/cache_memory.rs other singletons, lib.rs +1. - helios/src/core/: schema.rs +36/−1 (allocation_extent accepts capacity 2; validate_external_extents), reader.rs +6 (required_payloads adds directory+segments), export.rs +1, protection.rs +1 (test literals).
- helios/src/server{,/metrics.rs,/runtime.rs,/session.rs}: server.rs +8 (attach_async_transfers), metrics.rs +65 (render_async_transfer_metrics + OnceLock holder), runtime.rs +9, session.rs +9/−4 (attach from session).
- helios/proto/: core.proto +10 (ExternalExtentTable), runtime_core.proto +26/−1 (Capacity::DEVICE_POOL, AsyncTransfer). helios/build.rs +12 (serde defaults). helios/manifest.md +54.
- heliopause/src/: export/binding.rs +332/−1 (JSON→wire resolution/validation for channels), export/core.rs +80 (rank_plan writes extent payloads; Sources.external_extents), export/capture.rs +64 (capture-time extent validation), export/mod.rs +12, export/reachability.rs +9, export/transfer.rs +2, export/weight_reuse.rs +2, python.rs +12 (reject async_transfers for direct execution).
- ignition/preparation/: execution.py +133/−1 (AsyncTransferChannel dataclass, export_manifest async_transfers, 2 in-process raise sites), capture.py +84/−1 (_seed_auxiliary_workspaces, _seed_library_device_caches, warm retention span), model.py +5/−1 (raise + reset), runtime_core.py +9 (external_extents export), runtime_core_pb2.py +46/−44 (protoc churn).
- flare-cli/src/: cli.rs +86/−1 (--pool-vram-memory/--pool-ram-memory, rank_options forwarding, LoadOptions wiring, 2 tests), config.rs +19/−1 ([memory] pool_vram/pool_ram), main.rs +4/−1 (server.attach_async_transfers).
- flare/src/: configuration.rs +15/−2 (Memory.pool_vram/pool_ram + validation), runtime_settings.rs +17/−1.
- docs/: cli-design.md +2 (two option-table rows), runtime-core-design.md +16.
- verification/helios-lifecycle/: AsyncTransfer.tla +267, AsyncTransfer.cfg +20, check.py +41/−1, README.md +40/−3.
- tests/preparation/test_transient_retention.py +88.
#20 [high] Angle gaps: explicit "nothing found" statements and the missing-history caveat
Remaining details + explicit "nothing found" statements so the report can say so rather than omit:
- flare/src/runtime_settings.rs +17/−1: the desktop/
flareruntime-settings path gained the pool limits too (parallel to flare-cli/src/config.rs); not mentioned in the description but consistent with the "forwarded across ranks in rank_options" claim for the CLI. - Reactions/emoji: none recorded (pr_comments empty; no reviews, no labels, no Autobot case-file post — unlike #606, #664 and #554 which each have Autobot intake + review comments).
- No competing or duplicate implementation of async host→device transfer exists: items_touching("helios/src/async_transfer") returns only #711. No PR is closed, superseded, or reversed by #711.
- No linked issue: the description cites none, and five targeted searches (async transfer O_DIRECT io_uring device pool; pinned host pool weight offload captured graph; offload weights host memory larger than VRAM; DEVICE_POOL capacity sizing; model weights exceed VRAM tiered) return only #711. The nearest documented need is #193 (cited by #554): gb202 TP4 on 4×RTX PRO 6000 with 125 GiB host RAM, Engram forced to disk mode.
- No commit-level "recent activity" analysis is possible in this snapshot: search_history and the orientation packet's per-area commit lists both fail with
git: Could not read c513e46a… cannot simplify commit ef38cb93…. Activity findings therefore come from items_touching (open/merged-in-180-days PRs per file), which is recorded in the recent-activity entry. - No serving benchmark, no whole-model recipe, no generated extent-directory producer, and no
flare runreplay of a previously exported core appear anywhere in the change set or evidence list — these are absences, not oversights in my search. docs/api.md was not updated with the newflare_async_transfer_*family (the api.md diff visible in pr_diff belongs to newer main). - Charter roadmap check: nothing in the roadmap mentions tiered weight storage or async transfers; the closest roadmap items are #6 (in-process SDK), #267 (Engram), #215 (FlashInfer pin) — none cover this. The charter's OKR line "serve captured CUDA graphs from Rust on SM103, SM120, and SM121" is only partly demonstrated (SM120 only).
#8 [medium] Community/process: zero engagement, no labels, CI pending, <1 day old
Engagement so far: none. pr_comments returns "No comments" — no human review, no maintainer comment, no Autobot case-file comment on the PR (unlike #606/#664/#554 which all have Autobot intake + review posts). Opened 2026-12-03 and last updated the same day; age under one day at case-file time. Labels: none (no area:*/triage:* labels, whereas #664 has area:engram/area:memory, #554 has area:engram/triage:design-review).
Process state: open, "ready for review" per the orientation packet (not draft), base main, head 6916f22, 57 files +6387/−72, CI on head commit: pending. No stacked-PR relationship declared in the description (contrast #430 which had to state merge order with #427/#431 after review pushback).
Size context: #711 is the largest single PR currently open by this author and one of the larger in the local copy (#554 draft is +4868/−274, #664 +1711/−550).
#10 [medium] Change: undeclared extras and description-vs-code gaps
Undeclared in the description but present in the change set:
helios/src/runtime_core/cache_memory.rs+1/−0 — the only PR line is#[derive(Clone, Debug)]onLayout(cache_memory.rs:59), needed becauseplan_mapping_handlesnow clones layouts (orig.clone()in the newer-main body). Trivial, but note that the largealias_plane/Layout::new/midpoint-ordering rewrite visible in pr_diff is NOT this PR (see method-caveat entry).- Unrelated drive-by test added in flare-cli/src/cli.rs:
debian_man_page_documents_every_visible_subcommandasserts packaging/debian/flare.1.SH COMMANDSmatches visible subcommands — nothing to do with async transfers (came from #687 territory). Same for the flare-cli/src/main.rs one-lineattach_async_transfershook (that one is real and needed). helios/src/runtime_core/selection.rs+11: unlisted but plausibly needed to keep async_transfers/external_extents consistent through graph selection.describe.rs,format.rs,model.rs,engram.rs,persistent_worker.rs,cache_memory.rsare all +1/+2/+3 shim lines addingexternal_extents: vec![]to test/struct literals.heliopause/src/export/{reachability.rs,transfer.rs,weight_reuse.rs}+9/+2/+2 andexport/mod.rs+12: plumbing to carry external extent uses through reachability/payload accounting. Things the description says that the change does not do:
- It gives no consumer: there is no recipe, no
AsyncTransferChannelconstruction site anywhere in ignition beyond the dataclass and export path (ignition/preparation/execution.py:156-206 defines the dataclass; runtime_core.py:431-438 exports tablesif ch.extent_directory), and no generated extent directory writer. So a new core-format surface ships with no producer in-tree, mirroring the gate Autobot applied to #664. - The description mentions "
prepare_async_transfersstarts channels beforeExecution.tuning_graphs" — the ordering is achieved by calling it insideNativeModel::loadafterprepare_offload, since startup tuning runs later in the executor (helios/src/execution/transport.rs:606-607, threaded.rs:1179-1184). Accurate but only verifiable indirectly.
#12 [medium] Reach: operator-visible defaults, new metrics family, untested TP>1
Reach — who and what it affects:
- Operators gain two new settings, both defaulting to "available free memory":
--pool-vram-memory/[memory] pool_vram(default: available VRAM above minimum KV reserve) and--pool-ram-memory/[memory] pool_ram(default: available host RAM). Documented in docs/cli-design.md options table (the PR's +2 lines are exactly the two table rows). Note the default value is "available", i.e. a core that declares a channel with a largemax_host_pool_byteswill pin host RAM up to the available/total budget unless the operator caps it — the mode of failure iscuMemHostRegister_v2pressure and, per the PR,cuStreamCreatefailure atStart server. That is why the 256 MiB + page-table reserve was added; the guard is new and only exercised by unit tests. - Existing cores: unaffected layout-wise (empty repeated fields), except that
capacity0|1|2 validation widened andPayloadRole::Weights|TunedWeights|InitialStateare the only roles accepted for external extent payloads (helios/src/core/schema.rs validate_external_extents). - Metrics/observability: new
flare_async_transfer_*family (device_pool_bytes, host_pool_bytes, submitted/completed/canceled/rejected, bytes_disk_to_host/host_to_dev/disk_to_dev, last_error) rendered only when channels attached (helios/src/server/metrics.rs render_async_transfer_metrics); attached viaServer::attach_async_transfersfrom flare-cli serve path (flare-cli/src/main.rs) and fromserver/session.rs:73. docs/api.md was NOT updated for these new metrics in this PR (the api.md diff belongs to newer main) — so the new Prometheus family is undocumented in the metrics table. - Compatibility surface:
runtime_core_pb2.pyregenerated (+46/−44, pure churn from protoc);heliopause/src/export/core.rswrites external extent payloads asPayloadRole::Weightsunderdeployments/<id>/rank-<n>/extents-<channel>-dir.safetensorsandweights/.../extents-<channel>-seg-<i>.safetensors, canonical or per-TP-shard paths — so extents enter signed payload/reachability accounting and core size. - Untested reach (author-disclosed): TP>1 multi-GPU, cross-node Orbit serving, SM103/SM121, and Windows
PreadBackend. Since the primitive is precisely for models larger than one GPU, TP>1 being untested is material. - Deployment: no release feature flag needed (always compiled under
runtime-core);workermodule is#[cfg(feature = "runtime-core")]; io_uring is Linux-only withpreadfallback. - Docs added: helios/manifest.md (54 lines), docs/runtime-core-design.md (16 lines), docs/cli-design.md (2 option rows). No docs update for the metrics family; no docs for how a recipe is supposed to produce an extent directory file (the 24-byte
[u32 segment_index, u32 reserved, u64 offset, u64 nbytes]format is described only in core.proto:179-186 and manifest.md).
#13 [medium] Claims vs evidence: formal artifacts (TLA+/Kani/conformance) follow house style
Verification artifacts added by the PR (worth naming for reviewers):
verification/helios-lifecycle/AsyncTransfer.tla(+267) andAsyncTransfer.cfg(+20);check.py(+41/−1) extended to run it; README.md (+40/−3). Its 8 invariants per the description: TypeOK, NoUnmapWhileInflight, FailedDrainRetainsResources, StoppedHasZeroInflight, BoundedHardwareDepth, BounceSlotConservation, DrainingHasEmptyQueues, CanReleaseExact. This mirrors the existing lifecycle-model convention used by #554/#613/#595/#645/#660/#661 (items_touching on verification/helios-lifecycle), i.e. it is the house style for new concurrency mechanisms — a point in the PR's favour.helios/src/async_transfer/lifecycle_tests.rs(+342) Rust conformance harness feeding observed scheduler transitions into the TLA+ model;kani_proofs.rs(+217) four sequential Kani harnesses (control_layout_matches_u128_oracle, extent_entry_matches_u128_oracle, resolve_pool_bytes_is_aligned_and_bounded, validate_command_guarantees_bounds_and_alignment_for_all_inputs), gated#[cfg(kani)]and registered viamod kani_proofsin async_transfer/mod.rs.io_backend.rs(+301) holds the Linuxio_uring/O_DIRECTbackend andPreadBackend; the end-to-end CUDA testlive_cuda_async_transfer_end_to_endis reported as passing on SM120 withFLARE_RUN_CUDA_TESTS=1 CUDA_VISIBLE_DEVICES=2. Gaps a reviewer can check without hardware: whether the TLA+ spec is wired into CI (the workflowhelios-lifecycle.ymlexists per #664's review; CI on this head is pending); whether Kani runs in CI; whether the Windows build ofPreadBackendcompiles (author discloses not tested; docs/TODO.txt in newer main already tracks Windows test-binary breakage fromroce_fabric.rs, which is unrelated).
#14 [medium] Recent activity: heavy concurrent churn in memory.rs, proto, capture.py; #687 landed after branch
Recent activity in the touched areas (drawn from items_touching, since git log/search_history is broken in this snapshot — "Could not read c513e46a… cannot simplify commit ef38cb93…", so no commit-level history and no author/date data for main).
- helios/src/runtime_core/memory.rs: #709 (open, lukealonso), #694 (open, yatesdr — write-side NVMe/pool spill profitability), #659 (open, lukealonso — null continuation row aliasing), #314 (open), #674 merged (yatesdr — prefix-cache hit rate/L1/NVMe/snapshot packing), #646 merged (lukealonso — Orbit rank cache, GB10 KV sizing), #613 merged (lukealonso — deferred_prefill, shared_pages, drop teardown), #497/#589/#523/#504/#455/#365/#286 merged. This is the busiest memory-planning file in the repo; #711 inserts its reserve calculation into the same
allocate_cachespath (#711 memory.rs:~1113), so it stacks on top of that churn. - helios/proto/runtime_core.proto: #670, #620, #505, #566, #543, #504, #507, #499, #479, #430 merged; #483/#664/#229/#500/#314/#334 open. Field numbers 9..18 are actively being taken; #711 takes 9 for async_transfers on Execution and 18 for RankBody.external_extents.
- ignition/preparation/capture.py: #710 (open, original-el8), #658 (open, lukealonso), #606 (open, avifenesh), #618/#559/#543/#509/#425/#479/#222/#331 merged. #711 inserts
_seed_auxiliary_workspaces+_seed_library_device_cachesat the top ofcapture_forwards— directly on top of #331's fix (merged, "Isolate cuBLAS warmup workspaces from CUDA graph capture") and alongside the open #606 fix for the same class of bug. - helios/src/server/metrics.rs: #692/#694/#548/#549/#560/#571/#334 open; #674/#620/#619/#555/#504/#507 merged.
- flare-cli/src/cli.rs: #687 merged ("flare-cli, debian: sync flare.1 subcommands and fix 'an orbit' wording", jcartu) — this is exactly where #711's
debian_man_page_documents_every_visible_subcommandtest and the orbit typo lines in pr_diff come from; they are main's work, not #711's, though #711's diff base predates it. No commit on main since cc0a49d touches the PR's files (orientation packet), so #711 is not racing a specific just-landed commit, but it was branched before #687 landed.
#16 [medium] Change: exporter treats extents as signed weight payloads and hard-fails validation
Also present in the reachability/capture path and worth naming because it makes the exporter refuse cores rather than warn:
heliopause/src/export/capture.rsnow validates each external extent table at capture time: duplicate channel, unknown channel, empty segments, and each segment's length must be a positive multiple ofchannel.alignment; the directory bytes are decoded withdecode_extent_directoryand any bad entry fails the capture (error path, not a warning).request.external_extentswithout an execution manifest is a hard error ("external_extents requires an execution manifest with matching async_transfers").heliopause/src/export/core.rsrank_planturns each segment and directory into a signedPayloadRole::Weightspayload with pathsdeployments/<id>/rank-<n>/extents-<chan>-dir.safetensorsand (canonical)weights/extents-<chan>-seg-<i>.safetensorsor (TP-sharded)weights/tp<t>/rank-<n>/extents-<chan>-seg-<i>.safetensors. So extents inflate core size and participate in payload verification/reachability — a core carrying weights this way pays the signed-payload path, which is presumably intended but is a real change to core packaging that the description only implies ("exports ... alongside standard rank payloads").heliopause/src/export/binding.rsaccepts the async channel reference either against a registeredExecution.buffersentry (resolving buffer→allocation+offset) or directly against an allocation name, and rejects non-mapped-host control / non-device completions / non-DEVICE_POOL pool / ring or alignment violations / control_bytes below header+ring+slots. Tested byasync_transfers_export_resolves_references_and_rejects_invalid(binding.rs +98).- New
Sources.external_extentsfield is#[serde(default)], so old source records round-trip;heliopause/src/export/weight_reuse.rsandtransfer.rsgot +2 lines each (test literals).