Explore scratchpad · NVIDIA/hyperflare-inference #590

Raw Markdown for agents: https://autobot.eidonix.com/p/897f2edb-47fb-4dc0-9f74-75573a102958.md

#1 [high] Change: PR 590 scope, size and what it touches

PR #590 "helios,ignition: fix Engram reader bugs and add PLE lookahead publish" by lukealonso (COLLABORATOR), open, ready for review, opened+updated 2026-11-28, base main, head 4ea9ba0. 4 files, +588/-112, labels none, reviews none, CI pending at head. 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). Five distinct fixes bundled: (1) DiskReader::gather lane fan-out vs per-lane depth, (2) CachedReader::warm chunking beyond max_rows, (3) pre-6.7 EPERM read-only memfd remap via /proc/self/fd, (4) WaitBackoff replacing spin in ReaderAction::WaitReady + Requests::read, (5) checked u64 mailbox arithmetic + allocation-bounds check + GraphKind::try_from/crate::engram::consumes filter incl "scored_prefill", (6) new flare::ple_advisory_requests op + PreparedPLELookup.publish_lookahead. Fixes #481 (pre-6.7 EPERM). Cites #519 vs #566 for the busy-spin defect.

#2 [high] Why: issue #481 pre-6.7 kernel EPERM report

#481 "RAM embedding tables fail on kernels < 6.7: map resident embedding table: Operation not permitted" — by chanba, opened 2026-11-23 07:01, open, no comments, updated 2026-11-28 by PR #590 referring to it. Environment: ghcr.io/local-inference-lab/flare:release-6f2bd11-main-20261119 and ghcr.io/raydius/hyperflare-inference:0.2.5; model Qwen3.8-Flash-Next-FLARE tp1-c16-mtp5 safetensors with --embedding-table-storage ram; Rocky Linux 9.9 kernel 5.14.0-741.24.1.el9_9 (also 9.6 5.14.0-570.39.1); RTX PRO 6000 Blackwell SM120, driver 620.70.06. Affected kernels named: RHEL/Rocky/Alma 9 (5.14), Ubuntu 22.04 GA (5.15), Debian 12 (6.1). 25.6 GB table (ftruncate 25600122880). Root cause per issue: Flare seals memfd F_SEAL_WRITE then mmap(PROT_READ, MAP_SHARED) on O_RDWR fd -> VMA retains VM_MAYWRITE -> EPERM pre-6.7 ("mm: permit write-sealed memfd read-only shared mappings" landed 6.7). Misleading error sends people to SELinux/capabilities/seccomp/memlock; reproduces with --privileged and selinux=0. Suggested fix in issue == what PR #590 implements: reopen /proc/self/fd/ O_RDONLY and mmap through it, always or as EPERM fallback; plus improve the EPERM message to mention kernel version. Also notes F_SEAL_FUTURE_WRITE makes mmap succeed but Flare then rejects table ("resident embedding table must have immutable size and contents"), so not a viable workaround. Issue ships an LD_PRELOAD shim workaround (memfd_seal_shim.c) so affected users are unblocked today. Issue still open with zero comments — no maintainer confirmation yet.

#3 [high] Related work: #519 open PR does the same spin-then-nap in Requests::read

#519 (open, PR) "fix(helios): park an Engram gather while it waits for device-published ids" by peperunas, opened 2026-11-25, updated 2026-11-28 18:40, 1 file helios/src/engram.rs +86/-13, head 9fc10f5. Adds spin 4096 rounds then 25us->250us nap ramp (SPIN_ROUNDS/NAP_GROWTH/NAP_MAX/yield_core) in Requests::read device arm. KEY OVERLAP: PR #590 introduces almost exactly the same constants (SPIN_ROUNDS = 1<<12, NAP_GROWTH 25us, NAP_MAX 250us, yield_core, cfg(windows) spin-only) but moves/applies them to ReaderAction::WaitReady in the reader loop and adds a WaitBackoff struct with reset on Gather/Warm/BlockRecv; plus its own tests. Neither PR description points the other out except #590's "Busy-spinning reader wait (#519 vs #566)" bullet; #519's description does not mention #590. On 2026-11-28 18:40 lukealonso commented on #519 (blocking): (a) conflicts with main/targets a wait loop that no longer runs in production after #566 (7745deea) — on main ReaderAction::Gather is only dispatched after job.requests.is_ready() returned true, so the real wait site is ReaderAction::WaitReady, which #566 already uses for advisory warming; (b) no served-workload benefit, readiness-latency impact unmeasured (cites AGENTS.md and closed #353). Asked to rebase onto main retargeting ReaderAction::WaitReady with the spin counter reset on leaving WaitReady, evaluated with #566 advisory warming active. PR #590 appears to be exactly that rebase, done as a new PR by the reviewer rather than the author of #519 — competitive/duplicative relationship not stated in #590's description. #519 autobot reviews (multiple, Changes Requested) also argued: Windows nap unbounded (timer tick ~15.6ms vs 9-10ms step; docs/windows.md:182-186 documents Windows mapped-mailbox Engram coverage), new branch untested, no served benefit (#353 closed on the same wait).

