#1 [high] PR #496 overview: coalesced Selene disk reads — evidence and architecture
PR #496 "Coalesce shared ancestor reads across concurrent Selene disk fetches" by FujitsuPolycom, head f9c9191, base main, 2 files +2808/-914 (selene/src/disk_store.rs +2803/-913; docs/prefix-cache-offload.md +5/-1). Only comment is the autobot case-file notice; no human review yet.
What: splits Staged's read path — caller-owned host reads (read_into, host_inbound) stay private/unchanged; GPU restores (fetch, pump_device_inbound) share one disk-thread file handle per (path, expected Header) and one staged window per (path, header, first, count, row); segments are sliced on 64-page WINDOW_PAGES file boundaries (plan_aligned_windows) so restores with different skip_pages produce identical suffix windows; windows are ref-counted (disk_referenced/upload_referenced/followers); last user waits for close (settled) before Fetched.
Evidence: benchmark table on GB10 SM121 single-pass flare run vs main 425ab2d4, physical NVMe bytes 18,026->4,286 MB (4.21x), 18,093->4,563 (3.97x), Flash-Next 7,944->1,981 (4.01x), 3.54x, 2-host RoCE 4.04x/3.45x, DeepSeek TP4 1.00x; TTFT medians reported. Unit suites at c0c4f798 (474 tests), 7 coalescing tests also on Windows IOCP. Live SM121 checks include the Qwen3.8-27B TP1 61.3K regression 8/9 -> 7/9. Description discloses: benchmark measured BEFORE the linear demand-index and close-count edits; single-pass SM121 runs not repeated after edits.
Scope verdict (architecture lens): belongs — charter "What gets merged" allows a measured performance issue; AGENTS.md:165-166; goal "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene". No new flags/env/knobs, no format/Header change, no per-model branch, failure isolation preserved (private errors fail one restore; shared record_read errors fail all attached after drain, TransportEvent::Fetched still routes record_read to index.drop_row).
#2 [high] Finding: logical vs physical bytes conflated -> inbound_rate inflation
selene/src/disk_store.rs: SharedWindow.read_bytes accumulates physical reply bytes once per window (:1530 win.read_bytes += reply.bytes, init :1979); every follower completing an upload adds the WHOLE window to its own record (:1829 record.bytes += win.read_bytes). Per-record bytes become the Ok payload of TransportEvent::Fetched (:2235 None => Ok(record.bytes)), consumed in DiskStore::apply as self.stats.bytes_in += bytes (:3626) and self.inbound_rate.observe(*bytes, job.started.elapsed()) (:3628).
Why it matters: inbound_rate is an input to admission, not just a stat. DiskStore::hit uses bytes as f64 / self.inbound_rate.get().max(1.0) for estimated_seconds (:3587); selene/src/store.rs:423-438 worth_fetching/worth_transfer compares it to prefill cost; consumers helios/src/server/runtime.rs:2772 and helios/src/server/metrics.rs:532. Under a coalesced burst the rate sample divides ~logical bytes by ~4x shorter physical elapsed time, inflating inbound_rate by roughly the fan-out (PR's own table: 4.21x, 3.97x, 4.01x). A later lone restore that will NOT be coalesced is then under-priced and may be fetched when prefill was cheaper. Also stats.bytes_in shows no reduction at all, so the headline physical-read win is invisible in operator counters; docs/prefix-cache-offload.md:1501-1502 defines "Inbound latency" and "Copy-out bandwidth" as coming from store counters.
Fix direction: observe the rate from physical window bytes (count a window once at window/segment completion), keep bytes_in as logical restored bytes and document the distinction; add a test comparing StoreStats.inbound_rate for 1 vs 8 concurrent restores of the same prefix against measured device bytes.
#3 [high] Finding: unexplained accuracy regression 8/9 -> 7/9 at 61.3K
PR #496 description "Live SM121 checks": Qwen3.8-27B-NVFP4 TP1, 9-fact numerical retrieval, temperature=0, cold-VRAM restart: main 9/9 at 30.1K, and at 61.3K main 8/9 (or 8/9->7/9 on the retrieval prompt) vs THIS PR 7/9. Everything else claimed byte-exact (DeepSeek TP4 9/9 at 23.1K/47.1K). No conclusion offered ("recipe-clamped").
Why it matters: it is the only end-to-end check exercising the shared-window fan-out on a real model, and it is the one that got worse. Deterministic temperature=0 means it is a real answer change unless the harness is noisy. AGENTS.md:106-108 requires explaining differences between runs and keeping material failures visible.
Possible defect sites if real: plan_aligned_windows offset/count mapping for a follower whose first page is not 64-aligned (selene/src/disk_store.rs:700-738), and the trailing partial chunk / row flag (row && chunk_end == end, :730). Suggested test: follower attaches to an already-created shared window with non-64-multiple skip_pages plus a shared final partial chunk, asserting byte-exact device pages/row vs the private path.
Fix requested: re-run the 61.3K prompt N times on both revisions and report variance/name the differing fact and the conclusion, or move the check under "Not covered" as inconclusive. Severity: should fix (may collapse to a description fix).
#4 [high] Findings: docs §2.4 overstates mechanism, stale signatures, misplaced rustdoc
-
docs/prefix-cache-offload.md:337-342 (+5/-1). New sentence: "Concurrent
fetchjobs 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-ownedread_intoreads run independently." Missing: (a) the two material limits the PR description itself discloses — a window already released before a later arrival attaches is read again, and skip_pages % WINDOW_PAGES != 0 splits up to one extra partial window (AGENTS.md:194-199 material limitations); (b) the invariant that licenses sharing (records immutable + pinned in DiskStore for the life of every restore) — design-review principle 16 "no hidden context"; it exists only in the PR conversation. (c) "aligned 64-page" doesn't say aligned to what: absolute file page boundaries (they're WINDOW_PAGES, defined at docs:85 / referenced at docs:398 "windows of at most 64 pages plus the multi-slot row"). (d) Same paragraph keeps stale signatureswrite_from(key, metadata, buffers)/read_into(key, buffers); actual signatures are write_from(id, header, temporary, path, pages, row, sums) at selene/src/disk_store.rs:1242-1251 and read_into(id, path, expected, first_page, pages, row) at :1268-1276 (pre-existing, but the sentence is being edited). (e) One 60-word sentence carries three behaviours; repo doc style elsewhere is one behaviour per sentence (compare docs:328-336). Also failure-scope (shared open/read error fails all attached; private child/upload error fails one) is in the PR body but not in §2.4 or the §2.12 invariants list (docs:853). -
Module doc selene/src/disk_store.rs:14-24: says "at most [
WINDOWS_IN_FLIGHT] windows of one record staged at a time" and "Nothing here waits", but device restores now hold shared windows past their own completion until followers finish and can be complete-but-not-reported while waiting for seg.settled() (:2221-2232). Header should state the two-window credit, follower sharing, and settle-before-Fetched. -
Misplaced rustdoc selene/src/disk_store.rs:228-234: the comment for
Resources::allocate("Slots forpagespage records and, whenrow, all row pieces;Noneleaves the pool unchanged...") now sits abovefree_slots, which takes no arguments — published docs are wrong andallocate(the subtle all-or-nothing contract) is undocumented. On main the comment is aboveallocate(main selene/src/disk_store.rs:216-218). Fix: move it back; give free_slots a one-liner.
#5 [high] Findings: duplication, unnamed window key, per-pump cost, redundant state, counters
A) plan_aligned_windows (selene/src/disk_store.rs:700-738) duplicates plan_windows (:670-695): same signature impl IntoIterator<Item=(u32,usize,bool)> -> Vec<WindowPlan>, same WindowPlan fields, same row-on-last-window and pages==0/row-only rules; only difference is chunk end clamped to ((cursor / WINDOW_PAGES) + 1) * WINDOW_PAGES (:721-722). Identical output when first is aligned — i.e. the divergence is exactly the misaligned-skip_pages case the new tests cover. selene/src/memory.rs:1333-1367 windows() is a third expression of the same splitter policy. Charter line: "look for the smallest footprint in shared code". Fix: give plan_windows an alignment parameter and delete the copy (or use plan_aligned_windows for read_into too — the only test asserting host split points is windows_split_segments_at_the_window_size_and_carry_the_row_last at :6221-6253).
B) Shared-window identity re-expressed five times, never named: acquire_shared_segment lookup (:1368-1373), find_reusable_window field compare (:1578-1583), demand map key (PathBuf,u32,usize,bool) + inner Vec<(Header,usize)> linear scan in build_pending_demand (:1647-1679), same key rebuilt in pick_next_pending_plan (:1705-1718), and twice in the decrement blocks (:1890-1899, :1996-2006). Header derives PartialEq/Eq only, no Hash (selene/src/shared/record.rs:136-154). Fix: one WindowKey { path: Arc<Path>, expected/digest, first, count, row } next to SharedWindowId/SharedSegmentId (:1000-1003).
C) Per-pump alloc + quadratic scan in the attach path: PathBuf clone per pending plan (:1668), per candidate in pick_next_pending_plan (:1710), again in both decrement blocks; find_reusable_window scans every shared_windows value per pending plan (:1576-1599) and is called from find_best_existing_window_for (:1602-1624) inside the attach loops. The PR itself adds the indexed precedent (pending_page_reads, :1030). Fix: HashMap<WindowKey, SharedWindowId> beside shared_windows, and store shared segment id / Arc in DeviceSegmentRef (:1108-1113) instead of PathBuf.
D) attach loop written twice + credit check three times: Pass 2 (:1845-1861) and Pass 4 (:1874-1903) duplicate the same needs_credit closure (record.error.is_none() && record.active.len() < WINDOWS_IN_FLIGHT, :1847-1852 and :1876-1881, again inline at :2122-2124) and the find_best_existing_window_for+attach_existing_window loop; Pass 4 only adds the demand decrement. Fix: fn has_window_credit(&self, id) -> bool and fn attach_pending(&mut self, id, demand: Option<&mut Demand>) -> bool.
E) Smaller-than-needed state: host inbound modelled as Vec with always-zero index (Owner::HostInbound(id, usize) :258, read_into inserts Owner::HostInbound(id,0) :1285, single-element vec :1293-1294, apply_disk tolerates missing segment :799-801, pump loops :875/892/978) → single Segment + Owner::HostInbound(JobId) removes Segment::reads_left (:649, decremented :832, compared :877 where self.done == self.plans.len() at :892 already covers it). PlanState::Done (:1093-1098) is never branched on — every read is != Pending (:1606, :1660, :1698) or == Pending (:1796); Done is only assigned (:1833) — a started: Vec would do. SharedWindow duplicates segment identity: path/expected (:1073-1074) repeat SharedSegment.path/expected (:1024-1025) and are compared at :1582-1583 plus cloned per window at :1966-1967; comparing win.segment == seg_id would drop both fields. Also SharedWindow.id/SharedSegment.id duplicate their HashMap keys (:1071 vs :1961).
F) Test-only counters: disk_opens/disk_window_reads/coalesced_windows fields on always-compiled Resources with #[cfg_attr(not(any(test, feature="test-support")), allow(dead_code))] (:192-200; the only three uses of that attribute in selene/src — verified by search). Crate convention is to compile the whole member out: selene/src/disk.rs:104-116 Faults under #[cfg(any(test, feature="test-support"))]. Accessors already gated (:1213-1236). They also exist outside StoreStats (selene/src/store.rs:185-244), the crate's declared home for counters; StoreStats has disk_records/disk_bytes/inbound_rate/outbound_rate but no physical-open or coalesced-window counters, and docs:1501-1502 gates qualification on store counters. Fix: gate the fields; consider a follow-up adding disk_opens/coalesced_windows to StoreStats.
#9 [high] DELIVERABLE: full report for PR #496
========================================================= FULL REPORT — PR #496 (head f9c9191, base main, +2808/-914)
BLOCKERS
- Resolve the 61.3K deterministic retrieval result before merge.
- Finding: the PR's own "Live SM121 checks" report Qwen3.8-27B-NVFP4 TP1 at 61.3K scoring 8/9 on main and 7/9 with this change, on a 9-fact numerical retrieval prompt at temperature=0 after a cold-VRAM restart, while DeepSeek TP4 is 9/9 at 23.1K and 47.1K. No conclusion is drawn beyond "recipe-clamped".
- Request: repeat the 61.3K prompt several times on main and at head f9c9191 and report the variance and the differing fact; if the gap holds, fix it before merge; if it is harness or recipe-clamp noise, say so explicitly and move the check under "Not covered" as inconclusive.
- Why: it is the only end-to-end check that exercises the shared-window fan-out on a real model, and it is the one that got worse. A real defect would live in plan_aligned_windows' chunk/offset mapping for a follower whose first page is not 64-aligned (selene/src/disk_store.rs:700-738) or in the trailing partial chunk's row flag (:730). Cheapest guard if it does not reproduce: a test where a follower attaches to a window another restore created, with a non-64-multiple skip_pages and a shared final partial chunk, asserting byte-equal device pages and row against the private path. (AGENTS.md:106-108: explain differences between runs, keep material failures visible.)
SHOULD FIX
- Coalesced reads double-count bytes into the measured inbound rate, which prices future restores.
- Finding: a window accumulates its physical reply bytes once (:1530
win.read_bytes += reply.bytes, init :1979), but every follower adds the whole window to its own record (:1829record.bytes += win.read_bytes). That per-record count is the success payload of TransportEvent::Fetched (:2235), which feedsstats.bytes_in += bytes(:3626) andinbound_rate.observe(*bytes, job.started.elapsed())(:3628). Under a coalesced burst the sample divides ~logical bytes by a ~4x shorter physical elapsed time, so inbound_rate inflates roughly with the fan-out (the PR's own 4.21x/3.97x/4.01x). inbound_rate is not a statistic: DiskStore::hit prices restores atbytes / inbound_rate(:3587) and worth_fetching/worth_transfer gate admission on it (selene/src/store.rs:423-438; consumers helios/src/server/runtime.rs:2772, helios/src/server/metrics.rs:532). A later lone restore that will not be coalesced is then under-priced and may be fetched when prefill was cheaper. Symmetrically, stats.bytes_in shows none of the 4.21x physical-read win, and docs/prefix-cache-offload.md:1501-1502 defines "Inbound latency"/"Copy-out bandwidth" as store-counter measurements. - Request: observe the rate on physical window bytes — one sample per window (or per segment) at its own completion, with the window's own start time — and keep
bytes_inas the logical restored-byte counter, documenting the distinction in §2.4 and §4. Add a test that compares StoreStats.inbound_rate for 1 vs 8 concurrent restores of the same prefix against measured device bytes, and one asserting bytes_in is unchanged by coalescing. - Why: otherwise the performance policy that decides whether to restore at all is measured on a quantity the change makes non-physical, and only a test can pin the size of the error.
- Docs and rustdoc overstate the mechanism and drop the invariant that licenses it.
- Finding (docs/prefix-cache-offload.md:337-342): the new sentence says concurrent fetches "share one open file handle and coalesce aligned 64-page windows…" with (a) neither of the two limits the PR description itself discloses — a window already released before a later arrival attaches is read again, and skip_pages % WINDOW_PAGES != 0 now splits up to one extra partial window; (b) not the invariant that makes sharing safe — published records are immutable and pinned for the life of every restore (it exists only in the PR conversation); (c) "aligned 64-page" without saying aligned to absolute file page boundaries, and "64" instead of WINDOW_PAGES; (d) stale signatures
write_from(key, metadata, buffers)/read_into(key, buffers)where the real ones are write_from(id, header, temporary, path, pages, row, sums) (selene/src/disk_store.rs:1242-1251) and read_into(id, path, expected, first_page, pages, row) (:1268-1276); (e) one 60-word sentence carrying three behaviours where the section's style elsewhere is one behaviour per sentence. Also failure scope (shared open/read error fails every attached restore; private child/upload error fails one) belongs in §2.4 or the §2.12 invariant list (docs:853). - Finding (module doc selene/src/disk_store.rs:14-24): the header now describes sharing but still claims windows are bounded to "at most WINDOWS_IN_FLIGHT windows of one record staged at a time" and "Nothing here waits", while device restores run out-of-order plans over reference-counted windows that stay staged past their own completion and can be complete-but-not-reported while waiting for seg.settled() (:2221-2232).
- Finding (selene/src/disk_store.rs:228-234): the rustdoc for Resources::allocate ("Slots for
pagespage records and, whenrow, all row pieces;Noneleaves the pool unchanged…") now sits above the newly inserted free_slots, which takes no arguments; the published docs describe the wrong function andallocate, whose all-or-nothing contract is the subtle one, is undocumented. On main the comment is above allocate (main selene/src/disk_store.rs:216-218). - Request: state the two disclosed limits and the immutability+pin invariant, name WINDOW_PAGES at the point the alignment rule is introduced, fix the two signatures, split the sentence; rewrite the two module-doc claims (two-window credit, follower sharing, settle-before-Fetched); move the allocate comment back and give free_slots its own one-liner.
- Why: AGENTS.md:194-199 and design-review principle 16 require material limitations and the safety invariant in the specification of record, not only in the PR thread; a misplaced rustdoc ships a wrong contract.
- Tie the benchmark to the code under review, and stop presenting expected costs as results.
- Finding: the table was measured before the linear demand-index and close-count edits now at head; the only notice is a parenthesis in the setup line, and the "Not covered" bullet repeats it in a different emphasis. Those edits change pass-2 demand attach ordering — exactly what produces shared windows. Separately, "Existing users pay per-pump demand indexing when free slots exist and at most one extra window split when skip_pages % 64 != 0" sits at the end of Result with no measurement, and overstates it: build_pending_demand returns an empty table before doing any work when device_inbound.len() <= 1 (:1651-1653), so the cost applies to multi-fetch pumps only.
- Request: re-run one TP1 simultaneous and one staggered trial at head (or state plainly that the numbers are from an earlier commit and that head differs only by demand-index bookkeeping and close accounting), and label the cost sentence as an expected, unmeasured bound with the single-fetch fast path noted.
- Why: AGENTS.md:95-96 and :103-112 — separate expectation from measurement, and connect each claim to the artifact actually tested.
- One window planner, one window identity.
- Finding: plan_aligned_windows (:700-738) is plan_windows (:670-695) with a single added clamp (
chunk_end = end.min(((cursor / WINDOW_PAGES) + 1) * WINDOW_PAGES), :721-722): same signature, same output type, same row-on-last-window and row-only rules, and identical output wheneverfirstis aligned — the divergence is exactly the misaligned skip_pages case the new tests cover. memory.rs:1333-1367 windows() is a third expression of the same policy. Separately the sharing key (path, expected Header, first, count, row) is re-expressed by hand five times — segment lookup in acquire_shared_segment (:1368-1373), field matching in find_reusable_window (:1578-1583), the demand map key plus an inner Vec<(Header, usize)> scan in build_pending_demand (:1647-1679), the same key rebuilt in pick_next_pending_plan (:1705-1718), and twice in the demand decrement blocks (:1890-1899, :1996-2006) — while the PR already names the other two layers (SharedSegmentId :1000, SharedWindowId :1003). Header derives PartialEq/Eq but not Hash (selene/src/shared/record.rs:136-154), which is why there is a linear scan. - Request: fold the aligned split into plan_windows behind an alignment parameter (or use plan_aligned_windows for read_into too; the only test pinning host split points is windows_split_segments_at_the_window_size_and_carry_the_row_last, :6221-6253) and delete the copy; introduce one WindowKey type next to SharedWindowId with a Hash-able header identity, and keep HashMap<WindowKey, SharedWindowId> beside shared_windows plus HashMap<WindowKey, usize> for demand; store the shared segment id or Arc in DeviceSegmentRef instead of PathBuf.
- Why: charter line 9 ("smallest footprint in shared code") and design-review principle 8 — five hand-written copies of the predicate that decides whether two restores may share a window is how a follower ends up attached to the wrong expected header. It is also the enabling change for the next item.
- Remove the per-pump allocation and quadratic scan in the attach path, and the duplicated attach loop.
- Finding: build_pending_demand clones a PathBuf per pending plan (:1668) and a Header per bucket push (:1674); pick_next_pending_plan clones the path per candidate plan (:1710) and so do both decrement blocks (:1890, :1996); find_reusable_window scans every value in shared_windows (:1576-1599) for every pending plan and is called from find_best_existing_window_for (:1602-1624) inside the attach loops — an allocation and an O(windows x plans) scan per pump in ordinary multi-fetch serving, which the PR itself avoids elsewhere with the pending_page_reads index (:1030). Pass 2 (:1845-1861) and Pass 4 (:1874-1903) also run the identical needs_credit predicate (
record.error.is_none() && record.active.len() < WINDOWS_IN_FLIGHT, repeated at :1847-1852, :1876-1881 and inline at :2122-2124) and the identical find_best_existing_window_for + attach_existing_window loop, differing only in Pass 4's demand decrement. - Request: with WindowKey in place, index windows and demand so the lookups are hashes and the clones are refcount bumps; extract
fn has_window_credit(&self, id) -> boolandfn attach_pending(&mut self, id, demand: Option<&mut Demand>) -> booland call them from both passes and the Pass 5b credit check. - Why: the description concedes the per-pump indexing cost; the implementation pays more than the description claims, and a single credit predicate cannot drift the way two copies can (AGENTS.md:188-193 is satisfied by removing this cost, not by adding to it).
- Record the design decision for the new shared inbound lifecycle.
- Finding: the change replaces Staged's single inbound lifecycle — the invariant that made "Nothing here waits" true — with two (host vs device) inside shared cache policy: five new lifecycle types, a five-state file machine, two reference counts per window, out-of-order plan completion and a "close only when settled" rule (:1000-1160, :2205-2255). AGENTS.md:204-206 asks for an explicit maintainer decision before changing an invariant like this, and the PR does not discuss the main alternative.
- Request: get a recorded maintainer sign-off on doing the coalescing inside Staged rather than inside the disk thread (which already owns the file handle), or the author's justification for preferring Staged; keep the rest of the change as is.
- Why: the technical content is sound in review, but a change of this shape to shared cache invariants should rest on a design decision rather than on review-time inference.
NITS
- Staged::close under-reports abandoned work (selene/src/disk_store.rs:2485-2489 vs busy() :2344-2351). It sums the four job pipelines then takes
.max(usize::from(self.busy())), and busy() is also true for a non-empty shared_segments, shared_windows or owners — a leaked window or segment alone reports "1 disk transport jobs did not complete". The old code counted owners.len() (main selene/src/disk_store.rs:1419). Count owned disk jobs, or reword the message to what is counted. - The three new counters are compiled into release behind
#[cfg_attr(not(any(test, feature = "test-support")), allow(dead_code))]on the fields (:192-200) while their accessors are already cfg-gated (:1213-1236); the only three uses of that attribute in selene/src. The crate's convention is to compile the member out (selene/src/disk.rs:104-116 Faults). Gate the fields and increments the same way. Related: disk_opens / disk_window_reads / coalesced_windows live outside StoreStats (selene/src/store.rs:185-244), the declared home for counters that docs:1501-1502 gates qualification on — worth a follow-up adding disk_opens and coalesced_windows there. - GatedCopier returns a positional four-tuple of Arc<Mutex<..>> handles that every call site destructures (:8059-8064, :8364, :8488, :8608), where the crate's fixtures in selene/src/testing.rs (StoppedCopier :178, SimulatedGpu :225) return named two-element pairs; six coalescing tests also repeat the same pool/store construction although write_shared_ancestor_tree (:8136) and poll_all_fetches (:8172) already exist. Use a named struct and one store_for_fixture helper.
- Redundant state to drop: PlanState::Done is never branched on — every read is
!= Pending(:1606, :1660, :1698) or== Pending(:1796) and Done is only assigned (:1833), so a started flag suffices. HostInbound is aVec<Segment>of length one with an always-zero index (Owner::HostInbound(JobId, usize) :258, :1285, :1293-1294, tolerant lookup :799-801) — a single Segment and Owner::HostInbound(JobId) removes the index and Segment::reads_left (:649, :832, :877). SharedWindow.path/.expected (:1073-1074) duplicate SharedSegment's (:1024-1025) and are cloned per window (:1966-1967); comparing win.segment would drop both. The id fields on SharedWindow/SharedSegment duplicate their map keys (:1071 vs :1961, :1022). - Naming axis mixing and long-sentence prose: records are named by destination (HostInbound :759, DeviceInbound :1117) but windows by sharing discipline (HostWindow :746, SharedWindow :1070), so a reader must check both axes to pair them (PrivateWindow/SharedWindow or Host/Device); and the new §2.4 sentence carries three behaviours where the surrounding section uses one sentence each.
WHAT WAS CHECKED AND FOUND SOUND (no action)
Slot lifetime and release (single release point sweep_shared_windows :1755-1771; segment removal only when no users and settled :2213-2230; per-test assertions pool.free_slots() == pool.slot_count()); failure isolation (record.fail :1563-1565, fail_segment_users :1449-1473, fail_window :1475-1487, with_record_read :1503/:1540, Fetched still routes record_read to index.drop_row :3634-3640); the host path is behaviourally unchanged (plan_windows :1283, HostWindow slicing :914-923, unwind :976-996); keeping read_into off the shared path is the right call for caller-owned buffers; no existing shared-handle/demand mechanism was duplicated; no record-format, Header, on-disk or re-export change, so existing checkpoint files load unchanged; no flags, env vars, config knobs, cfg-gated production paths or per-model branches, so the AGENTS.md rejection criteria (171-187) are not tripped; the tests exercise real paths (SimulatedGpu byte-exact, counters incremented at the real submit sites) per AGENTS.md:194-199; the 8-pass ordering argument is justified per pass; the size is not churn.
#10 [high] DELIVERABLE: summary report / GitHub post for PR #496
========================================================= SUMMARY REPORT — PR #496 (GitHub post, ≤10 bullets)
Reviewed head f9c9191 against main (+2808/−914, selene/src/disk_store.rs + docs/prefix-cache-offload.md). The approach belongs in the repository (measured, served-workload speedup; no flags, no format change, failure isolation preserved) and the lifetime work is sound. One blocker, then mostly accounting, docs and duplication.
Blockers
- The 61.3K retrieval result must be settled. The PR reports 8/9 (main) vs 7/9 (this PR) on a temperature=0 retrieval prompt at 61.3K. Repeat it a few times on both revisions and report the variance and the differing fact, fix it if it holds, or mark it inconclusive under "Not covered". It is the only end-to-end signal for the fan-out and the only check that got worse; the likely sites are plan_aligned_windows' chunk mapping for non-64-aligned first pages and the trailing partial-chunk row flag.
Should Fix
- inbound_rate is now measured on logical bytes. Each follower credits the whole window to its record (disk_store.rs:1829), so the rate sample divides coalesced-elapsed time into a ~4x larger byte count and
hit()/worth_fetchingthen under-price lone restores. Observe the rate once per physical window, keepbytes_inlogical and document it, and add a 1-vs-8-restore rate test. - Docs claim more than the mechanism and are wrong in two places. §2.4 needs the two limits the description discloses, the immutable+pinned invariant, WINDOW_PAGES file-boundary alignment, and the real
write_from/read_intosignatures; the module doc still says "at most WINDOWS_IN_FLIGHT windows" and "Nothing here waits"; theallocaterustdoc now sits onfree_slots(:228-234). - Tie the benchmark to head and don't state expectations as results. The table predates the demand-index/close-count edits; re-run one simultaneous and one staggered TP1 trial at head (or label the table's commit), and mark "existing users pay per-pump demand indexing…" as an expected bound (it only applies to multi-fetch pumps, :1651-1653).
- One planner, one window key. plan_aligned_windows is plan_windows plus one clamp — fold them; and the sharing key (path, header, first, count, row) is hand-written five times (:1368, :1578, :1647, :1710, :1890/:1996) — name it WindowKey and index it, which also removes the per-pump PathBuf clones and the O(windows×plans) find_reusable_window scan.
- De-duplicate the attach loop and record the design call. Pass 2 and Pass 4 repeat the same credit predicate and attach loop (:1845-1861, :1874-1903) — extract has_window_credit/attach_pending; and get a recorded maintainer decision for putting a second inbound lifecycle (host vs device) inside Staged rather than in the disk thread, which already owns the handle.
Nits
Staged::closecounts shared windows/segments into "N disk transport jobs did not complete" (:2485-2489) — count owned jobs or reword.- The three new counters are ungated
allow(dead_code)fields (:192-200) instead of#[cfg(any(test, feature = "test-support"))]likedisk.rs's Faults; consider surfacing disk_opens/coalesced_windows in StoreStats. GatedCopierreturns a positional four-tuple (:8059) where the crate's fixtures return named pairs; six tests repeat the same fixture construction.- Drop state nothing branches on:
PlanState::Done(:1093, :1833),HostInbound's single-elementVec<Segment>with an always-zero index (:1285),SharedWindow.path/.expectedduplicating its segment (:1073), and id fields duplicating map keys. - Naming mixes axes (HostInbound/DeviceInbound vs HostWindow/SharedWindow); split the new 60-word §2.4 sentence into one behaviour each.
#12 [high] DELIVERABLE (final): summary report / GitHub post for PR #496
========================================================= SUMMARY REPORT — PR #496 (GitHub post, 10 bullets max) Case file: https://autobot.eidonix.com/api/v1/cases/774e16ea-5f84-4ff8-9166-74ab6876cc37.html Head f9c9191 vs main, +2808/−914 (selene/src/disk_store.rs, docs/prefix-cache-offload.md).
Opener (1-2 sentences): The approach belongs in the repo — a measured, served-workload speedup with no new flags, no format change, and failure isolation preserved — and the shared-window lifetime work holds up under review. One thing must be resolved before merge; the rest is accounting, docs and duplication.
Blockers
- Settle the 61.3K retrieval result (or say it is inconclusive). The description reports 8/9 on main vs 7/9 with this change on a temperature=0 retrieval prompt, with no conclusion drawn. Re-run that prompt a few times on both revisions and report the variance and the differing fact; fix it if the gap holds, otherwise mark the check inconclusive under "Not covered". It is the only end-to-end signal for the new fan-out, and the plausible defect sites are narrow: plan_aligned_windows' chunk/offset mapping for a non-64-aligned first page and the trailing partial chunk's row flag.
Should Fix
inbound_rateis now measured on logical bytes and does not self-correct. Each follower credits the whole window to its own record (:1829), so the rate sample divides coalesced elapsed time into a ~4x byte count;hit()prices restores off that rate andworth_fetchinggates on it. Fix: one rate sample per physical window,bytes_instays logical and documented, plus a 1-vs-8-restore test.- Docs and rustdoc claim more than the mechanism. §2.4 needs the two limits the description already discloses, the immutable+pinned invariant,
WINDOW_PAGESfile-boundary alignment, and the realwrite_from/read_intosignatures; the module doc still says "at most WINDOWS_IN_FLIGHT windows" and "Nothing here waits"; theallocaterustdoc now sits onfree_slots(:228-234). - Tie the benchmark to head; do not state expectations as results. The table predates the demand-index/close-count edits — re-run one simultaneous and one staggered TP1 trial at head, or label the table's commit — and mark "existing users pay per-pump demand indexing…" as an expected bound that only applies to multi-fetch pumps (:1651-1653).
- One planner, one window key. plan_aligned_windows is plan_windows plus one clamp (fold them), and the sharing key (path, header, first, count, row) is hand-written five times (:1368, :1578, :1647, :1710, :1890/:1996) — name it
WindowKeyand index it, which also removes the per-pump PathBuf clones and the O(windows×plans)find_reusable_windowscan. - De-duplicate the attach loop; record the design call. Pass 2 and Pass 4 repeat the same credit predicate and attach loop (:1845-1861, :1874-1903) — extract
has_window_credit/attach_pending; and get a recorded maintainer decision for putting a second inbound lifecycle (host vs device) insideStagedrather than in the disk thread that already owns the handle.
Nits
Staged::closecounts shared windows/segments into "N disk transport jobs did not complete" (:2485-2489) — count owned jobs or reword the message.- Gate the three new counters like
disk.rs'sFaults(#[cfg(any(test, feature = "test-support"))], :192-200) instead ofallow(dead_code), and consider addingdisk_opens/coalesced_windowstoStoreStats. GatedCopierreturns a positional four-tuple (:8059) where the crate's fixtures return named pairs; six tests repeat the same fixture construction.- Drop state nothing branches on:
PlanState::Done(:1093, :1833),HostInbound's single-elementVec<Segment>with an always-zero index (:1285),SharedWindow.path/.expectedduplicating its segment (:1073), id fields duplicating map keys. - Naming mixes axes (
HostInbound/DeviceInboundvsHostWindow/SharedWindow); split the new 60-word §2.4 sentence into one behaviour each.
Closing line: Everything else checked out — slot lifetime and release, failure isolation, the unchanged host path, no format or re-export change, real-path tests. Full detail is in the case file.
#13 [high] DELIVERABLE (final, 10 bullets): summary report / GitHub post for PR #496
========================================================= SUMMARY REPORT — PR #496 (GitHub post; hard cap: 10 bullets = 1 blocker + 5 should-fix + 4 nits) Case file: https://autobot.eidonix.com/api/v1/cases/774e16ea-5f84-4ff8-9166-74ab6876cc37.html Head f9c9191 vs main, +2808/−914 (selene/src/disk_store.rs, docs/prefix-cache-offload.md).
Opener: The approach belongs in the repo — a measured, served-workload speedup with no new flags, no format change and failure isolation preserved — and the shared-window lifetime work holds up under review. One thing must be resolved before merge; the rest is accounting, docs and duplication.
Blockers
- Settle the 61.3K retrieval result, or declare it inconclusive. The description reports 8/9 on main vs 7/9 with this change on a temperature=0 retrieval prompt, and draws no conclusion. Re-run it a few times on both revisions and report the variance and the differing fact; fix it if the gap holds, otherwise move the check under "Not covered" as inconclusive (and add a follower-attaches-to-a-partial-aligned-window byte-exactness test, which is the narrow plausible site).
Should Fix
inbound_rateis now measured on logical bytes, and the error does not self-correct. Each follower credits the whole shared window to its own record (:1829), so the rate sample divides coalesced elapsed time into a ~4x byte count;hit()prices restores off that rate andworth_fetchinggates on it, and because the median stays above its seed until three more samples arrive it mis-prices subsequent restores. Fix: one rate sample per physical window,bytes_instays logical and documented, plus a 1-vs-8-restore rate test.- Docs and rustdoc claim more than the mechanism. §2.4 needs the two limits the description already discloses, the immutable+pinned invariant,
WINDOW_PAGESfile-boundary alignment and the realwrite_from/read_intosignatures; the module doc still says "at most WINDOWS_IN_FLIGHT windows" and "Nothing here waits"; theallocaterustdoc now sits onfree_slots(:228-234). - Tie the benchmark to head; do not state expectations as results. The table predates the demand-index/close-count edits — re-run one simultaneous and one staggered TP1 trial at head, or label the table's commit — and mark "existing users pay per-pump demand indexing…" as an expected bound that applies only to multi-fetch pumps (:1651-1653).
- One planner, one window key. plan_aligned_windows is plan_windows plus one clamp (fold them); the sharing key (path, header, first, count, row) is hand-written five times (:1368, :1578, :1647, :1710, :1890/:1996) — name it
WindowKeyand index it, which also removes the per-pump PathBuf clones and the O(windows×plans)find_reusable_windowscan. - De-duplicate the attach loop and record the design call. Pass 2 and Pass 4 repeat the same credit predicate and attach loop (:1845-1861, :1874-1903) — extract
has_window_credit/attach_pending; and get a recorded maintainer decision for placing a second inbound lifecycle (host vs device) insideStagedrather than in the disk thread that already owns the handle.
Nits
Staged::closecounts leaked shared windows/segments into "N disk transport jobs did not complete" (:2485-2489) — count owned jobs or reword the message.- Test hygiene: gate the three new counters like
disk.rs'sFaults(:192-200) instead ofallow(dead_code)and consider surfacingdisk_opens/coalesced_windowsinStoreStats;GatedCopierreturns a positional four-tuple (:8059) where this crate's fixtures return named pairs, and six tests repeat the same fixture construction. - Drop state nothing branches on:
PlanState::Done(:1093, :1833),HostInbound's single-elementVec<Segment>with an always-zero index (:1285),SharedWindow.path/.expectedduplicating its segment (:1073), and id fields duplicating their map keys. - Naming mixes axes (
HostInbound/DeviceInboundvsHostWindow/SharedWindow); split the new 60-word §2.4 sentence into one behaviour per sentence.
Closing: Everything else checked out — slot lifetime and release, failure isolation, the unchanged caller-owned host path, no format or re-export change, and tests that exercise the real path. Full detail and evidence are in the case file.
#14 [high] Research summary
Both deliverables are written to the scratchpad.
Full report (entry 9, with addendum entry 11): Blockers (1) — the PR's own evidence reports 8/9 on main vs 7/9 with this change on a temperature=0 retrieval prompt at 61.3K, undiagnosed; ask for a repeat run and either a fix or an explicit "inconclusive" under Not covered. Should Fix (6) — coalesced logical bytes inflate inbound_rate, which is the divisor DiskStore::hit prices restores with and worth_fetching gates on (Rate keeps the median and only decays below its seed, so the error persists); docs §2.4 and the module doc overstate the mechanism, omit the two limits the description discloses and the immutable+pinned invariant, and keep two non-existent signatures, plus a misplaced allocate rustdoc now on free_slots; the benchmark table predates head and an unmeasured expected cost is stated as a result; plan_aligned_windows duplicates plan_windows and the sharing key is hand-written five times; per-pump PathBuf clones and an O(windows×plans) scan plus a doubled attach loop; and a request for a recorded maintainer decision on placing a second inbound lifecycle inside Staged. Nits (5) — close() under-reports abandoned jobs, test-only counters ungated and outside StoreStats, GatedCopier's positional 4-tuple, dead state (PlanState::Done, single-element Vec<Segment>, duplicated window fields/ids), naming-axis mixing and a 60-word sentence. A "checked and sound" list is included so the author is not asked to change what holds up.
Summary report (entry 13): exactly 10 bullets — 1 blocker, 5 should-fix, 4 nits — each one line of finding plus a tldr request, with a case-file link, an opener acknowledging the change belongs in the repo, and a closing pointer to the case file for evidence. Verdict: not mergeable as is, but close — the design and lifetimes are sound and the remaining work is one unresolved measurement, one accounting fix, docs, and de-duplication.
#15 [high] Limits of this review / open questions the author must answer
Honest scope of the review behind entries 1-13. No compiler, GPU or test run was available: every finding is established from source, not from executing anything. cargo build/test was not run, so the claim that the three allow(dead_code) attributes are unnecessary (nit 2 of the full report) rests on the crate's convention (selene/src/disk.rs:104-116) rather than on a warning-free build; the author can confirm with cargo build --release --manifest-path selene/Cargo.toml.
Not reviewed / not verified:
- The new test module past ~line 8420 in selene/src/disk_store.rs (so follower-attachment assertions are taken from the PR description, not read).
- The #497 interaction: both PRs touch
Staged::pump_all(selene/src/disk_store.rs:2268-2289); merge order ("merge this PR first, then rebase #497") is asserted in the description and not checkable from this branch. - helios GPU-offload path, Windows IOCP serving, discrete PCIe GPUs, live
CompositeStore/PooledStoreGPU serving — none run by the author, none reviewed here beyond the host-path code in disk_store.rs. - Whether
Headercan cheaply gain aHash/digest form (selene/src/shared/record.rs:136-154 derives PartialEq/Eq only) determines whether theWindowKeyrequest is small or structural — a maintainer/author call. - Whether coalescing belongs in
Stagedor in the disk thread (which already owns the file handle) is a maintainer design decision; the PR does not discuss the alternative. - The numeric size of the inbound_rate inflation: code shows the direction and the mechanism (see addendum entry 11), only a 1-vs-8-restore test shows the factor.
- Pending-row-read FIFO matching (
pending_row_reads, :1030-1032, :1512) is correct only if every intendedReadRowis submitted on the same disk id; a dropped submission could stalldisk_outstandingand hitCLOSE_TIMEOUT. Not traced to a conclusion — worth mentioning only if asked.
Three responses the author may give that would close findings cleanly: (a) re-runs showing the 61.3K gap is noise; (b) a maintainer sign-off on the Staged-side lifecycle; (c) confirmation that plan_windows was kept segment-relative for host reads deliberately (a one-line comment would then settle the duplication request).
#6 [medium] Nit findings: close() abandoned count, GatedCopier tuple, naming axis
selene/src/disk_store.rs:2475-2508 Staged::close: let abandoned = (outbound.len() + host_inbound.len() + device_inbound.len() + maintenance.len()).max(usize::from(self.busy())) (:2485-2489), while busy() (:2344-2351) is true when ANY of outbound/host_inbound/device_inbound/shared_segments/shared_windows/owners is non-empty. So a leaked shared window or segment alone reports abandoned == 1 even when the four summed pipelines are empty, and the error says "{abandoned} disk transport jobs did not complete" (:2501-2505). Pre-change code (main selene/src/disk_store.rs:1419) counted self.owners.len() — owned disk jobs. Fix: count owned jobs (owners.len(), or owners.len()+maintenance.len()) or reword the message. Diagnostics only: the error is still returned and the pool still leaked (:2495-2499), no lifetime change. Verdict: nit / minor should-fix — it is the line a shutdown warning or CI failure is read from, and it under-reports exactly in the coalesced case this PR introduces.
Other nits:
- GatedCopier fixture in disk_store's test module (:8051-8080, GatedCopierParts :8059-8064) returns a positional 4-tuple of Arc<Mutex<..>> handles destructured at each call site (:8364, :8488, :8608) vs the crate convention in selene/src/testing.rs (StoppedCopier :178, SimulatedGpu :225, both returning a 2-element pair). Also six new coalescing tests repeat the same pool/store construction block although write_shared_ancestor_tree (:8136) and poll_all_fetches (:8172) already exist.
- Naming axis mixing: HostInbound (:759) / DeviceInbound (:1117) named by destination but HostWindow (:746) / SharedWindow (:1070) named by sharing discipline (HostInPhase :741, SharedWindowPhase :1052). PrivateWindow/SharedWindow or Host/Device consistently.
- 60-word doc sentence splitting (docs:339-342) — see entry on docs.
#7 [medium] Findings: PR description prose (expected costs, benchmark provenance)
PROSE / DESCRIPTION items (AGENTS.md:72-140, docs/design-review.md principle 16, repo-prose skill "separate measurements from hypotheses"):
- "Existing users pay per-pump demand indexing when free slots exist and at most one extra window split when
skip_pages % 64 != 0" sits at the end of Result with no measurement → expectation stated as result (AGENTS.md:95-96). Also overstates: build_pending_demand returns an empty table before any work when device_inbound.len() <= 1 (selene/src/disk_store.rs:1651-1653) and pick_next_pending_plan takes the layout lock once per call (:1691-1695), so the cost applies to multi-fetch pumps only. Fix: label as expected/unmeasured bound and note the single-fetch fast path. - Benchmark provenance is a parenthesis: "measured before the linear demand-index and close-count edits" — table is not the head commit f9c9191 (unit suites were run at c0c4f798). "Not covered" separately says the SM121 runs were not repeated after the demand-index edit, which conflicts in emphasis. Fix: state plainly in the benchmark paragraph that the numbers are from an earlier commit of this branch (those edits change scheduling — pass 2 demand attach ordering — which is exactly what produces shared windows), or re-run at least one TP1 simultaneous and one staggered trial at head. The honest disclosure is why architecture lens rated it a nit, not a blocker (AGENTS.md:194-199).
- Commit message: single commit, imperative, matches neighbouring selene subjects, body reproduces the 4-part argument. Nothing to fix.
- "Not covered" section is genuine (helios FLARE_RUN_CUDA_TESTS=1, discrete PCIe GPUs, Windows serving, live CompositeStore/PooledStore GPU serving). Companion-PR logistics handled correctly per AGENTS.md:126-128 (merge #496 first, then rebase #497; both share the 425ab2d4 baseline). Both PRs touch Staged::pump_all (merging/pump_all order at :2268-2289 runs outbound, host_inbound, then device).
- No prose defect in the new type/state comments: SharedFileState (:1005-1017), SharedSegment/reusable/settled (:1019-1050), SharedWindow (:1065-1091) matches sweep_shared_windows (:1755), plan_aligned_windows (:697-699), pass comments Pass 1..5e, test names state the property. Model example of good documentation.
#8 [medium] Verified sound: lifetimes, failure isolation, host path, tests
What held up (do not ask the author to change):
- Slot lifetime: a shared window is released only when followers.is_empty() && disk_referenced == 0 && upload_referenced == 0 (sweep_shared_windows :1755-1771); segment removal requires active.is_empty() (Pass 5e :2213-2230); detach refuses while an upload is busy (:1737-1741); allocate(plan.count, plan.row) matches record_slots. No double release; Resources::release idempotent via slots.take() (:247-251). Each new test asserts pool.free_slots() == pool.slot_count().
- Host path unchanged: read_into keeps plan_windows (:1283), private per-restore opens, caller-buffer slicing in HostWindow (:914-923), sub-window resubmission (:931-970), unwind drains before reporting (:976-996). CompositeStore sees no change — good call: caller-owned buffers have caller-defined lifetimes (design-review principle 6).
- read_into deliberately NOT coalesced: correct, not a missed opportunity.
- No existing shared-handle/demand mechanism was duplicated (shard::Sharded has only a plain fetch, selene/src/shard.rs:900).
- Failure isolation: private child/upload errors via record.fail (:1563-1565); shared open/read errors via fail_segment_users (:1449-1473) and fail_window (:1475-1487) after in-flight I/O; with_record_read() applied (:1503, :1540); TransportEvent::Fetched keeps routing record_read to index.drop_row (:3634-3640).
- No format/Header/on-disk change, no core re-export change; sharing keys on (path, expected Header) so records written by main read unchanged. WINDOWS_IN_FLIGHT still derives from crate::shared::WINDOW_CREDITS (:60).
- No new flags, env vars, config knobs, cfg-gated production paths, or per-model branches.
- Tests exercise the real path (SimulatedGpu byte-exact page/row assertions :8453-8570), and the counters are incremented at the actual submit_disk sites (:910, :946, :963, :1946, :2082, :2109), not in mocks — satisfies AGENTS.md:194-199.
- The 8-pass pump_device_inbound ordering carries a correctness argument per pass (attach before sweep, release before start, submit reads then uploads) — simplicity lens explicitly did NOT ask for a different shape, only for the duplicated attach loop to go.
- The +2803/-913 size is not churn under AGENTS.md:188-193.
#11 [medium] Addendum to Should Fix #1: Level::Rate inflates and does not self-correct
ADDENDUM to Should Fix #1 (rate mechanics). selene/src/levels.rs:36-76: Rate keeps the median of the last three completed samples, and get() applies upward decay ONLY when median < seed (INITIAL_STAGED_DISK_RATE = 3e9, selene/src/store.rs:418). So an inflated median that sits ABOVE the seed does not decay back: it is returned as-is until three more samples arrive to push the median down. A single coalesced burst therefore mis-prices every restore for at least the next three completed restores, which strengthens the "should fix" call: this is not a transient blip in a dashboard. Also Rate::observe ignores zero-byte/zero-elapsed samples (:58-60), so a fix cannot simply skip the coalesced sample without also ensuring the physical sample is submitted — use one sample per window (or per segment) with its own start instant.
Severity rationale for the final report: not a blocker (no data is wrong, no lifetime is broken, and the write-up already discloses no byte-reduction claim for this counter), but it changes a scheduled policy's input; correctness lens A1 and architecture finding 1 both rated it "should fix".
#16 [medium] Verdicts and severity rationale across the five review lenses
Five prior lenses: A correctness, B architecture/scope, C conventions/duplication, D simplicity, E prose.
- A (correctness): no blocking defect in the paths read; A1 logical-vs-physical bytes -> inbound_rate (should fix), A2 the 8/9 -> 7/9 gap (should fix, may collapse to a description fix), A3
Staged::closecount (nit). Confirmed sound: slot lifetime, demand ordering, host path unchanged, failure isolation, Fetched emission, pump_all order. - B (architecture/scope): change belongs (charter "What gets merged" allows a measured performance issue; AGENTS.md:165-166; goal: share prefix-cache checkpoints via Selene). No rejection criterion tripped (no scope expansion 171-175, no architectural violation 176-181, no per-model branch/flag/env, no format or re-export change, weakened-guarantee rule 182-187 respected). Should fix: bytes metering; the new ownership protocol needs a recorded design decision and a corrected module contract; doc overstates. Nits: benchmark provenance, coalescing unobservable outside tests.
- C (conventions/duplication): should fix only — duplicated planner, unnamed
WindowKeyidentity, per-pump allocation/quadratic scan. Nits: GatedCopier tuple/placement, ungated counters, close() count, naming axis, prose. - D (simplicity): explicitly NO blocking or should-fix finding — "do not add frameworks/switches" (AGENTS.md:188-193) is satisfied and the +2803/−913 size is not churn; the eight items are all nits with smaller versions (one planner, one attach helper, single
Segment,startedflag, drop duplicated window fields, gate counters, split the doc sentence, description overstates per-pump cost). - E (prose): nothing blocking, three should-fix — misplaced
allocaterustdoc, unexplained 8/9→7/9, expected costs stated as results — plus nits on benchmark provenance, "aligned" unresolved, and error scope missing from §2.4/§2.12.
Where lenses disagreed: D rated the planner duplication and the per-pump cost nits, C rated both should-fix, B rated the design-decision item should-fix and the bytes item should-fix; the full report takes the higher grade where two lenses overlap and keeps D's stack-reduction suggestions as nits so the author is not asked to reshape the 8-pass pump. Only A/B/E together produced the single blocker: nothing in any lens found a memory-safety, lifetime or data-corruption defect in the code as written — the blocker is an unresolved measurement in the PR's own evidence, not a proven bug, which is why the request is "settle it or declare it inconclusive" rather than "fix this defect".