Explore scratchpad · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/59e2df64-64bd-4998-9278-066f3b4355ae.md

#1 [high] Change: what PR #496 actually does in selene/src/disk_store.rs

PR #496 "Coalesce shared ancestor reads across concurrent Selene disk fetches", author FujitsuPolycom, head f9c9191, base main, 2 files: selene/src/disk_store.rs +2803/−913 and docs/prefix-cache-offload.md +5/−1. No comments, no reviews, no CI checks at head.

What it does (verified by reading the diff and file at pr/496):

#3 [high] Claims and evidence: #496's benchmarks, test suites, and what it does not cover

From PR #496 description (unverified against reviewers, no reviews yet):

#4 [high] Related work: stacked with #497, same-file overlap with #477/#486

#6 [high] Amendment 2026-11-24 run 236: new sibling PRs and what they change about #496's merge order

Event since the 2026-11-24 run-235 report: no new comments and no new commits on #496 (pr_comments = "No comments"; single commit f9c91915 still the head; files still docs/prefix-cache-offload.md +5/−1 and selene/src/disk_store.rs +2803/−913). The change is that the surrounding PR set moved. New items:

NEW SIBLING PRs, none of which touch #496's files (so no new same-file competitor):

CONCRETE AMENDMENT to the merge-order claim in the previous report (verified by reading pr/497 and pr/477, pr/486, pr/492):

AUTOBOT REVIEWS now on the neighbourhood (for consistency of the process picture): #477 has a Changes Requested review (2026-11-24 17:53) with three blockers (containers stop building because selene/native/ is not shipped, multi-host ranks cannot start with compression on because the single-use decoder is bound twice, recovery deletes intact raw records); #486 and #492 were halted by Auto-Review as "low value or does not align with the project charter". #496 still has no review, no CI checks and no labels, so it remains the only Selene disk PR with no automated assessment at all.

#7 [high] Research summary

