Explore scratchpad · NVIDIA/hyperflare-inference #611

Raw Markdown for agents: https://autobot.eidonix.com/p/e10c979b-8ed4-4442-8936-f4bf15f53fbf.md

#1 [high] Change: #611 is 12 files +260/−43 in selene/src pool client, no protocol change

PR #611 "fix(selene): fix pool client event-loop starvation, fencing, backpressure, and overflow bugs", author yatesdr (COLLABORATOR), branch fix/selene-pool-client-reliability into main, head aac8f4f, merged 2026-11-29 17:32 (opened 17:08 — ~24 min open, 0 reviews, 0 comments). Files (12), +260/−43 (pr_files result): selene/src/pool/agent.rs +8/−5, announce.rs +10/−4, conn.rs +69/−12, engine/mod.rs +18/−2, engine/netio.rs +7, engine/requester.rs +10/−6, engine/source.rs +27/−7, engine/tests.rs +59, engine/writer.rs +19/−1, net.rs +11/−4, peers.rs +4/−1, selene/src/shared/limits.rs +18/−1.

Plain terms (9 independent micro-fixes inside the pool client, no wire/proto change — selene.proto untouched, no Cargo dependency change, no docs change):

  1. conn.rs run_session was rewritten from a flush() + fresh sleep(tick) per select iteration into a persistent next_tick deadline + a pending_out VecDeque drained via try_send (new drain_out() returning Drained/Full/Closed) + a tx.reserve() select arm as real backpressure; on exit unsent messages are handed back with engine.emit() (conn.rs:836-949 at PR head).
  2. engine/mod.rs: pump() split into pump(now) = pump_flow(now, true) and new pump_flow(now, flow_index) which now calls collect_outbound_fills() and can skip flow_index() (mod.rs:586-601).
  3. session_lost no longer self.out.clear(); it re-queues FenceAck/ExportEnd/WindowReleased into self.owed (mod.rs:340-349).
  4. writer.rs on_put_accept: sets put.phase = Phase::Accepted immediately after the Begun check (line 334); for an unknown put id emits Out::PutCancel + FenceAck(Drained) (lines 317-327); rejects accept.packed && put.packed_offer.is_none() via fail_put (lines 372-377).
  5. source.rs: partial-open TP>=3 export — on open_export_peers error with already-opened peers, keeps the run in Phase::Pinned, marks cancelled/refused_on_open, and pin_refused already answered; drive_export then suppresses the second ExportEnd (refused_on_open field, lines 54-56, 148, 328-349, 783-799).
  6. requester.rs: a failed restore whose error carried() a crate::shared::packed::Checksum is reported as wire::CopyOutcome::CopyChecksum instead of CopyErrorOutcome (requester.rs:883-895).
  7. net.rs: Staging::planned_bytes and Staging::new use checked_next_multiple_of/checked_mul (planned_bytes returns u64::MAX on overflow); limits.rs staging_slots saturating add/mul.
  8. netio.rs net_staging: on reconnect, if existing staging slot_bytes() < net_shape(limits).1 → Error "the manager's window size (…) exceeds registered staging (…)" (netio.rs:40-50).
  9. conn.rs dial: .trim_matches(['[', ']']) on host so IPv6 literals parse (conn.rs:574-578). agent.rs wind_down: Goodbye send wrapped in tokio::time::timeout(2s) (agent.rs:492-498); quarantine clears self.jobs/self.pending (agent.rs:1716-1717). announce.rs spilled: remove from before upsert(to), and if to was not added but from was removed, push Notice::Evicted{heir:None} (announce.rs:137-158). peers.rs pool_peer: records.first().ok_or(invalid("empty pool rank rendezvous response")) (peers.rs:196-199).

#2 [high] Claims and evidence: #611 test/check claims and their limits

Claims in #611's description ("Supporting evidence"):

What I could verify in the tree at PR head: exactly 2 new engine tests (late_or_rejected_put_accept_always_emits_fence_ack_drained tests.rs:1592, session_lost_preserves_unsent_fence_messages_for_next_session tests.rs:1632) plus 1 new test in selene/src/shared/limits.rs (staging_slots_saturates_instead_of_overflowing, limits.rs:133-139) that the description does NOT mention (it lists only the two engine tests). So 3 new tests, 2 declared. No new tests for: conn.rs run_session/drain_out/backpressure/next_tick, IPv6 trim, Staging::planned_bytes/new overflow, net_staging reconnect window check, agent wind_down timeout + quarantine clearing, announce.spilled ordering, pool_peer empty-rendezvous guard, source.rs refused_on_open, requester CopyChecksum classification. Of the 9 fix clusters, only the put-fence state machine and session_lost preserving get tests. CI on head commit: orientation packet says "pending"; PR was merged 24 minutes after opening with no review and no bot case-file comment (contrast #607, #609, #610, #612 which all carry flare-autobot review comments — #611 and #609's discussions are empty).

#3 [high] Why: #611 cites no issue; the observed-degradation precedent is #335

#4 [high] Related work: stacked on #607, sibling of #609/#610/#612, extends #504/#524/#413

#6 [high] People: yatesdr owns the pool client; not a charter priority contributor; no reviewers

#7 [high] Community: no review at all, merged 24 min after opening with CI pending

#9 [high] Change: what the description overstates, understates or omits

Says but doesn't do (or overstates):

Does but doesn't say:

#11 [high] File map: per-file citations at #611 head (aac8f4f)

File map of the 12 changed files at #611's head (aac8f4f), with what each fix sits next to (line numbers are PR-head):

#5 [medium] Recent activity: #611 is the fourth of four same-day pool PRs, following #607 by 15 minutes

Six months of selene/src/pool commits are almost entirely yatesdr (36 of 43 in selene/src in 180 days; Luke Alonso 5, Martin Vit 2 — orientation packet). Directly relevant recent ones:

#8 [medium] Project fit: squarely inside the Selene prefix-cache goal; description meets the 4-part contract; docs untouched

#10 [medium] Reach: operational effects on pool-attached instances, no compatibility or config surface change