#1 [high] The change: shape and size of #612
PR #612 "fix(selene-manager): harden multi-rank packed handling, protocol validation, and resource reclamation", author yatesdr (COLLABORATOR), branch fix/selene-manager-hardening -> main, head 1f9ee76a0f65a219f51176534613a0064da838e2. Opened 2026-11-29 17:08, merged 2026-11-29 17:32 (24 minutes later). +293/-52 across 10 files, no labels, no reviews, no comments (discussion empty).
Files/lines (from read_item #612):
- selene-manager/src/control.rs +23 -7
- selene-manager/src/local.rs +25 -9
- selene-manager/src/pool/claims.rs +51 -14
- selene-manager/src/pool/core.rs +39 -8
- selene-manager/src/pool/mod.rs +39 -0
- selene-manager/src/pool/ranks.rs +2 -2
- selene-manager/src/pool/store_bridge.rs +9 -0
- selene-manager/src/pool/windows.rs +33 -8
- selene-manager/src/store.rs +22 -4
- selene/src/shared/index.rs +50 -0
Merge commit on main is 3801ff1d "Harden selene-manager against multi-rank packed OOB, DoS, and leaks (#612)" (see orientation packet recent-activity list). Description ends "Discord: D-Rock" (off-repo evidence channel).
#2 [high] Community: no reviews, no comments, merged in 24 minutes
pr_comments for #612 returned "No comments" - no review, no inline comment, no reaction thread anywhere on the PR. Opened 2026-11-29 17:08 and merged 2026-11-29 17:32 (read_item #612), i.e. 24 minutes, so effectively self-merged without review. Orientation packet: "Reviews: none yet", "CI on the head commit: pending" - the only evidence of testing is the author's own description text and a human hardware run reported in the description; the evidence channel named for review is "Discord: D-Rock", which is not in the repository.
Charter (read_charter) "Code Review Standards" asks reviewers to check the supported matrix, and "Bring real evidence" asks bug fixes to address the root cause; nothing in-repo records such a review for #612.
#3 [high] The change: what each hunk does (verified in code)
Verified against head 1f9ee76 (pr/612 files):
- selene-manager/src/pool/store_bridge.rs:411-420 - in put_begin, after resolving the scope descriptor, a PutBegin whose
m.packed.is_some()on a scope withdescriptor.ranks.len() >= 2is refused with v2::Reason::Invalid "packed storage is not supported for multi-process puts". - selene-manager/src/pool/claims.rs:1161-1188 - in
grant()(PinAck handling): resolves the requester's scope descriptor (RequesterLost if gone); rejectsany_packed && descriptor.ranks.len() >= 2(CopyError); for non-packed retained claims checkspages*page_bytes (+row)againstclaim.reserved_bytes(NoWindows); and rejectspages > consumed_tokens/page_tokensasmax_pages(CopyError) - all before theVec<(PlannedWindow,..)>planning loop at :1189. - selene-manager/src/pool/mod.rs:213-222 - validate_scope adds
ranks.len() > 64andpage_record_bytes/row_record_bytes > 1<<40(MAX_RECORD_BYTES). Plus new test at mod.rs:303-333 (65 ranks, 1<<62 record). - selene-manager/src/store.rs:1561-1585 -
next_power_of_two()replaced bychecked_next_power_of_two()with an Oversize rejection;extentnow computed once and reused at :1581. Noteput_requirementat store.rs:1953-1956 still calls the panickinglength(..).max(4096).next_power_of_two()- the panic was not removed there (it is reached from rootless_fallback and the charge path). - selene-manager/src/pool/windows.rs:51-92 - plan() now does
shape.first_page.checked_add(shape.pages)?, checked u32 offset math,u32::try_from(windows.len()).ok()?, checked length add; new testplan_rejects_first_page_u32_overflowat windows.rs:198-209. - selene/src/shared/index.rs:207-238 - new
Index::reparent_to_root(key, tail_pages): detaches from old parent (retain child, saturating_sub ready_children), sets parent=None, tail_pages, chain_depth=1, and rewrites chain_depth of descendants via a stack. Note this inserts the new method betweendrop_row's doc comment (:205 "Drop a node's row...") anddrop_row(:240), so the doc comment now describes reparent_to_root and drop_row is undocumented. - selene-manager/src/store.rs:2914-2922 - publish_put Replace path: if the tree node's parent/tail_pages differ from the new header and
header.parent.is_none(), callreparent_to_rootbefore swapping the location. This is the rootless-fallback stale-parent fix; the only call site. - selene-manager/src/store.rs:915,924 - evict_accounted eligibility and the cascade
keeppredicate addnode.location.reading()(Location::reading() at store.rs:94-98 = memory extent Arc::strong_count > 1) beside the existing disk_busy guard. - selene-manager/src/pool/claims.rs:2256-2262 - session_claims_lost now also selects terminal claims whose export is Pinned and whose
source_channel().is_some(), so a source disconnect ends and fails them (:2277-2289), releasing the export slot counted byexports_outstanding->holds_export_slot(claims.rs:304-310, 385-400). - selene-manager/src/pool/core.rs:658-670 - rank-0 reconnect compatibility now requires
offered_codecequal,old_sess.scope == scope.idandold_sess.ranks == ranks(Ranks derives PartialEq/Eq, ranks.rs:24) before settingself.reconnecting. - selene-manager/src/pool/core.rs:687-710 - MAX_SCOPES=64: on a fresh scope when at the cap, retain only scopes named by a live session, claim or put, or with a non-empty index (
state.index.len() > 0), then refuse InvalidScope if still at the cap. - selene-manager/src/pool/claims.rs:2130-2170 + ranks.rs:230 -
agent_fence_by_id(Some(aid), ...)resolves rank 0 from the agent id first, falling back to the oldagents.values().find(proc)scan;agent_fencekept for tests via#[cfg_attr(not(test), allow(dead_code))]. - selene-manager/src/local.rs:774-794 + core.rs:989-1000 -
watch_pidretries EINTR, and on any other failure returns exited only for ESRCH or the newpid_exited(pid)(kill(pid,0)ESRCH, pid 0 → false); Prior::holders retain and Core's proc sweep use the fallback when no pidfd exists. - selene-manager/src/control.rs:459, 475-501 - a 64-permit Semaphore gates TLS handshakes and each accept is wrapped in a 5 s
tokio::time::timeout; control.rs:347channel.clone(); control.rs:553-555hub.shutdown()beforepool_task.abort().
#4 [high] The change: things the description does not say / says differently
Findings that a reader could not get from the PR description:
a) Behaviour change not in the description: the reconnect rule was widened from "codec matches" to "codec + scope id + rank secret/world match" (core.rs:658-664). Consequence: a rank-0 process that restarts with the same instance id but a different scope (different TP width or geometry) or a new rank secret no longer keeps its live agents; it no longer sets reconnecting, so peer ranks are detached (the pool protocol's "same process reconnecting keeps its agents" path, PROTOCOL.md:1009-1010). This is a hardening choice, but it also silently drops the documented capability for the legitimate case where ranks legitimately re-attach after the scope's secret changes.
b) Idle-scope pruning is not really pruning of idle scopes: it runs only when a fresh scope opens at the cap (core.rs:688-710), and it keeps any scope whose index is non-empty. Nothing else ever removes a scope entry, and no code path clears ScopeState::index for a dropped catalog, so on a manager with one scope whose index fills, the cap behaves as a hard refusal of the 65th distinct scope rather than a bound on memory. The claim "bounds idle scope memory" is therefore narrower than stated: it bounds the number of empty scopes, not the memory of scopes with entries. Also MAX_SCOPES is a hard-coded constant, not a config/Limits field, so operators cannot tune it.
c) Error code choice for the new rejections: a multi-process packed PinAck/PutBegin is answered CopyError / Reason::Invalid, and oversized reserved_bytes is answered NoWindows (claims.rs:1174-1184). NoWindows is also the legitimate "reservation too small" signal the client already maps (selene/src/pool/engine/source.rs:260-278 sends NoWindows when bytes > run.reserved), so client-side diagnosis of the new refusal is ambiguous. Nothing in selene-manager/PROTOCOL.md documents the two new refusals; the description's "without changing wire compatibility" holds for message shapes but not for the set of situations in which existing reason codes appear.
d) The panic the description says it removes is only half removed: store.rs:1561 now uses checked_next_power_of_two, but Store::put_requirement (store.rs:1953-1956) still calls Header::length(row).max(4096).next_power_of_two() and is called right after, at store.rs:1584 and via rootless_fallback (store.rs:1913) for the same child header. So a header whose length rounds past u64::MAX still panics on the streamed path.
e) The packless-multiprocess capability reversal: selene's own engine comment (selene/src/pool/engine/source.rs:252-256) states multi-process rank agents "hold single-rank packed records rather than world-wide offers", i.e. rank agents already only handle world==1 packed. The new manager check keys on scope.geometry.ranks.len() >= 2, which is the scope's world, not the offer's rank coverage, so it rejects any packed PutBegin/PinAck on a TP>=2 scope - including the single-rank packed records the agent path was designed to carry. This is wider than "multi-process packed is unsupported" as described and is not verified by a test (see next entry).
f) Existing hard-coded 64 already existed in the packed directory format: PROTOCOL.md:1076 says the packed directory "is bounded to 2 MiB, 16,384 units and 64 ranks", so the new 64-rank scope cap matches an existing bound for packed records; the 1 TiB record cap has no documented precedent.
g) Doc slip introduced: in selene/src/shared/index.rs the new reparent_to_root is inserted at :207 between drop_row's doc comment (:205) and drop_row (:240), so "Drop a node's row, keeping its pages" is now attached to reparent_to_root and drop_row lost its doc.
h) The description mentions three unit tests (reparent, validate_scope, windows::plan). Those three exist. No test was added for: the multi-process packed refusals in store_bridge/claims, the reserved_bytes/max_pages bounds, the evict_accounted reading() guard, session_claims_lost PinAed reclamation, MAX_SCOPES pruning, agent_fence_by_id, reconnect scope/secret compatibility, watch_pid EINTR/kill(0) fallback, the TLS handshake cap/timeout, or the hub.shutdown ordering. The claimed 186 lib + integration runs are existing suites; selene-manager/tests/packed.rs (9 tests) has no multi-process case (grep of selene-manager/tests shows no packed+world>=2 test).
#5 [high] Related work: #607 predecessor and the same-day 6-PR cluster
PR #607 (lukealonso, merged 2026-11-29 17:17) is the direct predecessor and the frame #612 uses ("beyond the items already landed in #607"). It fixed six defects including linked multi-process puts (record-relative first_page in put_answer) and manager-side transfer IDs in selene-manager/src/pool/store_bridge.rs (+477 -24). #607's own text names #612 among the companion PRs "rebased onto #607 (overlapping hunks removed)", and its Autobot review says the same (duplicate-related labels on #607 include area:caching, area:selene, bug, duplicate, triage:review).
Same-day cluster by two authors on the same subsystems: #607 (Luke Alonso, selene/selene-manager/helios), #608 helios/ignition/ci, #609 DMA lifetimes, #610 local storage tier, #611 pool client fencing, #612 selene-manager hardening. All merged 2026-11-29 between 17:17 and 17:32; #612 was opened 17:08 (10 minutes after #607 opened, and while #607 was still open) and merged 17:32, i.e. stacked on #607's merge.
Described-by-author lineage that #612 depends on:
- #356 "Store pool puts as roots when their published parent is absent" (yatesdr, #335 follow-up): created the rootless/absent-parent root fallback that #612's reparent_to_root now has to keep consistent. Its file set (selene-manager/src/store.rs +9 -26, PROTOCOL.md) overlaps #612's store.rs hunks. So #612 partially repairs an invariant #356 introduced.
- #341 "Preserve warm manager records on impossible arena allocations", #415 rows/eviction, #413/#429 ancestor linking, #339 cancellation counting, #402 timed-out source export release: all yatesdr, all in selene-manager/src/store.rs / claims.rs, the same files and the same "release the slot / export when the peer is gone" theme that #612's session_claims_lost and evict_accounted hunks touch.
- #376 "Watch pid-zero pool peers through SO_PEERPIDFD" (yatesdr) is the direct ancestor of #612's watch_pid/pid_exited fallback (local.rs, claims.rs, control.rs).
- #504 lossless KV compression (yatesdr) introduced the packed PutBegin/PinAck paths #612 now refuses for multi-process scopes; #523 (kv-codec literal verification) also touched selene-manager/src/store.rs.
- #496 and #497 (both merged, both cited in #612's evidence note): the rebase bases #612 says it validated against; neither changes selene-manager. No issue or PR was found that asks for these specific hardening checks: search_items for "selene-manager hardening scopes TLS handshake", "reparent index parent link rootless replacement" and "packed multi-process put" returned only #612 itself plus #607/#477/#554 (unrelated). So the "rootless fallback left stale parent links" / "evict_accounted could evict page-only ancestors with active readers" defects have no filed bug report in the repo; they are the author's own findings.
#9 [high] Claims and evidence: what is verified, what is self-reported, what is unbacked
What the PR claims (read_item #612 "Supporting evidence" and "Expected benefit"):
RUSTFLAGS="-D warnings" cargo check --locked --all-targets --features codec,rdmafor selene and--lib --bins --testsfor selene-manager: passed with 0 warnings. Not independently reproducible from here; CI on the head commit was "pending" at packet time and no CI result is recorded on the PR.- selene lib tests 540/540; selene-manager 186/186 lib (1 ignored) plus builder 3/3, offload 2/2, packed 9/9, pool_claims 36/36, pool_net 6/6, pool_store 11/11. Plausible and consistent with #607's numbers (185 lib, 11 integration binaries) plus #612's three new unit tests - but the run is self-reported, and #612's own three tests are the only ones covering new behaviour (see the gap list in the "description does not say" entry).
- "Combined 4-PR validation & SM120/SM121 hardware qualification": live
flare run+selene-manageron cn5 (SM120: DeepSeek-V4.1-Flash-1017 TP4, GLM-5.3-Flash TP2/TP4 off/cpu/gpu, Qwen3.8-Flash-Next TP1/TP2 incl. wiped-disk pool-only cold restore) and GB10 cn6-cn9 (3-node TP2, 4-node TP4 cross-host pool retirement & restore), reporting 0 panics, 0 leaked pins/slots, 0 quarantined bytes, clean shutdowns. This is the strongest evidence but it is (i) self-reported, (ii) run against a combined 4-PR stack (which 4 is never enumerated - presumably #609/#610/#611/#612), and (iii) run before the rebase onto #496/#497/#607, i.e. not against the commit that was merged. The description discloses this. - "Closes every crash, OOB, DoS, and leak vector" - an absolute claim. Facts that bear on it: the panicking
next_power_of_twois still present at store.rs:1953-1956 (put_requirement, reachable from the streamed/rootless paths); no test covers 11 of the 14 hunks; the scope-pruning only bounds empty scopes (core.rs:687-710) and keeps every scope with a non-empty index forever, since nothing ever clearsScopeState::indexfor a discarded catalog (onlywatch_catalogat store_bridge.rs:132-168 populates it, andcatalogsis never pruned). - "without changing wire compatibility" - no proto change is in the diff (selene-manager/src/proto untouched; the 10 files contain no .proto), so the message shapes are unchanged. What does change is which inputs are accepted and which reason code a client receives (multi-process packed PutBegin -> Reason::Invalid "packed storage is not supported for multi-process puts"; multi-process packed PinAck -> CopyError; oversize reservation -> NoWindows), plus a new InvalidScope refusal at the 64-scope cap and new ClientHello timeouts at 5 s. Clients that today succeed (packed puts on a TP>=2 scope, per selene/src/pool/engine/source.rs:252-256 the rank-agent path) will newly be refused.
- Evidence channel named in the description: "Discord: D-Rock" - off-repository, not linkable from the case file.
#10 [high] Reach: who is affected by the new refusals, caps and timeouts
Who/what is affected:
- Operators of
selene-managerwith more than 64 distinct scopes (e.g. many model/TP-layout combinations against one manager): the 65th fresh scope now gets InvalidScope (core.rs:687-710). This is a new, undocumented operational ceiling; it is a hard constant, not a config field (Limitsin selene/src/shared/config.rs is what the manager reads for other bounds; MAX_SCOPES bypasses it). - Operators running
--listenover TLS: a handshake now has 5 s and no more than 64 concurrent handshakes (control.rs:459, 475-501). A slow-client or a busy manager will now see handshake failures (io::ErrorKind::TimedOut) instead of a hung accept queue; nothing documents the new 5 s/64 limits for clients (selene/src/pool/client.rs sets its own timeouts). - Multi-process (TP>=2) pools using lossless KV compression: packed PutBegin and packed PinAck grants are now refused (store_bridge.rs:411-420, claims.rs:1170-1173). CLI users of
--rank+--prefix-cache-pool+ compression are already rejected at startup byPrefixCacheOffload::validate_topology(selene/src/offload.rs:96-103, called from helios/src/runtime_core/selection.rs:80 and offload.rs:572), so CLI users should be unaffected; directPoolClientcallers that relied on the rank-agent single-rank packed path (selene/src/pool/engine/source.rs:252-256) are the affected class. - Reconnect behaviour: a rank-0 process that reconnects with a changed scope or rank secret now loses its live agents (core.rs:658-664). TP instances that regenerate the rank secret per launch on the same instance id would be affected if they relied on the previous silent compatibility.
- Memory/eviction:
evict_accountedno longer removes a record whose memory extent is shared with a reader (store.rs:915,924 with Location::reading() at store.rs:94-98). Under read pressure this can make a rootless manager refuse a put (Budget) where it previously evicted and accepted: an availability/behaviour trade for UAF safety. - Shutdown:
hub.shutdown()beforepool_task.abort()(control.rs:553-556) stops data-channel accept and signals every live transfer, so remote readers get Closed instead of a dropped task. - Compatibility: no .proto change and no on-disk format change, so existing pool records and cores still load (charter line 42 requirement) - a fact from the diff: selene-manager/src/proto and selene/src/shared/record.rs are untouched. Dependency surface unchanged (no Cargo.toml in the diff).
- Documentation: no docs or PROTOCOL.md update in the PR; #607 updated docs/prefix-cache-offload.md for its own change, #612 updates nothing, so the new refusals, caps and timeouts are undocumented.
#6 [medium] Recent activity: same-day edits by #607/#609 and the author's own series
Recent commits on main touching these files, newest first (search_history + items_touching):
- 3801ff1d 2026-11-29 yatesdr - #612 itself (merge commit of this PR).
- e2522eb0 2026-11-29 yatesdr - #609 "Fix Selene DMA lifetime, quarantine, and shared-region aliasing" touched selene/src and selene-manager/src.
- 5df8edd3 2026-11-29 Luke Alonso - #607 (store_bridge/claims, selene/src/shared/index.rs included: index.rs changed there for
Index::expired, so #612's index.rs edit is the second change to that file the same day). - 3d8640c6 2026-11-25 #523, 716df00f 2026-11-25 #504 (both packed/KV-compression work by yatesdr in selene-manager/src/store.rs and claims.rs).
- 9710cadc 2026-11-23 Luke Alonso (core acquisition), 203d6c9f #476, 25b49519 #402, 436d6a9b #415, 204ecff0 #413, b930771b #401, 09c2a4a4 #376, 5477a6ab #356 - all yatesdr, all in selene-manager/src/{store.rs,pool/claims.rs,pool/store_bridge.rs,local.rs,control.rs}.
- f7256584 #496 and dad2fa56 #497 (PCCessna) touched selene/src only, the rebase bases #612 cites.
Ownership of the areas (orientation packet): selene-manager/src - yatesdr 30 commits, Luke Alonso 3; selene/src - yatesdr 36, Luke Alonso 5, Martin Vit 2. So #612 is the author working in their own area, immediately after a peer contributor (#607) had just edited the same two files; nothing shows a conflict, but #612's claims.rs hunk at 1158-1188 sits right after #607's
grantchanges and its store.rs hunk sits in the publish path #607 touched for first_page.
#7 [medium] People: yatesdr is the selene-manager/pool owner
Author: yatesdr, GitHub association COLLABORATOR. 79 merged PRs, 9 closed, 4 open in the last 180 days (orientation packet). They are the originator/owner of the Selene pool: #92 "Share prefix KV cache between instances and hosts through a selene pool manager", then #138, #139, #141, #142, #337, #401, #402, #413, #415, #429, #476, #504, #523, #527, #609, #610, #611, #612 - i.e. essentially the whole of selene-manager plus a large share of selene/src (36 commits in selene/src, 30 in selene-manager/src over 180 days; next is Luke Alonso with 5 and 3). Area co-workers: Luke Alonso (the #607 author, 3 commits in selene-manager/src), Martin Vit (2 in selene/src), PCCessna (#496/#497). Nobody else engaged with #612: no reviewer, no commenter, no reaction (pr_comments empty; read_item #612 discussion empty). Compare #607, which drew a flare-autobot case file plus an Autobot review within the same hour (#607 discussion, 2 comments, 2026-11-29 17:20 and 17:32). #612 got neither, so the difference in process between the two PRs is stark: #607 had an automated review written and #612 (merged four minutes before that review landed, at 17:32) did not. Priority-contributor list in the charter names @voipmonitor, @original-el8, @lukealonso - yatesdr is not on it, although they hold collaborator status and are the pool's principal author.
#8 [medium] Project fit: charter lines on Selene sharing, multi-host, review evidence
Charter lines (read_charter) that bear on #612:
- Line 24 goal: "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." #612 hardens selene-manager, the broker of that sharing: squarely in-goal.
- Line 22 goal: "Support single-host and cross-node serving, with Orbit handling placement and supervising serving ranks." #612's rank-agent, pidfd and rank-0 reconnect hunks serve the cross-node/multi-process case; the TLS handshake cap and the
--listenpath are the cross-node path. - Line 29 non-goal: "CPUs, pluggable execution backends, training, multi-model hosting/routing, or general cluster orchestration". The 64-scope cap is the closest thing to "multi-model hosting" in the change, and it is a limit on it, not support for it - consistent with the non-goal, but it is also an undeclared product limit on how many distinct (model, TP-layout) scopes one manager can hold.
- Line 42 code-review standard: "Check interactions across every supported model, cache scheme, parallel layout, multi-host setup... verify that existing data, artifacts, and exported cores still load." #612 changes the accepted-input surface for parallel layouts (rejects packed on TP>=2 scopes) and changes eviction eligibility (
reading()guard in evict_accounted), which touches every cache scheme's reclamation path. The PR reports CPU test suites and a combined-stack hardware run, not a per-layout matrix. - "Bring real evidence": "Bug fixes need to address the root cause" (#397). #612's fixes are defensive rejections and guards rather than root-cause changes in some places (the packed multi-process restriction removes a capability instead of fixing the extent sizing), which is worth flagging as a fact, not a verdict.
- "Don't silently ignore API fields... either implement it according to the spec or reject it" (#417): #612's refusals are the "reject" arm, consistent with the charter, but the new refusals are not documented in selene-manager/PROTOCOL.md.
- PR description requirement (four parts: why, what changed, claimed result, evidence): #612 satisfies all four, and explicitly discloses that hardware qualification ran against a combined 4-PR stack before the rebase (a limitation, honestly stated). No documentation change is part of #612: docs/prefix-cache-offload.md was updated by #607 for its index change but nothing in #612's 10 files documents the new refusals, the 64-scope cap, the 64-rank cap or the TLS handshake timeout for operators.
#11 [medium] Process: opened 17:08, merged 17:32, zero review, CI pending
Process facts for #612 (read_item #612, orientation packet):
- State: merged to main as 3801ff1d. Not a draft. Branch fix/selene-manager-hardening, head 1f9ee76a.
- Timeline: opened 2026-11-29 17:08, updated 17:32, merged 17:32 - 24 minutes. #607 opened 16:58, merged 17:17, so #612 was opened while #607 was still open and merged 15 minutes after #607's merge (consistent with its "rebased onto post-#607 main (5df8edd3c)" note).
- Review state: "Reviews: none yet"; pr_comments empty; labels: none.
- CI on the head commit: "pending" at packet time; no CI conclusion is recorded in the PR, so the only test evidence in existence is the author's self-reported runs in the description.
- No labels at all, whereas #607 carried area:caching, area:selene, bug, duplicate, triage:review. #607 also received a flare-autobot case file (17:20) and an Autobot review (17:32, "Recommendation: Ready To Merge"); #612 received neither - the bot only reacts to some PRs, so the absence is a process fact about #612, not evidence for or against it.
- The description names a Discord contact ("Discord: D-Rock") as the human channel; #607's says "Discord: no username provided".
#12 [medium] File map: ten files and which hunk lives where
File map for #612 (+293/-52), hunks verified at head 1f9ee76:
- selene-manager/src/control.rs (+23 -7): :347 channel.clone(); :459 handshake semaphore of 64; :475-501 5 s TLS timeout; :553-555 hub.shutdown() before pool_task.abort().
- selene-manager/src/local.rs (+25 -9): :425-433 Prior::holders use pid_exited when no pidfd; :774-794 watch_pid EINTR retry + new pid_exited (kill(pid,0), pid 0 => false).
- selene-manager/src/pool/claims.rs (+51 -14): :1161-1188 grant() descriptor lookup + multiprocess-packed refusal + reserved_bytes + max_pages; :2130-2170 agent_fence_by_id / agent_fence; :2256-2262 session_claims_lost terminal Pinned channel exports.
- selene-manager/src/pool/core.rs (+39 -8): :658-670 reconnect compatibility (codec+scope+ranks); :687-710 MAX_SCOPES=64 pruning; :989-1000 proc sweep pid_exited fallback.
- selene-manager/src/pool/mod.rs (+39 -0): :213-222 validate_scope caps (64 ranks, 1 TiB); :303-333 new test.
- selene-manager/src/pool/ranks.rs (+2 -2): :24 Ranks derives PartialEq/Eq; :230 rank_message calls agent_fence_by_id(Some(aid), ..).
- selene-manager/src/pool/store_bridge.rs (+9 -0): :411-420 multi-process packed PutBegin refusal.
- selene-manager/src/pool/windows.rs (+33 -8): :51-92 checked arithmetic in plan(); :198-209 new overflow test.
- selene-manager/src/store.rs (+22 -4): :915/:924 evict_accounted reading() guard; :1561-1585 checked_next_power_of_two; :2914-2922 reparent_to_root on the Replace path.
- selene/src/shared/index.rs (+50 -0): :207-238 reparent_to_root; :1447-1462 new test. Untouched by #612 but decisive for reading it: selene/src/shared/identity.rs:20-43 (RankPlanes/Geometry/Scope), selene/src/pool/options.rs:111-127 (pool_scope pads ranks), selene/src/offload.rs:96-103 (validate_topology rejecting rank+pool+compression), selene/src/pool/engine/source.rs:252-278 (rank agents hold single-rank packed records), selene-manager/PROTOCOL.md:971-1010 (multi-process instances) and :1076 (packed directory bounded to 64 ranks), selene-manager/src/store.rs:90-98 (Location::disk_busy/reading), selene-manager/src/pool/claims.rs:304-310 and :385-400 (export-slot accounting), selene-manager/src/store.rs:1953-1956 (remaining panicking next_power_of_two), selene-manager/src/pool/store_bridge.rs:132-168 (watch_catalog, the only writer of ScopeState::index).