Repository navigation
Description
Why
Tier 2 of the ADR book-readiness program. Builds on #344 (Tier 1 — preamble + reading order) by smoothing the prose so ADRs flow as chapters of a coherent spec rather than as 26 self-contained documents.
Should land after #344. Tier 1 establishes the reading order; Tier 2 makes that reading order actually flow.
Scope
1. Smooth narrative connectives between adjacent ADRs
ADR Context sections currently restate a lot of project-wide background ("the deCDN is a decentralized CDN where..."). When read sequentially, this repetition is friction. Rewrite Context openers to pick up from the previous chapter in the reading-order flow established by #344.
Example transformation:
- Before (ADR 003 Context): "Clients pay nodes per MB. The protocol uses USDC for payments... [400 words of background]"
- After: "ADR 005 defines the wire-level paid delivery protocol; this ADR specifies the on-chain payment infrastructure those byte-level payments settle against."
Rule of thumb: assume the reader has read everything earlier in the chapter ordering. Only restate what a chapter genuinely re-frames.
2. Lift cross-cutting concepts to canonical homes
Several concepts are restated in 3+ ADRs because each ADR was written self-contained. Pick one canonical home per concept and have other ADRs cross-ref:
| Concept | Canonical home | Currently restated in |
|---|---|---|
| Epoch mechanics (1-week, ve-snapshot, gauge claim window) | ADR 026 §2 | 027, 029, 020 |
| FeeRouter contract surface (6 buckets, sum-to-100, settlement-time call) | ADR 026 §2 + ADR 016 | 003, 018, 020, 023 |
| Reentrancy + checks-effects-interactions pattern | ADR 016 §Reentrancy | 003, 026, 030 |
| Challenge bond mechanics (transfer, forfeit, 50/50 split) | ADR 014 §Bond Handling | 002, 005, 011 (cross-ref now established in #343) |
| Slashing schedule (5/15/50 escalation, lifetime counter, 50/30/20 distribution) | ADR 026 §8 | 011, 014, 010 (cross-ref now established in #343) |
Audit during execution; this list is illustrative.
3. Standardize ADR section structure
Audit and unify the section conventions. Today some ADRs have ## Decision, some go straight to numbered sections, some have ## Consequences while others have separate ## Positive / ## Negative / ## Risks. Pick one shape and apply across the set.
Suggested canonical structure:
# ADR NNN: Title
## Context
## Decision (with numbered subsections)
## Consequences
### Positive
### Negative
### Risks
## Alternatives Considered ← migrated out in Tier 3 (#346)
Acceptance
- Reading the ADRs in the Tier 1 reading order, no Context section restates more than 2 sentences of project-wide background.
- Each cross-cutting concept in the inventory has a single canonical home; other ADRs link to it.
- All ADRs follow the same top-level section structure.
- No content is lost — restated material is replaced with cross-refs, not deleted outright.
Out of scope
- Stripping
Status/Date/Alternatives Considered(Tier 3 — ADR book-readiness Tier 3: strip decision-record scaffolding, move to adr/_history/ #346). - Adding new design content.
- Adding new ADRs.
Risk
This is the highest-content-touch tier. Each ADR's Context will be edited; mis-applied edits could introduce factual drift. Recommend doing one chapter at a time and checking each chapter for cross-ref integrity before moving to the next.
Estimate
1-2 days, depending on how aggressive the rewrites are.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
docs(adr): add README preamble + thematic reading order (Tier 1) (#347)
docs(adr): demote 5 implementation/deployment ADRs to appendices (#349)