#1 [high] Related work: #612 duplicates three of this PR's fixes, same files, opened same day
#612 (open, yatesdr, COLLABORATOR, opened 2026-11-29 17:08, branch fix/selene-manager-hardening, head 6c5e2e1, +375/−63, 11 files) is a competing/overlapping PR to #607 and touches 6 of the same files: selene-manager/src/pool/{claims.rs, core.rs, index.rs, mod.rs, store_bridge.rs} and selene/src/shared/index.rs.
Direct duplications with #607 (verified from #612's own description and file list):
entry_fromparent validation: #612 enforcesparent.consumed_tokens < key.consumed_tokensin selene-manager/src/pool/mod.rs; #607 also adds exactly this check (see #607 mod.rs diff,parent consumed_tokens must precede entry). #612's test isentry_from_rejects_self_or_non_decreasing_parent; #607's isentry_from_rejects_self_parent_and_non_monotonic_parent.walk_chain: #612 "bound hop counts and enforce decreasing tokens"; #607 addsstepsbound + decreasing check +max_nodes == 0. #612 testwalk_chain_rejects_self_referential_zero_tail_without_looping; #607 testwalk_chain_rejects_self_parent_cycles_and_zero_page_chains_beyond_max_nodes.PutWin.first_page: #612 "store tail-relativefirst_pageinPutWin.first_pageso linked multi-process puts indexmp.wholestarting at zero"; #607 does the same (record-relative viagrant.page_first - accepted.1). Same bug, same fix, same file.- Both touch selene/src/shared/index.rs (#612 adds
Index::reparent_to_root; #607 changesIndex::expired).
Also overlapping in subject matter but different mechanism: #612 rejects multi-process (world>=2) packed PutBegin/PinAck outright; #607 does not touch packed mp handling.
#612 claims broader validation (validate_scope 64 ranks / 1 TiB, windows::plan overflow, TLS handshake cap, idle scope bounding, pidfd EINTR, rank-0 reconnect secrets, session_claims_lost Pinned reclamation) and claims heavy hardware qualification (SM120 cn5 / ARM64 cn6, 4-PR stack incl. #496/#497) plus "combined 4-PR validation" — i.e. #612 and #607 appear to be part of the same series by different authors and will textually conflict on merge. Two of the overlapping hunks are literally the same lines of mod.rs/index.rs/store_bridge.rs. Discord tags differ: #612 "D-Rock"; #607 "no username provided".
Implication for a decider: whichever lands first makes the other's overlapping hunks redundant; neither description references the other.
#2 [high] Related work: #609 duplicates the withdraw_queued peer-DMA fix verbatim
#609 (open, yatesdr, 2026-11-29 17:08, branch fix/selene-dma-lifetime-safety, head db83ae7, +307/−72, 16 files) contains a verbatim-duplicate fix of #607's item 3b:
- Both change the identical line in
selene/src/pool/engine/requester.rsEngine::withdraw_queued: #609 "Requirew.jobs_left == 0 && w.peers_left.is_empty() && !w.releasedbefore emittingWindowReleased" — byte-for-byte the same predicate #607 adds (see #607 requester.rs diff hunk at line ~1174). #607's testwithdraw_queued_waits_for_peer_dma_before_releasing_window(selene/src/pool/engine/tests.rs, +47) and #609'swithdraw_queued_waits_for_peers_before_releasing_window(+20) are the same test scenario; #607 adds a#[cfg(test)] attach_shared_peer_for_testhelper in requester.rs, #609 does not. - Both also touch selene/src/pool/agent.rs, selene/src/pool/net.rs, selene/src/memory.rs, selene/src/composite.rs, selene/src/pool/engine/tests.rs — 6 overlapping files.
#609 additionally covers ground #607 does NOT: MemoryStore/disk_store::Resources drop order (slab pools before thread joins), CompositeStore::close short-circuit, AsyncCompressor active-counter leak on panic, Engine::quarantine / Agent::quarantine region retention, conn::shutdown timeout → quarantine, rdma::Device retaining staging Region, LocalRegions overlapping &mut [u8] (bytes_read, ptr_mut, scatter_disjoint), Windows IOCP ReadAhead attach. Its description explicitly says the withdraw_queued fix is "the minimal fix" for a defect it lists first.
Neither #607 nor #609 mentions the other. Both claim "SM120/SM121" live qualification against "the combined 4-PR stack" (i.e. #609, #611, #612, #613 for yatesdr's series) — #607's evidence is CPU-unit-test-only. So #607 and #609 are parallel, independently-authored fixes for the same peer-DMA window release bug, and #607's author has not run the live-hardware qualification the other series reports.
Interpretation for deciders: #607 overlaps #609 on 1 of its 6 defects and #612 on 3 of its 6 (entry_from, walk_chain, PutWin.first_page). If #609+#612 land, 4 of #607's 6 defects are already fixed elsewhere; #607's unique content would be the data-channel WindowReleased guard (claims.rs), the Agent staging-slot double-release, the store transfer-ID allocation, the Helios park stale-plan clear, memory.rs start_deferred, composite.rs v3 quarantine, and index.rs #439.
#3 [high] Change (verified): the claims.rs WindowReleased guard and what it also skips
Verified at pr/607.
The fix: Core::window_released now returns early when claim.channel().is_some():
- selene-manager/src/pool/claims.rs:1505-1533 — new guard at :1513-1516 ("A data-channel requester's windows are released when its handler reports them sent"), before the
claim.windows.get_mut(m.index)lookup and beforeself.reader_done(key, m.index, 0)at :1531. - Compare the pre-existing guard in the same file used by
window_filled: claims.rs:1437if claim.source_proc != Some(sender) || claim.source_channel().is_some(). channel()=root(&self.legs, false)(claims.rs:293),source_channel()=root(&self.legs, true)(claims.rs:296) — the two pick different legs, so the new guard mirrors, but does not equal,window_filled's guard. A claim with legs that has a non-source root leg is the covered case; a claim whose only leg is a source channel is not covered by this branch (its writes are reported through the channel handler at claims.rs:1795ChanOwner::Claim(key) => self.reader_done(key, index, 0)).
Undeclared side effects of the guard (not in the PR description):
- For channel-requester claims a malformed
WindowReleasednaming a non-existent window index is now silently accepted (Ok(())) instead of returning theViolation::new("WindowReleased names a window that was never issued")at claims.rs:1517-1521, and thePhase::SourceWrite | Phase::Unissuedviolation at :1525-1529 is likewise no longer raised for these claims. The description only says the call "Returns Ok(()) immediately"; the dropped validation on the untrusted gRPC path is not mentioned. - The change is a guard, not a reference count: if a channel-requester claim somehow also receives the data-channel
Event::Sent/Event::Closed(claims.rs:1795-1803) the release still happens there, so the invariant now depends entirely on the channel handler.
Test: window_released_from_channel_requester_does_not_drop_extent (claims.rs:3022-3067) asserts phase/readers/extent/staging.used() unchanged after window_released, then Free + extent None + staging.used()==0 after channel_event(Event::Sent). It also adds Claim::new_for_test (claims.rs:283-291, #[cfg(test)]) — an undeclared test-support helper.
#4 [high] Change (verified): manager-allocated store transfer IDs; accept.transfer echo is not checked
Verified at pr/607.
Baseline defect is real: the store keeps one ops: HashMap<transfer, Open> per connection (selene-manager/src/store.rs:615 sessions.get_mut(&connection)?.ops.get_mut(&transfer)?, :1256-1278 transfer_in_use rejects an id already open or queued on that connection, :4818-4823 "Put transfer id is already open on this connection", :4893-4896 same for Get). Before the PR, Core passed the client's put_id / claim_id as transfer, so a put with put_id==claim_id of a concurrent manager-backed get collided (and Cancel could cancel the wrong op because Store::cancel (store.rs:3477-3507) keys only on (connection, transfer)). The fix is therefore required by the store contract, not cosmetic.
The fix, verified line by line:
- selene-manager/src/pool/store_bridge.rs:39-42
StoreHandle.next_transfer, :122-126fn new_store_transfer(&mut self) -> Option<u64>(increment). - Allocation points: put_begin at :434-438 (
let Some(transfer) = self.new_store_transfer() else { put_refusal(..., v2::Reason::Io, "the store is not available")), manager_get at :1190-1194 (else return Err(v2::ClaimReason::SourceBusy)). - Stored:
PutRec.transfer(store_bridge.rs:55-57) set at :546;ManagerGet.transfer(claims.rs:225-227) written after a successful GetBegin at :1208-1213. - Every StoreCommand site now uses it: PutBegin :439, WindowFilled :952, PutCommit :1078, RequestWindow :1291 and :1325, and all Cancels at :468, :497, :738, :764, :1001, :1106, :1160, :1237; put-side cancel switched from
key.2torec.transfer(claims.rs:2201-2207let transfer = rec.transfer; ... StoreCommand::Cancel { connection, transfer }). store_cancel_get(store_bridge.rs:1226-1241) now readsclaim.manager.transferand filterstransfer != 0, becauseManagerGet::transferdefaults to 0 (claims.rs:877-881) until GetBegin succeeds. Verified 0 is never a live store id: ids start at 1 (next_transferpre-increment, initialized 0 in core.rs:424-428).- Initialized once in selene-manager/src/pool/core.rs:424-428.
Not verified / possible gap to raise: Core::put_answer handles Ok(PutAnswer::Accept(accept)) (store_bridge.rs:598-631) without comparing accept.transfer to rec.transfer; the store echoes the transfer back (store.rs:1798-1806 builds PutAccept { transfer, first_page, ... }). So a mismatched/late answer is accepted purely on the (process, put_id) event key. The new test asserts the value (transfer: 42 in both the PutRec and the PutAnswer::Accept, store_bridge.rs:1896/1934), but the production code does not enforce the match. Nothing in the description claims it does.
Also verified: linked_multi_process_put_stores_record_relative_window_first_page builds a PutRec by hand with accepted: None then feeds PutAnswer::Accept/Grant, so it exercises put_answer, put_pass_done and put_commit but not put_begin/wire framing (store_bridge.rs:1770-1990).
#5 [high] Change (verified): entry_from / walk_chain bounds and the ChainGap mapping
Verified at pr/607.
entry_from (selene-manager/src/pool/mod.rs:98-135): new rejection at :113-117 — parent_key.consumed_tokens == 0 || parent_key.consumed_tokens >= key.consumed_tokens → Err(Violation::new("parent consumed_tokens must precede entry")). This runs on the untrusted IndexEntry accepted from a client's saved/announce path. Note the check is in entry_from, i.e. at ingest; entries already in a ScopeIndex (e.g. from the manager's own disk scan or catalog) never pass through it again, which is why the second half of the fix is needed.
walk_chain (selene-manager/src/pool/index.rs:163-232): max_nodes == 0 now returns None at :171; let mut steps = 1 at :184; new per-hop rejection at :192-197 (parent_key.consumed_tokens == 0 || >= current.key.consumed_tokens || steps >= max_nodes); steps += 1 at :214 next to the existing nodes.len() >= max_nodes check at :211. The zero-tail nodes.push skip is unchanged at :215-225 (parent with tail_pages == 0 is not pushed), so the bound is a separate counter — which is precisely the pre-existing hole (an unbounded number of zero-tail parents never grew nodes).
Callers of walk_chain whose error surface changes to ChainGap: claims.rs:627-636 (refuse(self, v2::ClaimReason::ChainGap)) and selene-manager/src/pool/lookup.rs:207. So a rejected chain is reported to the client as a claim/lookup miss, not as a protocol violation. Not mentioned in the description.
Behaviour change visible to clients: because entry_from now rejects non-monotonic parents, a client that announces a parent with consumed_tokens >= key.consumed_tokens gets its saved index entry dropped instead of stored. That is stated in the description ("rejects") but the user-visible effect (announcement silently dropped, hence a later miss) is not.
Tests: selene-manager/src/pool/mod.rs:264-299 entry_from_rejects_self_parent_and_non_monotonic_parent (6 cases incl. Some((64,2)) ok); selene-manager/src/pool/index.rs:403-428 walk_chain_rejects_self_parent_cycles_and_zero_page_chains_beyond_max_nodes (self-parent, 2-node cycle, and a 4-node zero-tail chain that fails at max_nodes=3 / succeeds at 4).
#6 [high] Change (verified): PutWin.first_page now record-relative, finishing what #392 started
Verified at pr/607.
The store's PutAccept.first_page is chain-absolute and its WindowGrant.page_first is likewise chain-absolute: selene-manager/src/store.rs:1731-1733 let first = parent.map_or(0, |p| p.consumed_tokens / descriptor.page_tokens) as u32; let grants = record_grants(&header, first, 0, row, ...), :1798-1806 PutAccept { first_page: first, ... }, and record_grants adds first into every grant at :4720-4724 and :4755-4759. So for a linked child the grants start at the parent's page count, exactly as the PR describes.
The fix (selene-manager/src/pool/store_bridge.rs:640-647): one first_page computed as grant.page_first as u32 - rec.accepted.expect("put accepted").1 when grant.page_count > 0, else 0, then used for both PutWin.first_page (:665) and WindowSpec.first_page (:683). Before the PR only WindowSpec did the subtraction (the removed hunk at the old -658,14); PutWin took grant.page_first as u32. That is a genuine inconsistency in one function and the description states it accurately.
Reach: PutWin is what mp.whole is indexed with — put_pass_done/put_commit (store_bridge.rs:737-780, :1060-1120) and the missing-page checksum checks in put_commit (the test's assertion "linked multi-process put must commit once all record-relative pages are assembled"). So the bug only bit linked (parent-nonzero) multi-process puts, and only on the commit path — matching the description.
Pre-existing related fix: #392 "Count pool put-grant pages from the accepted record" (merged, yatesdr) already introduced the same if grant.page_count == 0 { 0 } else { grant.page_first - accepted.1 } expression for WindowSpec (see the removed hunk). #607 hoists it so PutWin shares it — so #607 is completing a half-done #392, which the description does not say.
Test: linked_multi_process_put_stores_record_relative_window_first_page (store_bridge.rs:1766-1990) asserts mp.windows[&0].first_page == 0 with page_first: 2 and accepted.first_page == 2, then mp.whole == [Some(0xAAAA), Some(0xBBBB)] after a one-pass put_pass_done, then a successful put_commit with a real Header.
#7 [high] Related work: #610 duplicates #607's items 5b, 5c and 5d — 5 of 6 defects fixed twice
#610 (open, yatesdr, 2026-11-29 17:08, branch fix/selene-local-tiers-and-sharding, head 39128a8, +629/−166, 16 files) independently fixes three more of #607's six defects, in the same files:
- #607 item 5b (memory.rs
drain_compressedskipsstart_deferredwhenrec.refill): #610 — "Unconditionally callstart_deferredinMemoryStore::drain_compressed" (selene/src/memory.rs, +50/−12). Same one-line change #607 makes at selene/src/memory.rs:2344-2350. - #607 item 5c (composite.rs
disk_readdoes not quarantine corrupt unpacked v1/v2/v3 records): #610 — "CompositeStore::disk_readdid not quarantine corrupt disk records and misattributed NVMe bytes", fixed by "drop/quarantine corrupt disk records indisk_read" (selene/src/composite.rs, +38/−18). Same function #607 patches at selene/src/composite.rs:1125-1134. - #607 item 5d / issue #439 (
Index::expiredtake_while): #610 — "Index::expiredusedtake_whileand stopped scanning past a single fresh leaf" → "switchIndex::expiredfromtake_whiletofilter" (selene/src/shared/index.rs, +19/−4), with testexpired_skips_fresh_leaves_ahead_of_older_leaves. #607 does the same at selene/src/shared/index.rs:501-509 with testexpired_sweep_skips_leaf_refreshed_without_new_tick.
Also notes: #610 is the origin of the Index::expired→filter change that yatesdr's column describes in issue #439 — the reporter (shieldstar) filed #439 citing upstream 25b49519; #607's linked issue.
Cumulative overlap of #607 with the yatesdr 4-PR series (#609, #610, #611, #612): 5 of #607's 6 headline defects are also fixed elsewhere —
- data-channel
window_releasedguard (claims.rs) — unique to #607; walk_chain/entry_frombounds — #612; 3a.Agent::window_drainedstaging double-release — unique to #607; 3b.Engine::withdraw_queuedpeer DMA — #609 (identical predicate);- store transfer IDs (unique to #607) +
PutWin.first_page(#612); - park stale plan (unique to #607),
drain_compressed(#610), v3 quarantine (#610),Index::expired(#610). Only #607's items 1, 3a, 4a, 5a are unmatched. Neither side references the other. This is the single most important fact for a decider.
#8 [high] Claims and evidence: all 11 tests exist; no live/hardware validation; some tests simulated
What #607 claims, and what actually backs it:
BACKED (I verified the code and the tests exist at pr/607):
- All 11 named regression tests exist with the exact names given: selene-manager
window_released_from_channel_requester_does_not_drop_extent(claims.rs:3022),entry_from_rejects_self_parent_and_non_monotonic_parent(mod.rs:299),walk_chain_rejects_self_parent_cycles_and_zero_page_chains_beyond_max_nodes(index.rs:403),put_and_get_with_same_client_id_use_disjoint_store_transfers(store_bridge.rs:1740),linked_multi_process_put_stores_record_relative_window_first_page(store_bridge.rs:1860); selenefailed_channel_send_releases_staging_slot_once(pool/agent.rs:1856),withdraw_queued_waits_for_peer_dma_before_releasing_window(pool/engine/tests.rs:2122),async_cpu_codec_refill_wakes_deferred_child(memory.rs:6260,#[cfg(feature = "codec")]),corrupt_ancestor_v3_page_is_quarantined_and_replaceable(composite.rs:6000),expired_sweep_skips_leaf_refreshed_without_new_tick(shared/index.rs:1392); heliosworker_park_clears_stale_pool_plan_and_lookup(server/runtime/phase_tests.rs:6851). - The CI check on the head commit passed (orientation packet).
- The description's line-level claims match the diff (guard in claims.rs,
stepscounter in index.rs,rec.transfereverywhere, onefirst_page, five-field clear in runtime.rs, unconditionalstart_deferred,(Err(error), position)arm,filterinexpired).
CLAIMED, NOT INDEPENDENTLY CHECKABLE FROM THE REPO (author's own run logs):
- 11/11 targeted; selene 510 passed; selene-manager 185
--lib+ 11 integration binaries;--test client84/85; heliosserver::runtime133 passed / 1 ignored;verification/helios-lifecycle/check.pyexit 0. - The single client failure (
a_record_put_into_a_manager_on_another_host_is_restored_over_tcp, "stream: 2 windows") is declared pre-existing and flaky (passed 1/5 isolated reruns). Not verifiable here; no issue is filed for it. - Declared limitation:
flare/Cargo.toml --lockedfailed on an unrelated upstream lockfile mismatch fordeepseek-recipe;helioschat-template tests needingFLARE_TEST_TEMPLATE_DIRandFLARE_RUN_CUDA_TESTS=1live GPU/RDMA runs not run.
EVIDENCE GAPS a decider should weigh:
- Zero live/hardware validation. The competing series (#609/#610/#611/#612) all report SM120 (cn5) and GB10 (cn6–cn9)
flare run+selene-managerqualification with bit-exactpos0parity, 0 leaked pins, 0 quarantined bytes; #607 reports CPU unit tests only, while touching exactly the multi-process/DMA/RDMA-adjacent paths (#609's own description says thewithdraw_queuedclass of bug needs DMA-level validation). #607's own limitations section admits live GPU/RDMA execution was not run. - No reproduction case is given for the "remote 100% CPU hang" or the "cross-tenant KV leak" beyond unit tests; no issue number is cited for either. (Contrast: the
Index::expireditem does cite #439, with a reporter-supplied repro.) - The
put_and_get_with_same_client_id_use_disjoint_store_transferstest constructs the Claim via the new#[cfg(test)] Claim::new_for_testand aManagerGet { transfer: 0, .. }seed rather than driving a real claim throughclaim_begin, so the "concurrent put/get with the same client id" scenario is simulated at theput_begin+manager_getboundary (store_bridge.rs:1732-1768) — it does assert the two allocated ids differ and thatput_cancelcancels only the put's id (the real invariant). corrupt_ancestor_v3_page_is_quarantined_and_replaceableis a#[test]that needs a temp directory and usescrate::testing::SimulatedGpu+directory_lock; it silently returns early iftest_directoryyields None (composite.rs:6001-6003), so it can pass vacuously in a sandbox.
#10 [high] Why: #439 is well-reproduced and maintainer-confirmed; the tick skew root cause is left in place
#439 (issue, open, by shieldstar, opened 2026-11-21, updated 2026-11-29 16:58 per the item's own timestamps, labels area:caching/area:selene/bug) is the only issue #607 claims to fix, and the only externally-reported defect in the PR.
- Reporter's repro is against upstream
25b49519with a standalone test file and two precise cargo commands; it showsswept=[]while an independently expired leafbackstays selectable, and a control test where both leaves are swept. That is a strong, reproducible report. - Maintainer confirmation: comment by yatesdr 2026-11-21 16:08 confirms by reading (
selene/src/shared/index.rs:477-495expired,:461-475touch_ancestors,memory.rs:1782a Present-store caller), and bounds the impact: only with a max age set (--prefix-cache-max-age/ manager--max-age), expiry off by default, effect is "later expiry, never wrong output", documented in docs/prefix-cache-offload.md. It explicitly says the docs already described the stop-at-first-fresh-leaf behaviour and that "a fresh former interior node left as a leaf can delay a sweep by up to one max age". - yatesdr flagged as not established: "whether a leaf re-offered again and again can hold a sweep back for longer than one max age in real traffic". #607 does not answer this either; its fix (scan all ordered nodes, filter) removes the stop-early class of the bug entirely, so that question becomes moot for satisfied leaves — but scanning the whole tick order instead of stopping is a cost the description does not discuss (bounded by
.take(64)on the result, not on the scan: selene/src/shared/index.rs:501-509 iterates the fullordered()list then takes 64). - The issue suggests two fixes: fresh tick in
touch_ancestors(keepsordered()monotonic) or scan past non-expired nodes. #607 takes the second. #610 takes the same second option. Neither adopts the first, sotouch_ancestorsstill refresheslast_usedwithout a tick and any other consumer of tick order retains the same latent skew — the description says the change "fixes #439" but the root cause named in the issue's title ("access tick never advanced") is left in place. - The docs edit in #607 matches the issue: docs/prefix-cache-offload.md:623-631 now reads "skipping interior nodes, fresh leaves, and records that cannot be dropped, and stopping after 64 expired leaves" and drops the old sentence "A fresh former interior node left as a leaf by pressure eviction can delay a sweep by up to one max age." That deletion removes a documented limitation; it is accurate given the fix, but a reviewer comparing docs should know the sentence was there because of this exact behaviour.
#11 [high] People and community: Helios-focused author in yatesdr's area; zero reviews or comments
Who is in this area, and the shape of the review:
- selene-manager/src: yatesdr 28 commits/180 days, Luke Alonso (this PR's author) 2.
- selene/src: yatesdr 32, Luke Alonso 4, Martin Vit 2.
- helios/src: Luke Alonso 221, Martin Vit 52, yatesdr 47. So #607 is an author whose centre of gravity is Helios (221 commits) reaching into yatesdr's area (selene-manager, selene pool) — the exact files where yatesdr has 28 and 32 commits and where yatesdr currently has four open PRs (#609, #610, #611, #612) in flight on the same day. Of the 16 files #607 touches, 6 collide with #612, 6 with #609, 4 with #610, 3 with #611.
Author record: lukealonso, COLLABORATOR, 17 merged / 0 closed / 2 open in 180 days; a rapid lander (several merged the same day they were opened: #598, #596, #595, #593 all 2026-11-28/29). Their merged PRs concentrate on helios/src (12) and docs (10). They have not previously shipped a selene-manager pool change of this size — the areas they own by merged-PR count do not include selene-manager/src/pool.
Engagement so far: none. pr_comments returns "No comments."; there are no reviews (orientation packet: "Reviews: none yet"), no labels, and no reactions. The only outside trace is #439's "Referred to by: #607 pull request (open) … [fixes]" backlink, which the PR would create via its "Fixes #439" line.
Ownership/authority signal to record: the maintainers with commit rights in the touched directories are yatesdr (selene-manager, selene, helios) and Luke Alonso (helios, docs). The data-channel/RDMA code in selene-manager/src/data/channel.rs that the claims.rs guard depends on is yatesdr's (that file is touched only by #609 among open PRs).
Process: ready for review (not draft), opened and last updated 2026-11-29 (same day), base main, head 4f12cae, CI passed on head, 16 files +1211/−41. Reviewed-by-nobody. Discord handle: "no username provided" (the other four PRs in this cluster each give one: D-Rock for #609/#610/#611/#612, lukealonso for #613).
#12 [high] Project fit: charter supports the area and names the author a priority contributor; evidence and root-cause rules cut both ways
From read_charter (project charter, in full):
ALIGNED:
- Goal, verbatim: "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." #607 is entirely inside that goal (pool claims, store bridge, offload lifecycle).
- "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #607 cites a reproducible bug (#439) for one of six items: satisfied there; the other five are self-reported with no issue.
- "PR descriptions: Expect four parts: why the change is needed, what changed, the claimed result, and the evidence backing it." #607 has all four, unusually thorough (Why / What exactly changed / Claimed benefit and result / Supporting evidence and limitations).
- Author standing, verbatim: "Priority contributors (
@voipmonitor,@original-el8,@lukealonso) carry extra weight—we never close their PRs out of hand as 'low value.'" The author is a named priority contributor.
TENSIONS (facts, not verdicts):
- "Bring real evidence. … Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." Two of #607's fixes are a skip rather than a root-cause repair: (a)
Core::window_releasednow skips a whole validation+release path for channel claims (claims.rs:1513-1516) rather than teaching the channel handler and the message handler to agree on ownership; (b)Index::expiredscans past the fresh leaf (shared/index.rs:501-509) while issue #439's own title names the root cause — "a refreshed leaf whose access tick never advanced" — left unfixed intouch_ancestors. #610 (yatesdr) chooses the same (b). Worth noting for a reviewer applying the charter literally. - "Supported matrix & compatibility: Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs." #607's evidence is CPU unit tests only; the multi-process/peer-DMA items are exactly the parallel-layout/multi-host interactions this rule names, and the PR's own limitations say live GPU/RDMA runs were not executed.
- Non-goals do not apply: #607 adds no model branches, no backends, no cluster orchestration; it is a bug-fix PR inside an existing subsystem. It matches "the smallest footprint in shared code" reasonably (1-line fixes in memory.rs, agent.rs, requester.rs) apart from the 477-line store_bridge.rs change, ~380 lines of which are tests.
#14 [high] Change (verified): helios park, memory start_deferred, composite v3 quarantine — plus undeclared side effects
Verified at pr/607 — the two items I could check most cheaply, plus the composite one.
helios park (helios/src/server/runtime.rs:2110-2122): the fix clears exactly five fields — blocked, pool_lookup, pool_lookup_started, pool_plan, restore_wait — after incoming.prompt.tokens = tokens and before self.begin_pool_lookups(...). Description's five-field list matches the code exactly. Why it matters, from the code: begin_pool_lookup (runtime.rs:2743-2777) bails out early at :2755-2757 when incoming.pool_plan.is_some() && !retry, and when a plan is present it takes the scheduler.refresh_admission_plan(plan) branch at :2759, which clones the old history (refresh_admission_plan, helios/src/scheduler.rs:1592-1598: history: plan.history.clone()). So the stale 2-token PrefixHistory would survive the extension to 4 tokens — confirmed. Only a pool_lookup ticket in state None gives retry = true (:2752-2754) and forces a re-plan, which is why the test must leave a ticket attached rather than a clean None.
- Side effects the description does not mention: (a) clearing
pool_lookupabandons an outstanding ticket without cancelling it — the test assertswithdrawn == 1onFakeStore, i.e. the store withdraws it on drop, and the code relies onLookupTicket's drop (no explicit withdraw call at runtime.rs:2117-2121); (b) clearingblockedunconditionally means a parked request re-enters admission even if it was previously blocked on resources, which is the intent but is a scheduler-state change; (c) the request now performs a second pool lookup for the extended prompt on every park, a cost the "claim" section does not discuss. - The test
worker_park_clears_stale_pool_plan_and_lookup(phase_tests.rs:6851-6927) is a real end-to-end drive: enqueue withpooled: true, force the lookup grace to expire,admit(), runbudget_pass, then assertparked[0].0.pool_plan.history().token_count() == 4andwithdrawn == 1. Strong test. It usesFakeStore { pooled, pending_tickets }existing test scaffolding.
memory.rs (selene/src/memory.rs:2344-2350): the guard if !refill is deleted and self.core.start_deferred(&key, events) is now called unconditionally after self.apply_compressed(rec, events). Description matches. This is a 3-line deletion; identical to #610's change.
- Test
async_cpu_codec_refill_wakes_deferred_child(memory.rs:6260-6337) is#[cfg(feature = "codec")], so it only runs with the codec feature (the author's command used--features test-support; a codec-less run silently skips it). It assertsstore.core.deferred.len() == 1before the refill completes and that both parent and child emitStored{Ok}.
composite.rs (selene/src/composite.rs:1125-1134): the (Err(error), position) arm now (1) memory.complete_record(&node, false) releasing the incomplete copy, (2) resets inbound.nodes[index].state = NodeState::Waiting when a node owns the copy, (3) disk.quarantine_corrupt(&node) when error.is_record_read(). The packed-v4 success path at :1086-1106 already had quarantine/drop_row logic, confirming the description's "only quarantined on the packed v4 path" framing.
is_record_read(selene/src/error.rs:56-69) is set bywith_record_read(), which disk_store.rs sets on Open failures (:1099-1104) and on ReadPages/ReadRow/ReadPacked failures (:1131, :1160) — so the quarantine is broader than "page data corrupt": a transientEIO/ENOENT on open of an unpacked record also flagsrecord_readand now quarantines the record (drops readiness + row and marks itfailed, disk_store.rs:3095-3105). The old disk_storeFetchedpath only dropped the lookup row (disk_store.rs:3223-3233), a milder action. So on a transient disk error #607 now permanently fails the record until it is recaptured — an undeclared behaviour change in the error-classification the description calls "corrupt disk pages".- The test builds v3 records, asserts
header.packed.is_none(), corrupts one byte inside the page segment, then asserts the fetch fails,memory.record(&c1.key).is_none(),lookupfor the child c2 returns None, and after recapturing c1 the child restores with exact page bytes. Good coverage.
#15 [high] Recent activity: sits on same-day #496/#497 and finishes #392; four yatesdr PRs opened minutes later
Recent activity in the touched areas, by whom and why (orientation packet + local commits), and how #607 relates:
selene-manager/src (last 60 days): 3d8640c6 kv-codec literal disk conversion (#523), 716df00f pure-CUDA/CPU lossless KV compression (#504), 9710cadc core acquisition descriptors, 203d6c9f transient checkpoint put conflicts (#476), 25b49519 release timed-out source export on session end (#402), 436d6a9b keep rows by role and write pool records back on eviction (#415), 204ecff0 link pool puts to held ancestors (#413), b930771b end rank restore channels after every window is assembled. All yatesdr except 9710cadc (Luke Alonso).
- #607's
PutWin.first_pagefix sits directly on top of #413 "Link Selene pool puts to held ancestors and store each page once" and #392 "Count pool put-grant pages from the accepted record" — linked puts are the feature that exposed it. - #607's
StoreHandle.next_transfertouches code shaped by #342 "Preserve store release commands under queue pressure" and #142/#92 (the original pool/store bridge).
selene/src (last 2 days): f7256584 Coalesce shared ancestor reads (#496), dad2fa56 disk offload restore latency (#497), ba3afb13 CUDA 12 copies/ARM64/unified memory (#589), 6d74db3a Rust warnings, c36a6a02 Latent576 codec (#527), dde659ba mixed-chain retirement (#524), c0a9d0fe CPU GKV1 decode (#526), 3d8640c6 kv-codec literal conversion (#523).
- The competing series (#609/#610/#611/#612) all say they were rebased onto f7256584 (#496/#497) and re-ran CPU tests there. #607's evidence also names
target-dir flare-cli/targetand a--lockedbuild; itsflare/lockfile failure note points at the same window. - Both #496/#497 (PCCessna, merged 2026-11-29, hours before) rewrote the exact area #607 touches:
CompositeStore::disk_read,MemoryStoreintake,PrefixHistory/offload restore. #607's fixes todrain_compressed,disk_readand the park/plan path are therefore on top of code that changed the same day — the risk being that a fix written against an older tree would silently no-op or conflict, which the author addresses only by saying the tests were run at head 4f12cae.
helios/src: dominated by Luke Alonso (221) and Martin Vit (52) and yatesdr (47); latest 1a5d4d8c "Fix Helios TLA+ observed-edge invariant blindspot, retain_snapshot cache wipe, and DispatchRing peer-exit race" (#595) and fb32cd39 (#598) are the author's own — #607's helios change is a fifth small fix in the same Worker/runtime area by the same author, consistent with their series but not described as part of it.
Doc area: Luke Alonso 378 commits, Martin Vit 55, yatesdr 47 — the single-line docs edit is in the author's strongest area.
Net: #607 is not stacked on any open branch (base main, head 4f12cae) and does not supersede or reverse any merged PR; it finishes #392's half-done fix, and it is contemporaneous with — and partly duplicated by — the four open yatesdr PRs opened 4 minutes after it (#609/#610/#611/#612 at 17:08 vs #607 earlier the same day; #613 at 17:12).
#16 [high] Research summary
I prepared the case file for #607 across all eight angles, with 15 scratchpad entries carrying file:line and PR/issue citations. Summary of where I got to:
Verified in the code: every one of the PR's stated changes is present and behaves as described — the claims.rs window_released channel guard (:1513), the entry_from/walk_chain bounds (mod.rs:113, index.rs:171/192/214), the manager-allocated store transfer IDs wired through all 14 StoreCommand sites plus put_cancel, the single record-relative first_page for PutWin+WindowSpec (store_bridge.rs:640-647, which finishes what #392 left half-done), the five-field park clear (runtime.rs:2117-2121, confirmed via refresh_admission_plan cloning the old history), the unconditional start_deferred, the (Err(error), position) quarantine arm, and the expired take_while→filter. All 11 named regression tests exist with the exact names given.
Biggest finding (undeclared): five of the PR's six headline defects are fixed independently by four open yatesdr PRs opened the same day — #612 (entry_from, walk_chain, PutWin.first_page), #609 (withdraw_queued with a byte-identical predicate), #610 (drain_compressed, v3 quarantine, Index::expired). Only #607's data-channel guard, the agent staging double-release, the store transfer-ID allocation and the Heilos park fix are unmatched; neither side references the other, and 6 of 16 files collide.
Other facts a decider needs: no live or hardware validation at all (the competing series report SM120/GB10 flare run qualification); zero comments, zero reviews, no labels, CI green, ready for review; the author is a charter-named priority contributor whose centre of gravity is Helios, working in yatesdr's area; #439 is well-reported and maintainer-confirmed but #607 treats the symptom and leaves the tick skew named in the issue title; the docs edit deletes a documented limitation; and several undeclared behaviour changes — dropped Violations on the gRPC WindowReleased path, quarantine now also firing on transient record-open errors, accept.transfer never checked against rec.transfer, announce entries silently dropped, and a second pool lookup per park.
#17 [high] The change: plain-terms scale and a consolidated file map with anchors
Plain terms and size: #607 is a bundle of eleven small-to-medium independent bug fixes across three crates (16 files, +1211/−41), not one feature. Roughly 380 of the added lines are tests (store_bridge.rs alone is +477/−24, of which ~410 are the two tests; agent.rs +155 is ~154 test; phase_tests.rs +79 and engine/tests.rs +47 are all test), so the production change is small: one early-return (claims.rs:1513-1516), two validation clauses (mod.rs:113-117, index.rs:171/192-197 + a steps counter), an allocator + a field threaded through already-existing call sites (store_bridge.rs:39-42, 122-126, 55-57 + 14 sites), one hoisted local (store_bridge.rs:640-647), one added line (agent.rs:1563), one predicate tightened (requester.rs:1177), one debug_assert (net.rs:159-167), five field clears (runtime.rs:2117-2121), a deleted if (memory.rs:2344-2350, 3 lines), one rewritten match arm (composite.rs:1125-1134), and take_while→filter (shared/index.rs:501-509) plus a doc paragraph.
File map with the anchors a reviewer needs (all at pr/607):
- selene-manager/src/pool/claims.rs:1505-1533 window_released guard (test :3022); :225-227 ManagerGet.transfer; :283-291 new
#[cfg(test)] Claim::new_for_test; :2201-2207 put cancel uses rec.transfer. - selene-manager/src/pool/store_bridge.rs:39-42 StoreHandle.next_transfer; :122-126 allocator; :55-57 PutRec.transfer; :434-438 put allocation; :1190-1194 get allocation; :1226-1241 store_cancel_get; :632-690 put_answer first_page/window; tests :1740, :1860.
- selene-manager/src/pool/mod.rs:98-135 entry_from (+ :113-117 new check), test :299.
- selene-manager/src/pool/index.rs:163-232 walk_chain, test :403.
- selene-manager/src/pool/core.rs:424-428 next_transfer init.
- selene/src/pool/agent.rs:1555-1570 window_drained + forget_window, test :1856.
- selene/src/pool/net.rs:159-167 Staging::release debug_assert.
- selene/src/pool/engine/requester.rs:1149-1167 test hook, :1177 predicate; test selene/src/pool/engine/tests.rs:2122.
- selene/src/memory.rs:2344-2350 start_deferred, test :6260.
- selene/src/composite.rs:1120-1135 disk_read Err arm, test :6000.
- selene/src/shared/index.rs:501-509 expired, test :1392.
- helios/src/server/runtime.rs:2110-2122 park; test helios/src/server/runtime/phase_tests.rs:6851.
- selene/src/testing.rs:255-265 SimulatedGpu::shared_with (test-support helper).
- docs/prefix-cache-offload.md:623-631.
Not touched at all (checked against the diff/file list): selene/proto/selene.proto, any Cargo.toml/Cargo.lock, selene-manager/src/data/channel.rs (the file the claims.rs guard protects), selene-manager/src/pool/mp.rs, pass.rs, windows.rs, store.rs, helios/src/scheduler.rs.
#18 [high] Change vs description: what the description does not say, consolidated
Description vs change — everything that differs, gathered (all verified at pr/607; details in the per-item notes):
- The description says the missing guard was the one
window_filled"enforces forsource_channel()". The guard added usesclaim.channel()(claims.rs:1513, i.e.root(&legs, false)) whilewindow_filled's check is onsource_channel()(root(&legs, true), claims.rs:296, 1437). The new branch therefore protects the requester leg, not the source leg; the description's analogy is approximate. Consequence: a source-channel claim is not covered by this branch (its writes go throughChanOwner::Claim(key) => reader_doneat claims.rs:1795). - Undeclared: for channel claims, a malformed
WindowReleased(unknown window index, or a window in SourceWrite/Unissued) now returns Ok instead of the twoViolations at claims.rs:1517-1529. Validation on the untrusted gRPC path is reduced. - Undeclared: the double-release detection is
debug_assert!only (net.rs:159-167), so release builds keep the old silent double-push; only the behavioural half (forget_window) is fixed. The description lists the debug_assert as part of the fix without saying it is compiled out in release. - Undeclared:
PutAnswer::Accept's echoedaccept.transferis never compared withrec.transfer(store_bridge.rs:598-631), so the disjoint-ID invariant relies on the store echoing correctly rather than on the manager checking it. - Undeclared:
entry_fromrejection means a client's saved index entry with a non-monotonic parent is dropped at ingest, and a chain rejected bywalk_chainsurfaces to the client asChainGap(claims.rs:627-636; lookup.rs:207) — no new error code, no wire change, but clients see misses rather than errors. - Undeclared:
disk_read'sis_record_read()is also set on record open failures (disk_store.rs:1099-1104), so a transient EIO/ENOENT on an unpacked record now permanently quarantines it (drops readiness+row, marks failed, disk_store.rs:3095-3105) until recaptured — stronger than the old behaviour of dropping only the lookup row (disk_store.rs:3223-3233). The description frames this purely as "corrupt disk pages". - Undeclared:
Worker::parkclearingpool_lookupabandons the ticket and relies onLookupTicket's drop to withdraw it (no explicit call at runtime.rs:2117-2121; the test asserts the FakeStore sawwithdrawn == 1), and every park now triggers a fresh pool lookup for the extended prompt. - Undeclared:
Index::expirednow iterates the whole tick order each sweep and caps the result at 64 (shared/index.rs:501-509); the oldtake_whilebounded the scan. Sweep cost grows with the number of live leaves when max age is on. - Undeclared test-support surface:
Claim::new_for_test(claims.rs:283-291),Engine::attach_shared_peer_for_test(requester.rs:1149-1167),SimulatedGpu::shared_with(testing.rs:255-265) — three#[cfg(test)]/helper additions not in the description's file-by-file list. - Description over-claims slightly on tests:
async_cpu_codec_refill_wakes_deferred_childis#[cfg(feature = "codec")](memory.rs:6259) andcorrupt_ancestor_v3_page_is_quarantined_and_replaceablereturns early whentest_directoryyields None (composite.rs:6001-6003), so both can be skipped or vacuous in a run that still reports success. - Description claims "No model core re-export or wire protocol change is required" — accurate: no proto/Cargo/format change.
- Description does not mention that the
PutWin.first_pagehalf of item 4 was already half-fixed forWindowSpecby merged #392, nor that five of the six defects are fixed by other open PRs.
#9 [medium] Change (verified): staging-slot fix is one line plus a debug-only assert
- selene/src/pool/agent.rs:1856
failed_channel_send_releases_staging_slot_oncebuilds anAgentfield-by-field, drops the channel receiver sochannel.sendreturns false, then assertsstaging.free_slots()==2, the window is forgotten, anddrive(1)does not double-release. It also exercises the newStaging::releasedebug_assert (selene/src/pool/net.rs:159-167,debug_assert!(!free.contains(&slot), "staging slot {slot} released twice")). Note the assert isdebug_assert!only, so release builds keep the old silent double-push behaviour — the detection is debug-only; the behavioural fix is theself.forget_window(xfer, index)at selene/src/pool/agent.rs:1563. forget_windowis an existing method reused, not new: the fix is one added line afterself.release_slot(slot)inAgent::window_drained(agent.rs:1560-1567).withdraw_queuedfix at selene/src/pool/engine/requester.rs:1177 —if w.jobs_left == 0 && w.peers_left.is_empty() && !w.released. Same predicate as #609. #607 adds#[cfg(test)] Engine::attach_shared_peer_for_test(requester.rs:1152-1167) to build the peer-in-flight state; #609 reaches the same state without a new hook.- Reach of the
withdraw_queuedchange, not stated in the description: when a peer is still DMAing the window is no longer released at withdraw time, so it is released later byon_peer_done— the test asserts exactly that (rig.engine.on_peer_done(1, 1, Ok(()), false)then exactly oneWindowReleased). If a peer never reports done, the window is now released by whatever peer-failure/timeout path runs, not by withdraw; the description does not say which path guarantees it.
#13 [medium] Reach and docs: limitation sentence deleted; no wire/config change; trust-boundary and park-cost effects
Verified at pr/607.
- docs/prefix-cache-offload.md:623-631 is the only docs change. It rewrites the sweep paragraph to "skipping interior nodes, fresh leaves, and records that cannot be dropped, and stopping after 64 expired leaves" and deletes the sentence "A fresh former interior node left as a leaf by pressure eviction can delay a sweep by up to one max age." The deleted sentence is the documented limitation the fix removes, so the edit is consistent — but the sentence sat at that location specifically because of issue #439's mechanism (issue comment by yatesdr notes the docs already described both the stop-at-first-fresh-leaf and the one-max-age delay). A reviewer should note the docs edit is a limitation removal, not just a wording change.
- The docs are the authoritative description of the sweep cadence ("At most once a minute, the model-thread poll walks from the oldest entry") and of the default being expiry-off; the change keeps those.
- No config, default, CLI flag, wire/proto field, or on-disk artifact format changes anywhere in the PR: selene/proto/selene.proto is untouched, no version bumps, no new dependencies in any Cargo.toml. The description's claim "No model core re-export or wire protocol change is required" is consistent with the diff (no proto/ or *.proto file, and StoreCommand is an internal manager↔store channel, not a client wire message).
Reach summary (who/what is affected):
- Operators: only those enabling prefix expiry (
--prefix-cache-max-age/ manager--max-age) see the #439 behaviour change — more leaves now swept per pass, and the sweep cost becomes a full scan of the tick order each run (result still capped at 64). Everything else is a bug fix with no knob. - Multi-process/TP>1 selene clients: the
withdraw_queuedandPutWin.first_pagechanges change when a window is released and wheremp.wholestarts — the description says this "restores linked multi-process puts", i.e. that path was broken before; anyone relying on linked multi-process puts has been failing and will now commit. - Remote/tenant deployments (selene-manager gRPC): the
window_releasedguard andentry_fromvalidation both act on untrusted client messages; the latter starts rejecting announcements that were previously stored, and the former stops rejecting malformedWindowReleasedfor channel claims. Both are behaviour changes on the trust boundary worth calling out to anyone fuzzing or versioning clients. - helios servers:
Worker::parknow drops the pending pool lookup ticket and setsblocked = Noneon re-admission; a parked request re-plans and re-looks-up its (longer) prompt, so it may now do an extra pool lookup per park. The description frames this as fixing stale planning; the extra lookup cost is not mentioned. - Build/users:
selene/src/testing.rsgains aSimulatedGpu::shared_withhelper (+9) — test-support only, no public API change.
#19 [medium] Related work: disposition of every lead from the orientation packet
Leads from the orientation packet I followed and their disposition (so nothing is left dangling):
- #439 (open issue) — the one issue #607 fixes; recorded in full, incl. reporter repro, yatesdr's confirmation comment and his "not established" question. HIGH.
- #612 (open, yatesdr) — duplicates entry_from, walk_chain and PutWin.first_page. Recorded.
- #609 (open, yatesdr) — duplicates the withdraw_queued predicate verbatim. Recorded.
- #610 (open, yatesdr) — duplicates drain_compressed, disk_read quarantine, Index::expired. Recorded.
- #611 (open, yatesdr) — overlaps 3 files (agent.rs, engine/requester.rs, net.rs) but on different defects (event-loop fairness, fence acks, staging arithmetic). No duplicated fix; noted here as context only, not a conflict on the same lines.
- #613 (open, same author lukealonso, opened 17:12) — Helios scheduler/checkpoint/CUDA-teardown/wire work. No file overlap with #607 (it touches scheduler.rs, runtime_core/, cuda.rs, execution/, verification/; #607 touches server/runtime.rs + phase_tests.rs only). Same author, same day: part of their parallel Helios series, independent of this PR. LOW.
- #608 (open, same author) — "restore catalog validation, CPU Python tests, and script separation"; no overlap with #607's areas. Not relevant.
- #497 (merged, PCCessna, 2026-11-29) and #496 (merged, PCCessna, 2026-11-29) — merged hours before; rewrote the disk-offload restore/intake path #607 patches (drain_compressed, disk_read, park/plan). Background: #607 sits on top of them; both competing series rebased onto f7256584 (#496).
- #524 (merged, yatesdr) "mixed-chain retirement, MAX_UNITS guard, packed errors, composite slots" — introduced the packed-v4 quarantine path that #607's composite fix extends to v1/v2/v3; background only.
- #504 (merged, yatesdr) "pure-CUDA GPU and CPU lossless KV compression" — the feature that created the async CPU-codec refill path whose
refillguard #607 removes; background. - #415 (merged, yatesdr) "Keep Selene rows by role and write pool records back on eviction" and #413 (merged, yatesdr) "Link Selene pool puts to held ancestors, store each page once" — the linked-put feature that exposed the PutWin.first_page bug; background, and #392 ("Count pool put-grant pages from the accepted record", merged) is the half-fix #607 completes.
- #429, #416, #455, #486, #342, #356, #376, #365, #168, #141, #92 — same-file history in store_bridge.rs/agent.rs, all merged and older; no competing or superseding relationship. Noted as the lineage of the pool code, nothing more.
- "24 more" candidates in the packet — not read individually; the ones touching #607's files are all merged history already represented above.
No lead was left unexamined that could conflict with #607; the only live conflicts are #609/#610/#612 (same defects, same lines).