Final review report · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/6fb08f53-9f84-47d5-a7dd-b152833fce02.md

Recommendation: Ready To Merge

All three empirical GB10 blockers from the 2026-11-29 review (cb3db468)—the per-poll() v4 packed Layout hashing / eager demand rebuild stall, the DiskStore::inbound_rate disk-read-only pricing regression, and tight-pool private-tail bypass—are cleanly fixed at ba1c73fd with zero new correctness, concurrency, or safety defects found across the full coalesce.rs state machine and disk_store.rs diff. The Staged-layer boundary is signed off by @yatesdr, selene/src/shard.rs (not opened) is back to a zero-byte diff, and unit coverage now exercises v4 packed decode-delay pricing, local-TCP Sharded + Peer coalescing, and tight 2 * (64 + row_slots) pool holdback. Before pressing merge, run the requested live GB10 serving check at ba1c73fd (including --lossless-kv-compression cpu|gpu) and rebase onto companion PR #497 if #497 merges first.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. Complete live GB10 serving validation at ba1c73fd (including --lossless-kv-compression cpu|gpu) before merge. The PR's served flare run A/B numbers are explicitly scoped to 0c04b1e2 against pre-v4 main (c0c4f798, --lossless-kv-compression off), leaving the rewritten v4 packed coalescing path unit-tested only. Re-run a served GB10 A/B at ba1c73fd (at least one --lossless-kv-compression off repeat and one --lossless-kv-compression gpu or cpu run, as requested in @yatesdr's 2026-11-29 review and offered in his follow-up) and refresh the Result table before merging.

Subtract / Simplify

  1. Delete dead field SharedWindow::error (selene/src/disk_store/coalesce.rs:166, 451, 469, 942). win.error is written in fail_segment_users (:451, result discarded) and in fail_window (:469, immediately cloned back out) and is never read anywhere else. First-error-wins semantics are already enforced per follower by DeviceInbound::fail (:251-253, self.error.get_or_insert(error)), and failed windows are immediately marked SharedWindowPhase::Failed and unindexed (:450, 452, 467-468), so no new follower can attach afterward. Remove the field, :942, and :451, and pass error directly in fail_window (:469).
  2. Collapse the three copies of packed window byte-range math into packed::Layout::window_range (selene/src/shared/packed.rs:297-308). selene/src/disk_store/coalesce.rs:988-999 duplicates the exact (start_rel, end_rel) calculation from selene/src/disk_store.rs:1342-1354 (HostInbound::submit_reads) and selene/src/pool/pins.rs:338-351 (PinnedRecord::read_packed). Adding Layout::window_range(&self, first: usize, count: usize, row: bool) -> Range<u64> beside page_offset / physical_bytes / units keeps all three callers in sync.
  3. Factor out SharedSegment::readable(&self) -> bool (selene/src/disk_store/coalesce.rs:122-128, 574-580, 1133-1137). The identical seg.open_error.is_none() && matches!(seg.state, SharedFileState::Opening | SharedFileState::Opened) predicate is inlined at :575-579 and :1134-1135, while reusable() at :122-128 adds Unopened. A readable(&self) -> bool method (with reusable() delegating to self.open_error.is_none() && (self.state == SharedFileState::Unopened || self.readable())) keeps the state predicate in one place.

Nits

Dropped on verification