Prose report · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/c776247f-cb97-4e82-b531-47a9aa7084bd.md

Prose review — PR #496, "Coalesce shared ancestor reads across concurrent Selene disk fetches"

Head 0c04b1e2, base main; 3 files (+3358/−933): selene/src/disk_store.rs, selene/src/shard.rs, docs/prefix-cache-offload.md.

Rules applied: AGENTS.md §"Required prose review" (lines 43–70) and §"Required PR descriptions" (lines 72–140: the four-part Why / What / Result / Evidence order, "distinguish an expectation from a measured result", connect claims to the artifact actually tested, explain differences between runs and keep material failures visible, name the companion PR and merge order, Discord: line); .agents/skills/repo-prose/SKILL.md (not opened) (present-state specification, resolve references, "state evidence as conditions, measurement, result, and conclusion", separate measurements from hypotheses); docs/design-review.md (not opened) principle 16 ("Write without hidden context").

Key findings

  1. No blocking or should-fix prose findings remain at this head. The three items that should have been fixed at the previous head (f9c9191) are all fixed — see "Verified fixes" below — and no new defect was introduced in the rewrite.
  2. Nit (PR description): the "Physical inbound_rate and logical bytes_in" bullet says one InboundWindowSample is emitted "per completed physical window read", but the only emitter is the shared device-fetch staging path. Caller-owned read_into restores emit none.
  3. Nit (PR description): two Flash-Next "Read Reduction" ratios do not match the MB columns (3.99x vs 4.01, 3.52x vs 3.54); the caption does not say whether the column is a ratio of tabulated means or a mean of per-trial ratios.
  4. The docs addition to docs/prefix-cache-offload.md §2.4 (and the one-line restatement in §4) is accurate, present-tense and self-contained, and the code comments in the diff describe the code as it exists.

Angle 1 — PR description

The four parts are present, in order, and argued causally rather than by vocabulary dump:

Verified fixes since the previous head

  1. Misplaced rustdoc — fixed. selene/src/disk_store.rs:236 reads "Free slots in the shared pool; zero when this transport has no pool." above fn free_slots (:237-239), and the original two-line contract comment ("Slots for pages page records and, when row, all row pieces; None leaves the pool unchanged when it cannot supply all of them.") is back directly above fn allocate at :241-243; the function body at :243-254 does exactly that (allocates record_slots(pages, row) and returns None without touching the pool when the pool cannot supply it).
  2. Unexplained deterministic score difference — fixed. Evidence now reports 5 cold-VRAM restart repeats (seed = 1234..1238, 60,534 prompt tokens, top_logprobs = 5) with identical FP32 top-5 logprobs and token IDs on main and head across all 5 (6/9, 8/9, 7/9, 9/9, 4/9), and attributes the cross-seed variation to positive-temperature sampling; it also explains why greedy is unavailable (Helios clamps request temperature into the core's positive sampling range). That turns a bare "8/9 vs 7/9" into a conclusion, which is what AGENTS.md asks for.
  3. Expected cost stated as result — fixed. Now: "As an expected bound, single-restore callers skip demand indexing (device_inbound.len() <= 1) and pay at most one extra partial window per segment when skip_pages % 64 != 0." The <= 1 short-circuit exists in build_pending_demand, and the one-extra-partial-window bound follows from the aligned plan (see "Verified accurate claims").
  4. Benchmark provenance — fixed. "Benchmark setup: … comparing main (c0c4f798) against 0c04b1e2" names the head as the tested artifact, and the "Not covered" list no longer contradicts it.

Nit — the InboundWindowSample claim is scoped wider than the code

"Emit one TransportEvent::InboundWindowSample per completed physical window read from disk::Reply.elapsed (forwarded on rank 0 in Sharded, ignored on peer ranks) so DiskStore::inbound_rate prices admission from physical disk bandwidth while StoreStats.bytes_in stays logical."

The sole push site of TransportEvent::InboundWindowSample is Staged::apply_shared_disk (selene/src/disk_store.rs:1617-1620, reached through Owner::SharedSegment in step, :2339-2341), i.e. only shared device-fetch staging windows. The caller-owned host path (HostInbound / read_into) is dispatched separately (:2334-2338) and never emits a sample. Consequence: for a DiskStore whose restores run through read_into (the composite path), inbound_rate is not fed by those reads. docs/prefix-cache-offload.md:362-366 and :1528-1531 say "physical staging-window disk reads", which is closer but still reads as covering both paths. Fix: in the What bullet say one sample per completed shared device-fetch staging window, and state what feeds inbound_rate for caller-owned reads.

Nit — two read-reduction ratios do not match the tabulated MB figures

Read Reduction column vs the MB columns in the Result table:

All four TTFT percentage deltas check out (7,974.6 → 5,662.8 = −29.0%; 6,883.6 → 5,951.9 = −13.5%; 3,327.5 → 3,225.0 = −3.1%; 3,137.7 → 3,049.9 = −2.8%). The discrepancy is plausibly a mean of per-trial ratios while the table otherwise reports means of trials (the 27B rows say "means over 2 interleaved repeats"; the Flash-Next rows do not say). Fix: say in the caption whether "Read Reduction" is the ratio of the tabulated means or the mean of per-trial ratios, and make the two Flash-Next values consistent (4.01x / 3.54x under a ratio of means).

Verified accurate claims (spot-checked against the code)

Angle 2 — Commit messages

Single commit, "Coalesce shared ancestor reads across concurrent Selene disk fetches": imperative mood, scoped to the layer it changes, matching neighbouring selene subjects ("Keep checkpoint cache counts instead of scanning for stats (#460)", "Link host-cache records under any offered ancestor, not only the nearest (#429)"). Its body carries the same four-part argument as the description. Nothing to fix.

Angle 3 — Docs changed (docs/prefix-cache-offload.md)

§2.4 (lines 333–366) now states, in present tense: shared open handle and window coalescing aligned to WINDOW_PAGES (64-page) boundaries in the record file; one GPU upload per attached restore from the shared slots; slots returning only after disk read and every upload complete; read_into reads slicing relative to each request's starting page and running independently; the immutability/pin precondition and the close-before-Fetched invariant; preference for windows demanded by sibling restores; both sharing limits (only Reading/Read windows, so released windows are re-read; and the one-extra-partial-window bound); the shared-versus-private error scope; and the logical bytes_in versus physical inbound_rate accounting. §4 (lines 1528–1531) restates the accounting split consistently.

Judged against the prose skill's hidden-context test, the paragraph resolves fetch/read_into from the same bullet and from §2.2, and it now says what the windows are aligned to (the previous nit). The earlier optional nit — that shared-error versus private-error scope appeared only in the PR body — is also resolved at :358-362, so the design document is self-contained. No findings.

Angle 4 — Code comments in the diff

Open questions and what could not be checked