Repository navigation
docs(adr): drop bootstrap probe fan-out; on-chain directory is fallback (#411) - #415
Conversation
…ck (#411) Removes broadcast probe fan-out from the content-discovery flow. ADR 022 made the DHT primary; fan-out was retained as a "bootstrap fallback before the routing table is populated." But the DHT bootstraps from StakingRegistry.getActiveNodes() — a node's first peers come from the on-chain registry and immediately participate in DHT lookups, so there is no separate window during which DHT cannot resolve. When DHT returns no providers, the on-chain origin directory (ADR 022 § Origin discovery) is the deterministic last-resort fallback for both registered and default-open namespaces. Fan-out becomes a fallback for a fallback that the second layer already covers. Probe rate budgets shrink accordingly: - Outbound: 10 fan-outs/s → 3 probe batches/s (DHT-targeted) - Inbound: 20 probes/peer/s → 5 probes/peer/s The Sybil/probe-flood attack surface goes away; an attacker can no longer observe a node's full peer list via fan-out traffic. Same simplification pattern as #408. Closes #411. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request replaces the broadcast probe fan-out mechanism with an on-chain origin directory as the deterministic fallback for content discovery across several ADRs. It also refines the DHT bootstrapping process and adjusts probe rate limits. Feedback includes addressing logical gaps in the updated Mermaid diagram, restoring the accidentally removed signature field in the ProbeResponse documentation, and ensuring consistent rate limit values across all related files.
- adr/001-network.md mermaid: fix fallback semantics (DHT no-providers triggers directory fallback; directory-returned providers must be probed before selection) - adr/001-network.md step 3: restore signature field in ProbeResponse field list (signature removal is scoped to PR #409, not this PR) - adr/005-protocol.md: update inbound probe rate limit reference from 20 to 5 to match the recalibrated value in adr/001-network.md Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…7, 019, 022 Follow-up to PR #415: the original PR updated ADR 001/005/022/architecture.md but left stale fan-out references in: - architecture.md (overview text + cache-miss mermaid) - ADR 015 (0-RTT motivation framed around 30-peer fan-out) - adr/appendix-observability.md (probe_fanout_latency_seconds metric) - ADR 017 (P-09/P-10 privacy threat surfaces) - ADR 019 (bootstrap failure mode prose) - ADR 022 (Context section presented fan-out as 'current design') Recasts all to reflect: DHT FIND_VALUE returns 3-5 candidates; probes are targeted; on-chain origin directory is the deterministic last-resort fallback. Renames probe_fanout_latency_seconds metric to probe_collection_latency_seconds. Addresses leftover-references sweep findings on PR #415. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Follow-up commit applied addressing leftover fan-out references identified in a post-merge sweep across canonical ADRs. 13ef4ee: recasts stale fan-out / broadcast-probe / old-rate-limit framing as targeted DHT-candidate probing with the on-chain origin directory as the deterministic last-resort fallback. Specifically:
Verification grep across canonical ADRs (excluding |
Closes #411.
Removes broadcast probe fan-out from the content-discovery flow. After ADR 022 made the DHT primary, fan-out was retained as a "bootstrap fallback before the routing table is populated" — but the DHT bootstraps from
StakingRegistry.getActiveNodes(), so a node's first peers come from the on-chain registry and immediately participate in DHT lookups. The fan-out fallback was protecting against a window that doesn't exist.When the DHT returns no providers, the on-chain origin directory (ADR 022 § Origin discovery) provides a deterministic last-resort fallback for both registered and default-open namespaces. Fan-out becomes a fallback for a fallback that the second layer already covers.
Wire/protocol changes
ProbeRequestin parallel to all known peers") removed fromADR 001 § Content Discovery (DHT + Probe).Files changed
adr/001-network.md— drop step 2a; rewrite step 3 fallback; update mermaid diagram (cache-miss → DHT → probe → on-chain directory); recalibrate probe rate limits; drop "Broadcast probe fan-out" Negative-consequences bullet; update Future Work resolutionadr/005-protocol.md— drop "and bootstrap fallback" from the gossip-introduction paragraph (probe is live-availability confirmation only)adr/022-content-discovery.md— Decision section: "Broadcast probe fan-out is not part of the protocol" + DHT bootstraps from registry; §1.6 Fallback rewritten to use on-chain directory; §1.7 Bootstrap rewritten; cross-ADR consistency rows updated; Acceptance Criteria Clarify unified node selection algorithm combining price, latency, and reputation #6 updatedadr/architecture.md— drop "During bootstrap, broadcast probe fan-out is used as a fallback"; replace with on-chain directory mentionWins
Caveat
Need to be confident the DHT bootstraps quickly enough from registry-seeded peers. The on-chain origin directory fallback already specified in ADR 022 handles the no-DHT-providers case deterministically — no need for fan-out. At PoC scale (30 nodes) the routing table is fully populated after a single self-lookup round.
Same simplification pattern as #408 and #410: a mechanism that was primary and became a fallback as the design evolved, but whose complexity stayed.
Test plan
fan-outmentions in canonical ADRs (history file_history/alternatives-pre-launch.mdretains its discussion of why fan-out was rejected, which is correct)🤖 Generated with Claude Code