Skip to content

docs(adr-009): reject permanent governance veto; split emergency-multisig sunset by capability - #977

Merged
alpergundogdu merged 3 commits into
mainfrom
claude/zen-wilson-2684a7
Jun 24, 2026
Merged

alpergundogdu merged 3 commits into
mainfrom
claude/zen-wilson-2684a7

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

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

  • A permanent on-chain veto over governance re-introduces a central controller, which weakens the work-token regulatory posture: the Howey "efforts of others" prong and the Hinman "sufficient decentralization" argument both depend on no party holding ongoing managerial control. The entity design (internal/Legal/entity-structure-design.md) already rejected the permissioned-control path.
  • Legal viability of the handoff does not require an on-chain controller. It rests on the off-chain Verein legal wrapper, whose board executes on-chain operator votes except where doing so would violate law — a legal-compliance veto at the execution layer, scoped to illegality.
  • The real gap was the 12-month sunset on the emergency multisig's content-compliance powers: CSAM / court-ordered / sanctions removals are permanent, time-critical legal duties that the ~10-day governance cycle cannot meet, yet the power expired at month 12.

Changes (ADR 009 only)

  • New subsection "Governance permanence: no standing veto" — records the irreversible-handoff rationale, explicitly rejects a permanent governance veto, and locates the legal-compliance veto off-chain in the Verein board.
  • Capability-split sunset in the Emergency Multisig section: the protocol-wide exploit-response pause keeps its hard 365-day sunset; the narrow unlawful-content-removal power (emergencyAdd/emergencyAddOrigin + suspendRegionalBody) no longer sunsets, because it discharges a permanent, time-critical legal duty and touches no economic/treasury/governance lever.
  • Consequences updated (positive: no-standing-veto + capability-split; negative: the residual-centralization counsel question on the permanent compliance capability).

Scope / follow-up

Related

🤖 Generated with Claude Code

…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]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread adr/009-governance.md
- 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

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
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread adr/009-governance.md Outdated

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)).
Comment thread adr/009-governance.md
Comment on lines +77 to +79
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).
Comment thread adr/009-governance.md
- 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.
Comment thread adr/009-governance.md
- 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]>
@alpergundogdu

Copy link
Copy Markdown
Contributor Author

Addressed in 47556c2:

  • ADR 011 cross-ADR contradiction (gemini + Copilot): fixed. The emergency blacklist path no longer carries a 12-month sunset — updated both the interface comment (adr/011-content-takedown.md:47) and the compliance-window prose (:320) to state the content-removal lane is permanent under the capability-split, with only the protocol-wide pause sunsetting. ADR 009 remains the source of truth per ADR 009 vs ADR 011: Emergency multisig scope contradiction #56.
  • #negative anchor (Copilot): changed the link to #consequences so text and target match.
  • pauseDeadline/PauseExpired not yet in contracts (Copilot): added a 'Contract-layer status' note marking these as the required behavior with contract enforcement as a tracked follow-up (ADR 009: is the irreversible multisig→DAO handoff legally viable, or do we need a permanent (narrow) compliance capability? #976). The names predate this PR (existing ADR 009 spec; approach settled in ADR 009: Pause function sunset clause has no implementation mechanism #78), so I kept them as the prescriptive spec rather than removing them.
  • internal/Legal/entity-structure-design.md path (Copilot): kept as-is. It's a deliberate cross-repo plain-text pointer (not a markdown link), matching the existing convention already in ADR 009 (the pre-existing line in the Bootstrap section references the same doc the same way). The repos are siblings in one workspace; this is intentional, not a dead link.

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]>
@alpergundogdu

Copy link
Copy Markdown
Contributor Author

Code review

Found 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:

  • EMERGENCY_ROLE role table — the (12-month sunset) tag covered emergencyAdd()/emergencyAddOrigin()/suspendRegionalBody(), which are now permanent.
  • "All emergency functions revert after deployTimestamp + 365 days" — flatly false under the split; only pause() sunsets.
  • Launch/steady-state lifecycle table — "Active until sunset, then disabled" no longer holds for the permanent unlawful-content-removal capability.

- **Cannot** withdraw treasury funds, modify fee parameters, or grant roles
- **12-month sunset:** All emergency functions revert after `block.timestamp > deployTimestamp + 365 days` ([ADR 009](009-governance.md#emergency-multisig))
- Emergency blacklist entries expire after 14 days unless ratified by governance

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

@alpergundogdu
alpergundogdu merged commit 220ef5b into main Jun 24, 2026
20 checks passed
@alpergundogdu
alpergundogdu deleted the claude/zen-wilson-2684a7 branch June 24, 2026 13:26
alpergundogdu added a commit that referenced this pull request Jul 8, 2026
…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]>
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.

2 participants