Key findings
The PR description is the strongest part of the change under this lens: it obeys the four-question order AGENTS.md:74-102 mandates (why / what changed, stated before/after / claimed result / evidence), separates "Observed on x86_64 Linux" from "Expected on hardware not tested here" exactly as AGENTS.md:95-102 asks, lists the unrun checks, and explains the two unrelated test failures. The three changed design docs (release.md, multi-host.md, runtime-core-design.md, prefix-cache-offload.md) match the code line by line.
There is no blocking prose defect. Four should-fix problems, all of them stale claims the PR creates or leaves behind in documents/comments it touches or ships:
Stream::copy_batch's contract comment now contradicts the fallback the PR added directly beneath it (and the real caller).helios/src/frontend/mod.rsstill documents the2 GiB + total/20headroom that this PR replaced with a scaled reserve.THIRD_PARTY_NOTICES.mdstill says aarch64 builds link libibverbs; the PR stopped linking it.docs/release.mdnewly claims JetPack 6 coverage for an aarch64 archive that has never been run, with nodocs/TODO.txtentry recording the unrun check (AGENTS.md:55-58).
Two nits: an RDMA test-instruction aside in docs/prefix-cache-offload.md, and the description's "all 17 ibv_* calls" count (it counts trampolines, not calls).
Should fix
1. copy_batch contract comment contradicts the new fallback and its real caller
helios/src/cuda.rs:781-786 (unchanged by the PR):
"Every address is a device address, including the device alias of registered host memory. CPU addresses of registrations are not necessarily GPU-accessible."
helios/src/cuda.rs:824-827 (added by the PR) says the opposite: cuMemcpyAsync "accepts device addresses, registered host aliases, and raw cuMemHostAlloc(..., flags=0) pointers." The caller really does pass raw host pointers: helios/src/execution/transport.rs:1087 submits frame.input.address(), whose frame buffer comes from model.host_buffer(...) at transport.rs:630, which is cuda.rs:850-854 allocate_host(nbytes, flags=0) → cuMemHostAlloc with flags 0 (mapped_host_buffer at cuda.rs:846-848 is the flags=3 variant). transport.rs:556 pushes (host + copy.host_offset + offset) as u64 into sources.
Why it matters: AGENTS.md:52-60 makes repository prose a present-state specification, and the skill requires stale claims be replaced rather than layered over (.agents/skills/repo-prose/SKILL.md:27 (not opened)). This is precisely the contract a future caller reads before deciding whether it may pass host pointers, and the description's "What changed" mentions only the call substitution, not the contract change.
Fix: rewrite 781-786 to say that sources may be pinned host memory or registered host aliases under UVA while destinations must be device addresses, and note the CUDA < 13.0 direction inference in the fallback.
2. Frontend headroom comment left stating the reserve value this PR replaced
helios/src/frontend/mod.rs:1400-1402 (unchanged by the PR):
"The memory draws on the headroom
host_pool_budget(selene/src/offload.rs) leaves unallocated:HOST_SERVICE_HEADROOM_BYTES(2 GiB) plus one twentieth of total memory."
The PR replaced that rule: selene/src/offload.rs:805-820 now defines host_service_headroom_bytes (64 MiB at ≤ 16 GiB total, min(2 GiB, total / 32) above) and host_reserve_bytes = that plus total / 20, consumed through host_pool_budget_from (offload.rs:822-836). On an 8 GiB Jetson Orin the comment overstates the headroom by ~1.9 GiB — the exact small-SoC case the PR fixes. Fix: state the scaled rule and cite host_reserve_bytes.
3. THIRD_PARTY_NOTICES.md still says aarch64 builds link libibverbs
THIRD_PARTY_NOTICES.md:76-78: "Linux aarch64 builds also link the system libibverbs and pthread interfaces for RoCE."
After this PR no build links libibverbs: helios/build.rs:67-77 compiles native/roce_proxy_dlopen.c and emits only cargo:rustc-link-lib=dl and =pthread; the library is dlopened at run time. The notices file is shipped in the archive (.github/workflows/release.yml (not opened) requires it), so the sentence misstates the redistribution dependency in the document whose whole purpose is to state it, while docs/release.md:32-35 and docs/runtime-core-design.md:9-12 were both updated to the new "loaded lazily at run time" wording. Fix: "also load the system libibverbs (through dlopen) and link the pthread interface for RoCE". NOTICE:25-29 remains correct and needs no change.
4. docs/release.md asserts JetPack 6 coverage for an unrun aarch64 archive, with no TODO entry
docs/release.md:30-31 (changed by the PR): "The Linux executables are built in Ubuntu 22.04 and require glibc 2.35 or later (covering Ubuntu 22.04+, JetPack 6, and Ubuntu 24.04+)." The PR's own evidence is an x86_64 build plus clean ubuntu:22.04/ubuntu:24.04 containers on x86_64; the body lists "Native aarch64 build and ubuntu-24.04-arm CI run" as unrun, so the arm64 archive JetPack 6 users download has never been executed on any aarch64 host. AGENTS.md:55-58 requires support to be stated as present qualification and unrun checks to be recorded in docs/TODO.txt; a search of docs/TODO.txt for JetPack|Orin|GA10B|WDDM|glibc|aarch64|libibverbs|arm64 returns no matches. Fix: state the requirement rather than the qualification ("require glibc 2.35 or later, the level of Ubuntu 22.04 and JetPack 6's Ubuntu 22.04 root filesystem") or add a docs/TODO.txt entry to qualify flare-linux-arm64.tgz on a stock JetPack 6 host. Note that the same parenthetical also reads as if JetPack 6 were a glibc level distinct from Ubuntu 22.04. The other unrun hardware claims (discrete CUDA 12.x, GA10B, WDDM) appear only in the description's "Expected … not tested here" section, which is the right place per AGENTS.md:95-102 — no finding there.
Nits
docs/prefix-cache-offload.md:1483-1485: "--all-featuresenables theroceandrdmafeatures, which link libibverbs" — after this PR onlyrdma(selene'sibverbs-sys) links it;roceneeds the headers to compile anddlopenslibibverbs.so.1at run time. Suggested: "roceneeds the libibverbs headers to compile and loadslibibverbs.so.1at run time,rdmalinks libibverbs."- Description, lazy-loader bullet: "redirects all 17
ibv_*calls to static trampolines" counts the 17flare_ibv_*trampolines (helios/native/roce_proxy_dlopen.c:122-213), not theibv_*calls:helios/native/roce_proxy.calso callsibv_post_send(:822, 871, 957, 1128, 1299) andibv_poll_cq(:753), which are inline wrappers needing no trampoline. Suggested: "the 17 out-of-lineibv_*calls (ibv_post_send/ibv_poll_cqstay inline wrappers)". AGENTS.md:118-121 asks for exactly this kind of non-obvious constraint to be explained. - Description, "What changed" bullets: the exhaustive parenthetical file inventories (
X,Y,Z) work against AGENTS.md:116-121 ("Avoid exhaustive inventories of changed files"). - Description claims the fallback accepts raw
cuMemHostAlloc(..., flags=0)pointers but never notes that thecopy_batchdoc comment still says the opposite — the prose that carries the new contract lives in the code, not the description.
Verified as accurate (no finding)
- Description structure and content: AGENTS.md:74-102 four-part order satisfied; per-defect causal explanation present; before/after explicit; observed-vs-expected separated; unrelated failures named with reasons; unrun checks listed; Discord line present.
docs/release.md:70-79matches.github/workflows/release.yml(not opened) (ubuntu:22.04 build+package,DT_NEEDED/GLIBC_≤2.35 checks, clean 22.04 and 24.04 smoke runs of--versionandrun|agent|orbit --help). Theubuntu-24.04/ubuntu-24.04-armrunner names in the asset table stay correct because only the build moves into a container.docs/multi-host.md:47-56matcheshelios/build.rs,roce_proxy_dlopen.cand theRoceTransport::opencall site.docs/runtime-core-design.md:9-12matches the lazy-load behavior for the published aarch64 build.docs/prefix-cache-offload.md:474-478(MADV_HUGEPAGEbefore prefault),:525-534(HOST_NUMA fallback),:646-651(cuMemcpyAsyncfallback),:1138-1145(scaled reserve, explicit--memory-limitoverride) all matcheos/src/unix.rs:88-117,selene/src/offload.rs:805-836andhelios/src/cuda.rs:824-833.
Open questions
- Whether the maintainers treat
docs/release.md:30-31's JetPack 6 parenthetical as a requirement (glibc level) or a qualification (this archive runs on JetPack 6) decides between the two repairs in finding 4; only a real aarch64/JetPack 6 run settles the second reading. - Test-count claims in the description (e.g. 506 selene, 40 helios, 228 flare) were not re-run here; no code in the diff contradicts them.