Repository navigation
docs(adr): drop popular_hashes from NodeAnnounce; DHT FIND_VALUE is the demand signal (#412) - #416
Conversation
…he demand signal (#412) Removes popular_hashes from NodeAnnounce. The field originally provided a content-inventory hint for clients before content discovery had a primary mechanism. After ADR 022 made DHT FIND_VALUE primary, popular_hashes became a redundant "demand signal" duplicating information already available through: - DHT FIND_VALUE query frequency (non-suppressible by construction) - Local cache-miss timestamps (already specified in ADR 001) ADR 017 P-01 explicitly flagged popular_hashes as a content- inventory leak (T1 / network-passive threat). Production cardinality was cut from 20 → 5 to mitigate; dropping the field eliminates the threat row entirely rather than reducing it. Wins: - ~640 bytes saved per NodeAnnounce at 20-hash PoC cardinality; ~160 bytes at 5-hash production cardinality - ADR 017 P-01 retired (was: "Mitigate, Pre-mainnet") - One PoC/production split removed (popular_hashes_max constant) - Simpler NodeAnnounce schema and validation rules - ADR 022 collapses to a single non-suppressible popularity signal (DHT FIND_VALUE) plus local demand Same simplification pattern as #408. Closes #412. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request removes the popular_hashes field from the NodeAnnounce message across several Architecture Decision Records (ADRs). This change simplifies the protocol and eliminates a significant privacy surface related to content demand patterns. Consequently, prefetching logic has been updated to rely on DHT FIND_VALUE query frequency and local cache-miss timestamps rather than explicit gossip signals. Feedback was provided to correct broken internal section references in the mitigation roadmap within adr/017-privacy.md that occurred due to the removal and renumbering of sections.
After dropping the popular_hashes cardinality reduction subsection in §5 and renumbering subsequent subsections, the Prioritized Mitigation Roadmap table in §6 still pointed to the pre-renumber section numbers. Update priorities 2 and 4-6 to point to their current section numbers (§5.3, §5.4, §5.5, §5.6 respectively). Address Gemini review comment on PR #416. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…gossip section Follow-up to PR #416: the gossip section in ADR 005 still claimed NodeAnnounce carried 'a list of popular hashes (max 20)' even though the field was removed from NodeAnnounce in PR #416. Update the prose to match ADR 001: NodeAnnounce carries node-level metadata (region and load hint) only, with no demand signals. Addresses leftover-references sweep finding on PR #416. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Follow-up commit 24d380f drops a stale leftover reference in ADR 005 § Gossip — node metadata that still claimed NodeAnnounce carried 'a list of popular hashes (max 20)'. The gossip-section prose now matches ADR 001's struct definition (region + load hint only). |
# Conflicts: # adr/001-network.md # adr/005-protocol.md # adr/017-privacy.md
Closes #412.
Drops
popular_hashesfromNodeAnnounce. The field originally provided a content-inventory hint for clients before content discovery had a primary mechanism. After ADR 022 made DHT FIND_VALUE primary,popular_hashesbecame a redundant "demand signal" duplicating information already available through DHT FIND_VALUE query frequency (non-suppressible by construction) and local cache-miss timestamps.ADR 017 P-01 explicitly flagged
popular_hashesas a content-inventory leak (T1 / network-passive threat). Production cardinality was cut from 20 → 5 to mitigate; dropping the field eliminates the threat row entirely rather than reducing it.Wire format change
struct NodeAnnounce { node_id: NodeId, region: String, load: LoadHint, - popular_hashes: Vec<Hash>, // top-N most-requested hashes (max 20, unique) timestamp_us: u64, signature: Signature, }Files changed
adr/001-network.md— droppopular_hashesfield fromNodeAnnouncestruct, mermaid diagram, and validation rule (6); merge "Network popularity signal" into the local-demand section under a new "Prefetching from Local Demand" heading; drop the negative-consequences bullet aboutpopular_hashesadr/013-schema-evolution.md— droppopular_hashesfrom theNodeAnnounceBodyexamples in §Tier 1 and §Signed Field Freezingadr/017-privacy.md— drop P-01 row from inventory; rename "Content demand patterns" subsection to discuss DHT FIND_VALUE traffic as the surviving correlation channel; drop §5.2 (popular_hashes Cardinality Reduction) and renumber subsequent §5.3 → §5.2 etc; drop P-01 from Disposition Summary, Prioritized Mitigation Roadmap, Consequences, and Referencesadr/022-content-discovery.md— drop §2.1 "Signal 1:popular_hashesGossip"; promote DHT FIND_VALUE to Signal 1; add "Signal 2: Local Cache-Miss Frequency" derived from ADR 001; drop thepopular_hashesrow from the Prefetch Decision table and the §Interaction-with-Existing-Protocols row; update Acceptance Criteria ADR 003: Specify EIP-712 domain separator for voucher signatures #8adr/011-content-takedown.md— replace "Stop announcing — omit the hash frompopular_hashes" with "Stop publishing — withdraw any DHT STORE records for the hash"; droppopular_hashesfrom cross-ADR consistency notesadr/012-client.md— droppopular_hashesfrom gossip-integrity and trust-boundary discussionsadr/019-node-onboarding.md— droppopular_hashes: vec![]from the registrationNodeAnnounceexampleadr/appendix-poc-production-seams.md— drop thepopular_hashescardinality row from the inventory; droppopular_hashes_maxfromNetworkConstants; drop the seam-by-ADR table row for ADR 017 (since the cardinality split was the only ADR-017 entry); update the no-magic-numbers rule exampleadr/architecture.md— replace "popularity surfaced viapopular_hashesgossip" with DHT FIND_VALUE query frequency; rewrite Prefetching paragraph as a single local-demand signalWins
NodeAnnounceat 20-hash PoC cardinality; ~160 bytes at 5-hash production cardinalitypopular_hashes_maxconstant inNetworkConstants)NodeAnnounceschema and validation rulesSame simplification pattern as #408, #410, and #411: a field that was added to solve a discovery problem (pre-DHT) and survived past its purpose, with measurable cost (privacy, bandwidth) for marginal benefit (a duplicate demand signal).
Test plan
popular_hashesreferences in canonical ADRs (history file_history/alternatives-pre-launch.mdwould not have any since this field never appeared in the alternatives table)popular_hashesgossip signal" assertion in ADR 017🤖 Generated with Claude Code