#4 [high] Related work: #566 merged prefetch PR whose contract PR 590 extends

#566 (merged 2026-11-28 13:07) "perf(engram): add graph-driven advisory lookahead prefetch for disk-backed tables" by voipmonitor (Martin Vit), +1501/-199, merged into main same day; commit 7745deea is the main-branch commit touching ignition/components. Adds ValueSource::PROMPT_LOOKAHEAD_TOKEN=41 / PROMPT_LOOKAHEAD_LENGTH=42, EngramTable.prefetch_buffer=16 (mailbox int64 [cap] + active count at nbytes-16 + sequence at nbytes-8), --no-embedding-table-prefetch, Prometheus flare_engram_prefetch_rows_loaded_total / flare_engram_prefetch_errors_total, RowCache PINNED bit + insert_advisory, WARM_BATCH_ROWS=1024 warming, next_reader_action prioritising Gather over Warm. #566 claims on 4x RTX PRO 6000 Blackwell + PCIe5 x4 NVMe DeepSeek-V4.1-Flash TP4: cold 250k 22,906 -> 39,730 tok/s (+73%), warm repeat 31,586 -> 53,288 tok/s. Its autobot review was "Changes Requested" with 1 blocker + 6 should-fix; it was merged anyway with the contract sign-off (B1) still open: "Adding ValueSource::PROMPT_LOOKAHEAD_TOKEN ... extends the captured-graph/core contract (related open request: #535) ... remains open for maintainer approval". #535 (open issue, tastyrice90, 2026-11-26, no comments) asks for maintainer approval of an advisory mailbox producer contract on the prefill graph; names #334 as the consumer side and #267 as where yatesdr described the mailbox. Still unanswered — so PR #590's PLE extension builds on a contract whose owner approval is unrecorded. PR #590's PLE change reuses that same mailbox layout (count at mailbox.numel()-1 implicit in the Triton kernel; publishes via _publish with mailbox.numel()-1 as the location of the sequence).

#5 [high] Related work: #470 merged with the lane-depth defect PR 590 now fixes

PR #470 (merged 2026-11-25, original-el8, +540/-97) introduced the Unix io_uring multi-lane split: depth = DEPTH / workers per lane and the scoped read split. Its Autobot review (2026-11-24 20:12, "If the lanes stay, two real defects ride along") called out exactly the bug PR #590 fixes: "The cutoff compares to DEPTH (reader.rs:634) while a lane is DEPTH / workers deep (:539), so a 17–128-read gather becomes 2–8 serial submit rounds at 8 workers where main did one 128-deep batch" — and also an undrained-error misattribution via entry.user_data(). Both were merged anyway. So PR #590's first fix repairs a defect that review had already flagged in #470's diff, 3 days later. It does not mention #470. #470 review blocker also said the lane design was "the design this project already closed on measurement (#216, rebase of #184)": #216 recorded 6,915 tok/s at one worker vs 6,525 / 6,328 / 6,143 at 2 / 4 / 8 lanes (−17% at 8 lanes with full per-lane depth) on the drive class it targeted. #216 and #184 are closed. Relevant tension: PR #590 makes multi-worker lane fan-out wider and presumably more effective; the earlier lane design was rejected on measurement, and #470 was merged on a reviewer-testimony benchmark from nero- (2026-11-25 14:25: GB10, workers=4 cuts Engram gather 22.4%). No served A/B accompanies PR #590's lane fan-out fix.

#8 [high] Change: undeclared details (counter move, WaitBackoff reset on Warm, #511 comment)

