Explore report · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/26384e0e-e296-435f-a374-6ff903c1d3c8.md

PR #496 — amendments only (new event: head moved to ba1c73fd, design sign-off given, three new blockers fixed)

Per the instruction this is amendments only to my prior report (#36). Everything below is new, corrected or struck; nothing that still stands is restated. Citations re-verified in source this pass unless marked from the PR/comment text.

Key findings (amendments)

  1. The branch I last reported (cb3db468, 5 files, +8682/−5630) is gone. Head is ba1c73fd6c0b0d08c612dd947ed47ceaee8ce457 over base 6d74db3a (single commit, "Coalesce shared ancestor reads across concurrent Selene disk fetches", search_history on pr/496). pr_files now: 6 files, +5181/−291 — selene/src/disk_store.rs (+337/−288, now 8,063 lines, down from 10,856), new selene/src/disk_store/coalesce.rs (+1416/−0), new selene/src/disk_store/coalesce/tests.rs (+3217/−0), docs/prefix-cache-offload.md (+48/−2), selene/src/shared/packed.rs (+44/−0), selene/src/shared/record.rs (+119/−1). selene/src/shard.rs (not opened) is out of the diff entirely. Strike "5 files", "disk_store.rs +8470/−5627", "shard.rs (not opened) +11/−0" and "the state machine is one ~538-line pump_device_inbound": the state machine is now a private submodule (mod coalesce; use coalesce::{DeviceCoalescer, SharedSegmentId};, disk_store.rs:29-30) and DeviceCoalescer::pump is nine single-purpose passes.
  2. The design sign-off I called the sole surviving blocker has been given — by yatesdr, review of 2026-11-29 02:14: "Placing the shared-segment / shared-window coalescing lifecycle in Staged (rather than DiskThread) is the right boundary and I'm signing off on that choice." Strike my prior key finding 3 and A3 ("blocked on a decision, not on code"). Residual, narrower process item: the sign-off is a PR review, not the Design-Signed-Off-By: <reviewer>; design-review=<4 hex> commit trailer docs/design-review.md:191-208 requires on the final commit, and AGENTS.md:201-207 still wants an explicit maintainer request/decision recorded — so the decision exists, the merge commit still owes the trailer.
  3. The same review opened three new blockers, empirically measured on GB10; all three are fixed at ba1c73fd. They supersede my "all five round-2 items fixed, nothing left but process" framing (amendments A3 below). One of them closes my own cb3db468 finding that the exhaustive Hash made every window probe O(packed units).
  4. inbound_rate is back to end-to-end — this reverses my run-765/1529 reporting that the out-of-band physical sample (TransportEvent::InboundWindowSample, drain_inbound_samples, observe_inbound_samples) was the settled design. That plumbing is deleted; TransportEvent is five JobId-carrying variants again; docs §4 is end-to-end. Stated plainly because I previously reported the opposite.
  5. Verdict at the current head is yatesdr's CHANGES_REQUESTED of 2026-11-29 02:14, whose three blockers are fixed but whose closing ask is unmet: live serving validation with --lossless-kv-compression cpu|gpu. The 2026-11-27 08:43 "Ready To Merge" autobot review judged cb3db468 and is stale. Open items are now validation + re-review + trailer, not design.

A1. Head and shape (details)

A2. Sign-off (see key finding 2)

Caveat worth carrying: the acknowledgment definition at docs/design-review.md:199-204 (read staged checklist, verify rationale/exact change/benefit/evidence order, disclose validation limits) is exactly what a Design-Signed-Off-By trailer attests, and docs/design-review.md:206-208 says a missing acknowledgment requires completing the workflow before retrying. So the merge commit needs yatesdr's identity + the 4-hex design-review digest, and the hook will enforce it.

A3. The three new blockers, fixed — verified in source

  1. Per-poll() stall on v4 packed records (closes my earlier exhaustive-Hash finding). HeaderIdentity { header: Arc<Header>, hash: u64 }: new() runs DefaultHasher over Header::hash once (selene/src/disk_store/coalesce.rs:41-54), eq short-circuits on self.hash == other.hash && (Arc::ptr_eq(..) || *self.header == *other.header) (:61-66), Hash hashes only the cached u64 (:70-74); SegmentKey/WindowKey derive at :76-88, so a window probe is O(1) again. Eager demand rebuild removed: start_new_windows opens with let mut demand = None; and fills it lazily inside while self.has_window_credit(id) (coalesce.rs:831-842). yatesdr measured 1.47 ms / 9.73 ms / 49.33 ms per poll() at cb3db468 at 8 fetches (TP1/512, TP8/512, TP8/1024) vs 0.4–0.9 µs at 1 fetch; the author's re-measurement at ba1c73fd is 0.25–0.75 µs mean for all six shapes (both quoted in the review thread). Residual weakness I keep: the anti-regression test's only latency assertion is mean_us < 200.0 (selene/src/disk_store/coalesce/tests.rs:584), ~250× looser than achieved, and the credit-regained demand pass is printed but never asserted (tests.rs:570-586), so per-probe hashing cost could regress without a failing test. The exhaustive Header/packed::Layout hashes remain (shared/record.rs:165-202, shared/packed.rs:101-141) and are now paid once per segment per fetch in HeaderIdentity::new.
  2. inbound_rate end-to-end with a downward-only guard (reversal of my earlier position). DiskStore::fetch records read_nodes (segments with pages > 0 || row), rode_preexisting (any live Inbound sharing a read node), started = Instant::now(), logical_bytes = layout.record_bytes(chain.pages) and skips inbound_rate.started() for rode_preexisting (selene/src/disk_store.rs:3422-3453, verified). apply observes logical_bytes / started.elapsed() and, for rode_preexisting, only when that rate is below inbound_rate.get() (disk_store.rs:3242-3251, verified) — so coalesced followers cannot inflate bandwidth, while slowdowns and leader-failure bursts still lower it. StoreStats.bytes_in stays logical (:3240). Docs §4 rewritten to this contract, including CompositeStore.disk_inbound_rate (docs/prefix-cache-offload.md:1613-1627); §2.4 now only cross-references it (:448-449). Five new rate tests, including a Sharded local-TCP case and a 150 ms decode-delay packed case where worth_fetching rejects (named in the author's comment; not re-read individually this pass).
  3. Tight-pool shared-ancestor holdback (#497 interaction). pick_next_pending_plan computes reachable_free = free + staged_slots + outbound_slots, tracks max_reachable_shared_demand over unstarted plans with peer_demand > 0 && needed <= reachable_free, and returns a fitting plan only when best_demand >= max_reachable_shared_demand (selene/src/disk_store/coalesce.rs:698-745, verified, incl. layout.record_slots(plan.count, plan.row) with 0 slots for packed at :724-728). Two tight-pool tests added (tight_pool_waits_for_shared_ancestor_instead_of_starting_private_tail, tight_pool_wait_never_deadlocks_without_releasable_staged_slots).

A4. Coverage yatesdr asked for, now present

sharded_concurrent_fetches_coalesce_across_rank_zero_and_peer (drives production shard::serve over local TCP, 4 branches on a 3-window ancestor, asserts rank-0 disk_opens == 5 / disk_window_reads == 7 / coalesced_windows == 9, live slab-address sharing on peer rank 1, byte-exact GPU pages/rows) and concurrent_packed_fetches_coalesce_opens_and_read_packed_windows; 19 named tests in selene/src/disk_store/coalesce/tests.rs.

A5. Evidence and benchmarks — rewrite, not strike

A6. Neighbourhood

Open questions / what could not be found

Coverage this pass

Re-checked: head/commit/files, description and the 2026-11-29 04:04 author comment, yatesdr's review + GB10 measurements, HeaderIdentity and the lazy-demand path, pick_next_pending_plan, DiskStore::fetch/apply rate logic, docs §2.4 (414-449) and §4 (1613-1627), docs/design-review.md:185-208, AGENTS.md:201-207, #497, and selene/src/disk_store.rs open-PR list. Judged not relevant: the autobot case-file/intake URLs (infrastructure), the main commits after 9031847a (unrelated to the touched files), and #504/#523/#524 (merged, relationship unchanged).