GeezerVison is showing github.com — id(peers): PR #3750 — the only fix for #1765 — is conflicting and untouched since 2026-11-01; shepherd it or supersede it · Issue #6944 · developing-today/code
id(peers): PR #3750 — the only fix for #1765 — is conflicting and untouched since 2026-11-01; shepherd it or supersede it #6944Descriptionid(peers): PR #3750 — the only fix for #1765 — is conflicting and untouched since 2026-11-01; shepherd it or supersede it
Finding
PR #3750 ("id(peers): enforce the global --max-peers hard cap at every collection site (#1765)") is a stale-but-needed PR: it is the only implementation of the still-open issue #1765, it no longer merges, and it has had no movement since the day it was opened — while the bug it fixes is still live on current main.
Evidence
- PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750: OPEN, head
48b4473ebd20, created 2026-11-01T15:26Z, last updated 2026-11-01T16:17Z (no labels, not a draft). Live gh pr view this run: mergeable: CONFLICTING, mergeStateStatus: DIRTY; the only check is CodeRabbit (NEUTRAL).
- Issue id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765 ("--max-peers is not a hard cap…") is still OPEN, and a search for other max-peers PRs finds no alternative fix.
- Current main
63f83bef5ab2, pkgs/id/src/commands/peers.rs still inserts unchecked at the sites PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750 caps: the RPC merge (all_peers.insert, :158), the crawl merge (:173), the crawl seeds (~:334, which also pushes every seed onto the frontier), and the crawl response merge (Vacant-entry insert loop, ~:371-378) — a single oversized ListPeers response still blows past --max-peers.
- PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750's own verification was never completed: its body records that targeted
cargo test --lib commands::peers was started on a saturated laptop and CI was left as "the verification of record".
Why it matters
#1765 is a documented hard-cap contract that main still violates. The fix exists but is rotting: every week it sits conflicting, the rebase gets harder and the chance grows that someone re-implements it from scratch (or that the cap keeps being silently exceeded in the meantime).
Acceptance criteria
- PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750 is rebased on current main with conflicts resolved, OR closed with a note on issue id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765 naming the superseding PR/plan (salvage-diff first, per the lifecycle protocol — its
offer_peer helper and four tests are the salvageable core).
- The
offer_peer unit tests and the crawl_peers seed-cap test from PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750 pass on the rebased head (laptop or CI), completing the verification the PR body left open.
- On merge, issue id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765 closes via the PR; the
--max-peers cap is enforced at seeds, RPC merges, crawl response merges, gossip collection, and the cmd_peers combined merges.
Activitydeveloping-today commented on Nov 7, 2026 dezren39 commented on Nov 7, 2026 🤖 Agent note · filed
- Agent: pr-diff-review job
- Session / ID: pr-diff-review cron run 2026-11-07 13:24 CST
- Found via: filed this run
- Task: Shepherd stale-but-needed PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750 (conflicting, untouched since 2026-11-01) — the only fix for OPEN issue id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765, still live on main; rebase + verify, or supersede with a salvage note.
- Expectation: effort/s — done when PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750 (rebased, tests passing) merges and closes id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765, or is closed with a named superseding plan on id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765.
- Links: PR id(peers): enforce the global --max-peers hard cap at every collection site (#1765) #3750, issue id(peers): --max-peers is not a hard cap — the crawl inserts a whole ListPeers response unchecked, and the RPC/gossip paths never consult it at all #1765
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
developing-today commented on Nov 8, 2026 🤖 Agent note · done (follow-up pointer)
dezren39 commented on Nov 9, 2026 🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-d — Session/ID: task 11336, repo-queue-worker-shift-d 2026-11-09 1248 run. Task 11336 (pr_shepherd) for issue #6944: shepherding PR #3750 (only fix for issue #1765, --max-peers hard cap). Fresh check: issue #6944 OPEN, PR #3750 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels on either; execution lane = direct (row 5618). Worktree /home/user/git/fleet/11336-3750 on branch queue/4794-1765-max-peers-cap @ e1cdae4. Plan: merge current main in and resolve the peers.rs conflict, fix the 3 open Codex P2 findings on PR #3750 (combined-merge update loss, crawl duplicate downgrading newer announcements, gossip collection cap discarding updates to RPC-retained peers), run offer_peer + crawl seed-cap tests, then merge under standing criteria.
dezren39 commented on Nov 9, 2026 🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-d — Session/ID: task 11336, repo-queue-worker-shift-d 2026-11-09 1248 run. Task 11336 (pr_shepherd) COMPLETE fixed_merged: PR #3750 shepherded to merge — current main merged in (150d573, peers.rs conflict resolved keeping both the cap tests and main's abuse-report tests), all 3 Codex P2 findings dispositioned with replies on their threads (4516764262, 4516764642, 4516764985): findings 1–2 were already fixed in 3d6dde9 (merge_capped scan-past + offer_peer freshness guard, with tests); finding 3 (gossip collection cap discarding updates to RPC-retained peers) fixed in 8f0e820 + new regression test gossip_collection_keeps_updates_to_peers_retained_by_another_source. Verification on laptop: cargo test --lib commands::peers — 29 passed, 0 failed (offer_peer, merge_capped, crawl seed-cap tests included). PR #3750 MERGED as a3db48e; issue #1765 CLOSED by the merge — cap now enforced at seeds, RPC merges, crawl response merges, gossip collection and cmd_peers combined merges. Closing this shepherd issue #6944 as complete.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|