Verified in tree, NOT stated in the description:

  1. prefetch_rows_loaded counter moved. Before: Reader::warm added the returned count (reader.rs:1294-1302 pre-change). After: CachedReader::warm increments per completed chunk (reader.rs:1133-1136) and Reader::warm only increments prefetch_errors (reader.rs:1297-1303). So flare_engram_prefetch_rows_loaded_total now counts rows from CachedReader::warm directly, not what Reader::warm returns. Same resulting value in the serving path, but any other caller of CachedReader::warm would now also be counted and Reader::warm's return value is no longer the counted quantity.
  2. New code comment at helios/src/engram.rs:610-611 ("One worker serves every rank whose rows this table holds; a rank-partitioned table becomes a separate Shared with its own workers") documents exactly the mechanism #511 reports as the cause of three-of-four-ranks-idle on rank-partitioned tables. It is a comment, not a fix; PR #590 does not address #511.
  3. WaitBackoff is reset on ReaderAction::Warm (engram.rs:673) as well as Gather and BlockRecv. With --embedding-table-prefetch active, next_reader_action (engram.rs:388-415) prefers Warm over WaitReady whenever warm work is pending, so the reader may never accumulate spin rounds while warming: the wait path the PR repairs is exercised mainly when no prefetch work is queued or after the advisory tail is consumed. The description presents WaitReady as the normal serving wait; #519's reviewers said prefetch already occupies that window.
  4. GraphKind::try_from(...).is_ok_and(crate::engram::consumes) replaces the hardcoded 5-kind list in both places (runtime_core/engram.rs:224, :333). Net behavioural change is only that scored_prefill is now included; unknown kind strings are still silently skipped (not rejected) exactly as before, so a typo'd kind in a core still yields "Engram catalog lacks consumers" rather than a naming error.
  5. Transfers::new lower-bound checks (engram.rs:848-879) require the request mailbox to hold max_tokens*heads + 1 int64 slots and the prefetch mailbox max_rows + 2 slots; this duplicates the load-time validate_mailbox bounds (runtime_core/engram.rs:302-329) as defence in depth. The description calls them "defensive".

#9 [high] Change: PLE advisory publish is untested and has no in-tree producer

Verified:

#10 [high] Project fit/process: captured-graph op approval rule and unrun formal checks

docs/design-review.md principle 1 (lines 22-26): "Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso lalonso@gmail.com. Shape and capacity variants are allowed within an unchanged operation contract. A new operation contract requires approval even if it reuses a graph kind or enum value. A design acknowledgment does not grant approval." Reading: flare::ple_advisory_requests is a new torch custom op that reuses the existing advisory-mailbox contract #566 introduced (no new ValueSource, no new EngramTable field, no new graph kind). If a maintainer treats a new custom op in a captured graph as a new operation family, owner approval is required; the PR description does not record any approval. Mitigating fact: the PR author IS the named project owner, so a self-approval reading is defensible — but there is no explicit statement in the description that the contract is approved, and #566's own B1 sign-off for the underlying prefetch_buffer/ValueSource 41-42 contract is still open (#535 unanswered, #566 merged with "B1 (owner contract sign-off) ... remains open for maintainer approval"). Other process requirements this PR's evidence does not mention:

#11 [high] Claims and evidence: bundle mixes a measured prefetch win with unmeasured defect fixes

