Repository navigation
Description
Context
NodeAnnounce (broadcast over iroh-gossip per ADR 001) currently carries popular_hashes: Vec<Hash> — up to 20 BLAKE3 hashes per node per announcement (PoC), reduced to 5 in production for privacy.
The field's original purpose was content-inventory hinting: before ADR 022 made DHT FIND_VALUE the primary content-discovery mechanism, clients leaned on NodeAnnounce to know which nodes held which content. With the DHT in place, popular_hashes is now described as a "demand signal" — telling other nodes which content is hot (ADR 001 § Local demand signal).
Why drop now
Same pattern as #408: a mechanism whose original purpose was superseded but the field stayed for a vague secondary reason.
Privacy: ADR 017 P-01 explicitly flags popular_hashes as a content-inventory leak (T1 / network-passive threat). The production cardinality cut from 20→5 is itself a partial mitigation acknowledgment — but the leak remains real, and dropping the field eliminates the entire P-01 threat row rather than reducing it.
Demand signal redundancy: the same information is already available through cheaper, less leaky channels:
cdn/dht/v1FIND_VALUE traffic exposes per-hash demand to nodes responsible for that hash's keyspace, not the entire network- The local demand signal in ADR 001 § Local demand signal tracks miss timestamps per hash and triggers proactive pulls — already specified, no gossip needed
- Cache eviction telemetry surfaces demand patterns within an operator's own infrastructure
So popular_hashes is duplicating a signal we have, broadcasting it to every node in the mesh, and creating a privacy concern in the process.
Proposed change
Drop popular_hashes from NodeAnnounce. The struct becomes:
struct NodeAnnounce {
node_id: NodeId,
region: String, // ISO 3166-1 alpha-2
load: LoadHint,
timestamp_us: u64,
signature: Signature, // Ed25519, unchanged
}NodeAnnounce continues to carry node-level metadata (region, load) that is genuinely network-wide and not derivable from DHT traffic.
Wins
- ~640 bytes saved per
NodeAnnounceat the 20-hash PoC cardinality (~32 bytes/hash + framing); ~160 bytes at the 5-hash production cardinality - ADR 017 P-01 threat retired entirely (rather than partially mitigated by cardinality cuts)
- Simpler
NodeAnnounceschema: drops thepopular_hashesvalidation path (no duplicates, max-20-entries, etc.) - Drops the seams-appendix row "
popular_hashescardinality: 20 vs 5" — one fewer PoC/production split
ADRs to update
adr/001-network.md— droppopular_hashesfromNodeAnnouncestruct and validation rules; keep the local-demand-signal sectionadr/017-privacy.md— drop P-01 row (or mark as resolved by removal)adr/appendix-poc-production-seams.md— drop thepopular_hashescardinality row from the inventory
Pattern reference
Fourth instance of the #408 pattern: a field added to solve a discovery problem (pre-DHT) that survived past its purpose, with measurable cost (privacy, bandwidth) for marginal benefit (a duplicate demand signal).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity