PR #611: fix(selene): fix pool client event-loop starvation, fencing, backpressure, and overflow bugs

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/cf4952ca-e7bc-44b9-8510-0ca5a8725485

Opened by a workflow run, Nov 29, 2026 12:41 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: yatesdr (COLLABORATOR; sole active owner of selene/src/pool/, not one of the charter's named priority contributors); Discord: D-Rock Motivation: Under traffic, disconnects or hostile manager metadata, the Selene pool client could stall its own event loop while control messages arrived, drop fence acknowledgments the manager waits on (wedging pool slots), kill the session instead of applying backpressure, and overflow staging size arithmetic. This hardens each mechanism in place, without changing the gRPC protocol. Scale: +260 / −43 lines in 12 files (all under selene/src/; no proto, docs, Cargo or config change) Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #611 "fix(selene): pool client event-loop starvation, fencing, backpressure, and overflow bugs"

1. Charter alignment: aligned, no ownership conflict. The charter goal "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene" names exactly the subsystem hardened here (selene/src/pool/, shared/limits.rs) — runtime/serving, not recipe or kernel territory, so no boundary dispute. The change adds no flag, config knob, dependency, model alias, proto, or Cargo edit, and strays into none of the non-goals (rack-scale disaggregation, CPU backends, orchestration). That is the "smallest footprint in shared code" the charter asks for. The fix style also matches #397 (address the root cause per mechanism rather than retry/swallow), and the description carries the charter's four required parts plus an explicit "Material limitations" line.

2. Novelty & status: not live, already on main. The dossier found no competing, superseding, or reversing item — the only hits for pool-client starvation/backpressure/FenceAck/IPv6 dialing were #611 itself. It is merged as commit 8d05b9b6, landing 24 minutes after opening with 0 comments, 0 reviews, CI pending on head aac8f4f, and the only case file missing from the same-day quartet (#607/#609/#610/#612). Its session_lost change makes that function consistent with the pre-existing emit fence-class rule; it reverses nothing.

3. Value vs maintenance cost: real, cheap, but thinly evidenced. Beneficiaries are operators running --prefix-cache-pool against selene-manager: no more session teardown on the first full outbound send (OUTBOUND = 4096), no dropped fence acknowledgments wedging the manager, working IPv6-literal dials, and hostile-limits arithmetic that saturates instead of wrapping. Cost is low: no wire/proto or on-disk change, old and new selene/selene-manager interoperate, and staging_slots/planned_bytes yield identical values for all sane limits. Caveats: no issue, log, or operator report (the #335 production-degradation lineage is not joined); "0 disconnects, 0 leaked pins, bit-exact pos0 parity" is pooled across four PRs and the description itself disclaims per-PR attribution and pre-rebase hardware; ~3 new tests cover nine fix clusters and are partly misdescribed (unlisted staging_slots_saturates_instead_of_overflowing, pump_flow described as pre-existing, no TP >= 3 test in code); two undeclared behaviour changes (30 s CLOSE_TIMEOUT give-up in drain_out, new Evicted{heir:None} notice) and two undocumented semantics changes (reconnect staging-size error silently downgrading to local tiers) remain documentation debt.

Verdict: Obsolete (merged as commit 8d05b9b6). Judged on merits it is charter-aligned and additive; had it been open it would be "worth it with changes" — added tests and docs updates, not redesign.

Full report Decide Value: obsolete (94%): It was already fixed another way (merged or on the main branch), or is no longer needed for another reason.

Classify intake

Selected: triage:review, bug, performance, area:selene

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +bug, +performance, +area:selene