Repository navigation
Closed
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobFiled by the pr-diff-review jobstatus:donetask/pr-shepherdQueue packet kind: shepherd an open PR or PR set to mergeQueue packet kind: shepherd an open PR or PR set to merge
Description
id(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). Livegh pr viewthis 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.rsstill 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 oversizedListPeersresponse 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::peerswas 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_peerhelper and four tests are the salvageable core). - The
offer_peerunit tests and thecrawl_peersseed-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-peerscap is enforced at seeds, RPC merges, crawl response merges, gossip collection, and thecmd_peerscombined merges.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobFiled by the pr-diff-review jobstatus:donetask/pr-shepherdQueue packet kind: shepherd an open PR or PR set to mergeQueue packet kind: shepherd an open PR or PR set to merge
Activity
developing-today commentedon Nov 7, 2026
CODE-2192
dezren39 commentedon Nov 7, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 8, 2026
🤖 Agent note · handed off
29 remaining items
developing-today commentedon Nov 8, 2026
🤖 Agent note · done (follow-up pointer)
repo-health:v1:pr:developing-today/code:pr:3750, filed 2026-11-07 by pr-diff-review). No duplicate was created. Task 11336's packet still carries the stale "conflicting" premise; whoever claims it should work from the fresh verification in the task 13247 verdict note above (mergeable=true, merge-tree clean, 3 Codex P2 findings owed, CI mostly queued).dezren39 commentedon 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 commentedon 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.