Verdict: worth merging — it was the right call, and it has already landed
I re-reviewed #590 at its final head 6fe7bed2 (merged 2026-11-29 00:05, +464/−103 across 5 files). The three things that blocked it in the previous round are all genuinely fixed, and what remains is nits. Merging was correct; nothing here needs reverting.
What changed since the last review, and whether it holds up
WaitBackoff/#519is gone, cleanly.helios/src/engram.rs:625-627is back toReaderAction::WaitReady => std::hint::spin_loop(), andNAP_GROWTH/NAP_MAX/yield_coreno longer exist anywhere in the tree (searched). That removes the item that re-litigated a change two maintainers had declined, and it dissolves the "dead consts on Windows" hazard in the same stroke. The commit note also supplies the missing evidence in the right direction (alternating A/B/A/B on DeepSeek-V4.1-Flash TP4 showing +30 % to +201 % regression inflare_replay_readiness_wait_nanoseconds_total) — so the decision not to take it is now supported, not just deferred.#519goes back to its own bar.- Windows shares the same fan-out planner.
helios/src/engram/reader/windows.rs:9importslane_fanoutfromhelios/src/engram/reader.rs:40-50, andwindows.rs:91-93calls it.docs/cli-design.md:776documents Windows defaulting to four workers, so leaving the identical 4× queue-depth collapse there would have been the worst outcome — a bug class declared fixed on the platform that did not get the fix. One planner, two call sites, is exactly the "smallest footprint in shared code" the charter asks for. - The
EPERMdiagnostic keeps the reopen error.helios/src/engram/reader.rs:120-199:open_readonly_viewreopens/proc/self/fd/<fd>,map_fdis factored out, and the twoEPERMmessages at:170-179distinguish "reopen failed" from "reopen succeeded but mmap still refused". That is the difference between a diagnosable failure and a mystery on the affected hosts. - The doubled
prefetch_rows_loadedis fixed correctly. The counter now increments once per completed chunk insideCachedReader::warm(reader.rs:1149-1152) and the increment inReader::warmis deleted (reader.rs:1313-1319), so no double counting and the new assertions atreader.rs:2223and:2154cover both paths. Transfers::newbounds now agree withdecode.helios/src/engram.rs:785-793requiresmax_tokens*heads + 1slots for the request mailbox, and:803-811requiresmax_rows + 2for the prefetch mailbox; sinceprefetch_max_rows = mailbox.shape[0] - 2(runtime_core/engram.rs:323-328), the required size equals the buffer exactly. No off-by-one trap between the two validators, and the pointer arithmeticaddress + nbytes - 8/- 16is now guarded by a checked minimum instead of a raw subtraction.
Charter fit — the reasons this was worth making
- It fixes a reproducible startup blocker (#481). The issue has the syscall trace, a non-Flare repro, the exact
O_RDONLYreopen that works, and an explicit suggestion. The PR implements that suggestion. Affected kernels include RHEL/Rocky/Alma 9 (5.14), Ubuntu 22.04 GA (5.15) and Debian 12 (6.1) — hosts this prototype is aimed at.--embedding-table-storage ramgoes from "cannot start" to "starts", for ~80 lines and one extraopen(). This is squarely "a reproducible bug" under What gets merged. - The
scored_prefillomission was a real divergence, fixed by de-duplication. Both filters inhelios/src/runtime_core/engram.rs:224and:333now useGraphKind::try_from(..).is_ok_and(crate::engram::consumes), matchinghelios/src/engram.rs:948-958and the already-correct filter inruntime_core/model.rs:478-484. No model branch, no new flag, fewer hardcoded lists than before. - The mailbox hardening is cheap and correct.
checked_mul(8),checked_addfor the extent, andreference.offset + nbytes <= allocation.nbytesmirror the style already used informat.rs:513-530andserving.rs:30-38. The exposure is an exporter bug rather than user traffic, so this is low value but genuinely free, and it removes a release-build wrap that would have produced out-of-bounds reads. - The model-side work stayed in Ignition.
PreparedPLELookup.publish_lookahead(ignition/components/ngram_delivery.py:157-164plus_advisory_requestsat:78-95) mirrors the already-mergedPreparedEngramRequests.publish_lookahead(ignition/components/engram.py:280-283). Hashing stays in the recipe, Helios learns nothing about Qwen3.8, and it plugs into#566's existingprefetch_buffercontract (docs/cli-design.md:808-816) rather than inventing a parallel path. - The description is now honestly scoped. Attribution of the 76.5 % PLE gather / 4.6 % TTFT result strictly to the lookahead API plus recipes#87, and an explicit note that the served run used
--embedding-table-workers 1, is exactly the four-part description the charter wants. That scoping is what makes the unit-test-only evidence for the reader fixes acceptable.
Costs and residual nits (none of them blocking)
- Two mechanisms now enforce the same bound.
warm_batch = WARM_BATCH_ROWS.min(max_tokens * heads).max(1)(engram.rs:552-554) already guarantees the serving loop never exceedsreader.max_rows, so theids.chunks(self.max_rows)rewrite (reader.rs:1097-1156) is only for directReader::warmcallers. The PR says as much; adding the chunking anyway is defensible (it converts a silent drop into a loop) but it is ~40 lines of duplicated inner logic for a path with one non-test caller. - Fan-out now triggers much more often. Threshold dropped from
reads > DEPTH(128) toreads > DEPTH/workers(16 with 8 workers), so batches of 17–128 reads spawn scoped helper threads on every gather. The unit test asserts byte-exact output and which lanes ran, not latency, and the served A/B ran atworkers 1. Correct, but the trade-off is unmeasured at the worker counts that now take the new path. publish_lookaheadhas no automated test.tests/has nongram_deliverycoverage (tests/components/has none; the nearest ishelios/tests/engram_core_fixture.py:107(not opened) forpublish_requests), so the only evidence is the single served run on one checkpoint. It also copy-pastes ~6 lines of_requestsrather than parameterizing the shared/live-rows difference.- Doc wording drift.
docs/cli-design.md:777-778still says "Small gathers stay on the delivery thread", which now means "≤ DEPTH/workers reads" — worth a one-line clarification since that threshold is the whole point of the change. - The merge-order contract (
uv.lockbump inlocal-inference-lab/hyperflare-recipesafter this) is now satisfiable because the PR is merged. Worth confirming the recipe bump actually happened; if it stalls, the measured benefit is not yet reaching users.
Simpler alternative?
I argued last round for splitting into three PRs. That is still the tidier history for a change of this shape, but the reason to insist is gone: WaitBackoff — the only piece that needed a separate evidence bar — was removed, so the remaining five changes are all small, general, and evidenced (issue for #481, unit tests for the reader/validator work, paired A/B for the Python addition). Re-splitting a merged PR would cost more churn than it buys.
Bottom line
Worth merging, and correctly merged. It closes a startup-blocking compatibility bug with the reporter's own fix, removes a silent row-drop on the advisory path, hardens two mailbox validators without new branches, aligns scored_prefill with the runtime's own consumer predicate, and hands the PLE recipe a lookahead hook that matches the existing Engram one — all without a per-model branch in Helios. Follow-ups worth filing: (a) measure the multi-worker fan-out at --embedding-table-workers 4|8 and record it next to the workers 1 number, (b) add a Python test for publish_lookahead/_advisory_requests, (c) fix the "small gathers" sentence in docs/cli-design.md:777.