Explore report · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/42eb24e0-6621-4a20-90bc-c214e5266daa.md

PR #496 — amendments only (run 766, 2026-11-27)

Per the instruction, this report carries only amendments to what I reported before: everything below is new, corrected, or struck. Nothing that still stands is restated.

Key findings (amendments)

  1. The PR I was reporting on no longer exists — #496 was rebased and is effectively a new PR. Head is cb3db468 (single commit, 2026-11-26, "Coalesce shared ancestor reads across concurrent Selene disk fetches") over main 6d74db3a, i.e. post-#504/#523/#524. pr_files at head: 5 files, +8682/−5630 — selene/src/disk_store.rs (+8470/−5627), docs/prefix-cache-offload.md (+38/−2), selene/src/shard.rs (+11/−0), selene/src/shared/packed.rs (+44/−0), selene/src/shared/record.rs (+119/−1). Strike every earlier statement of mine saying "3 files", "+3358/−933", "head 0c04b1e2", or that #496 still needs a rebase plus an unstated packed decision: the rebase happened and the author ported v4 packed coalescing rather than leaving the decision open.
  2. All five round-2 should-fix items are genuinely fixed, each where the review asked (verified in source, A2). The last review on the PR is still the 2026-11-25 19:26 "Ready To Merge / no blockers" on 0c04b1e2, whose stated premise was "no new commits since the last review" — that verdict is stale, not an endorsement of cb3db468. There are no CI checks at the new head.
  3. Only one item survives, and it is the process item: explicit maintainer sign-off. AGENTS.md:201-207 still says an invariant-level design change needs an explicit maintainer decision and that "a commit acknowledgment or routine PR approval is not that decision." The author's own closing line asks for exactly that sign-off on the Staged shared-window lifecycle, so the PR is blocked on a decision, not on code.
  4. New finding, mine, introduced by the fix the review asked for: the exhaustive Hash makes every window-key probe O(packed directory size). Header's hash now includes packed, and packed::Layout's hash walks every PackedUnit — 11 fields including the 32-byte profile per unit — plus offsets and pages (A4 for citations).
  5. The benchmark table is still measured at 0c04b1e2 vs c0c4f798, not at the new head, and the author's new "Not covered" list contains that re-run itself ("rerunning the raw SM121 flare run A/B after rebasing onto 6d74db3a"). The head-commit-benchmark requirement is again unmet, this time disclosed.
  6. Merge order is the reverse of what I implied earlier: #497 first, then rebase #496 onto that main — stated in both descriptions and consistent with pump_all at cb3db468:2957-2978 still having no MAINTENANCE_DEFER_LIMIT.

A1. What moved

A2. Round-2 should-fix items, verified at cb3db468

A3. The surviving item

AGENTS.md:201-207, quoted in full: "An explicit maintainer request covering the work is sufficient authorization … A feature request, passing tests, or a performance gain does not waive an architectural invariant. Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant; a commit acknowledgment or routine PR approval is not that decision." A second inbound lifecycle inside Staged, with its own sharing/refcount protocol, is exactly such a change; the author's Why is the author justifying, and merging cannot retroactively supply the decision.

A4. New finding: exhaustive Hash makes every WindowKey probe O(units)

Header's hash now includes packed, and packed::Layout's hash walks every PackedUnit — 11 fields including the 32-byte profile per unit — plus offsets and pages (selene/src/shared/packed.rs:101-141). WindowKey/SegmentKey derive Hash and are the keys of window_index (selene/src/disk_store.rs:1458-1470, :1654, used at :2031-2072, :2374, :2546), of the per-pump demand map (:2273-2294) and of find_reusable_window (:2185); a fresh WindowKey with a cloned SegmentKey is built per plan per probe (:1613-1621, called from the demand build and the pick loop). For a TP4 record with 128 tail pages that is ~516 units, i.e. ~16 KiB of profile bytes plus ~8 KiB of offsets/pages hashed per probe, on rank 0's restore pump, inside the path this PR exists to speed up. Raw v1–v3 records are unaffected (packed is None, one discriminant). Cheap fix to ask for: cache a u64 digest on packed::Layout (or hash the Arc pointer together with (first_page, units.len(), physical_bytes) as identity) and keep the exhaustive hash for Header's scalar fields. Nothing covers hashing cost today; header_eq_implies_same_hash only pins agreement.

A5. The packed port is real and structurally sound, not just claimed

One shared ReadPacked job per aligned 64-page window, offset = page_segment + layout.page_offset(first), length to page_offset(first+count) or physical_bytes for the row; packed windows allocate zero SlabPool slots (selene/src/disk_store.rs:2320, :2528-2533); each follower builds its own Window::restore_pinned from layout.units(...) over the shared Arc<Vec<u8>>; the buffer is released only when followers, disk refs and upload refs all reach zero. Decode/payload errors go through is_packed_content_error → with_record_read() → fail_window, so DiskStore::apply drops the corrupt row. #504's surface is preserved by rename, not duplication: HostDestination::{Slots,Packed} (:979-985), Source::HostPacked, write_packed/read_into_packed/completed_packed_reads/take_packed_read/codec_receive_profiles/decode_counters. InboundRecord and Destination no longer exist anywhere in selene (zero grep hits), so my earlier rebase-collision list is fully resolved, including the third-HostPacked-variant question.

A6. Description and evidence changes that supersede my earlier reporting

A7. Neighbourhood

#497 is now cf9d4c14, also rebased onto 6d74db3a, open, +1636/−249 across 16 files, and its own last review (2026-11-25 20:33) is Ready To Merge / no blockers. It still has InboundRecord, Destination::{Device,Host,HostPacked} and single-argument plan_windows, so #496 remains the structural rewrite and the "two doors open" claim holds — but #497 merges first, then #496 rebases onto that main, which both descriptions now state and which matches pump_all at selene/src/disk_store.rs:2957-2978 (maintenance drained first and unbounded, then sorted outbound, then sorted host_inbound, then pump_device_inbound; no MAINTENANCE_DEFER_LIMIT, since that stays #497's). #504 is merged (2026-11-25 18:22, head d1b90d7, +20519/−785, 152 files) and #477/#486/#492 are closed, superseded by it — drop them from the related list. The newer merges the author rebased over (#546, #545, #543, #538, #527, #532, #525–#526, #531, #529, #522, #515, #510, #509, #507, plus RebuildManifest→PreparationManifest) touch neither Staged, DeviceInbound nor window coalescing; only #527 and the codec fixes touch selene codec paths. #496 and #497 remain the only open PRs changing selene/src/disk_store.rs.

Open questions and what could not be found

Coverage this pass

Re-checked: head/commit/files, the rewritten description and the 2026-11-27 06:01 author comment in full, all five round-2 should-fix items against source, the round-1 items for regression, Staged::close, pump_all, the packed read path and its two tests, the header-hash test and the Layout hash body, benchmark and evidence claims, and the neighbourhood (#497 read in full, #504 for its Header/Destination surface, selene/src/disk_store.rs open-PR list). Judged not relevant: the ~27 merged PRs listed in A7, the two autobot case-file notices (infrastructure, no claim about the code), and the external case-file/review URLs. Nothing in the PR, its comments or the docs attempted to direct the reviewer.