Repository navigation
docs(adr): scope ADR set to protocol + tokenomics; reclaim 028-032 - #354
Merged
Merged
Conversation
Two changes folded together (closes #353; relocates 030/031/032): **1. Move 030/031/032 to internal/ideas (companion commit in decdn/internal: ideas/preseed-usdc-deployment.md, bme-client-prepay.md, bandwidth-futures-enterprise-sla.md)** The deCDN ADR set is for protocol and tokenomics decisions. Three ADRs were operational programs or future-product proposals — not tokenomics- or protocol-essential. They've been moved to the internal repo as design ideas: - ADR 030 (Pre-Seed USDC Deployment Program) — operational fundraising / disbursement program. The protocol commits to externally-raised USDC pre-seed with a $1M floor; the specific five-program structure, eligibility, and governance flow are operational concerns and live in internal/ideas. - ADR 031 (BME Client Prepay) — future demand-side TOKEN sink. Optional client path that doesn't ship at launch. - ADR 032 (Bandwidth Futures and Enterprise SLA Tier) — future product surface. Doesn't ship at launch. The deCDN protocol works without these. The contract surface is forward-compatible (additive integration via standard AccessControl role grants) so they can deploy as additive top-level contracts later without changing existing contracts. **2. Lock in additive contract surfaces (#353)** Three properties made explicit so they don't drift: - ADR 026 §1: TOKEN is `ERC20Burnable`; any contract may burn TOKEN it holds. Future contract surfaces that need a TOKEN sink integrate via the standard interface. - ADR 026 §5: `SafetyReserve.payout(bundleHash, recipient, amount)` is contract-stable; future incident-response contracts integrate via this entry point with arbitrary evidence-bundle hashes. - ADR 016 §5: New top-level contracts integrate via standard `AccessControl` role grants — governance can grant new roles via the standard 7-day vote + 48-hour timelock path, without changing, migrating, or redeploying existing contracts. Launch-time function signatures and events are stable for cross-contract integration. **Reference cleanup:** - ADR 008 §13 regional-coverage signal: dropped the "Forward reference: ADR 030" framing; consumer is now generic ("downstream operational programs"). - ADR 019: dropped the "Pre-seed USDC Bootstrap Programs" subsection (operational — lives in internal/ideas). - ADR 026 §1 / §10 / Forward references: removed all 030/031/032 forward-refs and program-structure mentions; bootstrap mechanism framing is self-contained. - ADR 026 §5 payout categories: dropped the "Enterprise SLA compensation (per ADR 030 / 032)" item; replaced with a generic "future incident-response contracts that integrate via the stable `payout` interface". - ADR 026 Risks bullet: dropped "Enterprise SLA credibility"; replaced with "future incident-response contracts". - ADR 027 cold-start exception: simplified the bootstrap-window rationale to "externally-funded operator-recruitment programs"; dropped 030 program-name references. - adr/README.md USDC glossary: dropped 030 cross-ref. - architecture.md Reading Order: chapter 4 intro now lists only launch-required (026, 027, 018) + deferred (028, 029) and notes the additive-contract-surface forward-compatibility. - architecture.md per-ADR index: removed 030/031/032 entries. **CLAUDE.md:** Next ADR number rolled back to 030. The 030/031/032 slots are reclaimed since those proposals never landed in the canonical ADR set. Net: −919 / +18 LOC across 8 files (3 deletions plus 5 reference cleanups). The protocol ADR set is now scoped to protocol and tokenomics, with operational programs and future-product proposals in their proper place.
There was a problem hiding this comment.
Code Review
This pull request removes ADRs 030, 031, and 032, reclassifying their contents as operational concerns or deferred post-launch features rather than core protocol decisions. Key architectural updates include the formalization of an additive contract surface and interface stability for the SafetyReserve and TOKEN contracts, ensuring forward compatibility via role-based access control. Additionally, the TOKEN is explicitly defined as ERC20Burnable. Feedback was provided to refine the architectural overview in adr/architecture.md to better reflect these changes and maintain consistency with the contract interaction model.
Follow-up sweep after the 030/031/032 relocation. Three more spots named specific programs that are now operational and live in internal/ideas: - ADR 008 §13 regional-coverage signal: dropped "Brazil, Southeast Asia, per the pre-seed regional-deployment priorities". The signal is intentionally agnostic about which regions are priorities; the consuming programs decide. - ADR 026 §7 (1 Gbps node P&L): "Externally-funded pre-seed staking- loan and hardware-lease programs" → "Externally-funded operator- onboarding programs" (drops named program list). - ADR 026 Negative Consequences: same rewording. - ADR 027 Bootstrap-window risks: "pre-seed dominance in early traffic" → "externally-funded operator dominance in early traffic". - ADR 019 Phase-2 stake paragraph: dropped the broken `[Pre-seed USDC Bootstrap Programs]` self-anchor (deleted earlier in this PR); replaced with a one-line cross-ref to ADR 026 §10. Remaining "pre-seed" mentions in the ADR set are all generic protocol-level commitments to the bootstrap mechanism (USDC, externally raised, $1M floor) without naming any specific disbursement program. ADR 026 §10 owns that commitment as before.
…Router) Same lens as the prior commit applied to two more ADRs that fit the "non-essential, deferrable, additive surface" shape. Companion commit in decdn/internal: ideas/sve-token-wrapper.md, adaptive-fee-router.md. - ADR 028 (sveTOKEN Wrapper) — defensive product the DAO might ship to pre-empt third-party Convex-style wrapper capture. Protocol and tokenomics work without it. The wrapper integrates with `VotingEscrow` via standard lock-creation / increase-amount / snapshot interfaces — additive top-level contract. - ADR 029 (Adaptive FeeRouter) — automation layer on top of governance. Protocol works without it (governance just rebalances manually). The controller calls FeeRouter parameter setters within ADR 026 §11 bounds — additive top-level controller. Both were already chapter-4 "deferred" entries. Moving them out collapses chapter 4 to its three load-bearing ADRs (026, 027, 018). **New protocol-level lock-ins** to support these as additive deployments (in line with #353): - ADR 026 §4 (VotingEscrow): "Locks may be held by any address — EOA or contract. Lock creation, amount increase, and time extension interfaces are stable for cross-contract integration. A future contract holding a pooled lock on behalf of multiple beneficiaries integrates as an additive top-level contract via these interfaces without changing `VotingEscrow`." - ADR 026 §11 (Governable parameters): "Setter contract-level bound enforcement. Parameter setters are role-gated via `AccessControl` and bound-checked at the contract level — bounds are enforced regardless of caller. A future automated controller granted the parameter-setter role operates within the same bounds; out-of- range writes revert." Together with the lock-ins from the prior commit (TOKEN burnable in §1, SafetyReserve.payout interface stability in §5, AccessControl extensibility in ADR 016 §5), the launch contract surface is explicitly forward-compatible with the relocated proposals. **Reference cleanup:** - ADR 026 Risks: Convex-capture mitigation reframed from "forward- referenced as ADR 028" to "DAO may ship a native liquid-ve wrapper as an additive top-level contract". - ADR 026 Forward references: now lists only ADR 027 (the actual launch prerequisite); 028 and 029 dropped. - ADR 016 §1 Deferred contracts: dropped the SveToken row. - adr/README.md glossary: dropped the sveTOKEN entry. - architecture.md Reading Order chapter 4: collapsed to 026, 027, 018; "deferred" framing removed since nothing is deferred anymore. - architecture.md per-ADR index: removed 028 and 029 entries. - Appendix observability: dropped the ADR 029 cross-reference; the metric documentation now describes any-consumer integration. **CLAUDE.md:** Next ADR number rolled back to 028. The 028/029/030/031/032 slots are reclaimed since those proposals never landed in the canonical ADR set. Net effect of this PR: the deCDN ADR set is scoped to protocol + tokenomics decisions only. Operational programs and future-product proposals live in the internal repo.
3 tasks
Merged
4 tasks done
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.
Closes #353. Companion commits on decdn/internal main:
338dd27(030/031/032),3791ab8(028/029).What
The deCDN ADR set is for protocol and tokenomics decisions. Five ADRs were operational programs, future-product proposals, or automation layers — none of them tokenomics- or protocol-essential. The protocol works without all five. They've been moved to the internal repo as design ideas, and the contract surface is now explicitly forward-compatible so they can deploy as additive top-level contracts later without changing existing contracts.
Moved out
The protocol commits to externally-raised USDC pre-seed with a $1M floor for bootstrap; the specific program structure (allocation across operator-recruitment programs, eligibility, governance flow) is operational and lives in internal.
Locked in (closes #353)
Five protocol-level invariants made explicit so the launch contract surface stays forward-compatible with the additive deployments:
ERC20Burnable; any contract may burn TOKEN it holds via the standard interface.VotingEscrowlocks may be held by any address (EOA or contract); creation, increase-amount, and snapshot interfaces are stable for cross-contract integration. A future pooled-lock wrapper plugs in via these interfaces.SafetyReserve.payout(bundleHash, recipient, amount)is contract-stable; future incident-response contracts integrate via this entry point with arbitrary evidence-bundle hashes.AccessControland bound-checked at the contract level. Out-of-range writes revert regardless of caller; a future automated controller granted the setter role operates within the same bounds.AccessControlrole grants. Governance can grant roles via the standard 7-day vote + 48-hour timelock path, without changing, migrating, or redeploying existing contracts. Launch-time function signatures and events are stable for cross-contract integration.The framing is generic — it doesn't name any specific future use case — so the surface stays neutral about what eventually lands on top.
Reference cleanup
payoutinterfaceadr/README.mdarchitecture.mdReading Orderarchitecture.mdper-ADR indexCLAUDE.md
Next ADR number rolled back to 028. The 028/029/030/031/032 slots are reclaimed since those proposals never landed in the canonical ADR set.
Net
11 files changed, −1373 / +35 LOC. The deCDN ADR set is now scoped purely to protocol + tokenomics decisions; all operational programs, future-product proposals, and automation layers live in internal/ideas.
🤖 Generated with Claude Code