PR #496 — amendments only (run 766, 2026-11-27)
Per the instruction, this report carries only amendments to what I reported before: everything below is new, corrected, or struck. Nothing that still stands is restated.
Key findings (amendments)
- The PR I was reporting on no longer exists — #496 was rebased and is effectively a new PR. Head is
cb3db468(single commit, 2026-11-26, "Coalesce shared ancestor reads across concurrent Selene disk fetches") over main6d74db3a, i.e. post-#504/#523/#524.pr_filesat head: 5 files, +8682/−5630 —selene/src/disk_store.rs(+8470/−5627),docs/prefix-cache-offload.md(+38/−2),selene/src/shard.rs(+11/−0),selene/src/shared/packed.rs(+44/−0),selene/src/shared/record.rs(+119/−1). Strike every earlier statement of mine saying "3 files", "+3358/−933", "head0c04b1e2", 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. - All five round-2 should-fix items are genuinely fixed, each where the review asked (verified in source, A2). The last review on the PR is still the 2026-11-25 19:26 "Ready To Merge / no blockers" on
0c04b1e2, whose stated premise was "no new commits since the last review" — that verdict is stale, not an endorsement ofcb3db468. There are no CI checks at the new head. - Only one item survives, and it is the process item: explicit maintainer sign-off.
AGENTS.md:201-207still 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 theStagedshared-window lifecycle, so the PR is blocked on a decision, not on code. - New finding, mine, introduced by the fix the review asked for: the exhaustive
Hashmakes every window-key probe O(packed directory size).Header's hash now includespacked, andpacked::Layout's hash walks everyPackedUnit— 11 fields including the 32-byteprofileper unit — plusoffsetsandpages(A4 for citations). - The benchmark table is still measured at
0c04b1e2vsc0c4f798, not at the new head, and the author's new "Not covered" list contains that re-run itself ("rerunning the raw SM121flare runA/B after rebasing onto6d74db3a"). The head-commit-benchmark requirement is again unmet, this time disclosed. - Merge order is the reverse of what I implied earlier: #497 first, then rebase #496 onto that main — stated in both descriptions and consistent with
pump_allatcb3db468:2957-2978still having noMAINTENANCE_DEFER_LIMIT.
A1. What moved
- Head
0c04b1e2→cb3db468, single commit, rebased onto6d74db3a. 5 files, +8682/−5630 (A1/Key finding 1). - PR description rewritten; author comment 2026-11-27 06:01 claims all Round-2 SFs and all ten nits addressed.
read_item 496shows no new review after that — the newest review remains 2026-11-25 19:26. - Strike from my earlier amendments: "no blocker, five should-fix" as a current state (all five are now fixed); the live hash/eq drift after #504; the
CompositeStore.progressinflation; the three post-#504 rebase collisions (two-argplan_windows, thirdDestinationvariant,InboundRecord); "#497 atcd5a366b"; "nits not itemised" (the 19:26 review lists 10).
A2. Round-2 should-fix items, verified at cb3db468
- Rate sample off the completion enum.
TransportEventis back to five variants, every one carryingJobId(selene/src/disk_store.rs:84-106); bothunreachable!()arms are gone. Samples go out of band throughDiskTransport::drain_inbound_samples(:149-150), buffered onStaged, drained byDiskStore::observe_inbound_samples(:3649-3655), forwarded on rank 0 and discarded on peers (selene/src/shard.rs:1005-1012, discard path onpoison). This closes my earlier A4 finding:CompositeStore::poll(selene/src/composite.rs:1474) no longer counts a bandwidth sample as progress, so the per-physical-windowspill_parked+disk.maintainre-run is gone;DiskStore::applynow increments progress unconditionally (:4409-4410). Hashbeside equality.impl Hash for Headernow lives inselene/src/shared/record.rs:165-202with an exhaustive destructure namingversion: _(:171) and hashing exactly the 13 fieldsPartialEqcompares (:144-161), omitting the private, non-semanticversion(:125-126);packedis:127and is hashed first (:187).Eq+Hashforpacked::Layoutover Layout/PackedOffer/PackedUnit atselene/src/shared/packed.rs:99-141;RankSizesderivesHash;HeaderIdentity::hashdelegates toHeader::hashwhile keeping theArc::ptr_eqfast path (selene/src/disk_store.rs:1444-1456);SegmentKey/WindowKeyderive (:1458-1470). Testheader_eq_implies_same_hash(selene/src/shared/record.rs:2229) pins version-insensitivity, acreateddifference,packed: NonevsSome, and two equal layouts. My earlier finding of livepackedhash/eq drift on post-#504 main is closed.record_slots.pick_next_pending_planhoists the transfers lock once (selene/src/disk_store.rs:2307) and callslayout.record_slots(plan.count, plan.row)(:2320), requiring zero slots for packed; the hand-writtenpages + row_slotsis gone.- Docs. §2.4 is now a mechanism sentence plus three short sub-bullets — shared open +
WINDOW_PAGES-aligned windows across raw v1–v3 slots and v4ReadPackedbuffers; the immutable/pinned invariant and last-user close-before-Fetched; limits and failure scope — atdocs/prefix-cache-offload.md:418-448. The metrics contract is stated once, in §4 (:1612-1617:bytes_inlogical,inbound_raterank-0 physical,CompositeStore.disk_inbound_rate), with only a cross-reference in §2.4 (:447-448). - Also fixed:
Staged::closenow reportsabandoned_jobs(selene/src/disk_store.rs:3192-3218) andleaked_shared(:3195,:3220-3225) as two separate messages, retiring the nit I carried since run 238.
A3. The surviving item
AGENTS.md:201-207, quoted in full: "An explicit maintainer request covering the work is sufficient authorization … A feature request, passing tests, or a performance gain does not waive an architectural invariant. Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant; a commit acknowledgment or routine PR approval is not that decision." A second inbound lifecycle inside Staged, with its own sharing/refcount protocol, is exactly such a change; the author's Why is the author justifying, and merging cannot retroactively supply the decision.
A4. New finding: exhaustive Hash makes every WindowKey probe O(units)
Header's hash now includes packed, and packed::Layout's hash walks every PackedUnit — 11 fields including the 32-byte profile per unit — plus offsets and pages (selene/src/shared/packed.rs:101-141). WindowKey/SegmentKey derive Hash and are the keys of window_index (selene/src/disk_store.rs:1458-1470, :1654, used at :2031-2072, :2374, :2546), of the per-pump demand map (:2273-2294) and of find_reusable_window (:2185); a fresh WindowKey with a cloned SegmentKey is built per plan per probe (:1613-1621, called from the demand build and the pick loop). For a TP4 record with 128 tail pages that is ~516 units, i.e. ~16 KiB of profile bytes plus ~8 KiB of offsets/pages hashed per probe, on rank 0's restore pump, inside the path this PR exists to speed up. Raw v1–v3 records are unaffected (packed is None, one discriminant). Cheap fix to ask for: cache a u64 digest on packed::Layout (or hash the Arc pointer together with (first_page, units.len(), physical_bytes) as identity) and keep the exhaustive hash for Header's scalar fields. Nothing covers hashing cost today; header_eq_implies_same_hash only pins agreement.
A5. The packed port is real and structurally sound, not just claimed
One shared ReadPacked job per aligned 64-page window, offset = page_segment + layout.page_offset(first), length to page_offset(first+count) or physical_bytes for the row; packed windows allocate zero SlabPool slots (selene/src/disk_store.rs:2320, :2528-2533); each follower builds its own Window::restore_pinned from layout.units(...) over the shared Arc<Vec<u8>>; the buffer is released only when followers, disk refs and upload refs all reach zero. Decode/payload errors go through is_packed_content_error → with_record_read() → fail_window, so DiskStore::apply drops the corrupt row. #504's surface is preserved by rename, not duplication: HostDestination::{Slots,Packed} (:979-985), Source::HostPacked, write_packed/read_into_packed/completed_packed_reads/take_packed_read/codec_receive_profiles/decode_counters. InboundRecord and Destination no longer exist anywhere in selene (zero grep hits), so my earlier rebase-collision list is fully resolved, including the third-HostPacked-variant question.
A6. Description and evidence changes that supersede my earlier reporting
- The 27B single-restore size is now explained (
2,274 MB=472pages at128tok/page +101 MBrow ⇒18,177.5 MBis8xfull copies); Flash-Next ratios corrected to4.01x/3.53x(were3.99x/3.52x); the arrival-order relaxation is now disclosed in both the body and §2.4 ("window selection prefers windows demanded by sibling restores before reading private tails, relaxing strict arrival-order scheduling"). - Rows unchanged otherwise: 27B simultaneous
18,177.5 → 4,306.7 MB(−76.3%,4.22x), TTFT7,974.6 → 5,662.8 ms(−29.0%);+25 msstagger18,194.2 → 4,843.6 MB,3.76x,−13.5%; Flash-Next simultaneous7,944.9 → 1,981.1 MB,4.01x,−3.1%; stagger7,958.0 → 2,251.5 MB,3.53x,−2.8%; rank-0inbound_rate6.07 GB/ssingle vs7.71 GB/s8-way. - Benchmark base is
c0c4f798(pre-#504 main) vs0c04b1e2, with the author's caveat that raw windowing is "identical … tocb3db468when compression is off". The table is not re-measured at the new head. - Evidence at
cb3db468: selene513 passed+1mixed_codec_root(was476at0c04b1e2), helioscargo check --features runtime-core,server,22pytest,12Windows IOCP tests +mixed_codec_root. This supersedes my earlier "476 tests". - New "Not covered" entries to carry: live SM121
--lossless-kv-compression cpu|gpuserving (packed coalescing is unit-tested only), the post-rebase raw A/B, multi-host RoCE, 2-GPUsplit_pools, discrete PCIe GPUs, Windows serving, and live warm-plus-disk orPooledStoreHTTP serving.
A7. Neighbourhood
#497 is now cf9d4c14, also rebased onto 6d74db3a, open, +1636/−249 across 16 files, and its own last review (2026-11-25 20:33) is Ready To Merge / no blockers. It still has InboundRecord, Destination::{Device,Host,HostPacked} and single-argument plan_windows, so #496 remains the structural rewrite and the "two doors open" claim holds — but #497 merges first, then #496 rebases onto that main, which both descriptions now state and which matches pump_all at selene/src/disk_store.rs:2957-2978 (maintenance drained first and unbounded, then sorted outbound, then sorted host_inbound, then pump_device_inbound; no MAINTENANCE_DEFER_LIMIT, since that stays #497's). #504 is merged (2026-11-25 18:22, head d1b90d7, +20519/−785, 152 files) and #477/#486/#492 are closed, superseded by it — drop them from the related list. The newer merges the author rebased over (#546, #545, #543, #538, #527, #532, #525–#526, #531, #529, #522, #515, #510, #509, #507, plus RebuildManifest→PreparationManifest) touch neither Staged, DeviceInbound nor window coalescing; only #527 and the codec fixes touch selene codec paths. #496 and #497 remain the only open PRs changing selene/src/disk_store.rs.
Open questions and what could not be found
- No recorded maintainer sign-off exists anywhere I can read; whether one is in flight off-GitHub is not ascertainable from this repository.
- Which hashing fix the author will take (cached digest vs pointer-based identity), and whether any test will then bound hashing cost rather than only agreement.
- Whether the packed path is worth it at all under
gpucompression: packed coalescing is unit-tested only; no served--lossless-kv-compression cpu|gpurun exists. - The post-rebase raw A/B is unrun, so all four benchmark rows rest on the author's assumption that the raw path is byte-identical to
0c04b1e2. - Tool/scope limits: the review bodies are behind
https://autobot.eidonix.com/p/…html; I did not fetch external URLs, so the ten nits and the review's per-item wording come from the on-GitHub summaries.pr_difftruncates on a diff this size, sodisk_store.rswas verified by reading the head file. The localmainsnapshot predates #504, so main-side claims came frompr/497and #504's head sha.
Coverage this pass
Re-checked: head/commit/files, the rewritten description and the 2026-11-27 06:01 author comment in full, all five round-2 should-fix items against source, the round-1 items for regression, Staged::close, pump_all, the packed read path and its two tests, the header-hash test and the Layout hash body, benchmark and evidence claims, and the neighbourhood (#497 read in full, #504 for its Header/Destination surface, selene/src/disk_store.rs open-PR list). Judged not relevant: the ~27 merged PRs listed in A7, the two autobot case-file notices (infrastructure, no claim about the code), and the external case-file/review URLs. Nothing in the PR, its comments or the docs attempted to direct the reviewer.