Skip to content

docs(adr): drop encrypted publishing appendix - #1454

Merged
thiras merged 2 commits into
mainfrom
codex/1430-drop-encrypted-publishing-appendix
Jul 26, 2026
Merged

thiras merged 2 commits into
mainfrom
codex/1430-drop-encrypted-publishing-appendix

Conversation

@altanoruc

@altanoruc altanoruc commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • retire the encrypted-content-publishing appendix and release its prose-only cdn/keys/v1 protocol surface
  • archive the appendix to adr/_history/ rather than deleting it, matching how retired ADRs 032-035 were handled
  • keep the encryption-agnostic guarantee as one short paragraph in ADR 002
  • remove the appendix from the ADR reading order and supporting docs
  • strike application-level P-19/P-20 risks and their roadmap entries from ADR 017

Why

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 both BOOK_SRCS and SRCS_REF, so the book list still reports 26 ADRs + 11 appendices. It also keeps the Source: reference in adr/_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/v1 never 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

  • repo-wide relative-link sweep: the only broken Markdown link is the pre-existing adr/011-content-takedown.md:585 -> 013-wire-format.md, unchanged from main and out of scope here
  • make -C adr check-book-list check-refs — book list in sync (26 ADRs + 11 appendices), all cross-links anchored
  • markdownlint-cli2 --config .markdownlint.yaml on every changed Markdown source, matching the CI job's config
  • git diff --check

Build caveat

The canonical ADR PDF build was attempted after installing the documented mermaid-filter dependency, but its bundled Chromium timed out before exposing a WebSocket endpoint. The documented MERMAID=0 fallback also stops in the existing _build/book-density.typ header because Typst 0.14.2 reports horizontalRule as undefined. Neither failure is caused by this documentation diff, and no generated PDF was produced or committed.

Closes #1430

Summary by CodeRabbit

  • Documentation
    • Clarified that publishers may encrypt content before upload, while content addressing and delivery remain encryption-agnostic.
    • Retired the Encrypted Content Publishing appendix and removed it from current protocol and appendix references.
    • Updated privacy documentation to remove related privacy surfaces and mitigation items.
    • Refreshed ADR history, reading order, appendix listings, and cross-references for consistency.
    • Clarified that key distribution and application-level privacy remain outside the core protocol.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Free

Run ID: 3464c876-a2d7-4c2f-98b2-ccb60d0ec654

📥 Commits

Reviewing files that changed from the base of the PR and between b2b5c48 and b31f24b.

📒 Files selected for processing (12)
  • CLAUDE.md
  • README.md
  • adr/002-content-addressing.md
  • adr/013-schema-evolution.md
  • adr/017-privacy.md
  • adr/Makefile
  • adr/README.md
  • adr/_build/part-9-appendices.md
  • adr/_history/alternatives-pre-launch.md
  • adr/_history/appendix-encrypted-content-publishing.md
  • adr/appendix-fraud-detection.md
  • adr/architecture.md

Walkthrough

Encrypted 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.

Changes

Encrypted publishing scope

Layer / File(s) Summary
Protocol scope clarification
README.md, adr/002-content-addressing.md, adr/013-schema-evolution.md
Documentation describes publisher-side encryption and ciphertext delivery while removing obsolete encrypted-publishing appendix references.
Privacy and historical record updates
adr/017-privacy.md, CLAUDE.md, adr/_history/*
Privacy surfaces and mitigations tied to the retired appendix are removed, and ADR 006 plus the appendix are recorded as retired or archived.
Appendix catalog cleanup
adr/Makefile, adr/README.md, adr/_build/part-9-appendices.md, adr/appendix-fraud-detection.md, adr/architecture.md
Current appendix listings, reading order, descriptions, and cross-references omit the retired appendix and renumber remaining entries.

Estimated code review effort: 2 (Simple) | ~10 minutes


Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands.

@altanoruc altanoruc left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/v1 was never in a canonical registry. It appears in neither the ALPN table nor the gossip-topic table in adr/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, or OfflineLease* 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-addressing resolves 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 title all 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

@altanoruc
altanoruc marked this pull request as ready for review July 24, 2026 19:19
altanoruc and others added 2 commits July 26, 2026 14:30
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
@thiras
thiras force-pushed the codex/1430-drop-encrypted-publishing-appendix branch from 3b9de62 to b31f24b Compare July 26, 2026 11:30
@thiras
thiras merged commit f395161 into main Jul 26, 2026
24 checks passed
@thiras
thiras deleted the codex/1430-drop-encrypted-publishing-appendix branch July 26, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce the encrypted-content-publishing appendix to a one-paragraph note

3 participants