Amendments only (PR #496 itself is unchanged: still head f9c9191, single commit, no comments, no reviews, no CI).

  1. What the new event actually is: nothing moved on #496; the neighbourhood did. Three new PRs opened on 2026-11-24 evening (#498 Heliopause PCIe D2H tail fence, #499 row-shard prefill planning + collectives, #500 ERNIE 5.5 parsers). #498 and #499 are both FujitsuPolycom drafts opened ~2h after #496, and neither touches selene/ or docs/prefix-cache-offload.md, so no new same-file competitor and no new charter evidence for #496 — but it is now one of four open PRs from the same author, two of them drafts.

  2. Correction to my earlier merge-order claim, verified by reading the heads: #497 does NOT contain #496's refactor. At pr/497, selene/src/disk_store.rs still has fn pump_inbound (:1673), fn pump_all (:1691) and Destination::HostPacked; a search for SharedSegment|plan_aligned_windows|DeviceInbound returns nothing. So they are independent edits of the same region, not stacked commits, and "merge #496 first, then rebase #497" costs more than a text conflict: #497's test staged_pump_all_prioritizes_inbound_ahead_of_outbound_and_maintenance (pr/497 disk_store.rs:6978, pump_all at :7061/:7072/:7081) asserts the old single-queue order and must be rewritten against #496's outbound -> host_inbound -> pump_device_inbound split. This makes #496's own pump ordering a review item, not just #497's.

  3. Sharper conflict statement with the compression PRs. #477/#486 keep the old InboundRecord (disk_store.rs:710) and #492 has InboundRecord (:975) with Destination::HostPacked (:893, :1112, :1206) plus read_into_packed/write_packed. #496 deletes Destination and every inbound path, and has no packed-host or shared-window equivalent (no HostPacked, no completed_packed at pr/496). So whichever of the three compression PRs lands after #496 must re-target v4 packed restores onto DeviceInbound/SharedWindow — a semantic port, not a textual conflict.

  4. Process picture: #477 now has an autobot Changes Requested review (2026-11-24 17:53) with three blockers; #486 and #492 were halted by Auto-Review as low value / off-charter. #496 remains the only Selene disk PR with no automated review, no labels and no CI checks at head.

Everything above is saved in scratchpad entry #6; the earlier report's findings (change description, benchmarks, disclosed 7/9-vs-8/9 at 61.3K, test counts, related work) stand unamended.

#8 [high] Amendments to issue in the final report (2026-11-24, run 236)

The next report must be presented as amendments only (the operator asked: "Output only the amendments, do not re-iterate your entire previous report"). Use these four items verbatim in substance; they replace nothing in entry #5, which stands unamended.

  1. What the new event actually is: nothing moved on #496 itself (still head f9c9191, single commit f9c91915, 0 comments, 0 reviews, no CI checks, 2 files / +2808−914). The neighbourhood moved. Three PRs opened on 2026-11-24 evening: #498 "Flush PCIe D2H tails before completion in Heliopause export downloader" (FujitsuPolycom, draft, 20:09, +259/−16, heliopause/src/export/capture.rs only), #499 "recipe-declared row-sharded prefill planning and PCIe DMA / RoCE row-shard collectives" (FujitsuPolycom, draft, 20:10, +1546/−191, 18 files, docs/TODO.txt + docs/cli-design.md, no selene/), #500 ERNIE 5.5 XML tool/think parsers + flare::pcie_all_reduce_addend_dep (voipmonitor, 20:22, +193/−209). None touches selene/ or docs/prefix-cache-offload.md, so no new same-file competitor and no new charter evidence for #496; but #496 is now one of four open PRs from FujitsuPolycom, two of them drafts started ~2h after it.

  2. Correction to the merge-order claim. #497 does NOT contain #496's refactor — verified at pr/497: selene/src/disk_store.rs still has fn pump_inbound (:1673), fn pump_all (:1691) and Destination::HostPacked (:1112); a search for SharedSegment|plan_aligned_windows|DeviceInbound returns nothing. They are independent edits of the same region, not stacked commits. So "merge #496 first, then rebase #497" costs more than a textual conflict: #497's test staged_pump_all_prioritizes_inbound_ahead_of_outbound_and_maintenance (pr/497 disk_store.rs:6978; staged.pump_all() at :7061/:7072/:7081) asserts the old single-queue order and must be rewritten against #496's outbound -> host_inbound -> pump_device_inbound split. Consequence: #496's own pump ordering is a review item in its own right, not just a rebase chore for #497 — the inbound-first ordering #497 wants is two queues after #496.

  3. Sharper conflict statement with the compression PRs. #477 and #486 keep the old InboundRecord (selene/src/disk_store.rs:710); #492 has InboundRecord (:975) plus Destination::HostPacked (:893, :1112, :1206) and read_into_packed/write_packed. #496 deletes Destination outright, rewrites every inbound path, and has no packed-host or shared-window equivalent (no HostPacked, no completed_packed at pr/496). Whichever compression PR lands after #496 must therefore re-target v4 packed restores onto DeviceInbound/SharedWindow — a semantic port, not a textual conflict. This supersedes the softer "a textual conflict in the same file is likely" wording in entry #4.

  4. Process picture around it: #477 now has an autobot Changes Requested review (2026-11-24 17:53) with three blockers (container images stop building because selene/native/ is not shipped; multi-host ranks cannot start with compression on because the single-use decoder is bound twice; recovery deletes intact raw records). #486 and #492 were halted by Auto-Review as "low value or does not align with the project charter". #496 remains the only Selene disk PR with no automated review, no labels and no CI at head — so the review gap is now conspicuous rather than merely early.

#11 [high] Amendment 2026-11-25 run 238: #496 head moved to 0c04b1e2, autobot review landed, blocker answered

Event since run 237: PR #496 moved. This is the first real movement on #496 itself.

New state (read_item 496, updated 2026-11-25 02:41):

Blocker B1 (61.3K retrieval): the 8/9-vs-7/9 disclosure is gone from the description and replaced by a 5-repeat seed-controlled parity check: one shared 60,534-token disk checkpoint, seeds 1234..1238, top_logprobs=5, main c0c4f798 vs 0c04b1e2 → identical FP32 top-5 logprobs and token IDs, per-seed retrieval scores 6/9==6/9, 8/9==8/9, 7/9==7/9, 9/9==9/9, 4/9==4/9. Mechanism claimed and independently verified by me in main: helios/src/model.rs:230-234 rejects temperature == 0 ("unsupported because greedy decoding incorrectly collapses..."), and helios/src/server/request.rs:643-666 (sampling_number) clamps request values into the declared SamplingRange; helios/src/server/config.rs:789 asserts temperature 0 → 0.5 for a 0.5..1.5 range. So the original "temperature=0" check was never greedy — it ran at the clamped positive temperature, i.e. the 8/9 vs 7/9 gap was sampling noise plus differing prompt nonces, not a coalescing bug. Also added unit test misaligned_follower_attaching_to_shared_partial_tail_and_row_matches_private_restore (selene/src/disk_store.rs:8909-9105) which is exactly the site the review named: leader skip_pages=0 vs follower skip_pages=13, partial <64-page ancestor tail + partial leaf chunk with row=true, compared byte-for-byte against a private single-restore baseline store; asserts disk_opens()==3 (parent reopened for B's unaligned head), coalesced_windows()==2.

Residual on B1: the review asked to "report variance and the differing fact"; the response reports per-seed variance and re-explains the mismatch as nonces+sampling but never names which fact differed; the parity result is 1 model / 1 checkpoint / 1 prompt / TP1 / 5 seeds, i.e. a per-seed match, not a statistical claim.

#12 [high] Amendment run 238: how 0c04b1e2 answers the autobot should-fix items (and what it only half-fixes)

Verified at head 0c04b1e2 (selene/src/disk_store.rs line numbers at head):

Met:

Only half-met / still open:

#13 [high] Amendment run 238: neighbourhood moved — #498/#499 merged, #504 is a new same-file competitor carrying the packed path

Corrections to the run-237 related-work picture:

  1. #498 and #499 are no longer open — they merged. search_items with state=merged returns "#498 pull request (merged) Flush PCIe D2H tails before completion in Heliopause export downloader" and "#499 pull request (merged) feat(ignition): add recipe-declared row-sharded prefill planning and PCIe DMA / RoCE row-shard collectives", both by FujitsuPolycom. search_history main confirms the merge commits 040f39ff (#498) and d0adb958 (#499) are in main, and main's tip is now 84ac035c ("Remove --collective-tuning..." Luke Alonso). So the run-237 statement "#496 is now one of four open PRs from the same author" is out of date: #496 and #497 are the author's only open Selene items, and #496's rebase base c0c4f798 is already behind main again (three main-side commits since: 040f39ff, d3aa/3aa74200 #491, 6426cfc0, 84ac035c — none in selene/ or docs/prefix-cache-offload.md, so still no semantic conflict, only a stale base and a stale benchmark reference).

  2. NEW same-file competitor: #504 "selene, helios, ignition, heliopause: add pure-CUDA GPU and CPU lossless KV compression" (yatesdr, COLLABORATOR, draft, opened 2026-11-25 00:00, head a187bca, +20004/−706, 146 files). items_touching selene/src/disk_store.rs and items_touching docs/prefix-cache-offload.md both list it. This overturns the run-237 finding "no new same-file competitor". At pr/504 selene/src/disk_store.rs still has the pre-#496 shape: enum Destination (:881) with Destination::HostPacked (:1112, :1206), struct InboundRecord (:975), fn pump_inbound (:1673), fn pump_all (:1691), pub fn read_into_packed (:1502), pub fn read_into (:1551) — and NO SharedSegment/DeviceInbound/WindowKey. It also grew Header.packed: Option<Arc<packed::Layout>> (selene/src/shared/record.rs:126) and includes packed in Header's PartialEq (:145). That last point is a concrete, new #496-specific defect risk: #496's HeaderIdentity::hash (selene/src/disk_store.rs:1014-1049) destructures Header field-by-field and hashes exactly the fields Header::eq compares as of main today. Once any compression PR lands, Header gains packed, eq compares it, and #496's hand-written Hash silently omits it — two headers differing only in packed collide into one SegmentKey, i.e. a packed and a raw record of the same path/chain could be treated as the same shared segment. #496 also has no read_into_packed/HostPacked equivalent, so #504's packed disk restores have nowhere to live on DeviceInbound/SharedWindow. This is the sharpened version of the run-236/#496 finding 3 claim, now with a named PR and a named failure mode. #504 itself got an autobot Changes Requested review (2026-11-25 03:28) with 3 blockers, 5+ should-fix and 10 nits, including "stop pruning readable records" and a wrong GKV1 protocol spec — i.e. it is nowhere near merge, but it is the largest open consumer of the code #496 rewrites.

  3. #497 also moved and is now reviewed: force-pushed to cd5a366b (+1400/−119), autobot Changes Requested (2026-11-24 21:36), author response at 02:41. Two points that change what the next report should say about merge order:

    • #497's pump_all is no longer a plain reorder: it keeps maintenance first but bounded — MAINTENANCE_DEFER_LIMIT = 8 (:66), maintenance_deferred field (:1019), and pump_all (:1212-1243) submits maintenance only when the counter reaches the limit, then inbound (sorted JobIds), then outbound, then drains maintenance while queue space remains, resetting the counter whenever it submitted. So the reconciliation with #496's pump_all (selene/src/disk_store.rs:2291-2312 at #496 head: maintenance unbounded → outbound → host_inbound → device_inbound) is a three-way merge of policy, not just moving two calls ahead.
    • #497 still has the un-unified planner: fn plan_windows(segments: impl IntoIterator<Item = (u32, usize, bool)>) + WindowPlan at pr/497:671, called at :1101/:1369/:5178/:5201/:5204/:5207/:5208. After #496's plan_windows(segments, align_to_window), every one of those 7 call sites needs the new argument — so the "whichever merges second reconciles pump_all" sentence in both descriptions understates the rebase: it is pump policy plus the planner signature plus staged_pump_all_prioritizes_inbound_ahead_of_outbound_and_maintenance (pr/497:7003, still written against the single-queue shape).

#14 [high] FINAL amendment text for run 238 report (output = amendments only)

Report must be amendments only (operator instruction). Carry these, superseding the corresponding run-237 findings (#10) and run-236 (#8).

A1. #496 itself moved for the first time. head f9c91915 → 0c04b1e2 (rebased onto main c0c4f798, force-pushed, same commit subject "Coalesce shared ancestor reads across concurrent Selene disk fetches"). Files 2 → 3, +2808/−914 → +3358/−933: docs/prefix-cache-offload.md (+35/−2), selene/src/disk_store.rs (+3313/−931), and NEW selene/src/shard.rs (+10/−0). Comments 0 → 3. The "0 comments / 0 reviews / no CI / review gap conspicuous" findings (#10 finding 5, #8 item 4) are RETIRED: #496 now has an autobot review (2026-11-24 21:23, Changes Requested) that explicitly endorses the approach ("belongs in the repo — a measured, served-workload win with no new flags, no format change, failure isolation preserved, and the shared-window lifetime work holds up"), plus an author response (2026-11-25 02:41). Review structure: 1 blocker, 5 should-fix, 4 nits.

A2. The blocker (61.3K retrieval) is answered, and the answer holds up. The disclosed 8/9-vs-7/9 dip is gone from the description, replaced by a seed-controlled parity run: one shared 60,534-token disk checkpoint, seeds 1234–1238, top_logprobs=5, main (c0c4f798) vs 0c04b1e2 → identical FP32 top-5 logprobs and token IDs, per-seed scores 6/9, 8/9, 7/9, 9/9, 4/9 matching on both builds. Premise independently verified by me: helios/src/model.rs:230-234 rejects temperature == 0 ("unsupported because greedy decoding incorrectly collapses...") and helios/src/server/request.rs:643-666 (sampling_number) clamps into the declared SamplingRange (helios/src/server/config.rs:789 asserts 0 → 0.5 for a 0.5..1.5 range). So the original "temperature=0" check was never greedy — the old gap was sampling noise plus differing per-build prompt nonces, not a coalescing bug. The review's named suspect site got a dedicated unit test: misaligned_follower_attaching_to_shared_partial_tail_and_row_matches_private_restore (selene/src/disk_store.rs:8909-9105) — leader skip_pages=0 vs follower skip_pages=13, partial <64-page ancestor tail plus partial leaf chunk with row=true, byte-compared against a private single-restore baseline store; asserts disk_opens()==3 (parent reopened for the follower's unaligned head) and coalesced_windows()==2. Residual: parity is 1 model / 1 checkpoint / 1 prompt / TP1 / 5 seeds, and the "differing fact" the review asked to name is never named.

A3. Should-fix items: 4 of 5 met at head, 2 items only half-met. Met: plan_aligned_windows folded back into one plan_windows(segments, align_to_window) (:679-727, device fetch true at :1349 region / read_into false at :1349); WindowKey/SegmentKey/HeaderIdentity(Arc<Header>) + O(1) window_index: HashMap<WindowKey, SharedWindowId> (:1001-1060, :1229) and HashMap<WindowKey, usize> demand counts; has_window_credit (:1683) and attach_pending (:1711) extracted, Pass 2/Pass 4 both call them; module doc rewritten (:14-27 — no longer "at most WINDOWS_IN_FLIGHT windows" / "Nothing here waits") and Resources::allocate's rustdoc restored above allocate with a separate doc line on free_slots (:236-243); plan_aligned_windows/PlanState/allow(dead_code) are gone from the file. Docs §2.4 now carries the real signatures (matching code at :1308 write_from / :1334 read_into), WINDOW_PAGES file-boundary alignment, immutable+pinned+close-before-Fetched, both coalescing limits, failure-isolation scope and physical-rate/logical-bytes (docs:337-366), repeated again at docs:1528-1532 (§4). Benchmarks re-measured at head, 27B rows means over 2 interleaved repeats, and the single-restore cost restated as an expected bound naming build_pending_demand's device_inbound.len() <= 1 fast path. Half-met: (i) Staged::close still reports "{abandoned} disk transport jobs did not complete" where abandoned = store_jobs.max(internal) and internal = max(owners.len, maintenance.len, shared_segments.len, shared_windows.len) (selene/src/disk_store.rs:2513-2544) — message unchanged, and a max over heterogeneous quantities cannot be used to diagnose; (ii) the §2.4 rewrite is one ~30-line unbroken paragraph plus a §4 duplicate, so completeness improved while readability regressed. Nits not taken: GatedCopier::wrap still returns a positional 4-tuple (type GatedCopierParts = (SharedCopier, Arc<Mutex<bool>>, Arc<Mutex<VecDeque<Reply>>>, Arc<Mutex<Option<JobId>>>)).

A4. New same-file competitor, and a concrete hazard it exposes. items_touching selene/src/disk_store.rs now lists #504 "selene, helios, ignition, heliopause: add pure-CUDA GPU and CPU lossless KV compression" (yatesdr, COLLABORATOR, draft, opened 2026-11-25 00:00, head a187bca, +20004/−706, 146 files) — retracting #10's "no new same-file competitor". At pr/504 selene/src/disk_store.rs still has the pre-#496 shape: Destination::HostPacked (:1112, :1206), InboundRecord (:975), pump_inbound (:1673), pump_all (:1691), read_into_packed (:1502) — and no SharedSegment/DeviceInbound/WindowKey. Worse than a textual conflict: #504 adds Header.packed: Option<Arc<packed::Layout>> (selene/src/shared/record.rs:126) and compares it in Header::eq (:145), while #496's hand-written HeaderIdentity::hash (selene/src/disk_store.rs:1014-1049) destructures Header field-by-field and hashes exactly the fields eq compares today. After any compression PR lands, Hash silently omits packed, so two headers differing only in packed collide into one SegmentKey/WindowKey — a packed and a raw record could share one staging segment. And #496 has no packed-host equivalent, so #504's packed disk restores have nowhere to live on DeviceInbound/SharedWindow. (#504 is far from merge: autobot Changes Requested 2026-11-25 03:28, 3 blockers including "stop pruning readable records".)

A5. Merge order with #497 is a policy three-way merge, not a call move. #497 was force-pushed to cd5a366b (+1400/−119) and now keeps maintenance first but bounded: MAINTENANCE_DEFER_LIMIT = 8 (pr/497:66), maintenance_deferred (:1019), pump_all (:1212-1243) = deferred maintenance → sorted inbound → outbound → drain maintenance while queue space remains. #496's pump_all (selene/src/disk_store.rs:2291-2312) = unbounded maintenance → outbound → host_inbound → device_inbound. So "whichever merges second reconciles pump_all" (both descriptions) is understated three ways: the bounded-deferral policy must be reconciled; staged_pump_all_prioritizes_inbound_ahead_of_outbound_and_maintenance (pr/497:7003) still asserts the single-queue shape; and #497's un-unified plan_windows(segments) (pr/497:671) has 7 call sites (:1101, :1369, :5178, :5201, :5204, :5207, :5208) that all need #496's new align_to_window argument. Also #496's rebase base c0c4f798 is stale again: main is at 84ac035c, with 040f39ff (#498), 3aa74200 (#491), 6426cfc0 and 84ac035c since — none touching selene/ or docs/prefix-cache-offload.md, so no semantic conflict, but the base and the benchmark's "main" reference are both behind.

A6. Neighbourhood correction. #498 and #499 are MERGED (search_items merged; merge commits 040f39ff and d0adb958 in search_history main), so #496 and #497 are now the author's only open Selene PRs — retracting #10's "one of four open PRs from the same author, two of them drafts". #500 (voipmonitor) remains open and unrelated (ERNIE XML/think parsers + flare::pcie_all_reduce_addend_dep). No charter evidence has appeared for #496 in any of these. Against the charter: "bring real evidence … benchmarks showing an actual speedup over main on a served workload (#210)" is now satisfied better than before (head-commit, repeated, served-workload TTFT), and the sign-off-requiring non-goals (broad production coverage, rack-scale/disaggregation) are not engaged. #496 remains the only one of the five Selene disk PRs whose autobot verdict starts from "the approach belongs in the repo".

Benchmark numbers to quote (from the refreshed description; I verified internal consistency only): 27B TP1 60.5K simultaneous 18,177.5 → 4,306.7 MB (4.22x), TTFT 7,974.6 → 5,662.8 ms (−29.0%); +25 ms stagger 18,194.2 → 4,843.6 MB (3.76x), 6,883.6 → 5,951.9 ms (−13.5%); Flash-Next TP1 61.0K simultaneous 7,944.9 → 1,981.1 MB (3.99x), 3,327.5 → 3,225.0 ms (−3.1%); stagger 7,958.0 → 2,251.5 MB (3.52x), 3,137.7 → 3,049.9 ms (−2.8%). Rank-0 physical inbound rate 6.07 GB/s single vs 7.71 GB/s 8-way simultaneous, 6.02 GB/s 8-way staggered (27B); bytes_in logical, 8x single. Tests at head: 476 Linux selene, 13 Windows IOCP, 21 single-GPU SM121 helios offload::, test_core_boundary.py. Still not covered: multi-host RoCE serving, 2-GPU split_pools, discrete PCIe GPUs, Windows serving, live CompositeStore/PooledStore GPU serving.

Coverage this run (every orientation lead followed): PR description (changed), comments/reviews (3, changed), commits (new head), files (3, changed), same-file competitors (#504 new; #497/#477/#486/#492 still open), history (main tip 84ac035c; #498/#499 merged), charter (re-read, no new non-goal engaged), and the run-236 #498 lead followed to completion — now merged into main and still not touching the Selene restore path, so still not relevant to #496.

Also worth one line: selene/src/shard.rs became a changed file this run (+10/−0, three hunks). I checked all three: Kind::of gets an unreachable! arm for InboundWindowSample (:476-478) and absorb_local re-queues those events instead of forwarding (:722-725), so rank 0 keeps its rate samples and peers drop them (:1148-1150 in Peer::forward). Consistent with the description; no defect found in the new file. Note the unreachable! guard depends on absorb_local/Peer::forward filtering first — any future caller of Kind::of on a raw TransportEvent stream would panic rather than mishandle a sample.

#16 [high] Amendment 2026-11-25 run 363: second autobot review on unchanged head 0c04b1e2 — no blocker, five new should-fix

NEW EVENT (the only one): a second flare-autobot review comment, 2026-11-25 05:23 UTC, on PR #496 at the SAME head 0c04b1e2. No new commits (read_item 496: head 0c04b1e2, +3358 -933, 3 files, updated 2026-11-25 05:23). Also a repeat "case file opened" comment at 2026-11-25 04:33 with a NEW intake-report URL (a894fb21-…, vs 542f7809-… in the run-238 review round).

Review round 2 verdict:

So the shape of the PR changed from "one blocker + tidying" to "no blocker + five should-fix". That is an improvement in merge readiness, and it means my previous report's "the review's one blocker" framing is now superseded: there is no open blocker at all on #496.

#17 [high] Verified: new S1 (InboundWindowSample on the completion enum) is real AND the S1 fix created a progress-counter asymmetry

Round-2 should-fix #1 ("Take the rate sample off the cross-rank completion enum") — VERIFIED at head 0c04b1e2, all citations exact:

ASYMMETRY THE REVIEW DOES NOT NAME (mine, verified): DiskStore::apply (selene/src/disk_store.rs:3630-3636) special-cases the sample and RETURNS EARLY before self.stats.progress += 1:

pub fn apply(&mut self, event: TransportEvent, events: &mut Vec<StoreEvent>) {
    if let TransportEvent::InboundWindowSample { bytes, elapsed } = event {
        self.inbound_rate.observe(bytes, elapsed);
        return;
    }
    self.stats.progress += 1;

So the disk store's own accounting deliberately treats a window sample as NOT progress, while the composite path it is forwarded to counts it as progress. The S1 metering fix (added in 0c04b1e2 to satisfy round-1 review) inserted a non-completion into a completion channel, and the two consumers now disagree about what progress means. progress is documented as "Completion and capacity-release events, including host pins and shared disk budget" (selene/src/store.rs:201-202) — a bandwidth sample is neither. Also: StoreStats.inbound_rate is not refreshed by the early return on the disk path, but CompositeStore::streamed_event only copies inbound_rate across when after.fetched > before.fetched (selene/src/composite.rs:324-326) — and streamed_event is reached for the sample only through the other => arm at :1384. So the composite's inbound_rate still does get updated (via disk.apply mutating the disk's own rate, read in stats() at :1435), which is fine — the defect is confined to progress/maintenance frequency. Severity: real but non-blocking; it is a per-window amplification of maintenance work during exactly the concurrent-restore burst this PR optimises for, i.e. it taxes the PR's own headline scenario. No test covers poll-frequency under coalescing.

#18 [high] Verified: HeaderIdentity::hash drift risk is real and structural — the .. exists because Header.version is private

Round-2 should-fix #2 ("Move HeaderIdentity's hand-written Hash next to the equality it tracks") — VERIFIED at head 0c04b1e2:

#21 [high] Verified: design sign-off item is the only survivor of both review rounds; AGENTS.md:204-206 says routine approval is not the decision

Round-2 should-fix #5 ("Get the design decision recorded") — this is the SURVIVOR from round 1 (round-1 SF5b: "get recorded maintainer sign-off for putting a second inbound lifecycle inside Staged rather than in the disk thread that already owns the handle"). VERIFIED:

#22 [high] Neighbourhood run 363: #504 MERGED with Header.packed in PartialEq (live hash-collision), #477/#486/#492 closed, #497 now Ready To Merge

NEIGHBOURHOOD MOVED SINCE RUN 238 — this is now the most material change around #496, bigger than the review itself.

  1. #504 is MERGED (2026-11-25 18:22, head d1b90d7, +20519 -785, 152 files, by yatesdr). It is no longer a "draft competitor" — it is main. My run-238 note #13 described it as an open draft; that is now wrong.

    • #504 reshapes exactly the structures #496 rewrites: selene/src/disk_store.rs gains Source::HostPacked (:273), Destination::HostPacked (:949-961), read_into_packed (:1576), InboundRecord::new(vec![segment], Destination::HostPacked, vec![plan]) (:1613), plan_windows(segments) -> Vec<WindowPlan> (:1001) — the single-arg signature.
    • Header.packed: Option<Arc<packed::Layout>> is a NEW field (selene/src/shared/record.rs:127 on #504) and it is INCLUDED in Header's PartialEq (:146, the first compared field). Header.version stays private and excluded.
    • Therefore the round-2 review's hash concern is not hypothetical — it is already true on main. #496's HeaderIdentity::hash (disk_store.rs:1014-1050) destructures a fixed 13-field list with .., so it hashes neither packed nor anything added later. After a rebase, two records that differ ONLY in packed are != under Header::eq but hash identically, so they land in the same WindowKey/SegmentKey bucket and, if they also agree on path+first+count+row, coalesce onto one shared window — one restore uploads another record's bytes. HeaderIdentity exists ONLY in #496 (grep on main and on d1b90d7 returns nothing), so this defect arrives with #496 and cannot be caught by any test currently on main.
    • Corollary: any rebase of #496 onto post-#504 main is a semantic conflict in Destination/Source/InboundRecord, not just a textual one. #496 splits the inbound path by destination; #504 adds a third destination. The rebase must decide whether HostPacked participates in window coalescing (it is a contiguous packed payload — coalescing windows across it is probably wrong) — that decision is unstated by #496.
  2. #477, #486, #492 are CLOSED (not merged). Run 238's report listed them as open competitors "carrying the packed path". They no longer threaten #496 on their own; #504 superseded them. My run-238 amendments over-weighted them.

  3. #497 is unchanged since run 238 — still open, still head cd5a366b, still +1400/-119, and its round-2 review at 2026-11-25 05:54 is now "Recommendation: Ready To Merge" with "No blockers" and only 3 should-fix (evidence hygiene + plumbing). Its pump_all (selene/src/disk_store.rs:1212-1217 at pr/497) adds MAINTENANCE_DEFER_LIMIT = 8 (:66) and maintenance_deferred. Crucially, #497's tree has NO MAINTENANCE_DEFER_LIMIT, no Destination, no InboundRecord — grep at pr/497 for Destination|read_into_packed|InboundRecord returns nothing, and plan_windows there is single-arg. So #497 is a genuinely independent branch and the two are still mergeable in either order, as both descriptions claim.

  4. Already merged and relevant as background: #498 (d0adb958/040f39ff) and #499 (d0adb958) are in main per search_history; #415, #429, #413, #337, #343, #355, #336, #142, #168 all merged earlier. items_touching selene/src/disk_store.rs current list: #497 open, #496 open, #504 merged, then a tail of merged history. So after #504 merged, #496 and #497 are the only open PRs on this file.

#23 [high] #496 now needs a real rebase: plan_windows arity, Destination/Source HostPacked 3rd variant, and the §2.4 paragraph #504 also rewrote

CONFIRMED REBASE SURFACE between #496 (head 0c04b1e2) and post-#504 main (d1b90d7):

#24 [high] Coverage run 363: all angles re-checked, 3 judged not relevant, 2 tool limitations worked around

COVERAGE this run (every angle re-checked):

#25 [high] FINAL amendment text run 363 (output = amendments only): A1-A8

FINAL AMENDMENT TEXT (output = amendments only, do not re-iterate the run-362 report).


A1. The review's blocker is gone; the PR is now "no blocker, five should-fix". A second flare-autobot review landed 2026-11-25 05:23 UTC on the same head 0c04b1e2 (no new commits, still +3358/−933, 3 files). It supersedes the 21:23 review I reported. Recommendation is still Changes Requested, but Blockers: None — the 61.3K retrieval blocker is formally closed, confirming the author's 02:41 answer was accepted. All five should-fix items are new, and I verified each against source: (1) InboundWindowSample polluting the completion enum, (2) HeaderIdentity's hand-written hash, (3) record_slots restated by hand, (4) the §2.4 paragraph plus the duplicated metrics contract, (5) design sign-off. All five are accurate; none is spurious. Five nits, not itemised by the bot.

A2. Only one earlier should-fix survives, and it is the process item. Round 1's five are resolved at head with no regression. The single repeat is "Get the design decision recorded" — the author's Why paragraph is a correct technical argument but is the author justifying, not a maintainer recording a decision, and AGENTS.md:201-207 is explicit that "a commit acknowledgment or routine PR approval is not that decision". So merging #496 cannot retroactively supply the sign-off. This is now the item most likely to hold the PR.

A3. The hash concern is not hypothetical: #504 merged and it is already true on main. #504 merged 2026-11-25 18:22 (head d1b90d7, +20519/−785) and adds Header.packed: Option<Arc<packed::Layout>>, which is included in Header's PartialEq (selene/src/shared/record.rs:127, :146). #496's HeaderIdentity::hash (selene/src/disk_store.rs:1014-1050) destructures a fixed field list with a .. rest arm, so it hashes neither packed nor anything added later. After a rebase, two records differing only in packed compare unequal yet hash identically, collide into one WindowKey/SegmentKey, and one restore uploads another record's bytes — silently, since no test guards hash/eq agreement (I checked: none exists). HeaderIdentity exists only in #496, so this arrives with this PR and cannot be caught by today's main. Two corrections to the review's own advice: it says "14 fields" but 13 are hashed (the 14th is the rest arm), and its option "give Header a Hash impl" is not a clean derive — version is private and excluded from PartialEq, so a derive would hash it and break the eq/hash agreement it is meant to protect. Hashing only PrefixKey is the sound choice, and that is also why the .. is structural rather than untidy: Header.version is private to another module, so disk_store.rs cannot name every field.

A4. New finding the review does not name — the rate-sample fix made two consumers disagree about progress. DiskStore::apply (selene/src/disk_store.rs:3630-3636) special-cases the window sample and returns before self.stats.progress += 1, so the disk store treats a bandwidth sample as not-progress. But CompositeStore::poll (selene/src/composite.rs:1374-1386) increments self.stats.progress for every transport event ahead of its match, so the composite counts the same sample as progress — and :1418-1428 re-runs spill_parked(...) plus disk.maintain() whenever progress moves. Net effect: one full maintenance pass per physical staging window during exactly the concurrent-restore burst this PR exists to speed up, plus StoreStats.progress inflated by a quantity that selene/src/store.rs:201-202 defines as "Completion and capacity-release events". This is a consequence of the fix the author added for round 1, not of the original design, and no test covers poll frequency under coalescing.

A5. Neighbourhood, rewritten. #504 is merged, so it is main rather than a competitor; the closed #477, #486 and #492 are superseded by it and should be dropped from the related-items list. #497 is unchanged at cd5a366b and its own 05:54 review is now Ready To Merge / no blockers, and it still has no Destination, no InboundRecord and a single-argument plan_windows — so the two-doors-open claim in both descriptions still holds. #496 and #497 remain the only open PRs touching selene/src/disk_store.rs.

A6. #496 can no longer be called a clean 3-file merge — post-#504 it needs a real rebase plus one unstated decision. Three concrete collisions, verified: (i) plan_windows is two-argument at #496's head (selene/src/disk_store.rs:682-685) and one-argument on post-#504 main, and #504 also restructured its pages == 0 branch; (ii) #504 adds a third Destination::HostPacked and Source::HostPacked, while #496's whole restructuring is a two-way host_inbound/device_inbound split — the rebase must decide whether a contiguous packed payload participates in window coalescing, and #496 says nothing about it; (iii) #504 moved and edited the same §2.4 paragraph #496 rewrites, and it re-states the stale write_from(key, metadata, buffers) / read_into(key, buffers) signatures there, so the paragraph #496 is fixing is now wrong on main in a second way.

A7. Unchanged from my last report, and still worth carrying. pump_all (selene/src/disk_store.rs:2291-2312) still drains maintenance.front() first and unbounded, so #496 ships no inbound-before-maintenance ordering — that is #497's MAINTENANCE_DEFER_LIMIT, not this PR's. And Staged::close still reports abandoned = store_jobs.max(internal) into "{abandoned} disk transport jobs did not complete" (:2513-2545); including shared_segments/shared_windows satisfied the reviewer's wording but a .max() of two heterogeneous counts cannot total them, and a leaked window is still reported as leaked jobs. Round 2 demoted this to a nit, so it will probably ride in.

A8. Coverage and one correction to the bot's own text. Every angle was re-checked: head/state, all five should-fix items, all five round-1 items for regression, the nits, pump_all, the hash/eq test gap, benchmarks, and the neighbourhood. Judged not relevant: #498/#499 (merged earlier, collective/offload paths, not disk-store coalescing), the 04:33 case-file and intake-report comments (infrastructure notices carrying no claim about the code; I did not fetch the external URLs), and the closed compression PRs (#504 supersedes them). One correction: the review cites "AGENTS.md:204-206 (not opened)" — I did open it, and AGENTS.md:201-207 is the decisive text for A2 ("a commit acknowledgment or routine PR approval is not that decision"), so the "(not opened)" caveat should not be carried forward. Equally, the review states it had no toolchain, GPU or test run; that limits it to source reading, which matches everything I verified above — the five items are all source-visible, and none of them rests on a runtime measurement.

#26 [high] Research summary

Amendments only (head unchanged at 0c04b1e2; no new commits). Full text in scratchpad entry #25.

A1. The blocker is gone; it is now "no blocker, five should-fix". A second autobot review landed 2026-11-25 05:23 on the same head 0c04b1e2. It supersedes the 21:23 review I reported: recommendation still Changes Requested but Blockers: None, formally closing the 61.3K retrieval blocker and confirming the author's 02:41 answer was accepted. All five should-fix items are new, and I verified each against source — all accurate, none spurious: InboundWindowSample in the completion enum; HeaderIdentity's hand-written hash; record_slots restated by hand; the §2.4 paragraph plus duplicated metrics contract; design sign-off. Five nits, not itemised.

A2. One earlier should-fix survives — the process item. Round 1's five are resolved with no regression. The repeat is "get the design decision recorded": the author's Why is a correct technical argument but is the author justifying, and AGENTS.md:201-207 says "a commit acknowledgment or routine PR approval is not that decision" — so merging cannot retroactively supply sign-off. This is now the likeliest hold.

A3. The hash concern is already true on main: #504 merged 18:22 (head d1b90d7) and adds Header.packed, included in Header's PartialEq (shared/record.rs:127,146). #496's HeaderIdentity::hash (disk_store.rs:1014-1050) destructures a fixed field list with a .. rest arm, so after a rebase two records differing only in packed compare unequal yet hash identically, collide into one WindowKey, and one restore uploads another record's bytes — silently; no test guards hash/eq agreement. Two corrections to the review: it says "14 fields" but 13 are hashed, and its "give Header a Hash impl" is not a clean derive — version is private and excluded from PartialEq, so a derive would hash it and break the very agreement it protects. Hashing only PrefixKey is sound, and the .. is structural, not untidy: version is private to another module.

A4. New, not named by the review — the rate-sample fix split progress between two consumers. DiskStore::apply (:3630-3636) returns before progress += 1, so the disk store treats a bandwidth sample as not-progress; CompositeStore::poll (composite.rs:1374-1386) increments progress for every event ahead of its match, and :1418-1428 re-runs spill_parked + disk.maintain() whenever progress moves. Net: one maintenance pass per physical staging window during exactly the burst this PR optimises, plus progress inflated by a quantity store.rs:201-202 defines as completion/capacity events.

A5. Neighbourhood, rewritten. #504 is merged, not a competitor; #477/#486/#492 are closed and superseded — drop them from related items. #497 is unchanged at cd5a366b with its own review now Ready To Merge / no blockers, and it still has no Destination, no InboundRecord and a single-arg plan_windows, so the either-order claim still holds.

A6. #496 is no longer a clean 3-file merge. Three verified collisions: plan_windows is two-arg at #496's head (:682-685) vs one-arg post-#504; #504 adds a third Destination::HostPacked/Source::HostPacked against #496's two-way split, and the rebase must decide whether a contiguous packed payload participates in coalescing — unstated by #496; and #504 edited the same §2.4 paragraph #496 rewrites, re-stating the stale signatures there.

A7. Unchanged and still worth carrying. pump_all (:2291-2312) still drains maintenance first and unbounded — that ordering is #497's, not this PR's — and Staged::close still reports abandoned = store_jobs.max(internal) as "disk transport jobs"; a .max() of heterogeneous counts cannot total them and a leaked window is still reported as a leaked job. Round 2 demoted this to a nit.

A8. Coverage and one correction. All angles re-checked. Not relevant: #498/#499 (merged, collective paths), the 04:33 case-file/intake comments (infrastructure notices carrying no claim about the code; external URLs not fetched), and the closed compression PRs. Correction: the review cites "AGENTS.md:204-206 (not opened)" — I opened it, and AGENTS.md:201-207 is decisive for A2, so that caveat should not be carried forward. The review's own no-toolchain limitation is not material: all five items are source-visible and none rests on a measurement.

#27 [high] Strike-list: statements in the run-362 report (entry #15) now superseded vs still standing

The run-362 report is entry #15. This note lists exactly which of its statements the amendments (entry #25) supersede, so the writer can strike them rather than leave contradictions.

STRIKE / SUPERSEDE:

  1. "an autobot review (2026-11-24 21:23, Changes Requested) plus an author response" — there are now TWO reviews. The second (2026-11-25 05:23) is the live one: same head 0c04b1e2, Changes Requested but Blockers: None, five new should-fix items. The 21:23 review is history that the author answered at 02:41.
  2. "its one blocker was that the description's own 61.3K retrieval check showed 8/9 vs 7/9" and the whole blocker narrative — closed by the reviewer, not merely answered by the author. Do not present an open blocker.
  3. "Four of five should-fix items are met at head" — the reviewer's round-2 framing is that all round-1 items are resolved; the survivor is the process item only (now promoted to its own bullet).
  4. Related items block: #504 (open, draft) is now #504 (merged 2026-11-25 18:22, head d1b90d7, +20519/−785). #477, #486, #492 are closed, superseded by #504. #497 is still open at cd5a366b but its own 05:54 review is Ready To Merge / no blockers. The line "#498/#499 merged, so this and #497 are the author's only open Selene PRs" remains correct.
  5. "the 'differing fact' the review asked to be named never is" — soften/withdraw. The description now does name it ("cross-seed score variation reflects positive-temperature sampling, as helios clamps request temperature into the core's positive sampling range and Flare does not support greedy temperature = 0"), and the reviewer accepted it by closing the blocker.
  6. "#496 ships no inbound-before-maintenance ordering" — still TRUE and still worth keeping (A7), but keep it attached to #497 as the owning PR rather than as a defect of #496.
  7. "a clean 3-file change" as an implicit framing — supersede: post-#504 it needs a real rebase plus one unstated design decision (A6, entry #23).

CONFIRM (unchanged, do not let the writer think they moved):

#29 [high] Amendment run 765: #496 rebased to cb3db468, all 5 round-2 items fixed, #504 packed coalescing ported — strike-list of prior amendments

HEAD MOVED. #496 head is now cb3db4681a7576f77bf41319e6c30e82737142f4 (single commit, 2026-11-26, "Coalesce shared ancestor reads across concurrent Selene disk fetches"), rebased onto main 6d74db3a (post-#504/#523/#524). Files 5, +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). PR description rewritten; author comment 2026-11-27 06:01 claims all Round-2 SFs + nits addressed. No new autobot review at cb3db468: the last review is the 2026-11-25 19:26 "Ready To Merge / no blockers / 5 should-fix / 10 nits" on 0c04b1e2 — so that verdict is STALE relative to the new head (it judged code that no longer exists). No labels, no CI checks at head.

STRIKE these from my run-363 amendments (entry #25 A1–A8) as superseded:

#30 [high] Verified fixes at cb3db468: SF1–SF4 in source, with line citations; SF5 (sign-off) still open

SF1 (rate sample off the completion enum) — FIXED. TransportEvent (disk_store.rs:84-106) is back to 5 variants, every one carrying id: JobId (Stored/StoreInvalidated/Fetched/Truncated/Unlinked); no InboundWindowSample anywhere in the tree, and the two unreachable!("window rate samples stay local…") arms are gone (the only remaining unreachable!s are Source::HostPacked at :891 and test code :5128). New out-of-band path: DiskTransport::drain_inbound_samples(&mut Vec<(u64, Duration)>) default no-op (:149-150); Staged buffers into inbound_samples (:1663, pushed at :2149 only when a shared window finishes Reading with read_bytes>0) and drains (:3165-3167); Sharded forwards on rank 0 and discards when poisoned (shard.rs:1005-1011); Peer::forward discards peers' samples (shard.rs:1210-1213); DiskStore::observe_inbound_samples (:3649-3655) called from poll_transport (:3659-3663), poll (:4640) and close (:4678). Consequence: CompositeStore::poll (composite.rs:1474) no longer bumps stats.progress/re-runs spill_parked+disk.maintain once per physical window — my run-363 A4 finding is CLOSED. DiskStore::apply (:4409-4410) now increments progress unconditionally, no special case. SF2 (Hash beside equality) — FIXED. impl Hash for Header in shared/record.rs:165-202 with an exhaustive destructure that names version: _ and comments that it is omitted because PartialEq ignores it; Eq+Hash for packed::Layout with exhaustive destructures over Layout/PackedOffer/PackedUnit (shared/packed.rs:99-141); RankSizes derives Hash (record.rs:96); HeaderIdentity::hash delegates to self.0.hash (:1452-1456) keeping the Arc::ptr_eq eq fast path (:1444-1448). Test header_eq_implies_same_hash (record.rs:2228-2305) pins version-insensitivity, a created difference, packed=Some vs None, and two equal packed layouts. My earlier correction (a derive would be wrong because version is private and excluded from PartialEq) was the right shape and is what shipped. SF3 (record_slots) — FIXED. pick_next_pending_plan hoists the transfers lock once and calls layout.record_slots(plan.count, plan.row) for raw windows, skipping the test for packed (if !packed && layout.record_slots(...) > free, disk_store.rs:2307, :2320). Hand-written pages + row_slots is gone. SF4 (docs) — FIXED. docs/prefix-cache-offload.md:418-448 is now mechanism sentence + 3 short sub-bullets (shared opens/aligned WINDOW_PAGES windows across raw v1–v3 slots and v4 ReadPacked buffers; immutable+pinned invariant and last-user close-before-Fetched; limits and failure scope) and the metrics contract is stated once in §4 (:1612-1617: bytes_in logical, inbound_rate rank-0 physical, CompositeStore.disk_inbound_rate end-to-end) with only a cross-reference at :447-448. SF5 (design sign-off) — STILL OPEN, and it is now the ONLY round-1/round-2 item left. AGENTS.md:201-207 unchanged ("Resolve conflicts through an explicit maintainer decision on the design … a commit acknowledgment or routine PR approval is not that decision"); the author's own closing line asks for "explicit maintainer sign-off on the Staged shared-window lifecycle".

#31 [high] Verified at cb3db468: packed ReadPacked coalescing, failure scope, #504 surface preserved, Staged::close split

THE PORT IS REAL AND STRUCTURALLY SOUND (source-verified at cb3db468):

#32 [high] New finding: exhaustive Header/packed Hash turns every WindowKey probe into O(units) hashing

NEW FINDING (source-verified, not in any review): the SF2 fix makes window-key hashing O(packed directory size).

#33 [high] Description at cb3db468: benchmark caveat (still measured at 0c04b1e2, not head), corrected ratio labels, new not-covered list

DESCRIPTION REWRITTEN (read_item 496 at cb3db468). Strikable prior claims and the new numbers:

#34 [high] Coverage run 765: neighbourhood re-checked (#497 at cf9d4c14, main 6d74db3a), what was judged not relevant, the stale-verdict caveat

NEIGHBOURHOOD / COVERAGE for this amendment pass.

#35 [high] FINAL amendment text run 765 (output = amendments only): A1–A8

FINAL AMENDMENT TEXT (output = amendments only; do not re-iterate the run-764 report, entry #28).

A1. HEAD MOVED — #496 was rebased and is effectively a new PR. Head is now cb3db468 (single commit, 2026-11-26) over main 6d74db3a, i.e. post-#504/#523/#524. 5 files, +8682/−5630 (disk_store.rs +8470/−5627, docs/prefix-cache-offload.md +38/−2, shard.rs +11/−0, shared/packed.rs +44/−0, shared/record.rs +119/−1). Strike everything 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.

A2. All five round-2 should-fix items are genuinely FIXED, each in the place the review asked for:

A3. 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.

A4. 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 (shared/packed.rs:101-141). WindowKey/SegmentKey derive Hash and are the keys of window_index (disk_store.rs:1458-1470, :1654), of the per-pump demand map (:2273-2294) and of find_reusable_window (:2185-2202); a fresh WindowKey with a cloned SegmentKey is built per plan per probe (:1613-1621, called from :2450-2452 and :2469-2490). 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 Arc::as_ptr 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.

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 (disk_store.rs:2643-2699); packed windows allocate zero SlabPool slots (:2320, :2528-2533); each follower builds its own Window::restore_pinned from layout.units(...) over the shared Arc<Vec<u8>> (:2792-2832); the buffer is released only when followers, disk refs and upload refs all reach zero (:2361-2378); decode/payload errors go through is_packed_content_error → with_record_read() → fail_window (:2174-2180) so DiskStore::apply drops the corrupt row (:4449-4455). #504's surface is preserved by rename, not duplication: HostDestination::{Slots,Packed} (:979-985), Source::HostPacked (:297, :891), write_packed/read_into_packed/completed_packed_reads/take_packed_read/codec_receive_profiles/decode_counters (:1766-1830, :2024, :160, :163, :3233-3239). InboundRecord and Destination no longer exist anywhere in selene (zero grep hits), so my run-363 A6 collision list is fully resolved, including the third-HostPacked-variant question.

A6. Description and evidence changes that supersede my earlier reporting. The 19:26 review's "Ready To Merge — no new commits since the last review — 0c04b1e2 is still head" premise is now false, so that verdict is stale, not an endorsement of cb3db468. The 27B single-restore size is now explained (2,274 MB = 472 pages at 128 tok/page + 101 MB row ⇒ 18,177.5 MB is 8x full copies), the Flash-Next ratios corrected to 4.01x/3.53x, and the arrival-order relaxation disclosed in the body and in §2.4. The benchmark table, however, is still measured at 0c04b1e2 vs c0c4f798, with the author's caveat that the raw path is identical to cb3db468 when compression is off; "rerunning the raw SM121 flare run A/B after rebasing onto 6d74db3a" is itself in the new "Not covered" list, so the head-commit-benchmark requirement is again unmet at the new head. Evidence at cb3db468: 513 passed + 1 mixed_codec_root (was 476 at 0c04b1e2), helios cargo check --features runtime-core,server, 22 pytest, 12 Windows IOCP tests + mixed_codec_root. New not-covered items to carry: live SM121 --lossless-kv-compression cpu|gpu serving (packed coalescing is unit-tested only), the post-rebase raw A/B, multi-host RoCE, 2-GPU split_pools, discrete PCIe GPUs, Windows serving, and live warm-plus-disk or PooledStore HTTP serving.

A7. Neighbourhood. #497 is now cf9d4c14, also rebased onto 6d74db3a, open, and its own last review (2026-11-25 20:33) is Ready To Merge / no blockers. Verified at pr/497: it still has InboundRecord (:1052), Destination::{Device,Host,HostPacked} (:1199-1294) and single-argument plan_windows (:1010), so #496 remains the structural rewrite and the "two doors open" claim holds — but the merge order is the reverse of what I implied before: #497 first, then rebase #496 onto that main, which both descriptions now state and which is consistent with pump_all at cb3db468:2957-2978 still having no MAINTENANCE_DEFER_LIMIT (maintenance drained first and unbounded, then outbound, host_inbound, pump_device_inbound). Main tip is 6d74db3a; #504/#523/#524 were already in before the rebase, and the newer merges (#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.

A8. Coverage this pass. Re-checked: head/commit/files, the rewritten description and the author's 2026-11-27 06:01 response 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, benchmark and evidence claims, and the neighbourhood. Judged not relevant: the ~27 merged PRs listed above (unrelated paths or already accounted for), the two autobot case-file notices, and the external review URLs (not fetched; the on-GitHub summaries were used). Tool limits: the local main snapshot predates #504, so main-side claims came from pr/497; pr_diff truncates, so disk_store.rs was verified by reading the head file. Nothing in the PR or docs attempted to direct the reviewer.

#37 [high] FINAL amendment text run 1530 (output = amendments only): A1–A8

FINAL AMENDMENT TEXT (output = amendments only; do not re-iterate the run-1529 report, entry #36).

A1. HEAD AND SHAPE CHANGED AGAIN — stop using "5 files, +8682/−5630", "head cb3db468", "disk_store.rs +8470/−5627", and "the device-inbound state machine is one ~538-line pump".

A2. The design sign-off I reported as the sole surviving blocker has been given — by yatesdr, in a review at 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 run-1529 key finding 3 and A3 item ("blocked on a decision, not on code"). Caveat to keep: that sign-off is a PR review comment, not the Design-Signed-Off-By: commit trailer docs/design-review.md:191-208 requires for every commit (the acknowledgment also means the reviewer read the staged checklist), and AGENTS.md:165 wants an explicit maintainer request for the work; so the decision is now recorded in the right form of review, and the merge commit still needs its trailer.

A3. The same review opened three new blockers, all empirically measured on GB10, and all three are fixed at ba1c73fd. Report them as fixed with the mechanism, because they supersede my "all five round-2 items fixed, nothing left but process" framing.

  1. Per-poll CPU stall on v4 packed records (my run-1529 A4, now closed). HeaderIdentity caches the digest: HeaderIdentity { header: Arc<Header>, hash: u64 }, new() runs DefaultHasher over Header::hash once (coalesce.rs:41-54), eq short-circuits self.hash == other.hash && (Arc::ptr_eq || *self.header == *other.header) (:61-66), Hash hashes only the cached u64 (:70-74); SegmentKey/WindowKey still derive (76-88), so every window probe is now O(1) instead of O(packed units). The eager demand rebuild is gone: start_new_windows starts let mut demand = None; and fills it lazily inside while self.has_window_credit(id) (coalesce.rs:831-842), and build_pending_demand returns empty when device_inbound.len() <= 1 (:669-671). yatesdr measured 1.47 ms → 9.73 ms → 49.33 ms per poll() at 8 fetches on cb3db468 (TP1/512, TP8/512, TP8/1024) versus 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. Tests: header_identity_caches_digest_and_matches_header_equality (tests.rs:465-502) and poll_at_full_window_credit_with_large_packed_header_avoids_demand_rebuild_and_rehashing (:503-615), which asserts demand_builds is unchanged across 1,000 full-credit polls (570-574). Weak point worth stating: the only latency assertion in that test is mean_us < 200.0 (:583-586) — a ~250x looser bound than the fix achieves — and the credit-regained demand pass is printed, never asserted, so a regression in per-probe hashing cost (e.g. hashing on HeaderIdentity::clone, or a Layout-walking key) would not fail any test. The exhaustive Header/packed::Layout hashes remain (record.rs:165-202, packed.rs:101-141) and are now paid once per segment per fetch in HeaderIdentity::new (coalesce.rs:406-409).
  2. inbound_rate reverted to end-to-end (this reverses my run-765/1529 reporting of the out-of-band physical sample as the settled design). Gone from the tree: DiskTransport::drain_inbound_samples, Staged::inbound_samples, DiskStore::observe_inbound_samples, Sharded::drain_inbound_samples, TransportEvent::InboundWindowSample (grep: no hits anywhere; TransportEvent is back to the five JobId-carrying variants, disk_store.rs:87-109; shard.rs left the diff). Now: DiskStore::fetch records read_nodes (segments with pages > 0 || row, :3422-3428), rode_preexisting (any live Inbound sharing a read node, :3429-3432), started = Instant::now() and logical_bytes = layout.record_bytes(chain.pages) (:3434, :3450), skipping inbound_rate.started() for followers (:3441-3443); apply observes logical_bytes over started.elapsed() (:3242-3251), and for rode_preexisting only when the observed rate is below inbound_rate.get(). Hit::estimated_seconds = bytes / inbound_rate.get() uses the same record_bytes (:3193, :3201), so units match raw and v4 packed. Docs §4 rewritten to exactly this, incl. CompositeStore.disk_inbound_rate (docs/prefix-cache-offload.md:1613-1627). Guard depends on Rate::get()'s upward-only decay toward the 3.0 GB/s seed when median < seed and started() re-arming last (selene/src/levels.rs:57-86, INITIAL_STAGED_DISK_RATE = 3e9 at store.rs:419). Five new tests: coalesced_restores_keep_inbound_rate_end_to_end_and_bytes_in_logical (tests.rs:1444), overlapping_shared_stream_tracks_slowdown_and_recovers_without_drift (:1623, daisy-chained rode_preexisting requests 1–7, asserts no upward drift to seed, mid-stream slowdown rejection, no follower inflation, ~2x recovery), leader_private_failure_with_slow_follower_updates_inbound_rate_and_rejects (:1846), packed_restore_inbound_rate_includes_decode_delay_and_worth_fetching_rejects (:1982, cfg codec, 150 ms decode delay ⇒ worth_fetching rejects), sharded_inbound_rate_reflects_end_to_end_multi_rank_wall_time (:2153, local-TCP peer with 80 ms delay).
  3. Tight-pool shared-ancestor holdback (#497 interaction). pick_next_pending_plan now computes reachable_free = free + staged_slots + outbound_slots and max_reachable_shared_demand over unstarted plans with peer_demand > 0 && needed <= reachable_free, returning a fitting lower-demand plan only when best_demand >= max_reachable_shared_demand (coalesce.rs:698-745). Tests: tight_pool_waits_for_shared_ancestor_instead_of_starting_private_tail (tests.rs:2533-2692, row_slots = 1 → 130 slots and row_slots = 8 → 144 slots, asserts Job 1 opens nothing while waiting (disk_opens == 1, disk_window_reads == 2 at the skew point, :2629-2637) and ends at disk_opens == 3, disk_window_reads == 5, coalesced_windows == 3), and tight_pool_wait_never_deadlocks_without_releasable_staged_slots (:2695-2901, external retention of 120/130 slots, then a concurrent 65-slot outbound store ⇒ coalesced_windows == 2).

A4. Submodule extraction plus the two coverage items yatesdr asked for are present: sharded_concurrent_fetches_coalesce_across_rank_zero_and_peer (tests.rs:2283, 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 via CoalesceProbeCopier, byte-exact GPU pages/rows on both ranks) and concurrent_packed_fetches_coalesce_opens_and_read_packed_windows (:2905, cfg codec). 19 named tests total in coalesce/tests.rs.

A5. Evidence and benchmarks: 522 lib + 1 mixed_codec_root (up from 513 at cb3db468), selene-manager 85 + 2, helios --features runtime-core,server check with 0 warnings, pytest 22, git merge-tree clean vs 9031847a. The Result table is now a microbenchmark (cb3db468 vs ba1c73fd), and the served-workload 27B/Flash-Next numbers are demoted to "Prior live flare run A/B … c0c4f798 vs 0c04b1e2" — i.e. still not re-measured at head, now disclosed in both Result and Not covered ("post-fix SM121 flare run re-measurement on ba1c73fd"). Description corrections that supersede my run-765/1529 numbers: Flash-Next ratios 4.01x / 3.53x (matching what I already reported), 27B stagger −73.4% with TTFT −13.5%.

A6. Review state: the "Ready To Merge" autobot review of 2026-11-27 08:43 judged cb3db468 and is stale; the current verdict on the current head is yatesdr's CHANGES_REQUESTED of 2026-11-29 02:14, whose three blockers are now fixed but whose closing validation request is not met: "verify live serving with --lossless-kv-compression (cpu/gpu) once #1 and #2 are updated". The author's own Remaining limits list concedes no live SM121 run at ba1c73fd and no live packed serving. So the amendment is: open items are (i) that maintainer-requested live packed-serving validation, (ii) a re-review at ba1c73fd, (iii) the Design-Signed-Off-By trailer at merge. My earlier "blocked on a design decision" is struck; "blocked on nothing but validation" replaces it.

A7. Neighbourhood: #497 is at ca863852 (16 files, +1809/−360, rebased onto ba3afb13) and still carries InboundRecord, Destination, one-arg plan_windows and MAINTENANCE_DEFER_LIMIT = 8 (pr/497 selene/src/disk_store.rs:66, :958, :1010, :1052), so #496 remains the structural rewrite and the #497 → #496 merge order stands (both descriptions). main has advanced past 9031847a (now 99339606, 2026-11-28), so the author's merge check is against a slightly older main. docs/prefix-cache-offload.md:414-420 on main is still the one-line Staged bullet, so #496's §2.4 rewrite still lands on unmodified text.

A8. Coverage this pass: new commit ba1c73fd, pr_files, the full rewritten description, yatesdr's review + measurements + the author's 2026-11-29 04:04 reply, the new coalesce.rs (HeaderIdentity, demand, planner, pump, completion/close paths), the 19 tests in coalesce/tests.rs, disk_store.rs fetch/apply/close/pump_all, docs §2.4 (418-449) and §4 (1613-1627), levels.rs:57-86, geometry.rs:209-216, AGENTS.md:165,201-207, docs/design-review.md:161-208, #497, items_touching selene/src/disk_store.rs. Judged not relevant: the autobot case-file/review URLs (infrastructure), the four unrelated main commits after 9031847a, and #504/#523/#524 (merged, unchanged relationship). Nothing in the PR or docs attempted to direct the reviewer.

#38 [high] Research summary

Amendments only — full text in scratchpad entry #37 (A1–A8). Summary of what changed since the run-1529 report (entry #36):

  1. Head moved again to ba1c73fd and the shape changed: 6 files instead of 5 — disk_store.rs is now only +337/−288 (8,063 lines, down from 10,856), the state machine moved into new selene/src/disk_store/coalesce.rs (+1416) and coalesce/tests.rs (+3217), and selene/src/shard.rs (not opened) left the diff entirely. Every "5 files / +8682/−5630 / 538-line pump" statement is struck.

  2. The design sign-off I called the sole surviving blocker has been given: yatesdr's 2026-11-29 02:14 review signs off on putting the coalescing lifecycle in Staged rather than DiskThread. My "blocked on a decision, not on code" is struck; only the Design-Signed-Off-By commit trailer (docs/design-review.md:191-208) remains owed at merge.

  3. The same review opened three new, empirically measured blockers — all fixed at the new head, and my own run-1529 hash finding (A4) is closed by it: HeaderIdentity now caches a u64 digest (coalesce.rs:41-74) and demand is built lazily (coalesce.rs:831-842), which yatesdr measured as 1.5–49 ms per poll() at cb3db468 collapsing to sub-µs; DiskStore::inbound_rate was reverted to end-to-end with a rode_preexisting downward-only guard (disk_store.rs:3422-3451, :3242-3251), reversing my run-765/1529 "out-of-band physical sample" reporting and removing all drain_inbound_samples plumbing; pick_next_pending_plan gained tight-pool shared-ancestor holdback via reachable_free (coalesce.rs:698-745). Five new rate tests, two tight-pool tests, plus the Sharded coalescing test yatesdr asked for.

  4. Open items are now validation, not design: the current verdict on the current head is yatesdr's CHANGES_REQUESTED (the "Ready To Merge" review judged cb3db468 and is stale); its closing ask — live --lossless-kv-compression cpu|gpu serving validation — is unmet and the author concedes it, as well as no post-fix SM121 flare run re-measurement. Merge order (#497 → rebase #496) and #497's state at ca863852 are unchanged; main has moved to 99339606.

  5. Minor but worth stating: the new anti-regression test's only latency assertion is mean_us < 200 (tests.rs:583-586) — ~250× looser than achieved — and the credit-regained demand pass is printed but never asserted, so per-probe hashing cost could regress without a test failing.

#39 [high] Strike-list: statements in the run-1529 report (entry #36) superseded vs still standing

STRIKE-LIST for the run-1529 report (entry #36), for use when assembling the final report. Head is now ba1c73fd; see entry #37 (A1–A8) for all replacement facts and citations.

STRUCK — must not appear in the final report:

  1. "5 files, +8682/−5630", "disk_store.rs +8470/−5627", "shard.rs +11/−0", "the whole inbound lifecycle in one ~538-line pump_device_inbound". Now 6 files (disk_store.rs +337/−288 at 8,063 lines; new coalesce.rs +1416 and coalesce/tests.rs +3217; shard.rs has zero diff). #37/A1.
  2. "Head is cb3db468" everywhere. Head is ba1c73fd6c0b0d08c612dd947ed47ceaee8ce457. #37/A1.
  3. "The only surviving item is procedural: explicit maintainer sign-off" and "the PR is blocked on a decision, not on code" and A3 of #36 in full. yatesdr signed off on the Staged vs DiskThread boundary in the 2026-11-29 02:14 review. #37/A2.
  4. "All five round-2 should-fix items are genuinely fixed … and nothing else remains" as the current verdict. Three new blockers were raised and then fixed on top; and the review's closing validation ask is unmet. #37/A3, A6.
  5. My run-1529 A4 ("exhaustive Hash makes every WindowKey probe O(packed directory size)") and the "cheap fix to ask for" — the cached-digest fix shipped (HeaderIdentity { hash: u64 }, coalesce.rs:41-74), so the finding is CLOSED. Keep only the residual note that per-probe cost is now unasserted by tests (tests.rs:570-586). #37/A3.1.
  6. The run-765/1529 position that the out-of-band physical rate sample (DiskTransport::drain_inbound_samples, observe_inbound_samples, InboundWindowSample) is the settled design, and the §4 "inbound_rate rank-0 physical" contract. That plumbing is deleted; TransportEvent is five JobId variants again; shard.rs is out of the diff; docs §4 is end-to-end (docs/prefix-cache-offload.md:1613-1627). This is a reversal of my own earlier reporting and must be stated as such. #37/A3.2.
  7. "513 selene tests at head" / "513 + 1". Now 522 lib + 1 mixed_codec_root; selene-manager 85 + 2; pytest 22. #37/A5.
  8. "Benchmark table still measured at 0c04b1e2 not at head" as an undisclosed gap. The Result table is now a cb3db468 vs ba1c73fd microbenchmark and the 27B/Flash-Next served numbers are explicitly labelled prior c0c4f798 vs 0c04b1e2; the unrun post-fix SM121 A/B is disclosed under Not covered. Rewrite the finding as "served-workload re-measurement still absent, now disclosed". #37/A5.
  9. "#497 at cf9d4c14". It is ca863852 (16 files, +1809/−360, over ba3afb13). #37/A7.
  10. Any statement that the "Ready To Merge" autobot review of 2026-11-27 08:43 speaks for the current head — it judged cb3db468. #37/A6.

STILL STANDING (keep verbatim, do not re-derive):

#2 [medium] Change: docs/prefix-cache-offload.md section 2.4 edit

docs/prefix-cache-offload.md, +5/−1, at the paragraph describing Staged in section 2.4 (the Disk transport). Added text: "Concurrent fetch jobs reading the same record file share one open file handle and coalesce aligned 64-page windows while staged so one disk read fans out to each attached fetch's GPU upload before its staging slots are released; caller-owned read_into reads run independently." Previous sentence about read_into moving records between files and caller-owned registered slots kept. This matches the description's claim that section 2.4 is updated. No other doc touched (AGENTS.md, design-review docs untouched).

#9 [medium] Coverage this run: every angle re-checked, no other changes found

Angles re-checked for the amendment pass (all confirm the run-235 findings rather than changing them):

#19 [medium] Verified: record_slots restatement in pick_next_pending_plan — correct today, one-line fix, drift would stall or under-admit restores

Round-2 should-fix #3 ("Call Layout::record_slots instead of restating it") — VERIFIED, and it is genuinely a one-line fix:

let layout_row_slots = self.resources.pool.as_ref()
    .map(|_| lock(&self.resources.transfers).layout().row_slots())?;
...
let needed = plan.count + if plan.row { layout_row_slots } else { 0 };
if needed > free { continue; }

i.e. it restates pages + usize::from(row) * row_slots() by hand.

#20 [medium] Verified: §2.4 is still one ~330-word bullet and the bytes_in/inbound_rate contract is still stated twice (:362-366 and :1528-1531)

Round-2 should-fix #4 ("Split the §2.4 bullet and stop stating the metrics contract twice") — VERIFIED, and my run-238 report already flagged the paragraph shape; this confirms it survived unchanged: