Opened by a workflow run, Nov 28, 2026 5:09 PM EST.
screen malicious
Screen Result: All Clear
Evidence: PR #590 ("helios,ignition: fix Engram reader bugs and add PLE lookahead publish", author lukealonso, COLLABORATOR, head 4ea9ba0, 4 files +588/−112) contains no prompt injection or other content aimed at steering an agent.
- Discussion is empty:
pr_commentsreturned "No comments" — no issue comments, no reviews, no inline review comments. The only prose in scope is the author's own description: a technical write-up of four Engram defects, a change list, test command output, an honest limitations section (pre-6.7 kernel EPERM behaviour inferred on 6.18; Windows not re-run), a merge-order note ("merge before bumping uv.lock in the companion recipes repo") and "Discord: no username provided". Nothing addresses an agent, requests a verdict, or asks for anything to be withheld. - All four changed files were read and reviewed:
helios/src/engram.rs(WaitBackoff spin-then-nap,warm_batchclamp, defensivenbyteslower bounds, rewritten device-request tests),helios/src/engram/reader.rs(io_uring lane fan-out by per-lane depth, chunkedCachedReader::warm,/proc/self/fdread-only reopen + EPERM kernel hint, new tests),helios/src/runtime_core/engram.rs(checked_mul/checked_addvalidation, MappedHost allocation-bounds check, sharedGraphKind/engram::consumesfilter) andignition/components/ngram_delivery.py(read in full, 176 lines: only theflare::ple_advisory_requestscustom op at lines 78-89, its fake at 92-95, andPreparedPLELookup.publish_lookaheadat 157-164, built entirely from pre-existing Triton kernels and the existingple_embeddinghash plan). - No new imports, no shell/process spawning, no environment or credential access, no network calls, no eval/exec. The only filesystem paths touched by the new code are
/proc/self/fd/<fd>(reader.rs) and test temp dirs — consistent with the stated pre-6.7EPERMfix. - Searches for directive-style text ("previous instructions", "system prompt", "autobot", "instruction", "reviewer", "do not review", "skip review") and for exfiltration-shaped patterns (
os.environ|subprocess|eval(|exec(|requests.|urllib|socket,Command::new|sudo|ssh|token=|api_key|secret) overhelios/srcandignition/componentsreturned no matches.https://inhelios/srcis only pre-existing huggingface.co test fixtures. - Exactly 4 source files change: no CI/workflow files, no dependency manifests, no lockfiles, no scripts. No commits on main since branch point a54a8b8 touch these files. CI pending; no reviews yet.
Caveat: a unicode bidi/zero-width-character regex could not be executed (the engine rejected the escape ranges); the diff and full-file reads show ASCII-only code and comments.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: lukealonso (Luke Alonso — COLLABORATOR and the project owner named in docs/design-review.md:23; 215 helios/src commits in 180 days, dominant committer there). Discord: no username provided. Motivation: Helios's disk-backed and resident embedding tables have several live defects: multi-worker io_uring gathers collapse onto one lane, advisory warming silently drops rows past the workspace limit, and RAM tables fail to start on kernels older than 6.7 (#481). It also adds an advisory lookahead publisher for Qwen3.8's PLE table, which lacked one. Scale: +588 / −112 in 4 files Proposal:
- Fan
DiskReader::gatheracross lanes using per-lane depthDEPTH / lanes.len()instead of one lane for any batch ≤ 128 reads - Chunk
CachedReader::warmbymax_rowsinstead of truncating; moveprefetch_rows_loadedcounting insidewarm - On Linux, mmap read-only resident tables through a
/proc/self/fdO_RDONLYreopen, with an EPERM kernel-version hint (fixes #481) - Add
WaitBackoffspin-then-nap (4096 spin rounds, 25→250 µs naps) toReaderAction::WaitReadyandRequests::read - Checked
u64mailbox arithmetic plus allocation bounds, andscored_prefilladded to both graph-kind filters; newflare::ple_advisory_requests+PreparedPLELookup.publish_lookaheadTouches: helios/src/engram.rs(+187/−19) — reader loop, wait/backoff, transfer boundshelios/src/engram/reader.rs(+265/−67) — io_uring lanes, warm path, memfd remaphelios/src/runtime_core/engram.rs(+107/−26) — core loader validation and graph-kind filters Related items:- #566 perf(engram): graph-driven advisory lookahead prefetch (merged): the contract this PR extends; #590 is a follow-on series
- #519 fix(helios): park an Engram gather while it waits for ids (open): functionally superseded by #590, unlinked, by the reviewer who demanded its rebase
- #470 Parallelize Helios Engram table gathers (merged): source of the lane-depth defect; its review already flagged it
- #481 RAM embedding tables fail on kernels < 6.7 (open): the only issue this closes
- #580 defer row-cache insertion until after readiness (open): same worker loop, textual conflict
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Autobot comments: The description omits that the
prefetch_rows_loadedcounter moved intoCachedReader::warm, thatWaitBackoffresets onWarm(andnext_reader_actionprefers warming, so the repaired wait is largely the no-prefetch path — #519's own objection), and that thescored_prefillfix can now newly reject previously-loading cores. The PLEpublish_lookaheadhas no test and no in-tree consumer; its justification lives in an unlinked companion recipe PR. The 76.5% gather claim is mostly #566's prefetch effect (row-cache hit 43.1% → 94.7%); none of the three defect fixes has any measurement, including for--embedding-table-workers 4|8.verification/helios-lifecycle/check.py(not opened), Kani and mutation testing — required for readiness changes — are absent, and owner approval for the new captured-graph op is not recorded (#535, the underlying #566 contract sign-off, is still unanswered). The EPERM fix is verified only on 6.18, never on a <6.7 kernel.
Value Proposition
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.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/engram.rs:299-320:
Requests::readkeeps a second, unreachable wait policy (its only caller runs afteris_readyreturned true at :401-406); make itread(self)assuming readiness and delete the three tests at :1094-1140. - helios/src/engram.rs:1177-1180: the new
WaitReadytest asserts onlyrounds > SPIN_ROUNDS, which a pure spin also satisfies; assert wall time spent napping or delete it. - helios/src/engram/reader.rs:1081-1140: chunked
warmfixes a case the serving caller's clamp (engram.rs:607-609) makes unreachable, and now tolerates whatgatherrejects (reader.rs:1001-1004); keep the caller's clamp, restore the single-pass body, returnResult<()>.
Nits: 5 Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Detail: the change genuinely removes duplication in places (the shared GraphKind::try_from(...).is_ok_and(crate::engram::consumes) filter at runtime_core/engram.rs:224/:333, and the active_lanes fan-out arithmetic), but three added paths re-check what their own caller already guarantees and two are unexercised in production. Roughly 60–80 of the added lines could go without losing a tested behaviour. Nits: duplicated mailbox capacity arithmetic in Transfers::new (engram.rs:848-857, :866-874 vs runtime_core/engram.rs:272-329); the /proc/self/fd reopen fallback that silently restores the EPERM-failing descriptor (reader.rs:138-149); the redundant fan-out guard (reader.rs:787-796); the duplicated PLE advisory custom op (ngram_delivery.py:78-95 vs :59-75); and three comments restating docs or unenforced invariants. Open question: whether the PLE publish_lookahead capability belongs in this bug-fix PR given AGENTS.md:198 (one coherent outcome) and its stated cross-repo merge order. No blocking issues: nothing here causes a wrong result.
Prose
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/engram.rs:325-327:
SPIN_ROUNDS's doc comment says it is "enough to catch IDs the graph published before the wait began", butready.load(Acquire)is tested before the loop body, so pre-published IDs are observed on the first load; the comment states a rationale the loop cannot satisfy (same defect the author already recorded on #519). - helios/src/engram/reader.rs:151-159: the new
EPERMmessage asserts "kernels older than 6.7" and recommends/proc/self/fd, whichResidentMapping::newalready tried (its error is discarded by.ok()at :140), so the hint is wrong on hosts without procfs and needless on kernels ≥ 6.7. - PR #590 body, "Claimed benefit and results": the headline numbers are a combined-stack result with the companion recipe PR, not attributed to individual changes, and the only named served configuration uses
--embedding-table-workers 1, which takes the single-lane branch at helios/src/engram/reader.rs:788 and therefore cannot exercise the largest claimed fix. - PR #590 body, "Why" item 3: claims #566 "turned #519's spin-then-nap backoff in
Requests::readinto dead code"; #519 is open and unmerged and main has a barestd::hint::spin_loop()(helios/src/engram.rs:309-314 at main), so there is no such backoff on main. - ignition/components/ngram_delivery.py:158:
publish_lookahead's docstring says it hashes "during graph capture", but the op runs every serving step and launches Triton kernels per call; it tells a recipe author the wrong lifecycle.
Nits: 2 — "Fixes all four runtime defects" against five enumerated items covering seven defects; "Windows builds … were not re-run" understates a Windows-only branch this PR adds and never compiles (yield_core at helios/src/engram.rs:349-352, with NAP_GROWTH/NAP_MAX unreferenced on that target).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Correctness
Verdict: clean Blocking:
- None. Should fix:
- None. Nits: 2 Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Key findings
No blocking or should-fix correctness defect was found. All four changed files were read in context, and the four headline fixes hold up in the code: the DiskReader::gather lane fan-out cannot underflow or index past the lane vector, the chunked CachedReader::warm cannot exceed the workspace and its prefetch_rows_loaded counter is not double counted, the nbytes overflow/bounds checks agree between Transfers::new and the core-side decode validation, and the graph-kind filters now match engram::consumes exactly. Two nits are recorded. The one gap is that the recipe-side caller of PreparedPLELookup.publish_lookahead lives in a different repository (local-inference-lab/hyperflare-recipes) and could not be verified here.
Findings
Nit — helios/src/engram.rs:349-352: Windows keeps the busy spin, so the #519 fix does not apply there. WaitBackoff::step (:369-376) spins for SPIN_ROUNDS (:327) and then calls yield_core (:341-347), whose nap ladder is #[cfg(not(windows))]. The #[cfg(windows)] variant (:349-352) ignores the round count and calls std::hint::spin_loop() unconditionally, so both consumers — Requests::read (:310-316) and ReaderAction::WaitReady (:685-687) — still busy-spin for the entire wait on Windows, which is exactly the defect #519 describes. The doc comment (:334-339) justifies this as Windows timer granularity exceeding NAP_MAX = 250 us (:332), which is defensible, but the consequence is that the fix is inapplicable on Windows rather than merely unverified; the PR's Limitations paragraph only says Windows builds "were not re-run". Windows is a documented supported platform (docs/windows.md:1-19, and disk tables do run there — reader.rs:652-653, 699-700 compile a windows::Readers lane set), so this is worth one sentence in the PR description or README. Behaviour is unchanged from main, so it is not a regression. A fix, if wanted, is std::thread::yield_now() after the spin budget instead of a bare spin, and documenting the nap ladder as POSIX-only.
**Nit — helios/src/engram/reader.rs:140 and :151-159:
(No summary was written: this is the start of the report.)
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- PR-wide: six outcomes in one PR (+588/−112 across Rust and Python) violates AGENTS.md:198-199 "one coherent outcome", so no outcome can be accepted or rejected alone.
- helios/src/engram.rs:322-377:
WaitBackoffis the exact change blocked in open #519 and bundled here without the served evidence the maintainer's 2026-11-28 comment demands. - helios/src/engram.rs:299-320: the fourth hand-rolled wait policy in Helios; its
Requests::readhalf is unreachable in serving after #566, yet the description calls it part of the fix.
Nits: 3 — Windows dead-code on NAP_GROWTH/NAP_MAX (engram.rs:328-332, an item asked for in #519); publish_lookahead (ngram_delivery.py:157-164) unexercised by anything in-repo; stale SPIN_ROUNDS comment (engram.rs:325-327).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Detail: the four bug fixes are correctly placed and reuse existing mechanisms rather than adding special cases — the pre-6.7 memfd remap targets #481's root cause and keeps the seals; the scored_prefill filters now go through the shared GraphKind/engram::consumes predicate, removing a hardcoded list (docs/design-review.md:27-35); the io_uring lane fan-out mirrors construction; warm chunking stays in bounds; the checked mailbox arithmetic restores validation. No layer-role violation: Ignition prepares, Helios serves. Open question: publish_lookahead hashes ids.shape[0] rows rather than the passed token_ids length, so a longer lookahead window may be silently truncated (ngram_delivery.py:84-89) — needs a test to settle.
Conventions
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/engram/reader/windows.rs:56,91,94: the Windows twin of the fixed dispatch still routes
reads.len() <= DEPTH(128) tolanes[0], so the 2x–8x QD collapse this PR fixes in reader.rs:787-800 survives on Windows with 4/8 workers — apply thelane_depth/active_lanesfan-out there too or factor it into one shared helper. - ignition/components/ngram_delivery.py:157-164:
publish_lookaheaddoestorch.empty_like(self.ids)+torch.empty(...)on every call, while the siblingpublish(:148-155, buffer at :122) and the Engram precedent it mirrors (engram.py:280-283,_hash_window(..., dest=)) reuse prepared buffers; hoist them into__init__.
Nits: 4
- helios/src/engram.rs:325-377:
WaitBackoffis a third spin-then-park policy besidethreaded::spin_wait_until(threaded.rs:65-88) andpersistent_worker.rs:26-29,507-512, with no cross-reference and no elapsed-time bound. - ignition/components/ngram_delivery.py:78-95:
_advisory_requestsduplicates_requests(:59) except for two constexpr flags already supported by the kernels, and its name collides with the adjacentpublish_advisory_requests(:47). - helios/src/engram/reader.rs:1085-1139 vs :1001-1079:
CachedReader::warmnow repeatsgather's body nearly verbatim; and helios/src/engram.rs:843-882 restatesvalidate_mailbox's capacity math (runtime_core/engram.rs:272-322) without naming it. - helios/src/engram/reader.rs:139-143:
open_readonly_view(file).ok()silently drops the reopen failure and falls back into the pre-6.7EPERMpath (AGENTS.md:184-186).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
No blocking issue in this lens. The PR on balance reduces duplication: the GraphKind filters (runtime_core/engram.rs:224,333) now use the expression that already existed at runtime_core/model.rs:480 with engram::consumes, replacing two hard-coded five-kind lists, and the new interface copies PreparedEngram.publish_lookahead rather than inventing one. The two real findings are (1) the Unix-only fix leaving its structural twin in windows.rs unchanged, against AGENTS.md:497-500 ("inspect … equivalent paths") and the charter's hardware-target check, and (2) the new PLE method allocating per call where both precedents reuse prepared buffers (AGENTS.md:417-419, :176-179). The hand-rolled /proc/self/fd reopen is not a duplicate of eos::direct_reopen (that adds O_DIRECT, unusable for mmap), and map_fd has no existing counterpart — recorded so it is not re-flagged. Backward compatibility (AGENTS.md:434-437) holds: the new Transfers::new bounds checks can only fire on a mailbox genuinely too short for max_tokens * heads, so no re-export of existing cores is required. Open: whether publish_lookahead is called per step or only during capture can only be settled by the companion Qwen3.8 recipe PR, which is outside this repository.
Subtractive
Verdict: make it smaller first The change: +588 / -112 across 4 files (helios/src/engram.rs +187/-19, helios/src/engram/reader.rs +265/-67, helios/src/runtime_core/engram.rs +107/-26, ignition/components/ngram_delivery.py +29/-0) Could remove: about 330 lines, in 7 places (roughly 55% of the added lines; the defensible core is ~35 lines) Biggest subtractions:
- helios/src/engram.rs:325-377, 310-316, 1079-1170: drop the
WaitBackofframp, the Windowsyield_corefork and the four read-side/backoff tests — open PR #519 owns exactly this rebase ontoReaderAction::WaitReady, the repo already has two spin-then-yield waits (execution/threaded.rs:34-88, server/runtime.rs:1180-1208 (not opened)), and the read-side wait is unreachable after #566 (Gather only whenis_ready): about 150 lines. - helios/src/engram/reader.rs:1081-1140 + 2174-2229: drop the chunked
CachedReader::warmloop and its test — after this PR's ownwarm_batchclamp (engram.rs:607-609, 674) andsnapshot's clamp tomax_rows(engram.rs:264),ids.chunks(max_rows)is always one chunk: about 106 lines. - helios/src/engram/reader.rs:2219-2292: fold the
used_lanesassertion (3 lines) into the existingparallel_unix_disk_workers_preserve_rows_and_propagate_truncation(:1934-2021) and delete the duplicate 75-line fixture: about 70 lines. - helios/src/engram.rs:848-857, 866-874: drop both
requiredbounds blocks inTransfers::new— decode (runtime_core/engram.rs:303-316),execution_manifest(serving.rs:33-38) andhost_address(cuda.rs:895-940) already enforce them: about 20 lines. - ignition/components/ngram_delivery.py:78-95, 157-164: drop the new
flare::ple_advisory_requestsop and fake, callinghash_state.run_tensors+ the existingpublish_advisory_requestsfrompublish_lookahead: about 18 lines (29 with a merged-op variant). - Others: the
/proc/self/fd.ok()fallback (silently re-creates #481) and EPERM message fork, reader.rs:139-159 (~15-20); twochecked_add(1/2)overflow arms over an impossible overflow, runtime_core/engram.rs:303-305, 314-316 (~6, nit). Left behind: the PR keeps two parallel wait policies (this one and #519's) and two publish implementations in ngram_delivery.py (_requests/publish_advisory_requestsalongside the new_advisory_requests); the chunked-warm loop also leaves a thirdGraphKindparse-filter closure duplicating runtime_core/model.rs:480-481. Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
code review summary
Recommendation: Changes Requested
The four headline fixes are real, correctly placed, and partly subtractive, and the correctness lens is clean; what holds the PR back is scope and evidence — a wait policy that open PR #519 is blocked on is re-landed here unmeasured, and the Windows twin of the fixed dispatch was left behind on a documented default configuration.
- Blockers: 2
- Should fix: 4
- Subtractive suggestions: 4
- Nits: 2
Blockers: (B1) WaitBackoff (helios/src/engram.rs:325-332, 369-376, 685-687) is the exact mechanism the same maintainer blocked in open #519 for lacking a served ruling and flare_replay_readiness_wait_nanoseconds_total; #590's 76.5 %/4.6 % numbers belong to the companion recipe path on a single-worker run, and the body's claim that #566 turned a backoff on main into dead code is false (main engram.rs:309-314 is a bare spin_loop). (B2) helios/src/engram/reader/windows.rs:91-94 keeps reads.len() <= DEPTH → lanes[0], so 17–128-read batches still collapse on Windows, whose documented default is 4 workers × 128 slots (docs/windows.md:144-148); ~70 lines of Unix-only fix and test, no windows file in the diff.
Should fix: (S1) Requests::read's backoff half is unreachable in serving (Gather only dispatched after is_ready, :401-406 vs :309-316), and the new nap test asserts only rounds.0 > SPIN_ROUNDS while AFTER_SPIN = 5 ms already exceeds 4096 spin rounds, so a spin-only step passes. (S2) chunked CachedReader::warm fixes a case the PR's own warm_batch clamp makes impossible and now tolerates what gather rejects (reader.rs:1002 vs :1085). (S3) publish_lookahead has no in-repo caller and hashes token_count=ids.shape[0], not the passed window, so a longer lookahead window silently loses its tail. (S4) one combined prose item: combined-stack attribution, the --embedding-table-workers 1 run that cannot exercise the fan-out fix, "four defects" vs five, the "graph capture" docstring, Windows "not re-run", O_RDONLY|O_CLOEXEC vs plain File::open, omitted .ok() fallback.
Subtract: duplicate Transfers::new capacity checks (proved equal to decode's, non-false-rejecting, ~20 lines); merge the new fan-out test into the existing multi-worker test (~70 lines); fold _advisory_requests into _requests with optional live_rows (reuse self.requests only — fresh ids is required to avoid corrupting the prepared hash buffer). Nits: Windows dead_code on NAP_GROWTH/NAP_MAX plus the false SPIN_ROUNDS rationale; third copy of the consumes filter closure.
Pre-filtered out: the flare-cli BrokenPipe and RLIMIT_MEMLOCK failures (pre-existing), clippy/test-count disputes, and two factually wrong Conventions claims (that publish_lookahead is the only allocating preparation path — engram.py:280-283 allocates too — and that ids is an unjustified steady-state allocation).
Pre Test Report
Pre-test report — PR #590 helios,ignition: fix Engram reader bugs and add PLE lookahead publish
Head 4ea9ba0, base main a54a8b8, 4 files, +588/−112. Author lukealonso (COLLABORATOR, project owner per docs/design-review.md:23).
Recommendation: DO NOT refer to hardware testing yet — return for a split and three code fixes
This is not a rejection of the work. Four of the six strands are real fixes at the right layer, and I verified them in the code rather than taking the reviews' word for it. But as a single PR it cannot be tested meaningfully, for reasons that are properties of the code and of our hosts, not of the tester's effort:
- The PR's own headline measurement cannot be attributed to the change that carries the risk, and in fact could not have exercised it (proved below).
- Two of the six strands are dead code in production, and one of those is a change the project owner blocked in open PR #519 that same afternoon.
- Three of the six strands cannot be validated on cn5 or cn7 at all — no Engram-bearing core, no pre-6.7 kernel, no recipe-side caller.
Testing now would either be a no-op (green on things that cannot run) or would burn a GPU slot re-measuring a #566 effect we already know. Roughly 35 lines of the diff are the defensible core; ~330 added lines are removable without losing a needed behaviour.
What I verified myself (not taken from the reviews)
Confirmed — the Windows twin of the fixed dispatch was left behind. helios/src/engram/reader/windows.rs:56 (let depth = DEPTH / workers;), :91 (if self.lanes.len() == 1 || reads.len() <= DEPTH), :94 (div_ceil(self.lanes.len())) is the structural twin of the Unix block this PR rewrites at reader.rs:787-800. The Unix fix routes on per-lane depth; Windows still routes on the total DEPTH = 128 and collapses onto lanes[0]. docs/cli-design.md:774-778 says "Windows defaults to four workers" and docs/windows.md:144-148 documents disk I/O rings with registered files and buffers there. So the platform most likely to be running multi-worker keeps the exact defect the PR says it fixes, and docs/windows.md:182-186 claims Windows fixture coverage of Engram row delivery. Against AGENTS.md:497-500 ("inspect the shared components and equivalent paths in every supported recipe before scoping the fix").
Confirmed — the read half of WaitBackoff cannot run in serving. next_reader_action (engram.rs:401-406) returns Gather only when job.requests.is_ready(cancelled), which is the same ready.load(Acquire) == sequence test used by the loop at engram.rs:311. The only production caller is engram.rs:654, inside the Gather arm, which does wait.reset() at :627 immediately before. So the while at :311 never iterates: it is reached only by the new tests at :1095-1183. This is exactly the maintainer's own blocking point 1 on #519.
Confirmed — chunked CachedReader::warm is unreachable in serving. warm_batch = WARM_BATCH_ROWS.min(max_tokens * table.heads).max(1) (engram.rs:607-609); max_rows for the cache is built from the same max_tokens * table.heads (engram.rs:539-541 → reader.rs:938/997); AdvisoryMailbox::snapshot already clamps to max_rows (engram.rs:264). ids.chunks(self.max_rows) therefore always yields one chunk. Meanwhile CachedReader::gather still rejects ids.len() > max_rows (reader.rs:1002), so the two entry points now have opposite overflow policies.
Confirmed — NAP_GROWTH/NAP_MAX (engram.rs:328-332) are not #[cfg]-gated, and the Windows yield_core (:349-352) does not reference them: a windows build warns on both. This is verbatim the item the owner listed under "Other items to fix if rebasing onto main" in #519. .github/workflows/native-serving.yml:20-21 (not opened) builds x86_64-pc-windows-msvc, so this is a live target.
New finding of my own — the action precedence proves the benchmark could not test the backoff. next_reader_action (engram.rs:407-414) checks has_warm_work before returning WaitReady. WaitReady, the only reachable consumer of WaitBackoff, is therefore entered only when there is no advisory warm work — i.e. prefetch disabled or the advisory mailbox empty. The PR's A/B ran with PLE lookahead prefetch active (its 76.5 % gather reduction and 43.1 %→94.7 % hit-rate jump depend on it), so that run exercised ReaderAction::Warm, not the backoff. Combined with --embedding-table-workers 1 in the same command line, which takes the lanes.len() == 1 branch at reader.rs:788, the measured configuration is one where three of the six strands — lane fan-out, warm chunking, and the backoff — are all inert. The one defect the measurement does demonstrate is the PLE lookahead, whose effect lives mostly in the unmerged companion recipe PR.
New finding of my own — a narrow new core-rejection path. Transfers::new (engram.rs:848-857) now rejects a request mailbox shorter than (binding.shared.max_tokens * table.heads + 1) * 8. shared.max_tokens is the set-wide tokens from runtime_core/model.rs:478-485, the max packed_tokens across all ranks merged into one reader set, while the load-time check (runtime_core/engram.rs:302-311) validates each core against its own max_staged_rows. If ranks in one reader set declare different graph capacities, the core loads per-core but is now rejected at Transfers::new — where it previously served. Narrow (TP ranks normally export identical catalogs) and no test covers it. The prefetch side is exact and safe: required = (cap + 2) * 8 equals nbytes because cap = shape[0] - 2 (runtime_core/engram.rs:313-328). Not a blocker; a load smoke test would settle it.
Withdrawn from the reviews: the Architecture and Value lenses both say the new flare::ple_advisory_requests captured-graph op needs a recorded owner approval (they point at #535/#566). docs/design-review.md:22-26 does require prior explicit owner approval for a new operation family — and the author of this PR is the owner. Do not send a tester chasing that sign-off.
Correct and correctly placed (no finding): the #481 /proc/self/fd read-only reopen (reader.rs:108-176, seals still enforced via RESIDENT_SEALS/F_GET_SEALS at :352-355); the GraphKind::try_from(..).is_ok_and(crate::engram::consumes) filter replacing two hardcoded five-kind lists (runtime_core/engram.rs:224,333) — a genuine de-duplication that also closes the scored_prefill divergence; the checked_mul(8) and allocation-bounds checks (:287-296); the lane arithmetic itself (active_lanes ≥ 1, split_first_mut always Some, chunk size always nonzero). The Correctness lens found no defect in any of these and I agree with its reasoning on each.
Expected value if a hardware test were run today
| Strand | Testable on cn5 (4×RTX PRO 6000, amd64) / cn7 (GB10, arm64)? | Value |
|---|---|---|
io_uring lane fan-out (reader.rs:787-800) |
Only via a hand-built fixture. No Engram model on either host (no DeepSeek-V4.1 core; cn5 has GLM-5.3-Flash-NVFP4 + DINOv2, cn7 has Qwen3.8/GLM-5.3). Route would be helios/tests/engram_core_fixture.py → FLARE_ENGRAM_TEST_CORE (runtime_core/event_tests.rs:56). QD effect additionally needs a real NVMe queue; the PR's own rig was a /dev/md0 RAID. |
Medium, only after the Windows twin exists and only as a fixture A/B |
Chunked CachedReader::warm |
No — unreachable in serving (proved above) | Zero. Nothing to observe |
pre-6.7 EPERM (#481) |
No — needs kernel <6.7; both hosts are current Blackwell/GB10, ≥6.7 by a wide margin | Zero for the defect. Only a "RAM table still starts" positive control, already asserted by reader.rs:2296 |
WaitBackoff |
No — read half dead; WaitReady half needs an Engram device-mailbox workload and --no-embedding-table-prefetch and per-thread /proc CPU or flare_replay_readiness_wait_nanoseconds_total (docs/api.md:333 (not opened)) |
Negative: this is the change #519 was blocked on; the owner's own bar (paired warm-cache runs, readiness counter) is not in this PR |
Mailbox overflow + scored_prefill loader validation |
Load-time logic; rejects at decode, never reaches GPU | Zero on hardware. Unit-tested at runtime_core/engram.rs:719-789 |
PLE publish_lookahead (ngram_delivery.py:157-164) |
No — the only caller is the unmerged companion PR in local-inference-lab/hyperflare-recipes. Qwen3.8 models are on cn7, but there is no in-repo caller, recipe, or test |
Zero without the recipe PR |
Net value of a test run today: close to zero, with a real risk of a "passes" verdict on code that will change. The highest-value item on the list (lane fan-out) is only meaningful once Windows parity is decided and it is measured as a fixture A/B; the second (PLE) has no call site to drive.
Required before any referral
- Split.
AGENTS.md:198-199requires one coherent outcome per PR; the validation here is one combined tally. Split into (a) the#481/proc/self/fdfix — smallest diff, closes an issue blocking startup on 5.14/5.15/6.1, no cross-repo dependency; (b) reader + validation fixes — lane fan-out,warm,checked_*,scored_prefill; (c) PLEpublish_lookaheadwith its recipe PR and its A/B. - Drop
WaitBackoffback to #519. The owner blocked it on 2026-11-28 18:40 for no served benefit and unmeasured readiness impact, after #353 was closed on the same wait. Re-landing it inside a bug-fix PR with no new evidence silently overrides that ruling. - Fix the Windows twin (
windows.rs:91-94) or state in the description that the fix is io_uring-only by construction —docs/windows.mdis a supported target anddocs/cli-design.md:776says Windows defaults to four workers. - Gate or delete
NAP_GROWTH/NAP_MAXso thewindowstarget compiles clean. - Restore an honest evidence paragraph: label the 76.5 %/4.6 % numbers as a combined-stack result with the companion recipe PR; say which change each belongs to; and state that lane fan-out is covered only by its unit test, not by the served run (it ran at
--embedding-table-workers 1).
Minimal hardware plan, if the owner overrides and refers as-is
Only worth running if the split is refused. Keep it to one session; do not re-derive what CI proves.
Host: cn5 (4 × RTX PRO 6000 Blackwell, amd64) — Linux, so the io_uring path and the /proc reopen are both live. cn7 is arm64 GB10 and adds nothing here.
Preconditions (fail fast, do not spend GPU time without them):
ulimit -l 65536—AGENTS.md:326-327; the Engram tests lock host memory and fail otherwise withregister Engram staging: Cannot allocate memory(the cause of the 5 failures in #519's report).- Build a disk Engram fixture core on the host:
python -m helios.tests.engram_core_fixture <dir> --table-world 1, then exportFLARE_ENGRAM_TEST_CORE=<dir>.
T1 — Regression gate, CPU only, no GPU slot (run first, ~10 min).
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib -- engram:: expecting 48 passed, plus cargo clippy ... --lib --tests. This covers every strand's unit test including advisory_warm_chunks..., unix_disk_reader_fans_out... and sealed_resident_readonly_mapping.... Nothing below is worth running if this fails.
T2 — The one real A/B: lane fan-out on a disk Engram core (the only measurable defect in this PR).
Run flare run against the fixture core twice on the same exported core, alternating, 3 repetitions each, warm row cache:
- A:
maina54a8b8 - B: PR head
4ea9ba0 - Fixed config:
--embedding-table-storage disk --embedding-table-cache-size 4GiB --embedding-table-resident-scales --embedding-table-workers 4and separately8. - Assert correctness first: outputs byte-identical between arms (the fan-out reorders reads, so this is the regression that matters).
- Measure:
flare_engram_disk_{plan,submit,wait,complete}_nanoseconds_totalandflare_engram_gather_nanoseconds_total. The claim is a 2–8× queue-depth improvement on 17–128-read batches; the expected signature is lowerdisk_waitatworkers=4|8withworkers=1unchanged. - Pass criterion: correctness identical, and
disk_waitper gather lower in B atworkers=4|8beyond run-to-run spread. Report spread, not a single pair. - Note: if Windows parity is not fixed, this measures a Unix-only improvement — say so in the verdict rather than closing the bug class.
T3 — Startup compatibility regression (cheap, catches my finding above).
Load the existing exported Engram core (exported before this PR, TP4 if available) on flare run and confirm it still loads and serves. Expected: loads. If it fails with n-gram request mailbox is smaller than staged capacity, that is the set-wide-vs-per-core mismatch and the PR must not merge as-is. Also load once with --embedding-table-storage ram to confirm the #481 path still starts (positive control only; the defect itself is untestable on this kernel).
Explicitly do not test: chunked warm (unreachable), WaitBackoff behaviour (unreachable without --no-embedding-table-prefetch and an advisory mailbox, and it is the item under dispute), the EPERM fix on a <6.7 kernel (no such host), the publish_lookahead op (no caller in this repo), and scored_prefill (load-time only).
What T1–T3 cannot establish, and must be said in the verdict: that the change improves a served workload. The only served number in the PR is a combined-stack result measured with prefetch on and --embedding-table-workers 1 — a configuration in which fan-out, warm chunking, and the backoff are all inert.
Risk note for whoever merges
#519 (open, blocked) touches the same wait; #580 (open, CHANGES_REQUESTED) rewrites the same worker loop in engram.rs + reader.rs; #554 is an open draft on the same three files. #590 additionally demands it merge before a uv.lock bump in hyperflare-recipes. Bundling the startup-blocker #481 fix behind that coordination chain is avoidable risk — another argument for the split.
Final review
Recommendation: Changes Requested
Four of the five changes in this PR are sound, well-placed, and verified by targeted tests (the #481 pre-6.7 sealed-memfd read-only reopen, Unix multi-worker io_uring lane fan-out + chunked warm, checked u64 mailbox validation + scored_prefill filtering, and PreparedPLELookup.publish_lookahead), but WaitBackoff re-lands the exact wait policy blocked in open PR #519 with a factually inaccurate main baseline claim and zero attributable served or readiness-wait measurements, while leaving the identical multi-worker lane-collapse bug untouched on Windows.
Blockers
WaitBackoffre-lands blocked PR #519's wait policy with a false before-state and no attributable served or readiness-wait evidence (helios/src/engram.rs:325-377, 685-687).- False before-state against
main: The PR description ("Why #3") claims#566"turned #519's spin-then-nap backoff inRequests::readinto dead code during normal serving." PR #519 is still open and unmerged;mainathelios/src/engram.rs:309-314has only a barestd::hint::spin_loop(). - Unmet evidence bar and unmeasured readiness-latency risk: PR #353 was closed and PR #519 was blocked on
2026-11-28 18:40on this exact wait because adding up toNAP_MAX(250 µs plus Linux timer slack) on the wait gating the Engram transfer stream can regress exposed GPU readiness wait (flare_replay_readiness_wait_nanoseconds_total) without a demonstrated served improvement overmain(Charter "Bring real evidence" / #210;AGENTS.md:165-169). - No attributable measurement: The only served benchmark reported here is a paired Qwen3.8 PLE lookahead run (cold 111,915-token prefill,
--embedding-table-workers 1) paired with the companion recipe PR, and the Limitations section states host CPU-time profiling ofWaitReadywas not run. Neitherflare_replay_readiness_wait_nanoseconds_totalnor a warm-cache alternating A/B isolatingWaitBackoffis reported. - Fix: Drop
WaitBackoff(and itsRequests::readchanges and tests) from #590 and keep it in #519 under that PR's evidence bar—or record an explicit maintainer decision accepting idle reader-thread CPU occupancy as the defect alongside paired warm-cache runs reportingflare_replay_readiness_wait_nanoseconds_totalto verify no readiness regression.
- False before-state against
Should Fix
-
Windows disk reader retains the identical multi-worker lane-collapse bug (
helios/src/engram/reader/windows.rs:56, 91-96).windows.rs:56sizes each lane todepth = DEPTH / workers, yetwindows.rs:91still checksif self.lanes.len() == 1 || reads.len() <= DEPTH, routing 33–128 reads onto a single 32-slot lane under Windows' documented default of 4 workers (docs/windows.md:147-148: "the default four workers share 128 slots and 8 MiB of staging per table").- Per
AGENTS.md:497-500(inspect equivalent paths before scoping a fix), apply the samelane_depth = DEPTH / self.lanes.len()/active_lanesfan-out towindows.rs:91-96, or explicitly state in the PR description that Windows I/O ring dispatch is out of scope here and tracked as a follow-up.
-
If
WaitBackoffis retained:Requests::read's backoff loop is unreachable in serving, and theWaitReadytest cannot distinguish napping from spinning (helios/src/engram.rs:309-316, 654, 1142-1182). (Moot ifWaitBackoffis dropped per Blocker 1.)- The only production caller of
Requests::readisReaderAction::Gather(helios/src/engram.rs:654), whichnext_reader_action(engram.rs:401-406) dispatches only afterjob.requests.is_ready(cancelled)returnstrue(andengram.rs:651already returnsErron cancellation beforereadis called). Thewhile ready.load(Ordering::Acquire) != sequenceloop inRequests::readtherefore never iterates in production, contradicting the PR description's "used by bothReaderAction::WaitReady... andRequests::read". - In
wait_ready_backoff_naps_until_publication_or_cancellation_and_resets(engram.rs:1142-1182),assert!(rounds.0 > SPIN_ROUNDS)after sleepingAFTER_SPIN = 5 mspasses even ifyield_coreonly spins (a tight spin loop executes far more than 4,096 rounds in 5 ms), and the test never exercises cancellation despite its name. RemoveWaitBackofffromRequests::readand add a#[cfg(not(windows))]upper bound onrounds.0(plus a cancellation check) if the backoff stays.
- The only production caller of
-
PR description evidence attribution and
warm-truncation scope (AGENTS.md:98-100, 103-112).- Explicitly attribute the paired Qwen3.8 served benchmark (
--embedding-table-workers 1, synchronous PLE gather -76.5%, cold 111,915-token TTFT -4.6%) toPreparedPLELookup.publish_lookahead+ the companion Qwen3.8 recipe PR, and state that multi-worker QD fan-out (bypassed atworkers == 1), pre-6.7EPERM, andu64wrap /scored_prefillvalidation are covered by unit tests rather than exercised by that served run. - Clarify item 1's
CachedReader::warmtruncation claim: in serving,pending_warm.len() <= prefetch_max_rows <= max_staged_rows == max_tokens * table.heads == reader.max_rows(helios/src/runtime_core/engram.rs:314-323,helios/src/engram.rs:264, 539), soids.len() > self.max_rowsis unreachable from the reader loop and only affects directReader::warmcallers.
- Explicitly attribute the paired Qwen3.8 served benchmark (
Subtract / Simplify
None. (Removing WaitBackoff or its unreachable Requests::read half is already covered by Blocker 1 and Should Fix 2.)
Nits
-
Windows
dead_codewarnings and inaccurateSPIN_ROUNDS/AFTER_SPINdoc comments (helios/src/engram.rs:325-332, 1090-1091). (Moot ifWaitBackoffis dropped per Blocker 1.)NAP_GROWTH(:329) andNAP_MAX(:332) are referenced only inside#[cfg(not(windows))] fn yield_core, so Windows builds will emitdead_codewarnings unless both constants are gated#[cfg(not(windows))].SPIN_ROUNDS(:325-327) claims "enough to catch IDs the graph published before the wait began", but pre-published IDs are already observed on the firstis_ready/ready.load(Ordering::Acquire)check beforewait.step()runs; bothSPIN_ROUNDSandAFTER_SPIN(:1090-1091) also describe napping unconditionally even though Windows keeps spinning.
-
Preserve the
/proc/self/fdreopen error in theEPERMdiagnostic (helios/src/engram/reader.rs:139-158).Self::open_readonly_view(file).ok()discards theio::Errorif opening/proc/self/fd/<fd>fails (e.g.,ENOENTvsEACCES). Keeping theResultlets theEPERMerror message report why/proc/self/fdcould not be opened while still preserving the fallback tofile.as_raw_fd()on Linux >= 6.7 hosts without procfs.
Verified passes
- Pre-6.7 Linux sealed-memfd read-only remap (#481,
helios/src/engram/reader.rs:108-176, 2294-2325): Reopening/proc/self/fd/<fd>viaFile::open(O_RDONLY | O_CLOEXEC) clearsVM_MAYWRITEwhile preservingF_SEAL_*checks andMADV_POPULATE_READ;ResidentMappingis constructed beforemadvisesoDropunmaps onmadvisefailure; the new Linux test verifiesF_GETFL == O_RDONLYandmprotect(PROT_READ | PROT_WRITE)returningEACCES. - Unix multi-worker
io_uringlane fan-out (helios/src/engram/reader.rs:787-800):lane_depth = DEPTH / self.lanes.len()is always in{128, 64, 32, 16}(workersvalidated to1 | 2 | 4 | 8),active_lanesis in2..=self.lanes.len()wheneverreads.len() > lane_depth, andself.lanes[..active_lanes].split_first_mut()is panic-free. CachedReader::warmchunking (helios/src/engram/reader.rs:939, 1081-1140, 1293-1304):CachedReader::newrejectsmax_rows == 0, soids.chunks(self.max_rows)cannot panic; per-chunkprefetch_rows_loadedaccounting eliminates caller-side double-counting and stays accurate if a later chunk fails.- Checked
u64mailbox validation, allocation bounds, andscored_prefillfiltering (helios/src/runtime_core/engram.rs:224, 242-347,helios/src/engram.rs:848-881): Closes the release-buildshape[0] * 8wrap ((1 << 61) + 1,1 << 61) andMappedHostoffset-overrun holes;Transfers::newbounds agree withruntime_core/engram.rsso existing exported cores remain backward compatible;scored_prefillnow matchescrate::engram::consumes(helios/src/engram.rs:1011-1021) andignition/preparation/contract.py:88-89. PreparedPLELookup.publish_lookahead(ignition/components/ngram_delivery.py:78-96, 157-165): MatchesPreparedPLELookup.publishandAdvisoryMailbox::snapshotlayout (countatnbytes - 16,flagatnbytes - 8), executes during Ignitiontorch.compile+ CUDA graph capture (zero serving-time allocation), and allocates fresh graph-localidssoself.idsis not corrupted.
Dropped on verification
- B2 (downgraded from Blocker to Should Fix):
helios/src/engram/reader/windows.rs:91is a pre-existing bug in an untouched file rather than a regression introduced by #590. - S2 (revert chunked
CachedReader::warm/ delete test):gatherrejectsids.len() > self.max_rowsbecause it fills a bounded caller staging buffer (helios/src/engram/reader.rs:1001-1004), whereaswarmhas no output slice andCachedReader::newenforcesmax_rows > 0(reader.rs:939), so chunking is safe, zero-cost for single chunks, and its regression test should be kept. - S3 (
publish_lookaheadinert in-repo / wrong row count / wrong docstring): Model recipes live in externallocal-inference-lab/hyperflare-recipes(bothPreparedPLELookupand #566'sPreparedEngramRequests.publish_lookaheadlikewise have zero in-repo callers);publish_lookaheadruns during Ignition graph capture so its docstring is accurate; andtoken_count=ids.shape[0]matchesPreparedPLELookup.publish,self.plan's preparedcaps, and thePACKED_TOKEN/max_staged_rowscontract (helios/model-contract.md:117-125,helios/manifest.md:469-470). - S4 sub-items (defect count 4 vs 5,
during graph capturedocstring,O_RDONLY | O_CLOEXECvsFile::open,.ok()omitted): The description accurately counts 4 defects + 1 missing interface = 5 items;publish_lookaheadexecutes during graph capture; Rust'sFile::openon Unix opensO_RDONLY | O_CLOEXEC; and the description explicitly states "falling back tofile.as_raw_fd()if procfs is unavailable". - X1 (delete
Transfers::newbounds checks andchecked_add(1/2)):checked_add(1/2)is mathematically reachable (u64::MAX = 3 * 6148914691236517205andu64::MAX - 1is divisible by 2, both validcompact_headsvalues under TP8 on 24/16 heads), andTransfers::new(helios/src/engram.rs:848-875) is cheap local defense-in-depth directly guardingaddress + nbytes - 8/- 16unsafe pointer math. - X2 (delete new fan-out test and fold into
parallel_unix_disk_workers_preserve_rows_and_propagate_truncation): The existing test (reader.rs:1934-2021) exercisesreads > DEPTH(160 IDs), whereas the new test (reader.rs:2221-2292) specifically targets the previously brokenlane_depth < reads <= DEPTH(80 IDs) regime. - X3 (merge
_advisory_requestsinto_requestsand reuseself.requests): Separateflare::ple_advisory_requestsmirrorspublish_requests/publish_advisory_requests(ignition/components/ngram_delivery.py:36-56), and keepingrequestsas a graph-localtorch.emptyfollowsAGENTS.md:505-507with zero persistent VRAM. - X4 (inline
map_fd/ drop.ok()fallback):open_readonly_viewis called by the Linux unit test (reader.rs:2304),map_fdcleanly isolatesunsafe { libc::mmap }, and the fallback tofile.as_raw_fd()preserves startup on Linux >= 6.7 hosts without procfs (narrowed to Nit 2 to surface the reopen error onEPERM). - N2 (extract helper for
GraphKind::try_from(g.kind.as_str()).is_ok_and(crate::engram::consumes)): Low-signal nit; a single-line idiomatic filter across three sites (helios/src/runtime_core/engram.rs:224,333,helios/src/runtime_core/model.rs:480-481) does not justify an extra wrapper.
Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
screen malicious
Screen Result: All Clear
Evidence: Screened PR #590 (NVIDIA/hyperflare-inference, "helios,ignition: fix Engram reader bugs and add PLE lookahead publish", by lukealonso, COLLABORATOR, merged 2026-11-29, head 6fe7bed, +464/−103 across 5 files) for prompt injection and content aimed at causing unwanted agentic behavior. I read the full diff and the substantive code at head in all five files (helios/src/engram.rs, helios/src/engram/reader.rs, helios/src/engram/reader/windows.rs, helios/src/runtime_core/engram.rs, ignition/components/ngram_delivery.py), the PR description, and all three discussion entries. Nothing malicious was found.
- No agent-directed text in code, comments, docstrings, test names, or discussion. Grep over the changed Rust modules for ignore|instruct|assistant|reviewer|autobot|approve|LGTM returned one legitimate error string (helios/src/engram.rs:156).
- No hidden content vectors: no bidi/zero-width characters, ANSI escapes, or homoglyph tricks inside changed hunks.
- No new network, subprocess, exec/eval,
__import__, or env-var primitives; all such usage in helios/src is pre-existing and elsewhere. New Python code is a Triton custom op plus method (ngram_delivery.py:78-95, 157-164) reusing existing kernels. - No scope pivots: no CI workflows, dependency manifests, or test harness touched.
#[ignore]grep in helios/src returns no matches, so no test was silenced. - The code matches its description: lane_fanout planner (reader.rs:37-50), chunked CachedReader::warm (reader.rs:1097-1156), /proc/self/fd read-only reopen (reader.rs:123-199), checked mailbox arithmetic (engram.rs:782-819, runtime_core/engram.rs:242-347), scored_prefill admission via real GraphKind mapping.
Benign oddities, reported as context and not treated as instructions: the flare-autobot comment's external autobot.eidonix.com case/full-review links and its "Have your agent review the Full Review" sentence (repository-standard bot boilerplate, not followed); the "Discord: no username provided" template line; and a cosmetic description mismatch — the body describes publish_lookahead(ids, count, step) with nbytes - 16/nbytes - 8, while the real signature is publish_lookahead(token_ids, query_start, history, num_seqs, num_tokens, live_rows, mailbox) at ngram_delivery.py:157.
Also noted as a non-safety caveat: the claimed Qwen3.8 benchmark is self-reported and, per the PR's own limitations, ran with --embedding-table-workers 1 (bypassing the fan-out fix) on Linux 6.18 rather than a pre-6.7 kernel.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: lukealonso (Luke Alonso — COLLABORATOR and the project owner named in docs/design-review.md:23; no Discord handle given) Motivation: On older Linux kernels (pre-6.7, e.g. RHEL/Rocky 9, Debian 12) model startup died with EPERM when the generic Engram reader tried to map write-sealed RAM embedding tables, and the multi-worker reader and warm paths had smaller bugs alongside it; the PR also adds a way for the PLE embedding table to prefetch upcoming rows during graph capture, like the other tables already can. Scale: +464 / −103 lines in 5 files Proposal:
- Map write-sealed memfd tables read-only through a
/proc/self/fdreopen so kernels before 6.7 accept them, and name that cause in the EPERM message - Fix the Engram reader fan-out: share one
lane_fanoutplanner across Unix and Windows so batches above one lane's depth spread across only the lanes they need - Chunk
CachedReader::warmby workspace capacity instead of truncating, with a serving-loop batch clamp - Harden load-time validation: checked arithmetic, mailbox/allocation bounds, and
scored_prefillincluded in the graph-kind filters - Add
flare::ple_advisory_requests/PreparedPLELookup.publish_lookaheadto publish PLE lookahead rows to an advisory mailbox (no in-tree consumer) Touches: - helios/src/engram/reader.rs (disk reader, resident mapping, warm path)
- helios/src/runtime_core/engram.rs (load-time graph/buffer validation)
- ignition/components/ngram_delivery.py (new captured-graph op) Related items:
- #481 RAM embedding tables fail on kernels < 6.7 (closed): the bug this fixes; closed without a <6.7 re-test
- #566 prefetch/advisory mailbox PR (merged): the ancestor contract this extends
- #519 spin-then-nap in Requests::read (open): same mechanism #590 briefly carried, then deleted on measurement — still open
- #470 lane-depth PR (merged): introduced the cutoff bug fixed here
- #535 approval request for the advisory-mailbox contract (open): still unanswered
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Autobot comments: The PR merged 2026-11-29 00:05 UTC, one minute after the fix push and ~61 minutes after a Changes Requested review, before the 90-minute auto re-review — the final state was never independently reviewed. The blocker (a
WaitBackoffmechanism that repeated #519's rejected policy) was resolved by deleting it, justified by an A/B claiming +30% to +201% regression in readiness-wait time that exists only in a comment, with no host, revision or sample count. Windows lane handling is now fixed, retracting my earlier report, but the fan-out itself still has no served measurement at any worker count. New: the request mailbox gets a lower bound but no upper bound, so an over-sized declaration moves the ready flag away from where producers write it. The new PLE op is untested, has no in-tree consumer, and needs owner approval for a captured-graph op family — approval self-granted by the author while the analogous non-owner request (#535) sits unanswered. #481 was closed on an indirect Linux 6.18 verification; its reporter was never asked to re-test on 5.14.
Value Proposition
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.
Full report · Notes Decide Value: yes (88%): This change is worth reviewing: it provides value to the project in line with its charter.
Simplicity
Verdict: should-fix issues only Blocking:
- None. Should fix:
- helios/src/engram.rs:780-819:
Transfers::newre-derives mailbox capacities thatruntime_core/engram.rs:287-329(same PR) already proves; delete or make it adebug_assert_eq!. - helios/src/engram/reader.rs:1097-1156: chunked
CachedReader::warmfixes a case no non-test caller can reach (serving clamps at engram.rs:552-554; return value discarded at :616-618), whilegatherstill errors on the same overflow (reader.rs:1017-1020); restore one clamp + single pass, drop the chunk test. Nits: 5 — unreachable spin loop inRequests::read(engram.rs:298-318) with its only test; the/proc/self/fdreopen fallback to the EPERM-failingO_RDWRfd plusmap_fd/cfg scaffolding (reader.rs:128-181); duplicatedflare::ple_advisory_requestsop when the advisory publish op already exists (ngram_delivery.py:78-95 vs :47-56); the fan-out test re-derivinglane_fanout's formula (reader.rs:2315-2320); and the restatedoffset + nbytesallocation bound (runtime_core/engram.rs:289-296) already enforced by serving.rs:30-38. Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Prose
Verdict: should-fix issues only Blocking:
- None. Should fix:
- ignition/components/ngram_delivery.py:158: docstring says "during graph capture", but the op it calls (flare::ple_advisory_requests) runs a hash plan plus two Triton kernels every serving step; same wording at ignition/components/engram.py:281.
- PR #590 body, "What changed" ngram_delivery.py bullet: gives the signature as publish_lookahead(ids, count, step) (real: token_ids, query_start, history, num_seqs, num_tokens, live_rows, mailbox), calls the caller-supplied mailbox "a prepared lookahead buffer", and omits that ids/requests are allocated per call — a resource-lifetime change AGENTS.md:92-93 requires describing. Nits: None. Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Detail: the description meets the repository's mandatory four-part order (why / what changed with per-file before/after / claimed benefit / evidence) and carries Discord: no username provided. Benchmark attribution is now correctly scoped to publish_lookahead plus the companion recipe PR, the limitations honestly state that the served run used --embedding-table-workers 1 (bypassing multi-worker fan-out), that pre-6.7 EPERM was simulated on Linux 6.18, and that Windows was never compiled. Every other added comment I checked (lane_fanout, the pre-6.7 memfd comment) states its invariant correctly, and the commit message is accurate. The previous round's findings — WaitBackoff/SPIN_ROUNDS text, the EPERM diagnostic, the dropped Windows lane path, the "four defects" count, and the attribution/Windows-limitation wording — are all resolved at head 6fe7bed. Both remaining defects concern the same new interface and are fixable with one rewritten docstring sentence and one rewritten bullet.
Correctness
Verdict: clean Blocking:
- None. Should fix:
- None. Nits: None. Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Correctness review of PR #590 at head 6fe7bed2 (5 files, +464/−103) found no blocking, should-fix or nit defects. All four changed files were read in context with their callers.
Verified: (1) lane_fanout (reader.rs:37-50) has no panic path — lane_depth = 128/lanes ≥ 16 because workers are restricted to 1|2|4|8 (reader.rs:710), lanes[..active_lanes].split_first_mut() and jobs.next() are safe, chunk count never exceeds active lanes, and a lane receiving more reads than its slots just loops its ring (reader.rs:567-599), as it already did for reads > DEPTH; used by Unix DiskReader::gather (reader.rs:810) and Windows Readers::gather (reader/windows.rs:91). (2) Chunked CachedReader::warm (reader.rs:1097-1156) keeps miss_ids/miss_output within the workspace sized from max_rows (reader.rs:954-1015), and prefetch_rows_loaded is now counted once per chunk in the reader with the old add in Reader::warm deleted (reader.rs:1313-1314), so no double count; pin_if_present/insert_advisory set a PINNED bit idempotently, so a duplicate ID spanning chunks cannot leak pin state. (3) warm_batch clamp (engram.rs:552-554) keeps every ReaderAction::Warm slice inside pending_warm, already capped at the same max_rows; .max(1) rules out a zero stride. (4) Transfers::new mailbox lower bounds (engram.rs:780-817) match the core-side decode validation exactly, so address + nbytes - 8/-16 cannot underflow; validate_mailbox now uses checked arithmetic plus a MappedHost allocation bound (runtime_core/engram.rs:272-301), and both GraphKind filters include scored_prefill and match engram::consumes. (5) ResidentMapping::new (reader.rs:146-199) reopens /proc/self/fd read-only with fallback and carries the reopen error into the EPERM diagnostic; mapping lifetime and mulmap/seal ordering unchanged. (6) PreparedPLELookup.publish_lookahead (ngram_delivery.py:157-164) publishes ids at base, count at numel()-2, flag at numel()-1, matching AdvisoryMailbox::snapshot (count at nbytes-16, flag at nbytes-8).
Not verified: the recipe-side caller in local-inference-lab/hyperflare-recipes; real pre-6.7 kernel EPERM (author validated on 6.18 via F_GETFL/mprotect); Windows ring fan-out execution. Two nits from the earlier pass (Windows busy spin, discarded reopen error) are both resolved by 6fe7bed2 and are not repeated.
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- PR-wide (5 files): four unrelated defect fixes plus a brand-new PLE capability in one PR, against AGENTS.md:198-199 "one coherent outcome"; split, don't reject
- helios/src/engram/reader.rs:37-51 (+807-841, windows.rs:89-118):
lane_fanoutlowers the helper-thread threshold from >128 reads to >DEPTH/workers (64/32/16), so 17-128 read gathers now spawn threads with only lane-count unit tests and no served/latency measurement, against the charter's #210 evidence bar - docs/cli-design.md:777-778: still says "small gathers stay on the delivery thread", now false for 17-128 reads; the doc is not in the diff
- ignition/components/ngram_delivery.py:78-95,157-164:
PreparedPLELookup.publish_lookaheadhas no in-repo caller or test (AGENTS.md:194-199) and publishescount = live_rowswhile hashing onlyids.shape[0]rows, so a wider window warms stale mailbox words
Nits: 2 — new captured-graph op contract added without a stated owner approval (design-review.md:22-26); the capability is inert until the external recipe PR merges.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590
Conventions
Verdict: clean
Blocking:
- None.
Should fix:
- None.
Nits: 5 — (1) ngram_delivery.py:78-95 _advisory_requests duplicates _requests (:59-75) except two Triton constexpr flags, and sits beside the pre-existing publish_advisory_requests (:47), so "advisory requests" names two layers; (2) engram.rs:552-554 warm_batch is a fourth spelling of max_tokens * heads (already checked_mul at :484-486, plain * at :663/:686); (3) reader.rs:1097-1156 CachedReader::warm repeats gather's (:1017-1095) miss→disk→split-into-w/s tail; (4) engram.rs:785-811 Transfers::new restates validate_mailbox's capacity math (runtime_core/engram.rs:287,303-322); (5) ngram_delivery.py:157-164 publish_lookahead allocates two token-shaped tensors per call, where its same-class sibling publish (:148-155) reuses self.requests (:122).
Correction to my prior review: I had this listed as should-fix on the claim that the Engram twin reuses buffers. At head 6fe7bed it does not — PreparedEngram.publish_lookahead (engram.py:280-283) calls _hash_window with no dest=/args=, whose default path (engram.py:241-254) allocates mask, slots, compressed, requests and full_hashes per call. The dest=self.hashes reuse is in __call__ (:273-277) only. So the per-call allocation follows #566's merged precedent and is a nit, not a defect. Both earlier should-fix findings from my last review (Windows lane collapse, silent /proc/self/fd fallback) are fixed in 6fe7bed.
The PR is net de-duplicating: both GraphKind filters now use the expression that already existed at model.rs:480-481, and Windows now shares lane_fanout (reader.rs:40) instead of a second dispatch copy.
Open question: no test in the repo exercises publish_lookahead; only hyperflare-recipes#87 does, so whether it is called once at capture or per step cannot be settled here.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/590