#1 [high] Change: what the diff actually does (7 files, +209/−30)
PR #696 (open, head 24ff7e1, base main cc0a49d) — 7 files, +209/−30 (pr_files result):
- helios/src/runtime_core/model.rs (+49/−19): replaces the serial
for ((index, ranks), tokens) in engram…loop at model.rs:872-922 withthread::scope+ onespawn_scopedthread per engram shard group (groups = engram.zip(engram_tokens); thread nameflare-engram-rank-{group}), each callingcrate::engram::Shared::new(..., Some(phase_ref)); joins handles in group order and pushes(local, shared, delivery_rank)bindings exactly as before, then existingbindings.sort_by_key(local). Also model.rs:840-842:progress_total = (resident_bytes != 0).then_some(resident_bytes)passed toprogress.phase("Prepare embedding tables", …)plusphase.advance_bytes(0). - helios/src/engram.rs (+4/−1):
Shared::newgains a trailingprogress: Option<&Phase>parameter and calls the newreader::Reader::from_files_with_progress(engram.rs:604-650). - helios/src/engram/reader.rs (+114/−10):
MADV_HUGEPAGEon the writable resident mapping right after mmap (reader.rs:184-192), guardedif writable,#[cfg(target_os="linux")].- Linux
initialize()now keeps the writable mapping:mprotect(PROT_READ)(reader.rs:409) +seal_resident_futurewithF_SEAL_FUTURE_WRITE|GROW|SHRINK|SEAL(reader.rs:225-227, 417) instead of dropping the mapping, applying fullF_SEAL_WRITEand re-mapping viafrom_shared. Old path retained for non-Linux unix (reader.rs:425-430). seal_residentsplit intoseal_resident_seals(file, seals)+seal_resident+seal_resident_future(reader.rs:229-254).has_resident_seals()accepts either seal set; used byResident::from_shared(reader.rs:257-269, 444).Resident::load_with_progress(reader.rs:276-320) advances the phase bynbytesper 4 MiB LOAD_CHUNK inside the 4 READER threads (reader.rs:303-305);Resident::loadkept as…_with_progress(…, None).Reader::from_files_with_progressadded; oldfrom_filesdelegates withNone(reader.rs:1358-1420).
- helios/src/startup.rs (+38): new
StartupProgress::started: Instantfield (startup.rs:24, set in stderr_rows:163 and silent:173); newStartupProgress::complete()(startup.rs:215-236) writes one[ OK ] Startup complete. X.Xsrow withStartupStage::Other, empty detail, and publishesStartupStatus::Completeto observers; new testcomplete_publishes_the_final_startup_total(startup.rs:566-576). - flare-cli/src/main.rs (+2):
progress.complete()afterphase.finish("Start server …")inserve(main.rs:668) andserve_local(main.rs:737). - flare/src/controller.rs (+1):
progress.complete()after Start-server phase in the desktop worker (controller.rs:2914). - helios/src/runtime_core/event_tests.rs (+1): extra
Nonearg toShared::new.
Verified against head, not claimed: no other file is touched — in particular no docs file is changed (see the separate note on the description's documentation claims).
#2 [high] Claims vs code: final engram line does NOT report resident size
The PR description says: "The final engram line includes resident size" and shows
[ OK ] Prepare embedding tables. 188.8 GiB · RAM 9.6s.
Code does not do this. In helios/src/runtime_core/model.rs:923-948 the finish detail is built only from the storage label and row cache:
let label = match storage { Disk if resident_scales => "disk weights, RAM scales", Disk => "disk", Ram => "RAM" }(model.rs:923-929)let prefetch_note = …" · lookahead prefetch"(model.rs:936-940)phase.finish(if cache_bytes == 0 { label.to_owned() } else { format!("{label} · {N} MiB row cache{prefetch_note}") })(model.rs:941-948)
Phase::finish calls self.detail(detail) (helios/src/startup.rs:356-359), and detail() replaces state.detail (startup.rs:351-354). The advance_bytes detail ("x.x / y.y GiB", startup.rs:329-339) is therefore discarded at finish. So the OK row prints e.g. Prepare embedding tables. RAM 9.6s — the resident GiB of the description's sample line is missing. The intermediate 10s PENDING ticks do show x / y GiB while the phase runs, and those are real.
Contrast: Load weights (the phase this PR says it is mirroring) does the same thing — model.rs:810-813 finishes with {payload_bytes} GiB explicitly. So the engram phase was left out of that pattern.
#3 [high] Claims vs code: documentation section names files that don't exist
The description's "Evidence → Documentation" lists docs/FLARE_START.md and docs/FLARE_PATCH_SERIES.md, and the Preflight says "Kept the PR to the functional hunks only" / "No unrelated … churn".
pr_filesshows 7 files, none under docs/ (flare-cli/src/main.rs, flare/src/controller.rs, helios/src/engram.rs, helios/src/engram/reader.rs, helios/src/runtime_core/event_tests.rs, helios/src/runtime_core/model.rs, helios/src/startup.rs).list_filesat the PR head fordocs/*has no FLARE_START.md or FLARE_PATCH_SERIES.md;search_codefor those names returns nothing;list_files ref=main pattern=docs/FLARE*also returns nothing.
So the documentation claim is unbacked: either stale material from another change or files not included. The repo's actual loading-display documentation is docs/runtime-core-design.md:894-897 ("The loading display separates allocation capacity from payload bytes. Allocate model memory … Load weights counts only bytes present in allocation payload spans …") and docs/cli-design.md:1768-1783 (phase list incl. Prepare embedding tables, and "--verbose adds each phase's detail lines"). Neither is updated by this PR, so the new engram byte counter and the new Startup complete row are undocumented in-tree.
#5 [high] Why: what problem it addresses and where the baseline comes from
Problem the PR attacks (its "Why"): weight loading moves 293.9 GiB in 15.3s, while RAM Engram loading moves 188.8 GiB serially in 37.7s; the PR wants SSD-bandwidth parity. Baseline phase total 66.7s → claimed 38.4s.
Code that establishes the baseline is plausible:
Load weightsphase counts payload bytes and runsmodel.parallel(...)across ranks (helios/src/runtime_core/model.rs:802-813), i.e. already parallel per rank — this is the "already fast weight loading".- Engram loading was a plain serial
forloop over shard groups (pre-PR model.rs:872-...); each group →Shared::new→ one Reader per table →Resident::loadper plane; each plane load already used 4 threads (LOAD_READERS=4,LOAD_CHUNK=4 MiB, reader.rs:31-32, 282) reading synchronously withread_at_raw. So the serial part was at group granularity (4 groups → 4x ceiling left on the table). - Additional saving from the retained mapping: before, Linux dropped the populated writable mapping, sealed with
F_SEAL_WRITE, thenResident::from_sharedre-mapped read-only and ranmadvise(MADV_POPULATE_READ)(reader.rs:195-206) — a second full page-table population pass over ~188.8 GiB. That pass is what the PR removes on Linux.
Evidence of long-standing want: no issue explicitly asks for faster Engram startup loading. The nearest operator-facing startup-slowness reports are #616 (host prefix cache, 914.6s with THP defrag=madvise, closed by #625) and #323 (startup 41 s, closed). Engram issue traffic is about serving path (#269 row-cache sets, #334/#535 read-ahead, #481 pre-6.7 mapping failure). So the "why" is a measured internal regression target set by the author, not a filed user report — and the describing author supplies the numbers himself with no A/B harness in the PR.
#6 [high] Related work: THP hint vs #616/#625 policy-aware allocator landed the day before
Strongest overlap/tension: #616 + #625, merged the day before this PR.
- Issue #616 (closed 2026-12-01) reports
Prepare host prefix cache= 914.6s on a fragmented Linux host with THPenabled=madvise, defrag=madvise. Its verified root cause (flare-autobot comment, #616): an allocator that "unconditionally advisesMADV_HUGEPAGEover the entire range" and then faults it in, enabling synchronous compaction underdefrag=madvise/always. - PR #625 (merged 2026-12-01, "Avoid THP compaction stalls in eos::map_host and report offload startup timings") replaced that with policy-aware THP handling in
eos/src/unix.rs: reads/sys/kernel/mm/transparent_hugepage/{enabled,defrag,hpage_pmd_size}, probes/proc/buddyinfofree huge pages and/proc/vmstat compact_stall, falls back to base pages, and keeps a single VMA. It exists specifically so the runtime never issues an unconditionalMADV_HUGEPAGEunder synchronous defrag. - #696 adds exactly the pattern #625 removed, for a different mapping type:
libc::madvise(addr, nbytes, MADV_HUGEPAGE)unconditionally on the writable memfd mapping, before filling it (helios/src/engram/reader.rs:184-192). No shmem sysfs policy read (/sys/kernel/mm/transparent_hugepage/shmem_enabled), no buddyinfo/stall probing, no fallback, no runtime switch. - The PR's own numbers are consistent with a compaction cost: "THP first boot, fragmented memory 13.7s" vs "clean/defragmented 9.6s", and it states a fragmented host "may first land at 13.7s while the kernel compacts". So the failure mode of #616 (multi-minute stalls) is not impossible here either — it is just smaller because the fill loop is chunked at 4 MiB across many threads and because
madvisedefrag may also bedeferon some hosts. Whether shmem THP faults can synchronously compact depends onshmem_enabledanddefrag; the PR does not inspect either. - Also note docs/TODO.txt:1-6 (added by #625) records remaining THP work: A/B startup timing on
enabled=madvise, defrag=madvisefragmented/unfragmented hosts, and "audit selene-manager/src/arena.rs for unconditional MADV_HUGEPAGE under synchronous THP defragmentation". This PR's THP change is not referenced there.
Distinct mechanism, not covered by #625: #625 is about anonymous host slabs (eos::map_host), #696 about a shmem (memfd) mapping. Tension is the policy style, not literal duplication.
#7 [high] Related work: #664/#554/#334/#640 on the same files; #470/#586 are the same idea elsewhere
Same files, all open, all likely conflict points (items_touching, pr_files):
- #664 open (kbenkhaled) "helios,heliopause,ignition: support single-plane BF16 and identity-indexed offloaded embedding tables" — touches helios/src/engram.rs, engram/reader.rs, runtime_core/model.rs, engram/prepared.rs. It changes plane counts (
sum(len(table["planes"]))), so it will collide with this PR'sReader::from_files_with_progresssignature and theData::Ram([plane0, plane1])construction at reader.rs:1394-1405 (which hard-codes 2 planes). It also mentions #334/#554 as overlapping drafts. Its own review flags missing owner approval for new format semantics; not this PR's problem. - #554 open draft (ateska) "engram: read row-cache misses from an Engram store host over RDMA READ" — helios/src/engram/reader.rs, runtime_core/model.rs, engram.rs.
- #334 open (javieratomic) "Read Engram rows ahead of prefill on every rank" — same three engram files; #535 is its approval issue.
- #640 open (original-el8) "allow persistent workers on rank 0 of local multi-rank cores" — helios/src/runtime_core/model.rs; startup ordering around peers.
- #576 open (yatesdr?) "Pin Helios execution and RoCE proxy threads…" — eos/src/unix.rs / thread pinning; relevant because #696 spawns N more loader threads that would now be subject to any pinning policy. Merged prior art on the same theme:
- #470 merged (original-el8) "Parallelize Helios Engram table gathers across RAM, cache, and Unix io_uring" — parallelized the serving gather path; #696 is the startup-load analogue.
- #586 merged "heliopause, helios: parallelize Engram plane assembly in core export" — parallelized engram I/O at export time; same idea on the other side of the pipeline.
- #561 merged (voipmonitor) continuous io_uring lane refill; #566 merged (voipmonitor) lookahead prefetch; #580 merged (FujitsuPolycom) row-cache insertion; #590 merged (lukealonso) reader bug fixes incl. the
/proc/self/fdread-only remap for pre-6.7 kernels and themust have immutable size and contentscheck (#481). #696 is the first recent change to the resident load path since #590. Nothing in the local index competes with or undoes #696; the closest conceptual competitor is #625 (below), which is merged and whose policy #696 partially contradicts.
#10 [high] Reach: who is affected, kernel floor, seal check relaxation, WinUI fallback
Who/what is affected:
- Every RAM-Engram or
--embedding-table-resident-scalesstartup on Linux now takes the new path:mprotect(PROT_READ)+F_SEAL_FUTURE_WRITE|GROW|SHRINK|SEALand keeps the loading mapping instead of dropping + remapping (reader.rs:404-424). Storage defaults toDisk(engram.rs:170-175), andramis only set by--embedding-table-storage ram/ desktop "storage" setting (flare/src/runtime_settings.rs:109-121, cli.rs:1202-1212), so the RAM path is opt-in but the resident_scales path (disk weights + RAM scales) is the common disk configuration and also goes throughResident::load(reader.rs:1407-1413). - Kernel floor: comment claims F_SEAL_FUTURE_WRITE needs Linux 5.1 and MADV_POPULATE_READ 5.14, so "does not raise the existing minimum" (reader.rs:222-227). That reasoning depends on the PR keeping the populate path; on Linux the new load path no longer calls MADV_POPULATE_READ at all (only
from_sharedstill does, reader.rs:195-206), so the real floor becomes the 5.1 seal — plus/proc/self/fdreopen is no longer needed on Linux (#590 added it for kernels <6.7, #481). Net effect on old kernels is likely positive, but the justification text in the PR is stale relative to its own code. - Windows / non-Linux Unix: untouched (windows branch reader.rs:431-438, non-Linux unix branch 425-430 keep the old seal-and-remap).
- Seal contract relaxed:
has_resident_sealsnow accepts either the full-write set or the future-write set (reader.rs:256-269), soResident::from_sharedaccepts a "no future writes" table as immutable. Todayfrom_sharedis reachable only from tests and the non-Linux path (reader.rs:429, 1711, 1763, 1779), so reach is limited. - Observability consumers:
StartupSnapshot.stagefor the new row isStartupStage::Other→"other"(startup.rs:51, 219). The Windows UI maps known ids to labels and falls back to "Prepare local serving" for anything else (flare-winui/Dashboard.inl:2-15, 91-94), so in the desktop app the new row would appear as a generic final step; the desktop controller clearss.startup = Noneright afterprogress.complete()(flare/src/controller.rs:2914, 2938), so it is usually overwritten within one sample. - Timing base:
startedis captured whenStartupProgressis constructed — forflare runat flare-cli/src/main.rs:213 (after config/API-key resolution, before core verification), for the desktop at controller.rs:2779 (per model activation). So "Startup complete. 38.4s" measures from progress construction, not process exec; it excludes arg/config parsing. - New concurrency reach: one thread per engram shard group (model.rs:877-91x) each running one Reader per table with up to 4 read threads per plane, plus per-thread
Stream::open/pinned staging buffers insideShared::with_readers(engram.rs:664-694) — previously serialized. Names:flare-engram-rank-{group}(model.rs:885) andflare-table-loader-{n}(reader.rs:285).
#11 [high] Process & claims: ready-for-review, no CI, tests exist but none cover the new path
Process state (as of orientation packet, head 24ff7e1):
- Open, "ready for review"; opened and last updated 2026-12-02 (same day); base main cc0a49d; 7 files, +209/−30; no labels, no reviews, no comments, no CI checks on the head commit. Rebased onto main at cc0a49d per the description; no default-branch commits since the branch point touched its files.
- No DCO/design-sign-off build visible in tools; the description asserts "Mergebox rulesets require DCO and design sign-off; the commit carries both."
search_historyfor the touched files fails on this repo (git: Could not read c513e46…), so commit-level authorship history could not be reconstructed; per-file item lists above were used instead. Claims vs evidence, item by item:
- "18 engram reader tests passed" — reader.rs has exactly 18
#[test]functions (reader.rs:1526…2524), consistent with the claim. But no new test covers the new code paths: no test asserts thatmprotect+F_SEAL_FUTURE_WRITEsucceeds and yields a still-readable table, and the pre-existing sealing test (resident_sealing_rejects_a_retained_writable_mapping, reader.rs:1665-1678) exercises the old full-write sealer. - "3 startup observation tests passed" — startup.rs observation_tests now holds exactly 3 tests (startup.rs:531-576), one of them new.
- "cargo check passed" — plausible, nothing verifiable here; no CI.
- Speedups 37.7 → 19.2 → 15.1 → 13.7 → 9.6s — single-host sequential build measurements, self-disclosed as non-isolated; no raw logs, no harness, no
mainvs head A/B, no served-workload measurement (see charter note). - "Final table layout and binding order are unchanged" — holds:
bindings.sort_by_key(|(local, …)| *local)and the(shared, rank)mapping are untouched (model.rs:918-922), and handles are joined in group order. - "Engram progress logging: every 10s tick reports completed bytes out of the 188.8 GiB resident total, and the final line reports the resident size" — first half true (
progress_total = resident_bytes, model.rs:840-842; 10 s interval for non-terminal output, startup.rs:276-280), second half false (finish() overwrites the byte detail, model.rs:941-948). - "Startup complete" row — implemented (startup.rs:215-236) and wired in all three serving entry points (flare-cli/src/main.rs:668, 737; flare/src/controller.rs:2914).
- "Documentation: docs/FLARE_START.md, docs/FLARE_PATCH_SERIES.md" — files do not exist; no docs changed.
#13 [high] Research summary
Case file for PR #696 is in the scratchpad (12 notes, covering all eight angles).
The change itself is small and mostly real: helios/src/runtime_core/model.rs:870-917 replaces the serial per-shard-group Engram loop with thread::scope + one scoped thread per group (joined in group order, so binding order and sort are unchanged); helios/src/engram/reader.rs:404-424 keeps the populated memfd mapping on Linux, mprotect(PROT_READ)s it and seals with F_SEAL_FUTURE_WRITE instead of dropping + remapping + MADV_POPULATE_READ; reader.rs:184-192 adds an unconditional MADV_HUGEPAGE hint; byte progress is threaded through Resident::load_with_progress into the existing Phase; and StartupProgress::complete() (startup.rs:215-236) adds the final Startup complete row, wired into flare-cli (main.rs:668, 737) and flare (controller.rs:2914).
What a reader could not learn from the description: the "final engram line reports resident size" claim is not implemented (phase.finish(label…) at model.rs:941-948 overwrites the byte detail), the two documentation files it cites (docs/FLARE_START.md, docs/FLARE_PATCH_SERIES.md) do not exist and no docs are changed, the parallelism is one thread per shard group (not "four"), and the THP hint re-introduces exactly the unconditional-MADV_HUGEPAGE-under-synchronous-defrag pattern that #616 diagnosed and merged PR #625 removed from eos::map_host one day earlier. No test covers the new seal/mprotect path, and the pre-existing sealing test still exercises the old sealer. Evidence is self-disclosed sequential build measurements, not the main-vs-head served-workload A/B the charter (#210) and docs/design-review.md:106-115 require. Process-wise: open, "ready for review", zero comments, zero reviews, no labels, no CI on head 24ff7e1, author a CONTRIBUTOR with two merged PRs; the four other open PRs on these files (#664, #554, #334, #640) are the likely conflict points.
#14 [high] Key findings, ranked (index for the final report)
- THP hint contradicts the policy merged one day earlier.
helios/src/engram/reader.rs:184-192issuesmadvise(MADV_HUGEPAGE)unconditionally over the whole writable memfd mapping. #616 (closed 2026-12-01) found exactly this shape ("unconditionally advises MADV_HUGEPAGE over the entire range") caused 914.6 s startup stalls under THPdefrag=madvise; merged #625 replaced it ineos/src/unix.rswith sysfs policy reads +/proc/buddyinfo+compact_stallprobing + base-page fallback. #696 reads no shmem/defrag policy and has no fallback. Its own numbers show the compaction cost (fragmented 13.7 s vs clean 9.6 s). Open work still tracked indocs/TODO.txt:1-6. - A description claim is not implemented: "the final engram line includes resident size" —
phase.finish(...)athelios/src/runtime_core/model.rs:941-948builds only the storage/cache label, andPhase::finish→detail()(helios/src/startup.rs:351-359) overwrites thex / y GiBtext set byadvance_bytes(startup.rs:329-339). - Two cited documentation files do not exist (
docs/FLARE_START.md,docs/FLARE_PATCH_SERIES.md), and no docs file is in the 7-file diff; the authoritative loading-display docs (docs/cli-design.md:1567-1587,docs/runtime-core-design.md:894-897) are untouched. - Evidence does not meet the project's own bar: charter "#210 … benchmarks showing an actual speedup over
mainon a served workload";docs/design-review.md:106-115requires equivalent baselines and Helios service measurements. PR offers sequential build timings, self-disclosed as "not an isolated A/B for every stage", "Full test suite was not run". - No test exercises the new Linux path.
reader.rshas 18 tests (matching the "18 passed" claim) but none coversmprotect(PROT_READ)+F_SEAL_FUTURE_WRITE;resident_sealing_rejects_a_retained_writable_mapping(reader.rs:1665-1678) still tests the old full-write sealer. - Scope not fully declared: the parallelism is per shard group (
model.rs:879), unbounded, each group running one Reader per table with up to 4preadthreads per plane (reader.rs:31-32, 282) plus per-thread CUDA stream/pinned staging (engram.rs:664-694) — previously serialized. Alsohas_resident_seals(reader.rs:256-269) relaxes the immutability check to accept the future-write seal set, reachable viafrom_shared(reader.rs:429, tests only today). - Process: open, no labels, no reviews, no comments, no CI checks on head 24ff7e1; author malventano (CONTRIBUTOR, 2 merged); no flare-autobot review yet, unlike #590/#625/#664.
#4 [medium] Claims vs code: "four engram rank shards" is not what the code fixes
Description: "prepare the four engram rank shards concurrently, then join in the original order."
Code: model.rs:879 for (group, ((index, ranks), tokens)) in groups.into_iter().enumerate() — one scoped thread per (Index, engram_tokens) group, count is whatever the core/catalog declares (engram comes from the loaded core). Nothing pins it to four. Within each group, Shared::new (engram.rs:629-651) builds one Reader per table, and each resident plane load spawns LOAD_READERS.min(extent.div_ceil(LOAD_CHUNK)) threads — LOAD_READERS = 4, LOAD_CHUNK = 4 MiB (reader.rs:31-32, 282). So on a 4-group core with 2 planes the peak is up to 4 groups × tables × planes × 4 reader threads, all issuing 4 MiB synchronous preads. The description's "Future work" mentions the synchronous 4 MiB pread but not the multiplied thread count, and its "Limits" section says nothing about memory/thread pressure or about the per-device Stream::open/pinned staging allocations now happening concurrently from several threads (previously the loop ran serially on the loader thread).
#8 [medium] People & community: CONTRIBUTOR author, no reviews, no CI, no labels
Author: malventano, GitHub association CONTRIBUTOR (not on the charter's priority list @voipmonitor/@original-el8/@lukealonso). Last 180 days: 2 merged, 2 open.
- Merged: #578 "helios: bump deepseek-recipe for aborted DSML parameter openers" (2026-11-28), #316 "Accept 16-bit PNG input by stripping samples to 8 bits" (2026-11-17).
- Open: #571 "helios: force a wide round after persistent width-one selection" (2026-11-28), #381 "qwen38_dense: prepare the checkpoint vision tower" (2026-11-19).
- Areas their merged PRs touched: helios (2), (root) (1), docs (1), flare-cli (1). This PR is their broadest runtime change so far (loader mapping + threading + startup rendering). They sign "Discord: malventano"; they do not appear as a reviewer or commenter on #590/#616/#625 from the local index. Usual owners of the touched code, per items_touching and closed items:
- helios/src/engram/reader.rs: lukealonso (#590, also #667, #646, #620, #613), voipmonitor (#561, #566), original-el8 (#470), FujitsuPolycom (#580).
- helios/src/runtime_core/model.rs: lukealonso (many), yatesdr (#628, #365), flare-autobot (#625), voipmonitor (#566, #286).
- helios/src/startup.rs: kyonjova (#223), yatesdr (#365), original-el8 (#114) — last touched by others, not by the author.
- flare/src/controller.rs & flare-cli/src/main.rs: broad, lukealonso-dominated; the one-line
progress.complete()additions are trivial. Community on this PR so far: zero comments, zero reviews, no labels, no reactions, no CI checks on head 24ff7e1 (orientation packet + pr_comments "No comments"). No flare-autobot review was triggered yet, which most other engram PRs (#590, #625, #664) do have within ~90 minutes — worth noting as an observation about how much scrutiny this change has had so far.
#9 [medium] Project fit: general layer, but #210 evidence rule and docs obligations
Charter alignment, as facts:
- Fits: no new flags, no model-specific branches, no new deps (uses existing
libc); general runtime layer (helios) — consistent with "Keep the runtime small and model-agnostic" and "No per-model special cases or flags". Startup logging is presentation-only in the sharedstartupmodule. The chroma: Engram roadmap item #267 is "a broader design, scoped as its own project", and this change is a narrow perf/logging fix inside it, not a design change. - Tension (evidence): charter "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)". docs/design-review.md:106-115 additionally requires "equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements", plus keeping raw measurements and disclosing unrun checks. This PR's evidence is phase-level startup timing on a private 4×SM120 + 3-drive Gen4 RAID0 XFS host with no harness, nomain-vs-head A/B artifacts in the repo, and the author states "The results are sequential build measurements, not an isolated A/B for every stage" and "Full test suite was not run". Startup time is not a "served workload". It does disclose limitations (charter-compliant on that point). - Tension (place): charter "Solve the right problem in the right place… smallest footprint in shared code". Two of the three mechanisms (retained mapping, THP hint) are Linux-only
unsafesyscall changes inside the shared resident-table path used by every RAM/resident_scalesconfiguration; they carry no test that exercises the newmprotect+F_SEAL_FUTURE_WRITEsequence end-to-end (existing tests at reader.rs:1665-1678 still callseal_resident, the full-write sealer, and assert it fails while a writable mapping exists — a property the PR no longer relies on). - Documentation obligations unmet: the description lists two docs files that do not exist in the repo (entry "documentation section names files that don't exist"), and docs/cli-design.md:1567-1587 (the authoritative description of the loading display: "Memory loading advances by bytes; kernel and execution preparation advance by resource counts", "Completed stages show
[ OK ]") is not updated for the newStartup completerow or for engram byte progress.
#12 [medium] Recent activity: builds on #590/#625/#470/#586; git history unavailable
- The orientation packet's "recent activity in those areas" is unavailable (
git: Could not read c513e46…), andsearch_historyfails the same way for helios/src/engram/reader.rs. What is known: "Commits on the default branch since this pull request branched (cc0a49d), touching its changed files: none" — so the PR is not rebasing over newer local work, but it does sit directly on top of two changes merged in the last week that are in the same conceptual area:- #590 (merged 2026-11-29, lukealonso): fixed the Engram reader incl. the
/proc/self/fdread-only remap for pre-6.7 kernels and lane fan-out; #696 edits the same functions (ResidentMapping::new,seal_resident,Resident::initialize,Reader::from_files) but leaves the/proc/self/fdlogic intact and keepsfrom_sharedfor non-Linux. - #625 (merged 2026-12-01, flare-autobot for #616): THP policy work in
eos::map_host(see the #616/#625 note). - #566/#561/#580 (voipmonitor/FujitsuPolycom, Nov): serving-path engram performance, none touching the resident load path.
- #590 (merged 2026-11-29, lukealonso): fixed the Engram reader incl. the
- Per-file item history (items_touching, last 180 days): startup.rs last touched by #223 (kyonjova), #365 (yatesdr), #114 (original-el8); model.rs is the most contended file in the repo (21 items listed, incl. 4 still open); reader.rs has 9 items, 4 open.
- The PR's approach continues a series: #470 parallelized the gather path, #586 parallelized plane assembly at export, and #696 now parallelizes startup load — the same "do the independent engram planes/shards concurrently" idea applied to the last serial stage. That makes it consistent with recent direction rather than a reversal of it.
#15 [medium] Unverified / could not check (limits of this case file)
- Git history is unreadable in this repo state:
search_historyforhelios/src/engram/reader.rsand the orientation packet's "recent activity" both fail withfatal: cannot simplify commit ef38cb9… / Could not read c513e46…. Commit-level authorship and dates for the touched hunks could not be reconstructed; the per-file PR/issue lists (items_touching) were used instead. - No CI: no checks on head
24ff7e1; "cargo check passed" and "18 engram reader tests / 3 startup observation tests passed" cannot be independently confirmed here (the test counts match the source: reader.rs:1526…2524 = 18#[test]; startup.rs:531-576 = 3). - Performance numbers cannot be validated: no harness, logs, or host details beyond "four SM120 GPUs and a three-drive Gen4 NVMe RAID0 XFS volume"; the 293.9 GiB/15.3 s weights baseline and 188.8 GiB/37.7 s Engram baseline are author-reported.
- DCO / design sign-off: asserted in the description ("the commit carries both"), not verifiable with these tools.
- Whether shmem THP faults can synchronously compact on the author's host depends on
/sys/kernel/mm/transparent_hugepage/shmem_enabledanddefrag, neither inspected by the PR nor observable from here; the PR's limits section only says "THP depends on system shmem THP policy.adviseis required for the hint to take effect." - Not checked in depth:
flare-cli/src/main.rsandflare/src/controller.rscall sites beyond confirming the threeprogress.complete()insertions sit immediately after theStart serverphase finishes (main.rs:664-668, 736-737; controller.rs:2913-2914), andheliopause/ignitionsides of Engram handoff (out of this PR's scope).