#1 [high] Should fix: copy_batch contract doc contradicts the new fallback
PR #589, helios/src/cuda.rs.
Stream::copy_batch contract comment (helios/src/cuda.rs:781-786) still reads: "Every address is a device address, including the device alias of registered host memory. CPU addresses of registrations are not necessarily GPU-accessible." The changed fallback comment immediately below (helios/src/cuda.rs:824-827) says the opposite: cuMemcpyAsync "accepts device addresses, registered host aliases, and raw cuMemHostAlloc(..., flags=0) pointers."
The real caller passes raw host pointers as the source side: helios/src/execution/transport.rs:1087 (frame.input.address()), whose frame buffer is created at transport.rs:630 via model.host_buffer(...) -> cuda.rs:842-863 allocate_host(nbytes, 0) -> cuMemHostAlloc(ptr, nbytes, flags=0). transport.rs:556 pushes (host + copy.host_offset + offset) as u64 into sources. So the documented precondition is both stale and the thing the PR says was the bug.
Why it matters: the repository rules make comments present-state specs of invariants (repo-prose skill lines 26-39; AGENTS.md:52-60), and this is the exact contract a future caller reads before passing host pointers. The description's "What changed" only mentions the fallback call, not the contract.
Fix: rewrite 781-786 to say that sources may be pinned host memory (cuMemHostAlloc) or registered host aliases under UVA and that destinations must be device addresses, and note the CUDA < 13.0 UVA inference in the fallback.
#2 [high] Should fix: frontend reserve comment left stale by the scaled reserve
PR #589, helios/src/frontend/mod.rs:1399-1402 (unchanged by the PR):
"That second encoding allocates host memory after the host cache is sized. 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."
After this PR that headroom is host_reserve_bytes(total) (selene/src/offload.rs:816-820): host_service_headroom_bytes(total) = 64 MiB at <= 16 GiB total, min(2 GiB, total / 32) above 16 GiB, plus total / 20. So on an 8 GiB Jetson Orin the comment overstates the headroom that this second encoding is allowed to consume by ~1.9 GiB — exactly the small-SoC case the PR is about.
The repo requires stale claims to be replaced rather than layered over (.agents/skills/repo-prose/SKILL.md:26-29) and docs/comments to state design-state behavior. The PR touched this subsystem (HOST_SERVICE_HEADROOM_BYTES consumers) but did not follow the change into this comment.
Fix: state the scaled rule, e.g. "the scaled host reserve host_reserve_bytes (64 MiB plus one twentieth of total memory at 16 GiB or less; min(2 GiB, total / 32) plus one twentieth above)".
#3 [high] Docs vs code verification: release/multi-host/prefix-cache claims check out; THIRD_PARTY_NOTICES "link" claim stale
PR #589 docs vs code.
-
docs/release.md:30-31 "require glibc 2.35 or later (covering Ubuntu 22.04+, JetPack 6, and Ubuntu 24.04+)". An executable built against glibc 2.35 runs on 2.35 and later, so "JetPack 6" is accurate only for JetPack 6 on Ubuntu 22.04 (glibc 2.35). JetPack 6 does ship Ubuntu 22.04 (matches the PR body). Low risk; not a defect, but the parenthetical reads as if JetPack 6 were a separate glibc level. Nit at most.
-
docs/release.md:6-11 asset table still names runners
ubuntu-24.04/ubuntu-24.04-armfor the Linux archives. The workflow still uses those runners (.github/workflows/release.yml:43-48) and only the build happens inside an ubuntu:22.04 container, so the table is accurate. No finding. -
docs/release.md:70-79 describes the new flow consistently with .github/workflows/release.yml:58-121 (ubuntu:22.04 build+package, readelf DT_NEEDED and GLIBC_<=2.35 checks, clean 22.04 and 24.04 smoke containers, --version plus run/agent/orbit --help). Verified line by line.
-
docs/multi-host.md:47-56 "Both builds load
libibverbs.so.1lazily at run time only when opening a multi-host RoCE transport" and "Default x86_64 builds omit RoCE transport". Matches helios/build.rs (no ibverbs link), helios/native/roce_proxy_dlopen.c:62 (dlopen in flare_ibv_init), helios/src/execution/roce.rs:191-195 (call at RoceTransport::open), and flare-cli/Cargo.toml target-gated aarch64 default. -
docs/runtime-core-design.md:9-12 now says libibverbs.so.1 is loaded lazily "on aarch64 Linux builds only when serving multi-host RoCE cores". Accurate for the default aarch64 build; the
rocefeature is also selectable on x86_64 (flare-cli/Cargo.toml:10), so "aarch64 Linux builds" is a scope statement about what the published archive does, which is what this doc describes. -
docs/prefix-cache-offload.md:645-655 updated for the cuMemcpyAsync fallback; matches helios/src/cuda.rs:824-833.
-
docs/prefix-cache-offload.md:528-531 and 1138-1145: HOST_NUMA fallback and the scaled reserve are described accurately against selene/src/offload.rs:600-645 and :801-886, helios/src/runtime_core/memory.rs:180-221.
-
NOTICE:25-29 "The RoCE proxy uses libibverbs and its inline header interfaces" and THIRD_PARTY_NOTICES.md:76-77 "Linux aarch64 builds also link the system libibverbs and pthread interfaces for RoCE" — the second clause is stale after this PR: no binary links libibverbs any more (it is dlopen'd at run time). THIRD_PARTY_NOTICES.md:76-77 was not changed by the PR even though build.rs dropped
cargo:rustc-link-lib=ibverbs. "link" vs "load" matters for a notices document about redistribution. Candidate finding.
#4 [high] PR description meets the required four-part scheme; no prose blocking issue
PR #589 description review against AGENTS.md:72-140 and docs/design-review.md principle 16 (why / what exactly changed / claimed result / evidence, in that order).
Strengths: all four parts are present and in order. Why gives the causal constraint per defect (UVA direction inference; runner glibc and hard-linked -libverbs vs stock JetPack 6 glibc 2.35; MemAvailable already consumed by KV allocation on unified memory). What changed is explicitly before/after. Claimed results separates "Observed on x86_64 Linux" from "Expected on hardware not tested here" — exactly what AGENTS.md:95-102 asks. Evidence and limitations lists per-crate test counts, states the two unrelated failures and why they are unrelated, and lists unrun checks (aarch64 build, ubuntu-24.04-arm CI, GA10B/discrete CUDA 12/WDDM hardware, FLARE_TEST_TEMPLATE_DIR tests).
Complaints that are not defects: the description is long, but it covers three independent defects across 21 files, and AGENTS.md:137 says to scale length to the change. The file inventories ("X, Y, Z)" in each bullet) are the one weak spot: AGENTS.md:116-121 warns against exhaustive inventories of changed files. Minor.
Gap worth reporting: the description says the fallback now accepts "registered host aliases, and raw cuMemHostAlloc(..., flags=0) pointers" but never says the copy_batch contract comment was left stating the opposite (see my note "Should fix: copy_batch contract doc..."). The prose lens cares because the description is the only place a reader learns the new contract. Should-fix on the code comment, not on the description.
Also: the description's third bullet says NativeModel::allocate_caches returns the pre-planned offload host budget into prepare_offload -> prepare_with_inputs_budget; verified in helios/src/runtime_core/memory.rs:604 and :1099-1130 and helios/src/runtime_core/model.rs:909-975.
Discord line present as "Discord: no username provided" (AGENTS.md:142-153). OK.
#9 [high] Research summary
Prose-lens review of PR #589 is complete: every changed file read in context (cuda.rs, offload/, runtime_core/, selene/*, eos/src/unix.rs, roce_proxy_dlopen.c, build.rs, release.yml, all four docs) plus the PR description against AGENTS.md and .agents/skills/repo-prose/SKILL.md (not opened). Three should-fix findings and two nits, all verified in code:
Should fix (2, carried over and re-verified at head): the Stream::copy_batch contract comment (helios/src/cuda.rs:781-786) still asserts every address is a device address, contradicting the new fallback text and the real caller (transport.rs:556/1087 passes raw cuMemHostAlloc(..., flags=0) pointers); and the frontend headroom comment (helios/src/frontend/mod.rs:1400-1402, out of diff) still states the old 2 GiB + total/20 reserve that this PR replaced with host_reserve_bytes. Also THIRD_PARTY_NOTICES.md:76-78 still says aarch64 builds "link" libibverbs, which the build no longer does.
Nits (new): docs/prefix-cache-offload.md:1483-1485 says the roce and rdma features "link libibverbs" — only rdma links it now; and the description's "redirects all 17 ibv_* calls" counts trampolines, while roce_proxy.c calls 19 distinct ibv_* functions (ibv_post_send/ibv_poll_cq are inline wrappers that need none).
The description otherwise satisfies the mandatory why/what/claimed-result/evidence order with an honest observed-vs-expected split and a complete unrun-checks list; the changed docs match the code line by line; the Discord line is present. No prose blocking issue.
#10 [high] Should fix: release.md claims JetPack 6 coverage with no TODO.txt entry for the unrun aarch64 check
PR #589 — 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 parenthetical now asserts that the published archives run on stock JetPack 6 (Linux aarch64), i.e. a support statement about a host configuration. The only evidence in the PR is an x86_64 build checked inside ubuntu:22.04 plus clean ubuntu:22.04/24.04 smoke containers; the PR body itself lists "Native aarch64 build and ubuntu-24.04-arm CI run" and live JetPack 6 / GA10B / discrete CUDA 12 hardware as unrun. So the arm64 archive, the one thing JetPack 6 users download, has never been executed on any aarch64 host.
AGENTS.md:55-56 requires support to be stated as present qualification (what is implemented, on which hardware/configurations it is qualified, and what is not), and AGENTS.md:57-58 requires unrun checks to be recorded in docs/TODO.txt rather than in design documents. Neither happened: grep for JetPack / Orin / GA10B / WDDM / glibc / aarch64 / libibverbs against docs/TODO.txt returns no match, so no TODO entry tracks the unrun arm64/JetPack 6 check, while docs/release.md states the coverage as fact.
Severity: should fix (repo rule, not runtime). Two acceptable repairs: (a) phrase release.md as the requirement it proves — "require glibc 2.35 or later, the level of Ubuntu 22.04 and JetPack 6's Ubuntu 22.04 root filesystem; the Linux archives are verified in clean Ubuntu 22.04 and 24.04 containers" — and add a docs/TODO.txt entry to qualify flare-linux-arm64.tgz on a stock JetPack 6 host; or (b) add the TODO entry only, if the maintainer judges the parenthetical to be a requirement not a qualification claim.
Same consideration applies to the PR's other unrun hardware claims (discrete CUDA 12.x copy_batch, GA10B / Windows WDDM --prefix-cache-memory), but those live only in the PR description's "Expected on hardware not tested here" section, which is the correct place per AGENTS.md:95-102; no repository document claims them, so no finding there.
#5 [medium] Should fix: THIRD_PARTY_NOTICES says aarch64 builds link libibverbs, which the PR stopped doing
PR #589, THIRD_PARTY_NOTICES.md:76-78 (unchanged by the PR):
"The NVIDIA CUDA driver is loaded from the user's system. Linux aarch64 builds also link the system libibverbs and pthread interfaces for RoCE."
After the PR, no Flare binary links libibverbs: helios/build.rs drops cargo:rustc-link-lib=ibverbs and emits only dl and pthread; the library is dlopen'd at run time (helios/native/roce_proxy_dlopen.c:62). So the sentence now misstates the redistribution situation in the document whose purpose is to describe what the release archives depend on and redistribute. 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; this notices file was not, although it is part of the same change and the archive packager ships it (packaging/archive.py includes THIRD_PARTY_NOTICES.md; .github/workflows/release.yml:85 requires it in the archive).
Severity: should fix (prose accuracy in a shipped document; no runtime effect). Fix: "also load the system libibverbs (through dlopen) and link the pthread interface for RoCE", or similar. NOTICE:25-29 already says the proxy "uses libibverbs" and that "the shared library itself is supplied by the user's operating system", so it needs no change.
#7 [medium] Nit: prefix-cache-offload test-command note still says the roce feature links libibverbs
PR #589 — docs/prefix-cache-offload.md:1483-1485 (not touched by the PR, but this PR invalidates half of it):
"--all-features enables the roce and rdma features, which link libibverbs; --features runtime-core,server builds the same offload tests without it."
After this PR the roce feature links no libibverbs: helios/build.rs emits only -ldl and -lpthread and compiles helios/native/roce_proxy_dlopen.c, which dlopen()s libibverbs.so.1 (roce_proxy_dlopen.c:62). Only rdma links it, through selene's ibverbs-sys (selene/Cargo.toml:18,27). So the sentence attributes a link to a feature that no longer has one; the sentence is defensible only for the --all-features combination.
Why it matters: the paragraph explains which test build needs RDMA packages installed, so an inaccurate attribution sends a reader to install packages for a build that does not need them (the compile-time need for verbs.h does remain for roce).
Severity nit: it is a test-instructions aside, not a design statement, and the outcome for --all-features is unchanged. Fix: "--all-features enables the roce and rdma features; roce needs the libibverbs headers to compile and loads libibverbs.so.1 at run time, rdma links libibverbs."
Checked related unchanged prose for the same staleness and found none: docs/roce-ring.md:386 ("requires a C compiler and libibverbs development files") is still true for the header include; docs/container.md:32 describes the container image, which still installs libibverbs1/ibverbs-providers (Dockerfile:37); helios/Cargo.toml:28-29 ("rdma ... links libibverbs") is still true via ibverbs-sys; docs/debian.md:62 and packaging/debian/package.sh:46-48 add ibverbs-providers for arm64 packages, which remains correct for multi-host RoCE.
#8 [medium] Nit: "all 17 ibv_* calls" counts trampolines, not ibv_* calls
PR #589 description, "What changed" section, lst bullet on the lazy loader:
"roce_proxy_dlopen.c lazily opens libibverbs.so.1 via dlopen / dlvsym (IBVERBS_1.1, optional IBVERBS_1.8) under pthread_once, redirects all 17 ibv_* calls to static trampolines without exporting ibv_* symbols, and #includes the unmodified vendored helios/native/roce_proxy.c."
"all 17 ibv_* calls" is not what the code does. The trampoline table (helios/native/roce_proxy_dlopen.c:24-42, 86-102, 166-190) has 17 entries and the diff defines 17 flare_ibv_* statics, but roce_proxy.c calls 19 distinct ibv_* functions: it also calls ibv_post_send (roce_proxy.c:822, 871, 957, 1128, 1299) and ibv_poll_cq (roce_proxy.c:753), which verbs.h defines as inline wrappers over the context's ops pointers and so need no trampoline. Verified: no flare_ibv_post_send / flare_ibv_poll_cq exists, and no #define ibv_post_send / ibv_poll_cq appears in the redirect block (roce_proxy_dlopen.c:200-217).
Why it matters: the number is the whole evidence that the redirect is complete, and a reader checking "all 17" against roce_proxy.c finds more calls and cannot tell whether two calls were missed. The design intent (only the out-of-line symbols need trampolines; inline verbs wrappers ride the context the library returns) is exactly the non-obvious constraint AGENTS.md:118-121 asks to explain.
Severity nit (description only, mechanism is correct). Fix: "redirects the 17 out-of-line ibv_* calls to static trampolines (ibv_post_send and ibv_poll_cq stay inline wrappers over the returned context) without exporting ibv_* symbols".
No other numeric/uniqueness claim in the description failed verification.