Repository navigation
docs(adr-009): reject permanent governance veto; split emergency-multisig sunset by capability - #977
Conversation
…isig sunset by capability Records the legal-viability rationale for the irreversible multisig->DAO handoff and resolves whether a permanent veto multisig is needed. - Reject a permanent on-chain veto over governance: it re-introduces a central controller and weakens the work-token Howey prong-4 / sufficient-decentralization posture. Legal viability rests on the off-chain Verein legal wrapper, whose board executes on-chain votes except where doing so would violate law (legal-compliance veto at the execution layer, scoped to illegality). - Split the emergency-multisig sunset by capability: the protocol-wide exploit-response pause keeps its hard 365-day sunset; the narrow unlawful-content-removal power (emergencyAdd/emergencyAddOrigin + suspendRegionalBody) does NOT sunset, since it discharges a permanent, time-critical legal duty the ~10-day governance cycle cannot meet. - Note the residual-centralization counsel question on the permanent compliance capability. Contract implementation (decoupling the shared pauseDeadline) is a follow-up tracked in the issue. Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the governance architecture document (adr/009-governance.md) to establish that the governance handoff is irreversible with no standing veto, and introduces a capability-split sunset model. Under this model, the protocol-wide pause capability expires after 365 days, while the narrow unlawful-content-removal power remains permanent to fulfill ongoing legal compliance duties. The review feedback correctly points out that this change introduces inconsistencies with adr/011-content-takedown.md, which still references the 12-month sunset for emergency blacklisting, and needs to be updated accordingly.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| - Sunset: `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value. After the deadline, `pause()` reverts with `"PauseExpired"`. Emergency blacklisting capability follows the same sunset schedule. **Extension mechanism:** governance cannot modify the immutable deadline. To extend pause/blacklist capability, governance must deploy a new contract version with a new deadline and migrate via the standard contract upgrade path (timelock + governance vote). This ensures the sunset cannot be silently extended. | ||
| - Sunset (capability-split): the emergency authority sunsets **by capability**, because some emergency powers discharge time-bound launch risk while others discharge permanent legal duties. The two are decoupled at the contract layer rather than sharing one deadline. | ||
| - **Exploit-response pause sunsets hard.** `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value; after the deadline `pause()` reverts with `"PauseExpired"`. The pause is a protocol-wide brake — the most centralization-sensitive emergency power — so it is the capability that expires. Post-sunset exploit response routes through governance, or through deploying a new contract version with a fresh deadline via the standard timelock + governance upgrade path. Governance cannot modify the immutable deadline, so the sunset cannot be silently extended. | ||
| - **Unlawful-content removal does not sunset.** Emergency blacklisting (`emergencyAdd`, `emergencyAddOrigin`) and the regional-body suspension that backs it (`suspendRegionalBody`) discharge a permanent legal duty — removal of CSAM, court-ordered, sanctions-driven, and other unlawful content — that has no expiry and is time-critical: a removal order can carry a one-hour clock that the ~10-day governance cycle cannot meet. This authority is deliberately narrow — it can block specific unlawful hashes and origins and nothing else, with no parameter, treasury, fund-movement, or governance-veto power — so a permanent grant does not re-centralize protocol control. It remains subject to the blacklist-entry appeal process (see [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals) and [ADR 031](031-content-blacklist-appeals-contract.md#adr-031-contentblacklist-appeal-contract-surface)). The legal entity that holds this authority and its appeal-override duties are specified in `internal/Legal/entity-structure-design.md` § Pattern A. |
There was a problem hiding this comment.
This change decouples the unlawful-content removal power from the 12-month sunset. However, this introduces an inconsistency with adr/011-content-takedown.md, which still contains references to the 12-month sunset for the emergency blacklisting path (specifically at lines 48-49 and line 320). Please ensure those references in adr/011-content-takedown.md are updated to reflect this new capability-split sunset model.
References
- When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
There was a problem hiding this comment.
Pull request overview
Updates ADR 009 (Governance Model) to explicitly record that the bootstrap → DAO handoff is irreversible with no standing on-chain veto, while splitting the emergency-multisig “sunset” by capability (pause still sunsets; unlawful-content removal does not).
Changes:
- Add a new “Governance permanence: no standing veto” subsection explaining the rationale for rejecting a permanent governance veto.
- Revise the Emergency Multisig section to describe a capability-split sunset (hard sunset for exploit pause; no sunset for narrow unlawful-content removal).
- Update Consequences to reflect the no-standing-veto posture and the capability-split sunset tradeoffs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| Legal viability of the handoff rests on the off-chain legal wrapper, not on an on-chain controller. The governance constituency (bonded operators) votes on-chain; a legal entity (the deCDN Verein) executes those votes and carries the statutory duties. Its board is bound to implement any passing on-chain proposal **except where doing so would violate applicable law** — a narrow legal-compliance veto that lives at the execution layer, scoped to illegality, not a discretionary override of governance. Entity structure, board obligations, and the law-compliance carve-out are canonical in `internal/Legal/entity-structure-design.md` § Pattern A (Legal Fiction Separation). | ||
|
|
||
| The one capability retained on-chain in perpetuity is the **narrow unlawful-content-removal** power (see [Emergency Multisig](#emergency-multisig)): it discharges a permanent, time-critical legal duty, is scoped to blocking specific unlawful content, and touches no economic, treasury, or governance lever — so it is distinguishable from the managerial control the decentralization posture forbids. Final calibration of this compliance boundary is subject to the counsel review required before deployment (see [Consequences](#negative)). |
| A permanent veto would re-introduce a central controller, which weakens the work-token regulatory posture rather than protecting it. The *Howey* "efforts of others" prong and the "sufficient decentralization" argument for secondary trading both depend on no party holding ongoing managerial control over the protocol (per [ADR 026 § Governance](026-tokenomics.md#governance) and the entity design in `internal/Legal/entity-structure-design.md` § Pattern A). A standing veto is precisely the control that posture is built to avoid, so it cannot be the mechanism that makes the handoff legally workable. | ||
|
|
||
| Legal viability of the handoff rests on the off-chain legal wrapper, not on an on-chain controller. The governance constituency (bonded operators) votes on-chain; a legal entity (the deCDN Verein) executes those votes and carries the statutory duties. Its board is bound to implement any passing on-chain proposal **except where doing so would violate applicable law** — a narrow legal-compliance veto that lives at the execution layer, scoped to illegality, not a discretionary override of governance. Entity structure, board obligations, and the law-compliance carve-out are canonical in `internal/Legal/entity-structure-design.md` § Pattern A (Legal Fiction Separation). |
| - Used for exploit response, critical bug mitigation, and time-critical content removal (e.g., CSAM, actively-exploited material) | ||
| - Sunset: `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value. After the deadline, `pause()` reverts with `"PauseExpired"`. Emergency blacklisting capability follows the same sunset schedule. **Extension mechanism:** governance cannot modify the immutable deadline. To extend pause/blacklist capability, governance must deploy a new contract version with a new deadline and migrate via the standard contract upgrade path (timelock + governance vote). This ensures the sunset cannot be silently extended. | ||
| - Sunset (capability-split): the emergency authority sunsets **by capability**, because some emergency powers discharge time-bound launch risk while others discharge permanent legal duties. The two are decoupled at the contract layer rather than sharing one deadline. | ||
| - **Exploit-response pause sunsets hard.** `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value; after the deadline `pause()` reverts with `"PauseExpired"`. The pause is a protocol-wide brake — the most centralization-sensitive emergency power — so it is the capability that expires. Post-sunset exploit response routes through governance, or through deploying a new contract version with a fresh deadline via the standard timelock + governance upgrade path. Governance cannot modify the immutable deadline, so the sunset cannot be silently extended. |
| - Sunset: `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value. After the deadline, `pause()` reverts with `"PauseExpired"`. Emergency blacklisting capability follows the same sunset schedule. **Extension mechanism:** governance cannot modify the immutable deadline. To extend pause/blacklist capability, governance must deploy a new contract version with a new deadline and migrate via the standard contract upgrade path (timelock + governance vote). This ensures the sunset cannot be silently extended. | ||
| - Sunset (capability-split): the emergency authority sunsets **by capability**, because some emergency powers discharge time-bound launch risk while others discharge permanent legal duties. The two are decoupled at the contract layer rather than sharing one deadline. | ||
| - **Exploit-response pause sunsets hard.** `pauseDeadline = deployTimestamp + 365 days` is hardcoded in the constructor as an immutable value; after the deadline `pause()` reverts with `"PauseExpired"`. The pause is a protocol-wide brake — the most centralization-sensitive emergency power — so it is the capability that expires. Post-sunset exploit response routes through governance, or through deploying a new contract version with a fresh deadline via the standard timelock + governance upgrade path. Governance cannot modify the immutable deadline, so the sunset cannot be silently extended. | ||
| - **Unlawful-content removal does not sunset.** Emergency blacklisting (`emergencyAdd`, `emergencyAddOrigin`) and the regional-body suspension that backs it (`suspendRegionalBody`) discharge a permanent legal duty — removal of CSAM, court-ordered, sanctions-driven, and other unlawful content — that has no expiry and is time-critical: a removal order can carry a one-hour clock that the ~10-day governance cycle cannot meet. This authority is deliberately narrow — it can block specific unlawful hashes and origins and nothing else, with no parameter, treasury, fund-movement, or governance-veto power — so a permanent grant does not re-centralize protocol control. It remains subject to the blacklist-entry appeal process (see [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals) and [ADR 031](031-content-blacklist-appeals-contract.md#adr-031-contentblacklist-appeal-contract-surface)). The legal entity that holds this authority and its appeal-override duties are specified in `internal/Legal/entity-structure-design.md` § Pattern A. |
…R 009 review nits Addresses PR #977 review: - ADR 011: the emergency blacklist path no longer carries a 12-month sunset — unlawful-content removal is permanent under the ADR 009 capability-split (only the protocol-wide pause sunsets). Updates the interface comment and the compliance-window prose (was a cross-ADR contradiction flagged by review). - ADR 009: fix the Consequences anchor (#negative -> #consequences) and note that the deadline-decoupling specifies required contract behavior whose contract-layer enforcement is a follow-up. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Addressed in 47556c2:
|
ADR 016 (canonical contract surface) still encoded the old shared 12-month emergency-multisig sunset in three places, contradicting the capability-split decision recorded in ADR 009 and reflected in ADR 011: the protocol-wide pause() sunsets at 12 months, but the narrow unlawful-content-removal functions (emergencyAdd/emergencyAddOrigin/ suspendRegionalBody) are permanent. - EMERGENCY_ROLE table: split the sunset note by capability - Emergency Multisig (Production): replace "All emergency functions revert after 365 days" with the pause-only sunset + permanent unlawful-content removal - launch/steady-state lifecycle table: pause() sunset, removal permanent Co-Authored-By: Claude Opus 4.8 <[email protected]>
Code reviewFound 1 issue (fixed in aa1edd6): ADR 016 still encoded the old shared 12-month emergency-multisig sunset, contradicting the capability-split decision this PR records in ADR 009 and reflects in ADR 011. ADR 016 is the canonical contract surface, so the stale text mattered. Three spots, now reconciled:
decdn/adr/016-contract-interactions.md Lines 614 to 616 in 47556c2 Verified via grep that no other ADR (architecture.md, glossary, 028, 031) carried a stale emergency-sunset reference. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
…976) (#1027) * feat(contracts): enforce ADR-009 pause sunset via SunsettingPausable (#976) ADR 009 § Emergency Multisig specifies that the protocol-wide pause — the most centralization-sensitive emergency power — sunsets hard at a deploy-time deadline, while the narrow unlawful-content-removal powers stay permanent. The decision was recorded in #977; this enforces it at the contract layer (the remaining contract piece tracked by #976). Add a shared `SunsettingPausable` base (extends OZ `Pausable`) that fixes `pauseDeadline = block.timestamp + 365 days` as an immutable at each contract's own construction and reverts `PauseExpired` from `pause()` once the deadline passes — for every caller, governance included (no role carve-out; progressive immutability). Post-sunset recourse is a governed redeploy with a fresh deadline. Wire all six pausable contracts (BuybackBurner, CapacityBond, FeeRouter, PaymentChannel, SlashAppeal, SlashJudge) to inherit it and guard their `pause()`. The permanent blacklist powers need no change: they live on the non-pausable `ContentBlacklist`, so the two paths already hold independent lifetimes by construction rather than by splitting a shared deadline. Update ADR 009's contract-layer note from "follow-up" to present-tense enforcement, and make the role-agnostic sunset explicit (no governance carve-out). The perpetual-narrow-compliance-vs-managerial-control boundary remains a pre-deployment counsel gate, filed in internal/Legal. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(contracts): address PR review on pause-sunset - Remove unused `Pausable` import from SunsettingPausable.t.sol (Copilot: the harness inherits SunsettingPausable, which already pulls in Pausable; the bare import is dead under `--deny warnings`). - ADR 009: `pause()` reverts with the custom error `PauseExpired`, not a string `"PauseExpired"` (Copilot), and `pauseDeadline` is anchored at each contract's own construction time, not a single shared deploy timestamp (Gemini). Co-Authored-By: Claude Opus 4.8 <[email protected]> * chore(contracts): regenerate gas snapshot for pause-sunset changes The solidity build+test job compares deterministic gas entries against the committed .gas-snapshot baseline; the SunsettingPausable rollout changed constructor and pause-path gas across the pausable contracts, so the baseline is regenerated under FOUNDRY_PROFILE=ci on top of the merged main history. Co-Authored-By: Claude Fable 5 <[email protected]> * docs(adr): align pause-sunset wording with per-contract SunsettingPausable model Addresses review feedback on #1027: - ADR 016 §Emergency Multisig: drop the stale shared-`deployTimestamp` framing; the sunset is anchored per-contract at construction via the shared `SunsettingPausable` base, matching the shipped code and ADR 009. - ADR 009 §Contract-layer enforcement: scope "every pausable contract" to "every pausable protocol contract" — the testnet-only `TestnetFaucet` keeps a permanent (non-sunsetting) pause and is outside the emergency-multisig surface. - Tests: retire the `deployTimestamp + 365 days` phrasing in the six per-contract sunset-test comments and the "ADR 009 Option A" label in `SunsettingPausable.t.sol` (no such option label exists in the ADR). Comment/markdown only; no logic change. `forge fmt --check` and `FOUNDRY_PROFILE=ci forge build --deny warnings` pass. Skipped the local cargo-deny hook: it flags a pre-existing Rust-dependency advisory (RUSTSEC-2026-0204) unrelated to this doc-only diff. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
What
Amends ADR 009 to resolve a governance question raised in #976: is the irreversible multisig → DAO handoff legally viable, or do we need a permanent multisig with veto rights?
The answer recorded here: no permanent broad veto — it would hurt the legal posture, not protect it — but one narrow on-chain compliance capability is retained in perpetuity.
Why
internal/Legal/entity-structure-design.md) already rejected the permissioned-control path.Changes (ADR 009 only)
emergencyAdd/emergencyAddOrigin+suspendRegionalBody) no longer sunsets, because it discharges a permanent, time-critical legal duty and touches no economic/treasury/governance lever.Scope / follow-up
pauseDeadlineso the blacklist guard and the pause guard carry independent lifetimes — is a follow-up, tracked in ADR 009: is the irreversible multisig→DAO handoff legally viable, or do we need a permanent (narrow) compliance capability? #976.Related
🤖 Generated with Claude Code