Repository navigation
docs(adr): unify contract surface; drop PoC/Production phasing (#449) - #454
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the project's Architectural Decision Records (ADRs) to transition from a "PoC vs Production" distinction to a "Launch vs Steady-State" configuration. The changes clarify that the complete smart contract suite will be deployed at launch, with economic parameters like bucket shares and contract dependencies being governance-tunable via a TimelockController. Notable additions include the DelegatorBuyer and DecdnGovernor contracts, along with updated deployment sequences and call graphs. Review feedback identifies several architectural inconsistencies in the documentation, including circular dependencies between DelegatorBuyer and FeeRouter, timing issues with the TimelockController address during construction, and naming discrepancies for delegator deposit functions.
| | 4 | VotingEscrow | TOKEN address, `minLockDuration` (1 week), `maxLockDuration` (4 years). No `create_lock_for` privileged path; auto-ve-lock not exposed. Implements `balanceOfAt(user, ts)` and `totalSupplyAt(ts)` historical checkpointing ([ADR 026](026-gauge-boost-tokenomics.md) §4). | | ||
| | 5 | SafetyReserve | USDC address, Governor address (payout authorizer; may be `address(0)` at deploy and set via `setGovernor` once `DecdnGovernor` is deployed), emergency-multisig address (fast-track approver under hard caps), `appealWindow` (48h) ([ADR 026](026-gauge-boost-tokenomics.md) §5). [ADR 028](028-slashing-appeals.md) appeal extensions are part of the same contract — no separate deployment. | | ||
| | 6 | BuybackBurner | TOKEN address, USDC address, Balancer V3 Router address, initial pool contract `address` (may be zero-address at deploy and set later via `setPool(address)` — see [ADR 003](003-payments.md#buybackburner) for the interface and [ADR 018](018-liquidity-strategy.md) for the venue rationale). The pool address remains governance-mutable post-deploy via `setPool(address)`; the constructor value is an initial convenience, not a hard requirement. **Inflow source:** `FeeRouter` ([ADR 026](026-gauge-boost-tokenomics.md) §8); the contract surface is otherwise unchanged. **Router address and naming:** see [ADR 018 §"Buyback execution via Balancer V3"](018-liquidity-strategy.md#buyback-execution-via-balancer-v3) for the canonical Balancer V3 Router address and the `Router v2` label disambiguation. **Approvals note:** `BuybackBurner` MUST self-approve the Balancer V3 **Vault** address (distinct from the Router) during initialization — the Vault pulls input tokens from `msg.sender`, which is `BuybackBurner`. The V3 footgun reference and Vault address live in [ADR 018](018-liquidity-strategy.md#buyback-execution-via-balancer-v3). | | ||
| | 7 | DelegatorBuyer | TOKEN address, USDC address, Balancer V3 Router address, initial pool address (same handling as `BuybackBurner`), and the `FeeRouter` address (deposit target). Same Vault-scoped self-approval pattern. May be implemented as a parallel contract or as a `BuybackBurner` multi-output mode (choice deferred to implementation per [§ Contract Inventory](#1-contract-inventory)). | |
There was a problem hiding this comment.
The constructor requirements for DelegatorBuyer include the FeeRouter address. However, the deployment order (Section 2, Step 7 vs Step 8) shows DelegatorBuyer being deployed before FeeRouter. This creates a circular dependency if the address is required at construction. Please clarify if DelegatorBuyer uses a setter for the FeeRouter address or if the deployment order should be adjusted.
References
- Ensure documentation is internally consistent and accurately reflects implementation interfaces. Avoid contradictory statements regarding architectural decisions.
There was a problem hiding this comment.
Addressed in fc8e560: deployment order reworked so FeeRouter is Step 8 and DelegatorBuyer is Step 9. DelegatorBuyer's constructor takes the FeeRouter address as immutable; governance then calls FeeRouter.setDelegatorBuyer(addr) post-deploy to complete the bidirectional wiring (the setter is part of § Tunable Economics).
| | 5 | SafetyReserve | USDC address, Governor address (payout authorizer; may be `address(0)` at deploy and set via `setGovernor` once `DecdnGovernor` is deployed), emergency-multisig address (fast-track approver under hard caps), `appealWindow` (48h) ([ADR 026](026-gauge-boost-tokenomics.md) §5). [ADR 028](028-slashing-appeals.md) appeal extensions are part of the same contract — no separate deployment. | | ||
| | 6 | BuybackBurner | TOKEN address, USDC address, Balancer V3 Router address, initial pool contract `address` (may be zero-address at deploy and set later via `setPool(address)` — see [ADR 003](003-payments.md#buybackburner) for the interface and [ADR 018](018-liquidity-strategy.md) for the venue rationale). The pool address remains governance-mutable post-deploy via `setPool(address)`; the constructor value is an initial convenience, not a hard requirement. **Inflow source:** `FeeRouter` ([ADR 026](026-gauge-boost-tokenomics.md) §8); the contract surface is otherwise unchanged. **Router address and naming:** see [ADR 018 §"Buyback execution via Balancer V3"](018-liquidity-strategy.md#buyback-execution-via-balancer-v3) for the canonical Balancer V3 Router address and the `Router v2` label disambiguation. **Approvals note:** `BuybackBurner` MUST self-approve the Balancer V3 **Vault** address (distinct from the Router) during initialization — the Vault pulls input tokens from `msg.sender`, which is `BuybackBurner`. The V3 footgun reference and Vault address live in [ADR 018](018-liquidity-strategy.md#buyback-execution-via-balancer-v3). | | ||
| | 7 | DelegatorBuyer | TOKEN address, USDC address, Balancer V3 Router address, initial pool address (same handling as `BuybackBurner`), and the `FeeRouter` address (deposit target). Same Vault-scoped self-approval pattern. May be implemented as a parallel contract or as a `BuybackBurner` multi-output mode (choice deferred to implementation per [§ Contract Inventory](#1-contract-inventory)). | | ||
| | 8 | FeeRouter | USDC address, TOKEN address, treasury wallet address, Balancer V3 Router address, `epochLength` (1 week), `claimWindow` (26 epochs), launch split shares (cross-validated against dependency addresses), and `boostFloor` (0.4) per [ADR 026](026-gauge-boost-tokenomics.md) §3. **Dependency addresses** (`votingEscrow`, `safetyReserve`, `delegatorBuyer`, `buybackBurner`) may all be `address(0)` at deploy and set later via the governance-mutable setters in [§ Tunable Economics](#tunable-economics); the cross-validation invariant ensures any non-zero share has a non-zero destination at construction time. Steady-state target shares per [ADR 026](026-gauge-boost-tokenomics.md) §2 are 40/40/7/5/5/3 in basis points. | |
There was a problem hiding this comment.
The FeeRouter constructor requirements include the treasury wallet address. Since the TimelockController (Step 14) is intended to hold the treasury bucket (as per Section 1), and FeeRouter is Step 8, the TimelockController address will not be available at construction time. Please specify if a temporary address is used or if FeeRouter should use a setter for the treasury destination.
References
- Ensure documentation is internally consistent and accurately reflects implementation interfaces.
There was a problem hiding this comment.
Addressed in fc8e560: TimelockController is now Step 3 (no deCDN dependencies, only OZ TimelockController(minDelay, proposers, executors, admin) with empty proposers and PROPOSER_ROLE granted to DecdnGovernor post-deploy at Step 15). FeeRouter (now Step 8) takes TimelockController as the treasury bucket destination explicitly.
| | FeeRouter | Balancer V3 Router | `swapSingleTokenExactIn(...)` (delegator-pool USDC→TOKEN; may be delegated to a `DelegatorBuyer` or `BuybackBurner` extension) | Vault-scoped self-approval, `KEEPER_ROLE` for `executeDelegatorSwap` | Yes | | ||
| | FeeRouter | DelegatorBuyer | `safeTransfer()` (7% USDC same-tx into the delegator-pool epoch bucket) and `swapDelegatorBucket(epoch, amountIn, minOut)` keeper trigger; `DelegatorBuyer` may be implemented as a parallel contract or a `BuybackBurner` multi-output mode (choice deferred to implementation) | Caller holds balance; `KEEPER_ROLE` for `swapDelegatorBucket` | Yes | | ||
| | DelegatorBuyer | Balancer V3 Router | `swapSingleTokenExactIn(...)` (USDC→TOKEN for the delegator pool; same Vault-scoped self-approval pattern as `BuybackBurner`) | Vault-scoped self-approval | Yes | | ||
| | DelegatorBuyer | FeeRouter | `depositDelegatorTokens(epoch, amount)` (deposits swapped TOKEN into `FeeRouter`'s delegator bucket so `claimDelegator` can pay against it) | Caller is the configured `DelegatorBuyer` address | Yes | |
There was a problem hiding this comment.
The call table mentions depositDelegatorTokens(epoch, amount) as a function on FeeRouter called by DelegatorBuyer. However, this function is missing from the FeeRouter class diagram in Section 1 (lines 46-53). Additionally, line 91 refers to this as depositDelegatorBucket. Please ensure consistent naming and update the class diagram.
References
- Ensure protocol documentation is internally consistent by verifying that function descriptions, field lists, and edge-case logic are aligned across all sections.
- Ensure documentation is internally consistent and accurately reflects implementation interfaces.
There was a problem hiding this comment.
Addressed in fc8e560: depositDelegatorTokens(epoch, amount) added to the FeeRouter classDiagram in §1; the §1 classDiagram edge label and the §3 cross-contract-call mermaid graph edge now both use that canonical name. The earlier prose phrasings ("deposit TOKEN to delegator bucket") were narrative, not function names — they're now replaced.
PR #454 review: - Reorder deployment so TimelockController (now Step 3) is available when FeeRouter (Step 8) is constructed; FeeRouter takes TimelockController as the treasury bucket destination explicitly. Resolves the "FeeRouter treasury wallet vs TimelockController not yet deployed" comment. - Reorder so FeeRouter (Step 8) is constructed before DelegatorBuyer (Step 9). DelegatorBuyer takes the FeeRouter address as immutable; governance then calls FeeRouter.setDelegatorBuyer(addr) post-deploy for the reverse wiring. Resolves the DelegatorBuyer/FeeRouter circular-dependency comment. - Add depositDelegatorTokens(epoch, amount) to the FeeRouter classDiagram and align edge labels in the §1 classDiagram and §3 call graph to use the same canonical name. Resolves the depositDelegatorTokens vs depositDelegatorBucket inconsistency comment. Read-as-canon cleanup (ADRs are spec, not changelog): - ADR 016 §1 BuybackBurner row: drop "the prior accumulate-only PoC stub is gone". - ADR 016 §5 governable-parameters table: drop the "Protocol fee (legacy inline skim — not used post-FeeRouter)" row entirely; the parameter is not part of the contract surface. - ADR 016 §2 ContentBlacklist constructor row: rephrase "no longer cross-calls OriginAssignment" → "does not cross-call OriginAssignment". - ADR 002 multi-claim trade-off: "the protocol no longer presents an on-chain claim..." → "the protocol does not present an on-chain claim...". - ADR 011 Consequences: drop "closing the prior loophole where any staked operator could claim origin for unregistered content"; rephrase "extends governance into a new category... that did not previously exist" as a current statement; drop "amends the unconditional permissionless-origin claim from ADR 001" framing. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refines the project's Architectural Decision Records (ADRs) to clarify the transition from initial launch to steady-state operations. Key updates include the introduction of a 'Tunable Economics' model in ADR 016, which allows governance to adjust fee distribution and activate dependency contracts like VotingEscrow and SafetyReserve without redeployment. The contract inventory and deployment sequence have been updated to include DelegatorBuyer and DecdnGovernor, while clarifying the use of OpenZeppelin's TimelockController for governance. Reviewer feedback suggests enhancing document navigation by converting several internal section references into Markdown links.
| | Contract | ADR | Status | | ||
| | --- | --- | --- | | ||
| | DelegatorBuyer (or `BuybackBurner` multi-output extension) | [026](026-gauge-boost-tokenomics.md) §6 | Implementation choice deferred — either a parallel contract or a `BuybackBurner` mode performs the delegator-pool 7% USDC→TOKEN swap. Selected during implementation. | | ||
| All on-chain contracts inherit from [OpenZeppelin Contracts](https://docs.openzeppelin.com/contracts/) to minimize custom security-critical code. The full surface ships in a single audit pass; per-bucket economics are governance-tunable from day one (see § Tunable Economics below) so the network can launch with a simplified split (e.g. 80/0/0/10/10/0) and dial up gauge boost / delegator pool / safety reserve as the dependent infrastructure stabilizes. |
There was a problem hiding this comment.
For better document navigation and consistency with other sections, consider making the reference to the 'Tunable Economics' section a Markdown link.
| All on-chain contracts inherit from [OpenZeppelin Contracts](https://docs.openzeppelin.com/contracts/) to minimize custom security-critical code. The full surface ships in a single audit pass; per-bucket economics are governance-tunable from day one (see § Tunable Economics below) so the network can launch with a simplified split (e.g. 80/0/0/10/10/0) and dial up gauge boost / delegator pool / safety reserve as the dependent infrastructure stabilizes. | |
| All on-chain contracts inherit from [OpenZeppelin Contracts](https://docs.openzeppelin.com/contracts/) to minimize custom security-critical code. The full surface ships in a single audit pass; per-bucket economics are governance-tunable from day one (see [§ Tunable Economics](#tunable-economics) below) so the network can launch with a simplified split (e.g. 80/0/0/10/10/0) and dial up gauge boost / delegator pool / safety reserve as the dependent infrastructure stabilizes. |
References
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs, which are typically generated by converting headers to lowercase and replacing spaces with hyphens.
|
|
||
| **Activation sequence is governance-driven.** When `VotingEscrow` / `SafetyReserve` / `DelegatorBuyer` are deployed and audited, governance calls the relevant `set*(addr)` then `setShares(...)` to allocate the bucket. Because share updates pass through the standard 48h timelock, bucket activations are externally observable in advance. | ||
|
|
||
| **Launch deployment.** `FeeRouter` deploys with zero-address dependencies for `VotingEscrow` / `SafetyReserve` / `DelegatorBuyer` if those aren't co-deployed (see § Deployment Order below). The launch share configuration honors the cross-validation invariant — only buckets whose destinations are wired may be set non-zero. |
There was a problem hiding this comment.
For better document navigation and consistency with other sections, consider making the reference to the 'Deployment Order' section a Markdown link.
| **Launch deployment.** `FeeRouter` deploys with zero-address dependencies for `VotingEscrow` / `SafetyReserve` / `DelegatorBuyer` if those aren't co-deployed (see § Deployment Order below). The launch share configuration honors the cross-validation invariant — only buckets whose destinations are wired may be set non-zero. | |
| Activation sequence is governance-driven. When VotingEscrow / SafetyReserve / DelegatorBuyer are deployed and audited, governance calls the relevant set*(addr) then setShares(...) to allocate the bucket. Because share updates pass through the standard 48h timelock, bucket activations are externally observable in advance. | |
| Launch deployment. FeeRouter deploys with zero-address dependencies for VotingEscrow / SafetyReserve / DelegatorBuyer if those aren't co-deployed (see [§ Deployment Order](#2-deployment-order-and-initialization-dependencies) below). The launch share configuration honors the cross-validation invariant — only buckets whose destinations are wired may be set non-zero. |
References
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs, which are typically generated by converting headers to lowercase and replacing spaces with hyphens.
There was a problem hiding this comment.
Done in a6fb507. Also linkified the matching reference at line 126.
| | `SETTLEMENT_REPORTER_ROLE` | StakingRegistry | `recordSettlement(operator)` | StablePaymentChannel | FeeRouter; see §3 | | ||
| | `KEEPER_ROLE` | BuybackBurner, FeeRouter | `executeBuyback()` (BB), `executeDelegatorSwap(epoch, minOut)` (FeeRouter) | Admin / disabled | Keeper bot or governance | | ||
| | `ROUTER_CALLER_ROLE` | FeeRouter | `routeSettlement(op, bytes, amount)` | n/a | PaymentChannel (and any future settlement-emitting contract) | | ||
| | `SETTLEMENT_REPORTER_ROLE` | StakingRegistry | `recordSettlement(operator)` | FeeRouter | FeeRouter; see §3 | |
There was a problem hiding this comment.
For better document navigation and consistency with other sections, consider making the reference to the 'Cross-Contract Call Graph' section a Markdown link.
| | `SETTLEMENT_REPORTER_ROLE` | StakingRegistry | `recordSettlement(operator)` | FeeRouter | FeeRouter; see §3 | | |
| | SETTLEMENT_REPORTER_ROLE | StakingRegistry | recordSettlement(operator) | FeeRouter | FeeRouter; see [§3](#3-cross-contract-call-graph) | |
References
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs, which are typically generated by converting headers to lowercase and replacing spaces with hyphens.
Address Gemini review on PR #454: convert plain "§ X" cross-references into proper Markdown links with GFM-generated anchors. Eight references linkified across §1, §2, §3, and §5 — every "see § Tunable Economics", "per § Deployment Order", "see § No proxy deployment patterns", "see § Post-Deployment Initialization", and "see §3" now resolves with a single click. Cross-ADR references ("[ADR 026](026-gauge-boost-tokenomics.md) §2") are left as-is — the convention across the ADR corpus is plain section numbers after a file link, and changing that pattern is broader scope. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ADR 016 §1's contract inventory split contracts into "PoC + Production", "PoC only", and "Production only" rows. Two contracts tagged "PoC + Production" had no implementation and three "Production only" contracts were load-bearing for ADR 022/026/027/028 claims that the rest of the spec treats as canonical. Drop the Phase column and specify the full 14-contract surface with governance-tunable bucket shares and dependency addresses, so a single deployment can launch with a simplified split (e.g. 80/0/0/10/10/0) and dial up gauge boost / delegator pool / safety reserve as the dependent infrastructure stabilizes. Single audit covers the full surface. ADR 016 changes: - §1 inventory: drop Phase column, add FeeRouter, VotingEscrow, SafetyReserve, DelegatorBuyer, DecdnGovernor, TimelockController as inventory rows; expand StakingRegistry / ContentBlacklist / SafetyReserve to cover their full surfaces; drop the deferred-contracts sub-table. - New § Tunable Economics subsection documenting setShares + setVotingEscrow / setSafetyReserve / setDelegatorBuyer pattern with sum-to-10000 invariant and zero-address-dependency cross-validation. - § No proxy deployment patterns: add carve-out clarifying that helper- contract addresses on signing contracts are governance-mutable; only voucher / challenge domain-separator inputs are immutable. - §3 call table + mermaid graph: add FeeRouter→DelegatorBuyer routing, Governor→FeeRouter tunability setters, DelegatorBuyer→Balancer + back to FeeRouter delegator bucket flow. - §2 deployment order: 14-contract graph with optional zero-address dependencies for VE / SafetyReserve / DelegatorBuyer; constructor-deps table updated. - §4 Fund Flow Diagrams: unified payment flow (no separate PoC vs production); slashing distribution table consolidated. - §5 Access Control Matrix: At-launch holder vs Steady-state holder columns replace PoC vs Production. - §6/§7 reentrancy + OZ framework tables: drop PoC-only rows; align with unified surface. - §8: replace "PoC vs Production Contract Topology" with "Launch vs Steady-State Configuration" — same contract surface, governance-tunable parameters carry the system from launch to steady state without redeployment. Cross-ADR cleanups (per #449 §F): - ADR 002: drop "PoC and pre-activation" framing from default-open bootstrap rule; pre-activation framing only. - ADR 011: regional bodies and default-open bootstrap framings now refer to launch vs governance-activated state, not PoC vs production. - ADR 022 §1.6: on-chain origin-directory fallback is always queryable; returns empty set during bootstrap window rather than being unavailable. - ADR 026 §2: 40/40/7/5/5/3 marked as steady-state target; launch default 80/0/0/10/10/0 documented; tunability cross-link added. - CLAUDE.md: clarify "PoC" refers to network scale, not contract scope. Out of scope (separate issues): - Surface-gap audit: missing interface blocks (#450). - ADR 026/027/028 surface lock-down (#451). - Implementation (#452, blocked). Closes #449. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
PR #454 review: - Reorder deployment so TimelockController (now Step 3) is available when FeeRouter (Step 8) is constructed; FeeRouter takes TimelockController as the treasury bucket destination explicitly. Resolves the "FeeRouter treasury wallet vs TimelockController not yet deployed" comment. - Reorder so FeeRouter (Step 8) is constructed before DelegatorBuyer (Step 9). DelegatorBuyer takes the FeeRouter address as immutable; governance then calls FeeRouter.setDelegatorBuyer(addr) post-deploy for the reverse wiring. Resolves the DelegatorBuyer/FeeRouter circular-dependency comment. - Add depositDelegatorTokens(epoch, amount) to the FeeRouter classDiagram and align edge labels in the §1 classDiagram and §3 call graph to use the same canonical name. Resolves the depositDelegatorTokens vs depositDelegatorBucket inconsistency comment. Read-as-canon cleanup (ADRs are spec, not changelog): - ADR 016 §1 BuybackBurner row: drop "the prior accumulate-only PoC stub is gone". - ADR 016 §5 governable-parameters table: drop the "Protocol fee (legacy inline skim — not used post-FeeRouter)" row entirely; the parameter is not part of the contract surface. - ADR 016 §2 ContentBlacklist constructor row: rephrase "no longer cross-calls OriginAssignment" → "does not cross-call OriginAssignment". - ADR 002 multi-claim trade-off: "the protocol no longer presents an on-chain claim..." → "the protocol does not present an on-chain claim...". - ADR 011 Consequences: drop "closing the prior loophole where any staked operator could claim origin for unregistered content"; rephrase "extends governance into a new category... that did not previously exist" as a current statement; drop "amends the unconditional permissionless-origin claim from ADR 001" framing. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Address Gemini review on PR #454: convert plain "§ X" cross-references into proper Markdown links with GFM-generated anchors. Eight references linkified across §1, §2, §3, and §5 — every "see § Tunable Economics", "per § Deployment Order", "see § No proxy deployment patterns", "see § Post-Deployment Initialization", and "see §3" now resolves with a single click. Cross-ADR references ("[ADR 026](026-gauge-boost-tokenomics.md) §2") are left as-is — the convention across the ADR corpus is plain section numbers after a file link, and changing that pattern is broader scope. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
a6fb507 to
4800553
Compare
…y-one principle (#558) The unified contract surface in ADR 016 § Tunable Economics (introduced in #449 / #454) already handles the simplified-launch case via zero- share buckets on the production FeeRouter contract: launch with shares like 80/0/0/10/10/0 and dial up gauge / delegator / safety as the dependency contracts are wired in. The ADR 003 § PoC stub paragraph — which allowed a 40%-only stub FeeRouter accumulating the other 60% in a single treasury wallet — is redundant with this and conflicts with ADR 016's commitment to "production shape from day one." - ADR 003 § Settlement sequence: PoC stub subsection removed. Replaced with a positive statement that the full six-bucket split applies to every network deployment from launch; simplified launches use setShares, not a reduced-surface stub. - appendix-poc-production-seams.md § 6 FeeRouterClient: the wiring-seam alternative side reframed from "in-process PoC stub (deployment-time backend)" to "in-process test mock for unit / integration test harnesses where no contracts are deployed; never a deployment-time backend." The trait abstraction stays; the network-deployment side is unambiguously the production contract. Closes #547.
Summary
Closes #449. Drops the PoC/Production phasing from ADR 016 §1's contract inventory in favor of a single 14-contract surface with governance-tunable bucket shares + dependency addresses, so a single deployment can launch with a simplified split (e.g. 80/0/0/10/10/0) and dial up gauge boost / delegator pool / safety reserve as the dependent infrastructure stabilizes. One audit covers the full surface.
What changes
ADR 016 (most of the diff):
FeeRouter,VotingEscrow,SafetyReserve,DelegatorBuyer,DecdnGovernor,TimelockController); expandStakingRegistry/ContentBlacklist/SafetyReserveto cover their full surfaces; drop the deferred-contracts sub-table.setShares(...)with sum-to-10000 invariant;setVotingEscrow/setSafetyReserve/setDelegatorBuyer/setBuybackBurner/setTreasurysetters; cross-validation that any non-zero share has a non-zero destination; inactive buckets accumulate zero with no reverts.feeRouteronStablePaymentChannel, etc.) are governance-mutable; only voucher / challenge domain-separator inputs are immutable.FeeRouter→DelegatorBuyerrouting,Governor→FeeRoutertunability setters,DelegatorBuyer→Balancer + back toFeeRouterdelegator bucket flow.StablePaymentChanneldirectly toFeeRouter.Cross-ADR cleanups (per #449 §F):
ADR 002: drop "PoC and pre-activation" framing from default-open bootstrap rule.ADR 011: regional bodies and default-open bootstrap framings now refer to launch vs governance-activated state, not PoC vs production.ADR 022 §1.6: on-chain origin-directory fallback is always queryable; returns empty set during bootstrap window rather than being characterized as unavailable.ADR 026 §2: 40/40/7/5/5/3 marked as steady-state target; launch default 80/0/0/10/10/0 documented; tunability cross-link added.CLAUDE.md: "PoC" refers to network scale, not contract scope.Out of scope (tracked separately)
VotingEscrow/FeeRouter/SafetyReserve/DelegatorBuyerare not in this PR. Tracked under ADR surface-gap audit: missing interface blocks and unspecified function signatures across the unified contract surface #450.PaymentChannelper ADR 010 stays deferred.StablePaymentChannelis rewired to forward throughFeeRouterinstead of skimming inline; multi-token is a future rewrite.Test plan
pre-commit run --files <touched files>passes (markdownlint, trailing whitespace, EOF, etc.)DelegatorBuyernode and theFeeRouter -.->optional-dependency edges render[§ ...](#anchor)cross-references in ADR 016 resolve (in particular#tunable-economics,#no-proxy-deployment-patterns,#originassignment-construction-notes)🤖 Generated with Claude Code