Repository navigation
docs(adr): demote ADR 029 peer-table eviction to appendix - #448
Merged
Merged
Conversation
ADR 029 codified a local node-internal policy — a node's TTL setting or admission policy is invisible on the wire and two nodes running different settings still interoperate. Under the cut-line in adr/README.md § ADRs vs appendices, that's appendix material, not a core protocol ADR. Reclassify accordingly. - Rename adr/029-peer-table-eviction-policy.md to adr/appendix-peer-table-eviction.md; replace ADR title and Date/Status frontmatter with the standard appendix preamble used by appendix-observability.md and appendix-fraud-detection.md. - Update internal "this ADR" references to "this appendix" inside the file. - Update inbound links in adr/architecture.md (chapter 1 reading order, numeric per-ADR index, Appendices — Reference Patterns list), adr/001-network.md (peer-table and registry-cache paragraphs), adr/011-content-takedown.md (origin-blacklisting bullet), and adr/appendix-observability.md (gossip metrics cross-references). - Update the pandoc reading-order build list in adr/README.md: remove from Foundations chapter line, insert after appendix-observability.md in the appendix block. - CLAUDE.md: note that 029 was canonical but reclassified, so the number must not be reused (distinct from 030/031/032 which were reclaimed before ever being canonical). Closes #447 part 1. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request reclassifies ADR 029 (Peer-Table Eviction Policy) as an appendix, renaming the file to appendix-peer-table-eviction.md and updating all internal references across the documentation. This change reflects that peer-table eviction is a local implementation choice rather than a core protocol requirement. Feedback was provided to include a specific anchor in a Markdown link to ensure readers are directed to the correct section of the observability documentation.
Two links in appendix-peer-table-eviction.md to appendix-observability.md § 2.6 Gossip Metrics were missing the GFM anchor slug. Add #26-gossip-metrics on both. Gemini flagged line 96 on PR #448; line 52 had the same pattern and is fixed together for internal consistency. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu
added a commit
that referenced
this pull request
May 7, 2026
Per the cut-line in adr/README.md § ADRs vs appendices, ADRs codify cross-implementation interop contracts; local implementation policies that any compliant node may set independently belong in appendices. Blob cache eviction is a node-internal choice — two nodes running different eviction strategies (LRU, LFU, hybrid) still interoperate so long as they honour the probe-triggered hold in ADR 005. Reframe accordingly. PR #448 (which merged into main as 83ce46d) demoted ADR 029 peer-table eviction to appendix on the same logic; this PR mirrors that reclassification for the blob cache. Reframe changes vs the prior PR 444 state: - Rename adr/030-blob-cache-eviction-policy.md to adr/appendix-blob-cache-eviction.md. Replace ADR title and Date/Status frontmatter with the standard appendix preamble used by appendix-observability.md, appendix-fraud-detection.md, and (post-PR-#448) appendix-peer-table-eviction.md. Update internal "this ADR" references to "this appendix" and switch ADR 029 cross-refs to appendix-peer-table-eviction.md (which lands as the appendix when this PR rebases on main post-#448). - adr/architecture.md: remove the ADR 030 entry from the chapter 1 reading order and the numeric per-ADR index; insert the new Blob Cache Eviction Policy entry into "Appendices — Reference Patterns" after Observability. Update the "Eviction:" line in § Caching to point at the appendix. - adr/README.md (pandoc reading-order build): remove 030-blob-cache-eviction-policy.md from the chapter 1 line; add appendix-blob-cache-eviction.md to the appendix block after appendix-observability.md. - adr/appendix-observability.md: switch the four "See ADR 030" cross-refs to point at appendix-blob-cache-eviction.md, with proper §-anchors for the metric-row references. Apply the prior code-review finding: drop decdn_cache_size_limit_bytes from Tier M to Tier R — the appendix's own M-tier definition ("MUST expose or refuse to start; covers slash-risk or delivery accountability") doesn't fit a static configuration-mirror gauge, and the sibling new cache metrics already use R. - adr/005-protocol.md: probe-hold cross-ref points at the appendix. - CLAUDE.md: revert the "Next ADR is 031" bump back to 030 since ADR 030 is no longer being filed as canonical (the slot stays in the reclaimed list, available for reuse by a future ADR; this is distinct from PR #448's 029 case where the number was canonical before reclassification). Closes #447 part 2. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu
added a commit
that referenced
this pull request
May 7, 2026
New appendix codifying LRU eviction for the blob cache, the operator-pinning override, the durable operator-evict orthogonality, and the probe-hold composition above LRU. Closes #220. Per the cut-line in adr/README.md § ADRs vs appendices, ADRs codify cross-implementation interop contracts; local implementation policies that any compliant node may set independently belong in appendices. Blob cache eviction is a node-internal choice — two nodes running different eviction strategies (LRU, LFU, hybrid) still interoperate so long as they honour the probe-triggered hold in ADR 005. PR #448 applied the same logic to peer-table eviction; this PR mirrors that reclassification for the blob cache. Changes: - adr/appendix-blob-cache-eviction.md: new file. LRU keyed on the Instant of the last successful CacheEngine::get (refreshed on both the cache-hit path and the post-pull-through path); pinning, evict, and probe-hold compose above it; reputation does not factor in. Six-section structure (Eviction key / Pinning / Operator evict / Probe-hold / Reputation / Observability) plus rejected alternatives (LFU, size-weighted, hybrid LRU+LFU, no-eviction, reputation-priority, probe-refresh). - adr/architecture.md: add the new appendix to "Appendices — Reference Patterns" between peer-table eviction and L2 deployment; update § Caching eviction wording from "LRU or frequency-weighted (LFU)" to "LRU keyed on the timestamp of the last successful CacheEngine::get" pointing at the appendix. - adr/005-protocol.md: probe-hold paragraph narrowed from "LRU/LFU cache pressure" to "LRU cache pressure" pointing at the appendix. Aligns with the canonical decision to specify LRU. - adr/appendix-observability.md § 2.3 Cache Metrics: add three rows (decdn_cache_size_limit_bytes Tier R; decdn_cache_evicted_operator_total Tier R; decdn_cache_pinned_count Tier R) and tighten decdn_cache_evictions_total description from "LRU/LFU" to "LRU". decdn_cache_size_limit_bytes is filed at Tier R because the appendix's own M-tier definition (slash-risk + delivery-accountability) doesn't fit a static configuration-mirror gauge. - adr/README.md: pandoc reading-order book build adds appendix-blob-cache-eviction.md to the appendix block after appendix-peer-table-eviction.md. Closes #220, #447 part 2. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu
added a commit
that referenced
this pull request
May 7, 2026
New appendix codifying LRU eviction for the blob cache, the operator-pinning override, the durable operator-evict orthogonality, and the probe-hold composition above LRU. Closes #220. Per the cut-line in adr/README.md § ADRs vs appendices, ADRs codify cross-implementation interop contracts; local implementation policies that any compliant node may set independently belong in appendices. Blob cache eviction is a node-internal choice — two nodes running different eviction strategies (LRU, LFU, hybrid) still interoperate so long as they honour the probe-triggered hold in ADR 005. PR #448 applied the same logic to peer-table eviction; this PR mirrors that reclassification for the blob cache. Changes: - adr/appendix-blob-cache-eviction.md: new file. LRU keyed on the Instant of the last successful CacheEngine::get (refreshed on both the cache-hit path and the post-pull-through path); pinning, evict, and probe-hold compose above it; reputation does not factor in. Six-section structure (Eviction key / Pinning / Operator evict / Probe-hold / Reputation / Observability) plus rejected alternatives (LFU, size-weighted, hybrid LRU+LFU, no-eviction, reputation-priority, probe-refresh). - adr/architecture.md: add the new appendix to "Appendices — Reference Patterns" between peer-table eviction and L2 deployment; update § Caching eviction wording from "LRU or frequency-weighted (LFU)" to "LRU keyed on the timestamp of the last successful CacheEngine::get" pointing at the appendix. - adr/005-protocol.md: probe-hold paragraph narrowed from "LRU/LFU cache pressure" to "LRU cache pressure" pointing at the appendix. Aligns with the canonical decision to specify LRU. - adr/appendix-observability.md § 2.3 Cache Metrics: add three rows (decdn_cache_size_limit_bytes Tier R; decdn_cache_evicted_operator_total Tier R; decdn_cache_pinned_count Tier R) and tighten decdn_cache_evictions_total description from "LRU/LFU" to "LRU". decdn_cache_size_limit_bytes is filed at Tier R because the appendix's own M-tier definition (slash-risk + delivery-accountability) doesn't fit a static configuration-mirror gauge. - adr/README.md: pandoc reading-order book build adds appendix-blob-cache-eviction.md to the appendix block after appendix-peer-table-eviction.md. Closes #220, #447 part 2. Co-authored-by: Alper Gundogdu <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reclassify ADR 029 (peer-table eviction) as an appendix. Under the cut-line in adr/README.md § ADRs vs appendices, ADRs codify cross-implementation interop contracts; local implementation policies that any compliant node may set independently — peer-table TTL, blob cache eviction order, etc. — belong in appendices. ADR 029 sits squarely on the appendix side: two nodes running different TTLs still interoperate.
The same logic applies to ADR 030 (blob cache eviction policy) currently in #444. That PR will be reframed in a follow-up so it lands as
appendix-blob-cache-eviction.mdfrom the start.Closes #447 part 1.
Changes
adr/029-peer-table-eviction-policy.md→adr/appendix-peer-table-eviction.md. Replace ADR title and Date/Status frontmatter with the standard appendix preamble (matchingappendix-observability.mdandappendix-fraud-detection.md). Update internal "this ADR" references to "this appendix".architecture.md,001-network.md,011-content-takedown.md,appendix-observability.md, and the pandoc reading-order build list inREADME.md.CLAUDE.md: note that 029 was canonical but reclassified, so the number must not be reused (distinct from 030/031/032 which were reclaimed before ever being canonical).Test plan
adrs-book.pdfbuild peradr/README.md) succeeds with the new file ordering029-peer-table-eviction-policyor "ADR 029" references inadr/*.mdappendix-observability.md(#1-lifecycle-and-ttl,#3-registry-cache-interaction-active-eviction) resolve correctly in the renamed file🤖 Generated with Claude Code