Verdict: worth merging with changes — split it, and drop the one item that re-litigates a rejected PR
What is actually in here
Five unrelated changes in one +588/-112 diff across 4 files (helios/src/engram/reader.rs, helios/src/engram.rs, helios/src/runtime_core/engram.rs, ignition/components/ngram_delivery.py):
- Pre-6.7 kernel
EPERMon RAM tables (#481) —ResidentMapping::new(reader.rs:105-175) now reopens/proc/self/fd/<fd>O_RDONLYbeforemmapwhen!writable, plus a kernel-version hint onEPERM. DiskReader::gatherlane fan-out (reader.rs:787-800) — routes onDEPTH / lanes.len()instead ofDEPTH.CachedReader::warmchunking (reader.rs:1081-1140) —ids.chunks(self.max_rows)instead of truncating tomax_rows.WaitReadyspin-then-nap backoff (engram.rs:325-377, 685-690) — the#519mechanism folded into#590.- Checked
u64arithmetic + allocation-bounds +scored_prefillfiltering (runtime_core/engram.rs:239-347). PreparedPLELookup.publish_lookahead(ngram_delivery.py:78-95, 157-164).
Who benefits, and how much
- #481 fix: high, and it is the best thing in the PR. The issue is a fully diagnosed startup failure (
map resident embedding table: Operation not permitted) with a minimal non-Flare repro, a positive test of the exact workaround, and an explicit fix suggestion — identical to what the PR implements. Affected kernels are RHEL/Rocky/Alma 9 (5.14), Ubuntu 22.04 GA (5.15), Debian 12 (6.1): a large share of the enterprise hosts this protoype is aimed at. Users of--embedding-table-storage ramgo from "cannot start" to "starts". Cost is ~40 lines and one extraopen(). This is exactly the "reproducible bug" the charter says gets merged. The stated limitation (verified on 6.18 viaF_GETFL/mprotect EACCES, not on <6.7) is honest and acceptable given #481's own repro. scored_prefillomission: real consistency defect, cheap.GraphKind::consumesalready returnstrueforScoredPrefill(engram.rs:1011-1021) while the two runtime-core filters hardcoded five kinds, so staging capacity and hash-binding validation for a scored-prefill-only core diverged from the loader's own notion of a consumer. Replacing both withGraphKind::try_from(..).is_ok_and(crate::engram::consumes)is the right de-duplication and adds no per-model branch. The new tests cover capacity, hash binding, and rejection.checked_mul/checked_addhardening +reference.offset + nbytes <= allocation.nbytes: correct, low value. The wrap is a genuine hole (release builds accept(1<<61)+1because*8wraps to 8), but the input is an exported/protected core, not user traffic, so exposure is an exporter bug, not an attacker. Fine to keep — it is ~30 lines and matches the style already used inprotobuf.rs:314-321andserving.rs:33-37.- Disk QD fan-out + warm chunking: correct, modest, and separately measurable. With
--embedding-table-workers 4|8, lanes hold only 32/16 slots, so the oldreads.len() <= DEPTHguard did push 17–128 reads at a single 16-slot lane. Thewarmtruncation was a silent drop of the advisory tail wheneverids.len() > max_tokens * heads— a bug in#566's path, worth fixing. - PLE
publish_lookahead: right place, right size. It mirrors the already-mergedPreparedEngramRequests.publish_lookahead(engram.py:280-283) and adds no Helios per-model branch — the hashing stays in the recipe, which is what the charter asks for. The 76.5% PLE gather / 4.6% TTFT pair is a paired A/B on a served workload on SM120 with the exported core, which meets #210's form.
Where it falls short
- Item 4 (
WaitReadybackoff) should not ride along. This is#519, which is still open and was told by @lukealonso on 2026-11-28 18:40 that it cannot merge without paired, warm-cache served evidence andflare_replay_readiness_wait_nanoseconds_totalshowing no regression;#353was closed on the same wait for the same reason.#590provides none of that — no readiness metric, no ITL/p99/wall-power, and the headline A/B was run at--embedding-table-workers 1, i.e. the configuration where the nap is the only one of the four items in play, so the 4.6% TTFT number cannot be attributed to it either way. Calling a busy-spin a "live runtime defect" inflates it: it burns a core, it does not produce wrong results, and#566'sReaderAction::Warmalready fills most of the wait window. It also adds a third hand-rolled wait policy besidehost_wait(execution/transport.rs:35(not opened), 100 µs) andpersistent_worker(64 polls then 1 ms), with no stated reason for 25/250 µs — the opposite of "smallest footprint in shared code". Landing it here would smuggle past the bar two maintainers set. - The fan-out fix is Unix-only and the same defect is left on Windows.
helios/src/engram/reader/windows.rs:91still readsself.lanes.len() == 1 || reads.len() <= DEPTHwithdepth = DEPTH / workers(windows.rs:56), anddocs/cli-design.md:776says "Windows defaults to four workers" — the platform most likely to be running multi-worker keeps the 4x QD collapse this PR says it fixes. Either fix it there too (same three lines) or state in the description that the fix is io_uring-only by construction, because the PR's framing ("Multi-workerio_uringqueue-depth collapse") is accurate but a reader will assume the bug class is closed. - Windows build is unverified, and dead-code is likely.
NAP_GROWTH/NAP_MAX(engram.rs:329-332) are referenced only from the#[cfg(not(windows))] yield_core; the Windowsyield_corespins, so both consts are unused on Windows. The PR says "0 warnings/errors in modified lines" and "Windows builds... not re-run" — that combination is exactly what#519's review flagged twice. Add#[cfg(not(windows))]to both consts. - The measured benefit is not tied to the defects it claims. The paired run used
--embedding-table-workers 1, where items 2 and 3 are no-ops, and the 76.5% gather reduction is the PLE lookahead path (item 6, plus the companion recipe PR). Fair for the API addition; it should not be presented as validation of the reader fixes. Item 1 has inherent evidence (the issue); items 2, 3, 5 have unit tests only, which is acceptable for bug fixes but should be said. - Merge hazard.
#580(open, CHANGES_REQUESTED, touches both engram.rs and reader.rs) and#583conflict directly, and the PR itself demands it merge before auv.lockbump inhyperflare-recipes. Bundling a startup-blocker compat fix behind that coordination is avoidable risk.
Simpler way to the same end
Split into three PRs, which costs nothing and removes every conflict above:
- (a)
#481fix alone — smallest diff, closes an issue blocking startup on 5.14/5.15/6.1, no dependency on the recipe repo, no interaction with#580/#583. - (b) Reader/validation fixes — lane fan-out (Unix and Windows),
warmchunking,checked_*+ allocation bounds,scored_prefillviaGraphKind::consumes. All internal, no API change, no merge-order constraint. - (c) PLE
publish_lookahead— 29 lines of Python, the only piece that needs the recipe-side PR and theuv.lockordering; goes in with its measured A/B.
WaitReady/#519 goes back to its own PR and its own evidence bar.
Charter fit
No per-model branches added; the model-side work stays in ignition; the runtime changes are general and small; the four-part description is present and unusually specific. That is the good half. Against it: five concerns in one PR contradicts "solve the right problem in the right place / smallest footprint", the reader fixes claim a benefit measured in a configuration where they do not run, and one item is a change two maintainers already declined on evidence grounds — the charter is explicit that benchmarks and feature flags don't override architectural rules and that bug fixes need the root cause, not a rebundle.
Merge with changes: (a) and (b) after the Windows lane fix and the #[cfg]s, (c) once its A/B is presented as the API's benefit; drop the WaitReady backoff until #519 meets its own bar.