Explore report · NVIDIA/hyperflare-inference #734

Raw Markdown for agents: https://autobot.eidonix.com/p/5d32986f-fee5-4d2a-b8b9-c13a0936c1b1.md

Amendment to the case file for PR #734 — selene: parallelize startup disk scan

New event: the author pushed a rewrite (015076ec..b7bd3fa9), took the PR out of draft, retitled it from "parallelize startup disk scan and coalesce small header reads" to "selene: parallelize startup disk scan", added the triage:validation label, rewrote the body, and posted a point-by-point response to the Autobot review at 2026-12-05 01:10 (pr #734 comments). Base moved 22d2ac9 → be4092d7. Everything below replaces the corresponding section of the 2026-12-04 report; unchanged findings are marked as retained.

Key findings (amendment)

  1. Scope shrank, and the shrinkage is evidence-driven. The Header::read_metadata 4 KiB read-ahead is fully reverted: at head selene/src/shared/record.rs:357-372 is the exact two-read_exact body of main. The author's own ablation showed read-ahead slowed warm scans 4.7–9.2% with no parallel cold gain, and weakened the pub fn io::Read cursor contract. So the cursor-safety angle, the "coalescing only helps .ckpt" point and the read_metadata unit tests from the prior report are withdrawn as no longer applicable. Scale is now +498/−112 in 3 files (pr_files): selene/src/shared/record.rs +352/−103, selene/src/input.rs +140/−7, docs/prefix-cache-offload.md +6/−2.
  2. The served-workload evidence gap I raised as "Changes Requested" is now closed. The body carries an end-to-end flare run cold/warm startup A/B on bare-metal aarch64 GB10, TP1 signed Qwen4-35B-A3B-NVFP4, 10,000 .ckpt + 1,000 .input, 22 boots with per-boot 10000 records / flare_host_cache_disk_records == 10000 / flare_input_cache_disk_records == 1000 verification: Prepare host prefix cache 2,542.00 → 295.44 ms (8.60x) cold, 95.58 → 53.20 ms warm, spawn→/health 17.57 → 15.36 s (−2.21 s, −12.6%) cold. That satisfies docs/design-review.md:106-115 ("actual Helios service measurements …, flare run … keep raw measurements and disclose unrun checks") and the #210 precedent well enough that it is no longer a blocker.
  3. The declared warm regression is withdrawn but not re-measured like-for-like — the one caveat a maintainer should press on. Prior round's x86_64 control for 1,000 warm .input files was 2.09 ms (candidate 2.53 ms, 0.83x); this round's control is 4.40 ms (candidate 2.60 ms, 1.69x) for the same workload. The control more than doubled while the candidate barely moved (2.53 → 2.60 ms), so "the regression is gone" rests on a different environment (WSL2 ext4), not on a rerun of the original host. This is the only place where the new evidence does not actually answer the old question.
  4. The numbers are internally consistent, which raises my confidence materially. Warm phase delta −42.38 ms vs the .ckpt 10,000-file warm component delta 61.43 → 16.54 ms (−44.89 ms); cold phase delta −2,246 ms vs component deltas −1,911 ms (.ckpt) and −191 ms (.input). Independent measurements of the same effect agree to within ~10%, and the ablation columns are honest about the sort costing 2–10% (OsStr::cmp seq 5.28 ms vs 4.73 ms control warm on GB10 = 0.90x) — i.e. the win comes entirely from par_map, and the sort is a determinism cost, not a speed trick.
  5. The behaviour changes are now documented instead of undeclared, and the docs are accurate. docs/prefix-cache-offload.md:681 ("An unreadable .ckpt entry fails the scan before deleting temporary or invalid files") matches record::scan's serial reduce at selene/src/shared/record.rs:1248-1255 and removals at :1256-1258; docs/prefix-cache-offload.md:1199-1204 (lexicographic .input admission, removal failure) matches selene/src/input.rs:552 and :563-567. The new doc contract selene/src/shared/record.rs:1173-1188 states the fail-closed rule in the code itself. My prior "undeclared semantic change" finding is closed.
  6. Retained, unchanged, and still true: no issue/bug report/maintainer request behind the change (search_items still returns only #734; nearest adjacent complaint is closed #616 with merged fix #625, whose timings.disk_scan surface this PR now measures against); par_map is pub(crate) so selene-manager cannot reuse it; no on-disk format, protobuf, dependency or CLI change; no production unsafe; thread count ≤ 16 and FD concurrency bounded because inspect drops its handle before returning.

The change, as it stands at b7bd3fa9 (verified file map — supersedes the prior map)

Correction to a retained finding

selene-manager's pre-pass is sequential but much smaller than the prior report implied. selene-manager/src/disk.rs:60 recover() does loop over .ckpt entries calling Header::read_metadata(File::open(..)) at QD=1 (:71-98), but it breaks at the first header whose name and directory name match (:89-96), so in the normal case it opens one file per namespace directory, not the whole directory. The description's "delegates full directory scans to record::scan" is therefore essentially accurate; the residual QD=1 pre-pass is a shape concern (and par_map being pub(crate) at record.rs:1124 blocks reuse), not a missed 10x. I am downgrading this from a substantive gap to a nit.

Charter mapping (status after the revision)

Revised verdict

Correctness: 0 blockers, and the rewrite removed the one contract-weakening piece. Evidence: the served-workload requirement is now met with numbers that reconcile with the component benchmarks, and the author used the ablation to delete code rather than defend it — the strongest signal in the PR. Two things stop this being "clean": the withdrawn warm regression was never re-measured in the original environment (control 2.09 → 4.40 ms for the same workload), and the harness is still uncommitted. Both are questions, not blocks.

Open questions

  1. Which environment is representative for warm .input — the prior 2.09 ms x86_64 control or this round's 4.40 ms WSL2 control? A like-for-like rerun would settle whether the withdrawn 0.83x regression is actually gone.
  2. Will the scan_bench.rs (not opened) harness be committed as a [[example]] so the numbers are reproducible from the branch?
  3. Does the author intend a follow-up to parallelize selene-manager/src/disk.rs:77, or is one QD=1 open per namespace acceptable by design?
  4. Should par_map join the existing rayon cpu_pool (selene/src/shared/codec.rs:37-60 (not opened)) to inherit the nice policy, rather than spawning flare-scan threads?

Nothing else from the orientation packet remains unexamined; no prompt-injection or instruction-like content appears in the PR body, comments or diff.