Verified vs claimed (PR #590):

#12 [high] People: author is the project owner and the reviewer who demanded #519's rebase

Author: lukealonso (Luke Alonso), GitHub association COLLABORATOR, and per docs/design-review.md:23 he is the project owner lalonso@gmail.com who must approve captured-graph op families. Charter lists him as a priority contributor (@voipmonitor, @original-el8, @lukealonso). Recent merged PRs (last 180 days, 11 merged, 1 open): #589 (open, CUDA 12 batched copies/ARM64/Selene budgeting), #579 (InitialState hash bypass, TP startup drain hang, VLM teardown deadlock, PatchMerge validation), #573, #570 (CI setup-java), #569, #568, #546, #545 (RecipeParameters), #543, #510. Areas: docs (7), helios/src (6), ignition/preparation (5), tests/preparation (3), verification/helios-lifecycle (3). He is the dominant committer in helios/src (215 of last 180 days) and second in ignition/components (106). Relevant to this PR's style: #579 is the same shape — a multi-defect repair bundle in helios landed same-day; #589 is another open multi-fix bundle. So the bundling pattern is his established practice, and his PRs generally land quickly (several same-day). He is also the person who CLOSED #528 with the architectural ruling (keep row-ID computation in Ignition, isolate storage-reader changes), and the reviewer on #519 who demanded the rebase onto ReaderAction::WaitReady. So PR #590 is the same person acting as the reviewer's own requested fix: he told #519's author to rebase and re-target WaitReady, and then shipped that retarget himself — without linking #519's authorship or credit. #519 by peperunas remains open and is now functionally superseded. Other people in these areas: Martin Vit (voipmonitor, 51 helios/src commits) authored #566, #561, #555, #557, #558, #559; Jason Cook (47) authored #470 (the io_uring lanes), #532, #425; FujitsuPolycom authored the two competing reader PRs #580/#583; tastyrice90 authored #511/#535/#528; chanba filed #481; peperunas authored #519.

#15 [high] Reach: old-kernel RAM users unblocked; scored_prefill sizing may newly reject some cores

Who/what is affected:

#16 [high] Related work: #590 stacks on #566+#561, supersedes #519, conflicts with #580/#583

Stacking/overlap map for PR #590 (files: helios/src/engram.rs, helios/src/engram/reader.rs, helios/src/runtime_core/engram.rs, ignition/components/ngram_delivery.py):

#19 [high] Research summary

Case file complete for PR #590 (18 scratchpad entries covering all nine angles).

What it is. An open, single-commit, same-day PR by lukealonso (+588/−112 over 4 files: helios/src/engram.rs, helios/src/engram/reader.rs, helios/src/runtime_core/engram.rs, ignition/components/ngram_delivery.py). It bundles five unrelated repairs — io_uring lane-depth fan-out, CachedReader::warm chunking, pre-6.7 sealed-memfd EPERM remap via /proc/self/fd, a WaitBackoff for ReaderAction::WaitReady, checked mailbox arithmetic plus a scored_prefill filter fix — with one new feature, a PLE advisory lookahead publisher.

Things a reader could not get from the description.

Context mapped: charter/design-review fit (model-agnostic reader fixes align; captured-graph op approval and evidence bar are the friction points), docs and CLI surfaces (no docs updated; docs/TODO.txt:88-89 qualification still open), reach (old-LTS-kernel RAM users, multi-worker operators, Windows unchanged, external recipe version skew), people (author is project owner, 215 helios commits, also closed #528 and reviewed #519), community (zero reviews so far, but five PRs now open on the same files) and a full stacking/conflict map (#566/#561 ancestors, #519 superseded, #580/#583/#554 conflict zones).

#20 [high] Change verified: pre-6.7 EPERM fix mechanism and its reach into shared-RAM handoff

Verified in tree (helios/src/engram/reader.rs:106-177):

#21 [high] Change verified: scored_prefill provenance (#538) and its load-time compatibility consequence

search_history --text scored_prefill returns only two commits: ba35da3f (2026-11-26, PCCessna, "Restrict cold pure-prefill discovery to natural-fit graph capacities (#538)") and 4ea9ba04 (this PR). So GraphKind::ScoredPrefill reached the Engram filters' blind spot only two days before #590; the hardcoded five-kind lists in runtime_core/engram.rs were written before scored_prefill existed and were never updated when it was added. Consequences, stated as verified code facts:

#23 [high] Amendment A: PR 590 is merged; final shape and what changed in the fix set

PR #590 is MERGED (2026-11-29 00:05 UTC), base main, head 6fe7bed2, +464/−103 in 5 files (was +588/−112 in 4 files at 4ea9ba04). New file in the diff: helios/src/engram/reader/windows.rs (+6/−7). Squashed as 9031847a on main (search_history).

Final change set (verified at head, pr_diff + search_code):

  1. lane_fanout(reads, lanes) helper at helios/src/engram/reader.rs:38-50 (not cfg-gated), used by Unix DiskReader::gather (reader.rs:810) AND Windows Readers::gather (helios/src/engram/reader/windows.rs:9, :91). Windows imports it via use super::{..., lane_fanout}. So the earlier "identical bug left untouched on Windows" is now fixed, and the planner is shared.
  2. CachedReader::warm chunking + per-chunk prefetch_rows_loaded counter retained (reader.rs:1097-1156); NEW serving-loop clamp warm_batch = WARM_BATCH_ROWS.min(max_tokens.saturating_mul(table.heads)).max(1) at helios/src/engram.rs:552-554, used at :614 — this makes the serving-loop warm slice never exceed max_rows, i.e. the chunk loop stays a direct-Reader::warm-caller fix only (matches my earlier note that it was unreachable on the serving path; the description now concedes this explicitly).
  3. ResidentMapping /proc/self/fd read-only reopen retained; the reopen io::Error is now preserved and appended to the EPERM diagnostic (reader.rs:146-182, map_fd at :128-144), fixing the silent-fallback criticism. Still unconditional-when-!writable, non-Linux Unix unchanged.
  4. WaitBackoff is GONE: ReaderAction::WaitReady is back to a bare std::hint::spin_loop() (engram.rs:625-626) and Requests::read device arm likewise (engram.rs:313). No SPIN_ROUNDS/NAP_*/WaitBackoff identifier remains anywhere (search_code: zero hits).
  5. Mailbox / staging validation additions retained and extended: Transfers::new minimum slot checks (engram.rs:785-795, :803-810); validate_mailbox now uses checked_mul(8)/checked_add AND requires reference.offset + mailbox.nbytes <= allocation.nbytes (helios/src/runtime_core/engram.rs:282-300); validate_buffer uses checked expected_nbytes (:245-259); max_staged_rows computed before the closures and reused (:242-244, :303-305, :314-316); hash-binding width uses checked math (:335-338).
  6. Both graph-kind filters are now GraphKind::try_from(g.kind.as_str()).is_ok_and(crate::engram::consumes) (runtime_core/engram.rs:224, :333) — i.e. a hardcoded kind list is removed from the loader (charter principle 1 aligned), not added.
  7. PLE flare::ple_advisory_requests + PreparedPLELookup.publish_lookahead unchanged in shape (ignition/components/ngram_delivery.py:78-95, :157-164).

New tests added in this commit (all in-tree): lane_fanout_scales_workers_from_per_lane_depth (reader.rs:2236-2249), unix_disk_reader_fans_out_when_reads_exceed_single_lane_depth_below_total_depth (reader.rs:2251-2324, asserts per-lane slot_read usage for workers 2/4/8), advisory_warm_chunks_ids_exceeding_workspace_max_rows (reader.rs:2191), sealed_resident_readonly_mapping_drops_write_capability_via_proc_reopen (reader.rs:2326+), mailbox_validation_rejects_u64_byte_length_overflow_and_allocation_overrun (runtime_core/engram.rs:721), scored_prefill_graphs_participate_in_capacity_and_hash_binding_validation (:757).

#24 [high] Amendment B: the WaitBackoff blocker resolved by deletion, backed by a readiness-wait regression measurement

The blocker of the previous report is resolved by subtraction, and the resolution is itself the new evidence.

(a) WaitBackoff deleted. ReaderAction::WaitReady is std::hint::spin_loop() again (helios/src/engram.rs:625-626); Requests::read's device arm is unchanged from main (:313). No WaitBackoff, SPIN_ROUNDS, NAP_GROWTH or NAP_MAX symbol survives anywhere in the tree (search_code: zero hits). So the earlier findings "re-lands #519's blocked policy" and "repaired wait is the no-prefetch path / resets on Warm" are both void.

(b) Author's stated reason (lukealonso comment 2026-11-29 00:04, PR discussion): "paired alternating A/B/A/B validation on DeepSeek-V4.1-Flash TP4 confirmed +30% to +201% regression in flare_replay_readiness_wait_nanoseconds_total". This is the opposite sign to #519's claimed benefit and it answers my own and #519 reviewers' demand that the readiness counter be reported: the counter shows a large regression. Note the number is only quoted in a comment — it is not in the PR description and no run table, host, revision or sample count is given, so it is a claim, not a reproduced measurement. It is nevertheless the first attributable readiness measurement in this whole thread, and it retroactively justifies closing #519's mechanism rather than rebasing it.

(c) Consequence for #519 (open, peperunas): it stays open and is now not superseded — the mechanism #590 briefly carried has been explicitly rejected on measurement by the same reviewer. Nothing in #590 links or credits #519, and the PR body still says nothing about it; the only trace is the comment. A reviewer note should ask for #519 to be closed with this measurement cited, or for the PR to say so.

#25 [high] Amendment C: lane fan-out unified across Unix+Windows; Windows tests do not assert lane usage

(1) Windows lane-collapse is now fixed, not left behind. lane_fanout lives at helios/src/engram/reader.rs:38-50 fully outside any #[cfg] (reader.rs cfg gates are :11,:19,:22,:25,:99,:115,:121,:202,:209,:213,:418,... — none around :38-50), and helios/src/engram/reader/windows.rs:9 imports it (use super::{..., lane_fanout}) with the new dispatch at :89-93. The Windows Readers::new still does depth = DEPTH / workers with workers ∈ {1,2,4,8} (windows.rs:52-56), so the per-lane depth the planner divides by is correct on both platforms. This removes my earlier "identical bug untouched on Windows" finding and also removes one of the two "should fix" items in the 23:27 review.

(2) The shared planner also tightens an over-fan-out that the previous version had: the old Unix code fanned across all lanes whenever reads > DEPTH with chunk = reads.div_ceil(lanes), so 129 reads at 8 workers used all 8 lanes with 17 reads each; lane_fanout now computes active = reads.div_ceil(lane_depth).min(lanes) and chunk = reads.div_ceil(active), i.e. it uses only as many lanes as the queue depth requires (unit test reader.rs:2236-2249 pins e.g. lane_fanout(65, 4) == Some((3, 22)), lane_fanout(80, 8) == Some((5,16))). Behaviour change worth stating: for 17–128-read batches it now deliberately under-uses lanes (3 and 5 above rather than 4 and 8), which is a narrower change than the previous head and closer to #216's measurement result that more lanes hurt.

(3) Still no measurement of the fan-out itself. The only numbers in the PR body are the PLE ones (--embedding-table-workers 1, which bypasses fan-out entirely — the body now says so explicitly). #216 recorded 6,915 tok/s at 1 worker vs 6,525/6,328/6,143 at 2/4/8 lanes, and #470 was merged on nero-'s 22.4% gather-time cut at workers=4. Neither the 80-read fan-out nor --embedding-table-workers 4|8 has a served A/B in #590, and now neither platform does.

(4) Windows verification is still unrun by the author ("Windows compilation and runtime I/O ring execution were not run on this Linux host"), but the shared planner is genuinely exercised on Windows: .github/workflows/native-serving.yml:64-68 runs cargo test --manifest-path helios/Cargo.toml --features runtime-core,server on windows-2022 in the PR matrix, and windows.rs:207+ has reader tests including parallel_shard_gathers_keep_file_indices_and_recover_after_truncation (:316) which loops workers 1/2/4/8 and asserts disk_reads equality across worker counts — but note those tests assert read count, not lane usage, so a Windows-specific fan-out regression would not be caught by them; the per-lane assertion exists only in the Unix test (reader.rs:2308-2321, behind #[cfg(unix)]). Also #590 runs no Windows job itself (only path-triggered workflow helios-lifecycle.yml on PRs touching helios/, plus native-serving on PR).

Correction to my earlier entry #18/#13 style notes: "Windows path untouched" is no longer true and must not be repeated.

#26 [high] Amendment D: description now scopes claims; counter failure semantics and scored_prefill rejection still undeclared

(1) The description was rewritten in this commit and now carries per-change before/after blocks plus a scoping sentence ("Measured (strictly attributable to PreparedPLELookup.publish_lookahead paired with the companion Qwen3.8 recipe change in local-inference-lab/hyperflare-recipes#87, not to the reader or validator fixes)"). This fixes three of my earlier description findings: the counter relocation is now stated (CachedReader::warm "increments prefetch_rows_loaded per completed chunk"); the warm truncation is now scoped honestly ("while the serving reader loop already bounds pending_warm.len() <= prefetch_max_rows <= max_staged_rows == max_tokens * table.heads == reader.max_rows through core validation … direct Reader::warm callers"); and the 76.5% number is no longer presented as a fix result. The companion recipe PR is now named by number (hyperflare-recipes#87, was unlinked before) and there is a "Merge order" instruction.

(2) The warm_batch clamp at helios/src/engram.rs:552-554 (WARM_BATCH_ROWS.min(max_tokens.saturating_mul(table.heads)).max(1), used at :614) proves the serving-loop half of the warm fix is belt-and-braces: the loop can no longer hand warm more than max_rows. So advisory_warm_chunks_ids_exceeding_workspace_max_rows (reader.rs:2191-2225, max_rows=8 with 24 ids) tests an API contract that no production caller now violates. My earlier note (#7) that the chunking path is "largely unreachable in the serving loop" is now unambiguously true and is confirmed by the description.

(3) Metrics semantics still shift: flare_engram_prefetch_rows_loaded_total is now incremented inside CachedReader::warm per chunk (reader.rs:1149-1152) and Reader::warm no longer adds anything (:1311-1317), so a warm call that partially fails after some chunks now reports the partial count where the old code reported nothing (old code only counted Ok(loaded)). That is a real change to an exported counter's failure semantics and is not described. Also, since ReaderAction::Warm wraps reader.warm(...) in catch_unwind and discards the error (engram.rs:615-618), a failing chunk both bumps prefetch_rows_loaded for earlier chunks and prefetch_errors once — worth a one-line docs note at minimum.

(4) Still unaddressed from my report: docs/ unchanged, verification/helios-lifecycle/check.py and Kani not run (helios-lifecycle.yml is path-triggered so it does run on this PR; the Kani job proves helios --lib and there are no kani proofs touching runtime_core/engram.rs or engram.rs — search_code for kani::proof in helios/src/runtime_core and engram in kani_proofs.rs returns nothing, so the new overflow/allocation-bound guards have no proof obligation attached, which is consistent but means the "formal checks" bar is met only vacuously), and mutation testing is still absent.

(5) The scored_prefill rejection direction is now implicitly retracted rather than explained: the description says only "aligns scored_prefill validation with engram::consumes". The load-time consequence I flagged (a previously-loading core can now be rejected if its scored-prefill graph lacks the hash binding or its buffers are sized for a narrower graph) is still not stated, and the new test scored_prefill_graphs_participate_in_capacity_and_hash_binding_validation (runtime_core/engram.rs:757+) demonstrates exactly that rejection — it is the behaviour, presented as a fix.

#27 [high] Amendment E: mailbox hardening improved; request mailbox has no upper bound; PLE op untested; #535 asymmetry

(1) Validation got materially stronger in this commit. validate_mailbox now requires the mailbox's reference.offset + mailbox.nbytes <= allocation.nbytes for the named MappedHost allocation (helios/src/runtime_core/engram.rs:289-296) — a host-side out-of-bounds write is now load-time rejected, not just a wrapping length. validate_buffer uses checked expected_nbytes (:246-254). max_staged_rows is hoisted before the closures (:242-244) and reused, so the overflow is computed once. Transfers::new still re-checks the same lower bounds at bind time (helios/src/engram.rs:785-795, :803-810), which is genuine defence in depth given runtime_core validation can be bypassed by a hand-built ExecutionManifest.

(2) One asymmetry remains and is arguably a defect: the request mailbox gets a lower-bound check but no upper bound (validate_mailbox(..., min_request_len, None, ...) at runtime_core/engram.rs:306-311), while the prefetch mailbox is checked in both directions (:317-322, max_len = max_staged_rows + 2). An over-sized request mailbox is therefore accepted, and because Transfers::new derives the flag address as address + nbytes - 8 (engram.rs:795) the ready flag moves to the end of whatever buffer was declared. If a core declares a request buffer larger than max_tokens*heads + 1 slots, helios reads ids from the front but waits on a flag the producer (which publishes at the end of its buffer, per #566's contract) may not be writing. Same class of bug as the nbytes wrap this PR fixes, opposite direction. Worth flagging as a follow-up even though the wrap itself is fixed.

(3) AdvisoryMailbox::snapshot remains the untrusted boundary: count is read with read_volatile as i64 and clamped to self.max_rows (engram.rs:259-263), and max_rows comes from prefetch declared capacity at load. That is safe if the GPU wrote a sane count; the new allocation-bound check guarantees the mailbox as a whole is inside a mapped region, so a bogus count can only read within [address, address + max_rows*8), i.e. within the flag/count bytes themselves. Acceptable, but it means the PLE publisher's live_rows tensor is what stands between adversarial/incorrect kernels and a mis-warm — the Python side does no validation (ngram_delivery.py:157-164 passes the caller's live_rows and mailbox straight through, with mailbox.numel() - 1 as the flag index).

(4) PLE op status unchanged otherwise: still no in-tree consumer (ignition/components/engram.py:280 is the Engram analogue, ngram_delivery.py:157 the new PLE one) and still no test — tests/ has no publish_lookahead/ple_advisory reference (search_code over tests/: none), and tests/preparation/test_core_boundary.py only enumerates the module names (:11-25), so nothing executes the new op. Note the op does reuse #566's already-qualified Triton kernels (_copy_requests/_publish with HAS_LIMIT/HAS_COUNT, ngram_delivery.py:18-33), so the untested surface is the plumbing (argument order, mailbox.numel()-1 flag index, token_count=ids.shape[0] hash geometry), not new kernels.

(5) Owner-approval question is now cleanly framed for the report: docs/design-review.md:22-25 requires "prior explicit approval from project owner Luke Alonso" for a new captured-graph operation family, and flare::ple_advisory_requests is a new registered op family. The author is Luke Alonso, and the PR merged, so the approval is self-granted by the owner — legal under the rule's letter but unrecorded as a decision; #535 (the analogous request from a non-owner contributor, tastyrice90, 2026-11-26) is still unanswered with zero comments, which is the asymmetry worth reporting.

#28 [high] Research summary

The new event is a full rewrite of PR #590 (head 6fe7bed2), and it merged at 2026-11-29 00:05 UTC as 9031847a. It invalidates several of my previous findings and resolves the one blocker, so the report needs substantive amendments rather than additions. I saved five amendment notes (#23–#27) covering: the merged final shape (+464/−103 in 5 files, reader/windows.rs newly included); deletion of WaitBackoff with the author's A/B readiness-wait regression evidence; Unix+Windows unification of lane_fanout and the reduced over-fan-out; the rewritten, properly scoped description with the remaining undeclared counter-semantics and scored_prefill rejection; and the strengthened load-time validation, including a new gap (no upper bound on the request mailbox) and the owner-approval asymmetry against unanswered #535.

Most important corrections: #590 no longer supersedes #519 — the mechanism it briefly carried was rejected on measurement; "Windows left unfixed" is now false; and the three defects' fixes still carry no served measurement, including for --embedding-table-workers 4|8.

#29 [high] Amendment F: merge timeline, unreviewed final state, and #481 closed without a <6.7 verification

Timeline of the endgame (all times UTC 2026-11-28/29, from pr_comments and read_item 590):

So: merged 61 minutes after Changes Requested, one minute after the fixing push, before the scheduled auto re-review ("Future reviews will auto-run 90 minutes after code updates are pushed") could run. There is no recorded re-review verdict and no human approve. The PR is COLLABORATOR-authored and merged by/for the project owner, so nothing blocks it procedurally, but for the report: the final state was never independently reviewed, and the one blocker's resolution (the A/B number) exists only in a comment, never in a re-run review or the description.

Issue #481: closed 2026-11-29 00:05, same minute as the merge ("Referred to by: #590 [fixes]"). Its 0-comment discussion was never joined by the PR author, chanba was never asked to re-test on 5.14, and the EPERM path is still verified only indirectly on Linux 6.18 (F_GETFL == O_RDONLY, mprotect → EACCES), never on a kernel older than 6.7. The issue body remains valuable: it contains the exact strace, the memfd/seal sequence and a working LD_PRELOAD shim, which means (a) users were already unblocked and (b) there is a ready-made 5.14 reproduction the PR did not use.

#6 [medium] Change verified: DiskReader lane-depth fan-out (reader.rs:787-800)

Verified in the working tree (helios/src/engram/reader.rs):

#7 [medium] Change verified: warm chunking + prefetch_rows_loaded counter moved into CachedReader::warm

Verified in tree:

#13 [medium] Community: no comments or reviews yet; heavy crowding from sibling PRs

State at time of research: 0 comments, 0 reviews, no labels, CI pending on head 4ea9ba0, opened and last updated 2026-11-28 (same day, ~26 minutes after #566 merged at 13:07 and after #519's reviewer comment at 18:40 — the review comment precedes the PR body's framing). No human engagement yet. Interest level in the underlying topic is very high: #566 (the contract this builds on) is a 1501-line merged perf PR with a large case-file review; #561 merged the same day; #511, #528 (closed), #334 (open draft), #535 (open, unanswered), #580, #583, #554 (draft) all crowd the same reader/engram files; five separate PRs touching helios/src/engram.rs are open right now (#519, #554, #580, #583, #590). Autobot auto-reviews on this repo fire ~90 minutes after a push and have been the substantive review voice on all sibling PRs (often "Changes Requested"); this PR was created less than 90 minutes before this snapshot, so no review exists yet.

#14 [medium] Project fit: charter clauses touching captured-graph ops, evidence bar, and TODO qualification

Charter (read_charter) relevant clauses:

#17 [medium] Recent activity: three Engram reader commits in one day; EPERM socket predates #470

Timeline facts: commit 4ea9ba04 dated 2026-11-28 by Luke Alonso (single commit on branch, base a54a8b8a). Preceding commits on main that this builds on: d17efddc (#561, io_uring sliding window, same day), 7745deea (#566, advisory prefetch, same day), cb787f29 (#470, parallel gathers incl. the lane split, 2026-11-25), plus 6b2d25f7 "Prefault resident embedding table mappings before row delivery" (2026-10-14, Martin Vit) and cb786267 "Retry transient busy seals before publishing resident embedding tables" (2026-10-18, Martin Vit) — the two earlier commits that created the seal/mmap sequence #590 now has to work around for pre-6.7 kernels. So the EPERM defect predates #470 by six weeks in the map resident embedding table form and has been live since resident/RAM tables were introduced for the Qwen3.8 PLE path.

#18 [medium] Process: lead coverage and what was not examined

Packet leads checked and dispositions: