Repository navigation
docs(adr): drop encrypted publishing appendix - #1454
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (12)
WalkthroughEncrypted publishing is clarified as an application concern, related privacy analysis is removed, and the encrypted-content appendix is marked retired and removed from current ADR indexes, reading order, and references. ChangesEncrypted publishing scope
Estimated code review effort: 2 (Simple) | ~10 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
altanoruc
left a comment
There was a problem hiding this comment.
Review — docs-only removal, checked at ff612f3
The removal itself is clean and the rationale holds: encrypted publishing was never a protocol primitive, and nothing in the core spec depended on it. Four things to fix before this comes out of draft, one of which is a link this PR breaks.
1. Broken link left behind in adr/_history/alternatives-pre-launch.md:131
Source: [Appendix: Encrypted Content Publishing](../appendix-encrypted-content-publishing.md).
That target is deleted by this PR. I swept every relative Markdown link in the repo at both revisions: on main the only broken one is the pre-existing adr/011-content-takedown.md:585 → 013-wire-format.md; at ff612f3 there are two, the new one being the line above.
Worth knowing why the stated validation didn't catch it, since it will bite the next removal too: adr/Makefile sets
SRCS_REF := architecture.md $(NUMERIC_SRCS) $(APPENDIX_SRCS) glossary.md_history/ is outside that set, and none of the three check-refs guards (check-bare-refs, check-md-anchors, check-no-section-numbers) is a file-existence check in the first place. I ran make -C adr check-book-list check-refs at this head and it passes — book list in sync (26 ADRs + 11 appendices) — so the green result is real but doesn't cover this.
2. Archive to adr/_history/ instead of deleting outright
The repo's convention for retired records is archival, not deletion — 032, 033, 034, and 035 all live in adr/_history/, and ADR 010's rationale was folded into alternatives-pre-launch.md. CLAUDE.md's own history entries phrase it as "archived in adr/_history/…". _history/ is in neither built PDF and outside SRCS_REF, so archiving costs nothing in the rendered spec.
Moving the file to adr/_history/appendix-encrypted-content-publishing.md and repointing the Source link to the sibling path resolves point 1 as a side effect.
The alternative is to drop the ## Encrypted Content Publishing (appendix) section from _history as well — it records four alternatives rejected in favor of a design no longer in the record. Either choice is defensible; what doesn't work is the current state, where the section survives pointing at nothing.
3. CLAUDE.md — 006 missing from the do-not-reuse list
The history bullet is updated, but line 14 still reads:
- **Do not reuse numbers:** 004, 010, 027, 029, 032, 033, 034, 035 (retired or reclassified — see history below).
The closest precedent is 010, dropped with its rationale archived, and it's on the list. 006 is now dropped outright and should join it.
4. adr/002-content-addressing.md:16 — "epoch keys" is now an undefined term
Publishers may encrypt content before upload, including with epoch keys.
After this PR that's the only occurrence of "epoch key" in the ADR set outside _history, and the document that defined it is the one being deleted. The collision matters: adr/glossary.md:42 defines Epoch as "the 1-week trailing-window unit" behind FeeRouter.bytesPerEpoch, so a reader hitting "epoch keys" in ADR 002 will bind it to the governance/accounting epoch.
Dropping the clause costs nothing — the paragraph's actual claims (encryption-agnostic delivery, key distribution out of scope) stand on their own:
Publishers may encrypt content before upload. The protocol content-addresses and delivers only the resulting ciphertext, like any other blob. Key distribution is an application concern outside the protocol.
Verified clean
cdn/keys/v1was never in a canonical registry. It appears in neither the ALPN table nor the gossip-topic table inadr/005-protocol.md— it was appendix-only prose. The PR body's "reserves no replacement ALPN" checks out, and zero occurrences remain repo-wide.- No orphaned references to
KeysMessage,EpochKeyAuth, orOfflineLease*anywhere. - P-19/P-20 have no referents outside
017-privacy.md, and the roadmap renumber (4/5/6 → 4/5) has no external "priority N" cross-refs. - ADR 012's client key set (Ed25519 + secp256k1) never depended on the appendix — the X25519-elimination note was appendix-internal.
- The new README anchor
002-content-addressing.md#adr-002-content-addressingresolves against the H1. - The ADR 013 rewrite reads better than what it replaced: "instead of ad-hoc discriminator bytes" makes the point without needing the example.
- CI green —
markdownlint,ADR book check,PR titleall pass; code jobs correctly skipped.
The build caveat in the description is fine to leave as-is; neither failure is attributable to this diff, and no PDF is committed.
Separately and out of scope: nothing in this repo verifies that a relative Markdown link resolves, which is how the pre-existing 011-content-takedown.md:585 breakage has survived. Worth a follow-up guard given how often ADR files get retired.
Generated by Claude Code
Follow-up to the appendix removal, addressing review findings. Deleting the appendix outright left `adr/_history/alternatives-pre-launch.md` citing it as `Source:` with a dead relative link — the repo's only broken Markdown link outside the pre-existing `011-content-takedown.md` one. The `check-refs` guards did not catch it: `SRCS_REF` covers `architecture.md`, the numeric ADRs, the appendices, and `glossary.md`, so `_history/` is out of scope, and none of the three guards is a file-existence check. Archive the appendix to `adr/_history/` instead, matching how retired ADRs 032-035 were handled. `_history/` is in neither built PDF and outside both `BOOK_SRCS` and `SRCS_REF`, so the rendered spec is unchanged — the book list still reports 26 ADRs + 11 appendices. The archived copy carries the standard retirement blockquote and has its intra-repo links repathed for the subdirectory; the `Source:` link now resolves to its sibling. Also: - add 006 to the do-not-reuse list in CLAUDE.md, alongside 010, the other dropped-outright ADR, and record where the appendix went - drop "including with epoch keys" from the retained ADR 002 paragraph. It was the only surviving use of the term once the appendix that defined it went away, and `glossary.md` already binds "Epoch" to the 1-week `FeeRouter.bytesPerEpoch` window — a different concept Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XNf8zwfRoY4QsbdWdAV3XT
3b9de62 to
b31f24b
Compare
Summary
cdn/keys/v1protocol surfaceadr/_history/rather than deleting it, matching how retired ADRs 032-035 were handledWhy
Encrypted publishing and key distribution are application concerns. The CDN protocol already content-addresses and delivers ciphertext like any other blob, so the detailed subscription-DRM design does not belong in the protocol ADR set.
Archiving rather than deleting keeps the design rationale reachable and costs nothing in the rendered spec:
adr/_history/is in neither built PDF and outside bothBOOK_SRCSandSRCS_REF, so the book list still reports 26 ADRs + 11 appendices. It also keeps theSource:reference inadr/_history/alternatives-pre-launch.md— which records four alternatives rejected in favor of this design — pointing at something that exists.Impact
Documentation-only. It changes no Rust or Solidity implementation and reserves no replacement ALPN.
cdn/keys/v1never appeared in the canonical ALPN table in ADR 005, so no registry entry is retired.The archived copy carries the standard retirement blockquote and has its intra-repo links repathed for the subdirectory; the appendix body is otherwise unchanged, so the diff reads as a rename.
Validation
adr/011-content-takedown.md:585 -> 013-wire-format.md, unchanged frommainand out of scope heremake -C adr check-book-list check-refs— book list in sync (26 ADRs + 11 appendices), all cross-links anchoredmarkdownlint-cli2 --config .markdownlint.yamlon every changed Markdown source, matching the CI job's configgit diff --checkBuild caveat
The canonical ADR PDF build was attempted after installing the documented
mermaid-filterdependency, but its bundled Chromium timed out before exposing a WebSocket endpoint. The documentedMERMAID=0fallback also stops in the existing_build/book-density.typheader because Typst 0.14.2 reportshorizontalRuleas undefined. Neither failure is caused by this documentation diff, and no generated PDF was produced or committed.Closes #1430
Summary by CodeRabbit