PR #496 — amendments only (new event: head moved to ba1c73fd, design sign-off given, three new blockers fixed)
Per the instruction this is amendments only to my prior report (#36). Everything below is new, corrected or struck; nothing that still stands is restated. Citations re-verified in source this pass unless marked from the PR/comment text.
Key findings (amendments)
- The branch I last reported (
cb3db468, 5 files, +8682/−5630) is gone. Head isba1c73fd6c0b0d08c612dd947ed47ceaee8ce457over base6d74db3a(single commit, "Coalesce shared ancestor reads across concurrent Selene disk fetches",search_historyonpr/496).pr_filesnow: 6 files, +5181/−291 —selene/src/disk_store.rs(+337/−288, now 8,063 lines, down from 10,856), newselene/src/disk_store/coalesce.rs(+1416/−0), newselene/src/disk_store/coalesce/tests.rs(+3217/−0),docs/prefix-cache-offload.md(+48/−2),selene/src/shared/packed.rs(+44/−0),selene/src/shared/record.rs(+119/−1).selene/src/shard.rs(not opened) is out of the diff entirely. Strike "5 files", "disk_store.rs+8470/−5627", "shard.rs(not opened) +11/−0" and "the state machine is one ~538-linepump_device_inbound": the state machine is now a private submodule (mod coalesce; use coalesce::{DeviceCoalescer, SharedSegmentId};,disk_store.rs:29-30) andDeviceCoalescer::pumpis nine single-purpose passes. - The design sign-off I called the sole surviving blocker has been given — by yatesdr, review of 2026-11-29 02:14: "Placing the shared-segment / shared-window coalescing lifecycle in
Staged(rather thanDiskThread) is the right boundary and I'm signing off on that choice." Strike my prior key finding 3 and A3 ("blocked on a decision, not on code"). Residual, narrower process item: the sign-off is a PR review, not theDesign-Signed-Off-By: <reviewer>; design-review=<4 hex>commit trailerdocs/design-review.md:191-208requires on the final commit, andAGENTS.md:201-207still wants an explicit maintainer request/decision recorded — so the decision exists, the merge commit still owes the trailer. - The same review opened three new blockers, empirically measured on GB10; all three are fixed at
ba1c73fd. They supersede my "all five round-2 items fixed, nothing left but process" framing (amendments A3 below). One of them closes my owncb3db468finding that the exhaustiveHashmade every window probe O(packed units). inbound_rateis back to end-to-end — this reverses my run-765/1529 reporting that the out-of-band physical sample (TransportEvent::InboundWindowSample,drain_inbound_samples,observe_inbound_samples) was the settled design. That plumbing is deleted;TransportEventis fiveJobId-carrying variants again; docs §4 is end-to-end. Stated plainly because I previously reported the opposite.- Verdict at the current head is yatesdr's CHANGES_REQUESTED of 2026-11-29 02:14, whose three blockers are fixed but whose closing ask is unmet: live serving validation with
--lossless-kv-compression cpu|gpu. The 2026-11-27 08:43 "Ready To Merge" autobot review judgedcb3db468and is stale. Open items are now validation + re-review + trailer, not design.
A1. Head and shape (details)
- Author says the branch merges clean with
origin/main9031847a(git merge-tree --write-tree 9031847a ba1c73fd: clean, exit 0, quoted in the 2026-11-29 04:04 author comment).mainhas actually advanced past that (my snapshot shows99339606), so the check is against slightly older main. - Description rewritten again and
pr_commentsconfirms one new author comment (2026-11-29 04:04) after yatesdr's review; no review has been posted atba1c73fdyet. - Nothing else in the PR history changed: no force-push safety issue, no new labels, and nothing in the PR, its comments or the docs attempted to direct the reviewer.
A2. Sign-off (see key finding 2)
Caveat worth carrying: the acknowledgment definition at docs/design-review.md:199-204 (read staged checklist, verify rationale/exact change/benefit/evidence order, disclose validation limits) is exactly what a Design-Signed-Off-By trailer attests, and docs/design-review.md:206-208 says a missing acknowledgment requires completing the workflow before retrying. So the merge commit needs yatesdr's identity + the 4-hex design-review digest, and the hook will enforce it.
A3. The three new blockers, fixed — verified in source
- Per-
poll()stall on v4 packed records (closes my earlier exhaustive-Hashfinding).HeaderIdentity { header: Arc<Header>, hash: u64 }:new()runsDefaultHasheroverHeader::hashonce (selene/src/disk_store/coalesce.rs:41-54),eqshort-circuits onself.hash == other.hash && (Arc::ptr_eq(..) || *self.header == *other.header)(:61-66),Hashhashes only the cachedu64(:70-74);SegmentKey/WindowKeyderive at:76-88, so a window probe is O(1) again. Eager demand rebuild removed:start_new_windowsopens withlet mut demand = None;and fills it lazily insidewhile self.has_window_credit(id)(coalesce.rs:831-842). yatesdr measured 1.47 ms / 9.73 ms / 49.33 ms perpoll()atcb3db468at 8 fetches (TP1/512, TP8/512, TP8/1024) vs 0.4–0.9 µs at 1 fetch; the author's re-measurement atba1c73fdis 0.25–0.75 µs mean for all six shapes (both quoted in the review thread). Residual weakness I keep: the anti-regression test's only latency assertion ismean_us < 200.0(selene/src/disk_store/coalesce/tests.rs:584), ~250× looser than achieved, and the credit-regained demand pass is printed but never asserted (tests.rs:570-586), so per-probe hashing cost could regress without a failing test. The exhaustiveHeader/packed::Layouthashes remain (shared/record.rs:165-202,shared/packed.rs:101-141) and are now paid once per segment per fetch inHeaderIdentity::new. inbound_rateend-to-end with a downward-only guard (reversal of my earlier position).DiskStore::fetchrecordsread_nodes(segments withpages > 0 || row),rode_preexisting(any liveInboundsharing a read node),started = Instant::now(),logical_bytes = layout.record_bytes(chain.pages)and skipsinbound_rate.started()forrode_preexisting(selene/src/disk_store.rs:3422-3453, verified).applyobserveslogical_bytes / started.elapsed()and, forrode_preexisting, only when that rate is belowinbound_rate.get()(disk_store.rs:3242-3251, verified) — so coalesced followers cannot inflate bandwidth, while slowdowns and leader-failure bursts still lower it.StoreStats.bytes_instays logical (:3240). Docs §4 rewritten to this contract, includingCompositeStore.disk_inbound_rate(docs/prefix-cache-offload.md:1613-1627); §2.4 now only cross-references it (:448-449). Five new rate tests, including aShardedlocal-TCP case and a 150 ms decode-delay packed case whereworth_fetchingrejects (named in the author's comment; not re-read individually this pass).- Tight-pool shared-ancestor holdback (
#497interaction).pick_next_pending_plancomputesreachable_free = free + staged_slots + outbound_slots, tracksmax_reachable_shared_demandover unstarted plans withpeer_demand > 0 && needed <= reachable_free, and returns a fitting plan only whenbest_demand >= max_reachable_shared_demand(selene/src/disk_store/coalesce.rs:698-745, verified, incl.layout.record_slots(plan.count, plan.row)with 0 slots for packed at:724-728). Two tight-pool tests added (tight_pool_waits_for_shared_ancestor_instead_of_starting_private_tail,tight_pool_wait_never_deadlocks_without_releasable_staged_slots).
A4. Coverage yatesdr asked for, now present
sharded_concurrent_fetches_coalesce_across_rank_zero_and_peer (drives production shard::serve over local TCP, 4 branches on a 3-window ancestor, asserts rank-0 disk_opens == 5 / disk_window_reads == 7 / coalesced_windows == 9, live slab-address sharing on peer rank 1, byte-exact GPU pages/rows) and concurrent_packed_fetches_coalesce_opens_and_read_packed_windows; 19 named tests in selene/src/disk_store/coalesce/tests.rs.
A5. Evidence and benchmarks — rewrite, not strike
- Result table is now a
cb3db468vsba1c73fdmicrobenchmark, and the 27B/Flash-Next served numbers are explicitly demoted to a prior liveflare runA/B,c0c4f798vs0c04b1e2. So my earlier "benchmark still measured at0c04b1e2not head" becomes: served-workload re-measurement at head is still absent but now disclosed in Result and in Not covered ("post-fix SM121flare runre-measurement onba1c73fd"). All four served rows therefore do not describe the current head. - Test counts supersede my "513": selene 522 lib + 1
mixed_codec_root, selene-manager 85 + 2, helioscargo check --features runtime-core,serverwith 0 warnings, pytest 22,git merge-treeclean vs9031847a. - Description ratio labels at this head: Flash-Next
4.01xsimultaneous /3.53xstaggered (matching what I already reported), 27B stagger−73.4%with TTFT−13.5%.
A6. Neighbourhood
#497is atca863852(16 files, +1809/−360, overba3afb13), still open and still carryingInboundRecord, one-argplan_windowsandMAINTENANCE_DEFER_LIMIT = 8— so #496 remains the structural rewrite and merge order is#497first, then rebase #496, stated in both descriptions.docs/prefix-cache-offload.mdon main still has the single-bulletStagedparagraph, so #496's §2.4 rewrite (now sub-bulleted at:418-449) lands on unmodified text and has no doc conflict.- No other open PR changes
selene/src/disk_store.rs;#504/#523/#524are merged and their surface is preserved unchanged (my earlier A5 on this stands verbatim).
Open questions / what could not be found
- No re-review at
ba1c73fd: whether yatesdr accepts the three fixes is unknown; the only verdict on record for the current head is the CHANGES_REQUESTED from 2026-11-29 02:14, and the "Ready To Merge" text elsewhere in the thread speaks forcb3db468. - The requested live validation is unrun: no
--lossless-kv-compression cpu|gpuserved run exists at head (author concedes it), so packed coalescing remains unit-tested only. - Post-fix SM121
flare runA/B unrun, so every served-workload number in the description is at least two heads old. - Whether the
Design-Signed-Off-Bytrailer (and the correctdesign-review=digest) has been added — not present in the commit I read (ba1c73fdis a single commit dated 2026-11-26, before the 2026-11-29 sign-off). - Tool/scope limits: review bodies are behind
autobot.eidonix.comURLs I did not fetch, so per-item wording comes from the on-GitHub text;pr_difftruncates on a diff this size, sodisk_store.rs,coalesce.rsand its tests were read at head. The localmainsnapshot is older than the author's merge base.
Coverage this pass
Re-checked: head/commit/files, description and the 2026-11-29 04:04 author comment, yatesdr's review + GB10 measurements, HeaderIdentity and the lazy-demand path, pick_next_pending_plan, DiskStore::fetch/apply rate logic, docs §2.4 (414-449) and §4 (1613-1627), docs/design-review.md:185-208, AGENTS.md:201-207, #497, and selene/src/disk_store.rs open-PR list. Judged not relevant: the autobot case-file/intake URLs (infrastructure), the main commits after 9031847a (unrelated to the touched files), and #504/#523/#524 (merged, relationship unchanged).