Repository navigation
feat(contracts): bootstrap-multisig governance phase + buyback deploy follow-ups - #1529
Conversation
… follow-ups Closes #1175, Closes #1090 ADR 009 § Bootstrap-multisig phase was specified but never implemented: the deploy handed GOVERNANCE_ROLE straight to the Timelock with DecdnGovernor already seated as proposer, so served-bytes-weighted DAO voting was live from block one against an operator set thin enough for a cheap fleet to capture. `DeployProtocol` run with `BOOTSTRAP_MULTISIG=<addr>` now seats that multisig as the Timelock's sole PROPOSER/CANCELLER and grants the Governor neither. The Timelock keeps GOVERNANCE_ROLE on every target in both modes, so the ADR's "standard 48-hour timelock on every parameter change" holds for the multisig too — the phase confines who may *schedule*, not who may act instantly. `script/TransitionToGovernor.s.sol` prints the one-way Timelock batch that ends the phase (grant Governor, then revoke multisig; executing it strips the multisig's PROPOSER_ROLE so it can never schedule a reinstatement). `_assertNoBackDoors` gains ProposerNotSeated, asserted in both directions — nothing else could catch it, since the target role matrix is identical in both modes. Off by default: an unchanged deploy is byte-for-byte the previous one. The #1090 follow-ups from the #1086 review: - `script/lib/BuybackVenueLib.sol` is now the single home for the steady-state FeeRouter split, the canonical Permit2 address, the BUYBACK_VENUE dispatch, and the per-venue burner Config — previously duplicated across BaseProtocolDeploy, ActivateBuyback and DeployProtocol, i.e. four ways for the genesis activation and the post-deploy runbook to wire different burners from the same inputs. Behaviour unchanged. - `BuybackActivation`'s 17 flat fields regroup into venue-scoped sub-structs. Solidity has no tagged union, so grouping alone cannot make cross-wiring unrepresentable; `_assertVenueFieldsScoped` supplies the enforcement, reverting VenueFieldsCrossWired on any non-zero field of the unselected venue. Setting `bal.vault` under `venue == UNISWAP` used to be silently dropped. - The `solidity fork test` CI job now passes ARBITRUM_SEPOLIA_RPC_URL through, so GenesisBuybackActivation.fork.t.sol executes instead of self-skipping. That suite covers the Arbitrum Sepolia deploy path (#1083) and had zero executable CI coverage. NOTE: needs the repo secret of the same name to be configured. ADR 009 § Transition and ADR 026 § Governance previously described a `transitionToGovernor` setter; both are rewritten in place to the Timelock batch that ships. ADR 016 records the two proposer-seating modes. Verified: 827 forge tests (13 new), 27 anvil-e2e, 2681 cargo tests, forge fmt, FOUNDRY_PROFILE=ci build --sizes --deny warnings, aderyn 0 high, slither exit 0, gas snapshot regenerated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Warning Review limit reached
Next review available in: 27 seconds Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (9)
WalkthroughThis change centralizes buyback venue configuration and burner deployment, reshapes activation inputs into nested structs, adds optional bootstrap-multisig governance seating with a one-way Timelock transition script, updates related tests and documentation, and enables Arbitrum Sepolia fork testing in CI. ChangesProtocol deployment changes
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant DeployProtocol
participant TimelockController
participant BootstrapMultisig
participant DecdnGovernor
DeployProtocol->>TimelockController: grant proposer/canceller roles
DeployProtocol->>BootstrapMultisig: configure bootstrap proposer access
BootstrapMultisig->>TimelockController: scheduleBatch role transition
TimelockController->>TimelockController: executeBatch after minimum delay
TimelockController->>DecdnGovernor: grant proposer/canceller roles
TimelockController->>BootstrapMultisig: revoke proposer/canceller roles
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Contracts coverageLine coverage: 89.75% (2608/2906 lines) |
Gas snapshotNo gas changes vs base. |
Coverage reportTotal: 80.25% (was 80.25%, ● 0.00%) — 54629/68073 lines No Rust files changed in this PR. History
|
There was a problem hiding this comment.
Pull request overview
Implements the ADR-009 “bootstrap multisig” governance phase as an opt-in deploy mode (multisig is the Timelock’s sole proposer/canceller initially, Governor is vote-wired but cannot propose), and refactors buyback activation wiring to a single shared library to prevent deploy/runbook drift.
Changes:
- Add
DeployConfig.bootstrapMultisig+ deploy-time proposer seating/invariant checks, plus aTransitionToGovernorrunbook script and lifecycle tests. - Consolidate buyback venue dispatch / burner construction into
BuybackVenueLiband restructureBuybackActivationinto venue-scoped sub-structs with cross-wiring guards + tests. - Extend CI fork-test env passthrough to include
ARBITRUM_SEPOLIA_RPC_URL, and update ADRs/docs/changelog accordingly.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| contracts/test/GovernanceLifecycle.t.sol | Adds bootstrapMultisig to test config (default off). |
| contracts/test/GenesisBuybackActivationBalancer.fork.t.sol | Adopts BuybackVenueLib + new venue-scoped activation structs. |
| contracts/test/GenesisBuybackActivation.t.sol | Updates activation struct usage; adds cross-wiring guard tests. |
| contracts/test/GenesisBuybackActivation.fork.t.sol | Updates fork activation struct usage for Uniswap venue. |
| contracts/test/E2EProtocol.t.sol | Adds bootstrapMultisig to test config (default off). |
| contracts/test/DeployProtocol.t.sol | Adds bootstrap-phase test suite + proposer seating assertions. |
| contracts/script/TransitionToGovernor.s.sol | New runbook script printing Timelock batch to transition proposer/canceller to Governor. |
| contracts/script/lib/BuybackVenueLib.sol | New shared venue parsing + FeeRouter shares + burner construction. |
| contracts/script/DeployProtocol.s.sol | Reads BOOTSTRAP_MULTISIG; refactors buyback activation env reader to new structs/lib. |
| contracts/script/BaseProtocolDeploy.s.sol | Implements bootstrap proposer seating + invariant checks; refactors buyback activation + guard. |
| contracts/script/ActivateBuyback.s.sol | Refactors runbook burner deployment / shares to use BuybackVenueLib. |
| contracts/README.md | Documents new scripts and their “print-only” behavior. |
| contracts/.gas-snapshot | Updates snapshots reflecting new/changed tests. |
| CHANGELOG.md | Notes deploy-script-only breaking struct-shape changes; documents new governance phase + CI coverage. |
| adr/026-tokenomics.md | Rewrites bootstrap transition mechanism description to Timelock batch. |
| adr/016-contract-interactions.md | Updates deploy step narrative to reflect optional bootstrap proposer seating. |
| adr/009-governance.md | Updates bootstrap phase + transition mechanism details to match implementation. |
| .github/workflows/ci.yml | Passes through ARBITRUM_SEPOLIA_RPC_URL and enables fork job when set. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Review follow-up on #1529. `_deployGovernor` grants PROPOSER_ROLE and CANCELLER_ROLE on adjacent lines and `TransitionToGovernor` moves both, but `_assertNoBackDoors` only re-read the proposer half — exactly the coupled-by-convention wiring that drifts silently, since OZ `grantRole` does not revert on a dropped or mis-targeted account. That is the same silence `_assertPeerRolesWired` already exists to break. The consequence is asymmetric and slow to surface: a canceller grant that missed the bootstrap multisig takes away its only way to cancel its own erroneous scheduled proposal inside the 48-hour window, for the phase's whole 6-12 months, and nothing reports it until the day it is needed. `_assertTimelockRoleSeating` now applies the both-directions check to each role; `ProposerNotSeated` carries the role it failed on. Two new tests cover the canceller halves (multisig cannot cancel; Governor can). `TransitionToGovernor`'s precondition is widened to the full phase definition — multisig holds both roles, Governor holds neither. Note the batch itself was never at risk: OZ grant/revoke no-op when state already matches, so it converges from a partial state either way. What a loose predicate cost was the signal, on a script whose output is signed once and is irreversible. Verified: 829 forge tests (2 new), forge fmt, ci build --deny warnings, aderyn 0 high, slither exit 0, gas snapshot regenerated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ments Multi-agent review follow-up on #1529. Two guards accepted inputs that no invariant could reject: 1. `TransitionToGovernor` validated the Governor only by the ABSENCE of two roles — which is the default state of every address on Ethereum. An EOA, `address(0)`, a one-nibble typo, or another chain's Governor all passed, and the printed batch would then irreversibly grant scheduling power to that address while revoking the multisig's. The multisig half could never fail this way (it requires *holding* both roles), which is what made the asymmetry easy to miss. Now identified positively: it must be a contract naming this Timelock as its executor (`GovernorNotBoundToTimelock`). 2. `BOOTSTRAP_MULTISIG` accepted the deployer or a codeless address. `_assertNoBackDoors` cannot catch either — the address genuinely holds the role the invariant asks about. Deployer means a standing single-key scheduler over a Timelock governing every target, irrevocable once phase 5 renounces. A dead EOA means nobody can ever schedule: permanently ungovernable, deploy green. Both fail fast now. Comment corrections, all mine, all describing a design this PR abandoned mid-implementation (the multisig never holds GOVERNANCE_ROLE): - `DeployProtocol.s.sol` manifest writer and `BaseProtocolDeploy` invariant both claimed the multisig holds GOVERNANCE_ROLE — contradicting ADR 009 § Mechanism as rewritten in this same PR. - `adr/009-governance.md` still pinned irreversibility on GOVERNANCE_ROLE moving to the Timelock; it is there from deploy in both phases. It is PROPOSER_ROLE that moves. - `contracts/README.md` claimed `ActivateBuyback` broadcasts nothing. It calls `vm.startBroadcast` and deploys the burner — an operator trusting that would ship a contract believing it a dry run. - The grant-before-revoke rationale was false for an atomic `executeBatch`; it is true of `_handOffGovernance`, whose separate broadcasts it was copied from. Reusing it here taught a false invariant. - "cannot be reinstated" overstated in three places: the multisig cannot reinstate itself, but the inheriting DAO could vote to. Robustness, from the same review: - `_allGovernedTargets` indexed off `fixedTargets.length` instead of literal 8/9. Widening `_governedTargets` per its own docstring would otherwise have overwritten the new target with the burner — dropping it from the handoff AND the invariant, which now share this helper and would agree on the wrong answer. - Restored explicit `else revert` on all four `Venue` dispatch sites. The ternaries dropped a revert that existed pre-PR, and the genesis path and the runbook fell through to *different* venues — the exact drift `BuybackVenueLib` exists to prevent. - `TransitionToGovernor` exposes `transitionBatch`/`transitionBatchChecked`, and the test now executes the real batch instead of a hand-built twin. The twin was a second source of truth: reordering a leg left every test green while changing the one artifact a multisig signs. Four new tests cover the two guards and both script preconditions, which had no coverage at all. Verified: 833 forge tests (6 new), 27 anvil-e2e, forge fmt, ci build --sizes --deny warnings, aderyn 0 high, slither exit 0, gas snapshot regenerated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Newly published advisory against `ruint 1.17.2`, which reaches us transitively through `alloy-primitives` — the U256 arithmetic on the payment path. `Uint::overflowing_shl`/`overflowing_shr` returned false-negative overflow flags. The wrong flag propagates: `checked_*` return `Some` instead of `None`, `strict_*` fail to panic, `saturating_*` wrap. The bad `checked_shl` result makes `to_base_be` and string formatting loop forever on no-alloc builds for non-limb-aligned widths — a DoS where formatting is reachable from untrusted input. No deCDN code calls the affected APIs: every `checked_shl` under `crates/` is on a primitive `u64` (`cache/src/retry.rs:70`, `protocol/src/framing.rs`), not a `ruint::Uint`. The exposure is inside alloy. Lockfile-only; no dependency requirement changed. `cargo update -p ruint` also adds six `ark-*` entries behind optional features we do not enable — `cargo tree -e normal` links none of them, and `decdn-node` pulls in zero. Unrelated to the branch it lands on: `main` carries the same `ruint 1.17.2` and fails `cargo deny` identically. Kept as its own commit so the bump is reviewable and revertible apart from the governance work. Verified: cargo deny (advisories/bans/licenses/sources ok), cargo build --workspace, 2681 cargo tests. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Follow-up on the multi-agent review of #1529. The critical and important findings landed in 7aa343c; this clears the rest. None of these is a correctness bug on the shipped path — `_readBuybackActivation` is an `if/else` that cannot emit the bad states, which is why CI has been green. The exposure is to the next hand-constructed activation, the next added struct field, and the next added `Venue` variant. Venue activation: - The cross-wire guard compared seven hand-enumerated fields. It was complete, but a field added later would compile clean, pass every test, and silently escape it. Now an `abi.encode` digest against a zero struct, which covers every member by construction. - Added the half that was missing entirely: the SELECTED venue must be complete. `bal.wiring.vault == 0` was silent end to end — the seed path never reads the vault, the burner constructor treats a zero vault as deferred wiring and skips validation, and `_assertBuybackActivated` checks the FeeRouter binding, shares and two roles but never liveness. The deploy exits 0 having routed 30% of protocol revenue to a burner whose every `executeBuyback` reverts `PoolNotWired` forever, post-handoff. Same outcome `MissingBuybackKeeper` exists to prevent, through a different door. - `PoolSeed` records the venue it was derived for. The 80/20-vs-1:1 weighting means a seed paired with the other venue initializes the genesis pool at 4x or 1/4 the intended anchor, seeding real POL at the wrong price with no revert. - `BalancerVenueParams` nests `BalancerWiring` instead of restating five of its fields through a positional hand-mapping; the guard band is `GuardedBuybackBurner.GuardParams` instead of a fourth copy of one shape. Deploy invariants: - `_assertTimelockRoleSeating`'s negative half was gated on bootstrap mode, so a default deploy asserted nothing about anyone other than the Governor holding a scheduling role. Gated on `expected != governor` instead, and the deployer is now checked unconditionally — it admins the Timelock through phases 3-5, so a `_postWiringHook` override could grant itself one and survive the handoff. - `ProposerNotSeated(address, bytes32, bool)` splits into `TimelockRoleMissing` / `TimelockRoleUnexpected`. The name was wrong half the time (it is raised for CANCELLER_ROLE too) and the boolean is unreadable at the one moment it matters: a deploy aborting mid-broadcast, where the two directions mean ungovernable vs. governance live too early. Coverage: - Bootstrap + genesis activation together — the config #1083 actually takes on Arbitrum Sepolia, the only path where `_allGovernedTargets` returns nine, and untested by either suite because each hardcoded the other's flag off. - The Governor genuinely cannot schedule during bootstrap, and can after the transition batch. Previously asserted only as role bits. - The multisig can actually cancel its own scheduled proposal — the behavioural rehearsal b04ecf4's docstring argues for but never performed. - `BuybackVenueLib.parseVenue`: both venues, the unknown-venue revert, the documented case-sensitivity, and the enum ordinals (which `_deriveTokenSeed` branches on to pick seed weights). - Precise selector for the file's only bare `vm.expectRevert()`; de-duplicated a byte-identical scoped-guard test; renamed `test_bootstrap_multisigIsTheSoleProposer`, which never asserted soleness and cannot — OZ's Timelock is not enumerable. CI: the fork job now always writes each RPC secret's state to the run summary and warns on the missing ones. A skipped step yielded a green job indistinguishable from one where every suite passed, which is how it went unnoticed that no fork secret has ever been configured — all four suites permanently unexecuted behind a passing check. Not a hard failure: fork PRs cannot carry secrets by policy. Docs: README contract/test counts were stale and omitted `script/interfaces/`; the header said "six-phase" above a seven-phase list; ADR 026 credited the bootstrap multisig with pause powers it does not have (PAUSER_ROLE goes only to the emergency multisig, which ADR 009 makes explicitly separate). Verified: 842 forge tests (13 new), 27 anvil-e2e, forge fmt, ci build --sizes --deny warnings, aderyn 0 high, slither exit 0, gas snapshot regenerated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…st solhint's limit `forge fmt` joins the `_derivePoolSeed` return onto one 121-char line — one over solhint's `max-line-length` of 120. The two tools then disagree permanently: `forge fmt --check` passes and `npm run lint` fails. Not caught locally: pre-commit's solhint hook globs `contracts/src/**/*.sol` only, while CI runs `npm run lint`, which also covers `script/` and `testnet/`. Anything under `contracts/script/` is therefore lint-clean on commit and red in CI. Verified the fix with the CI command itself — 0 errors, 7 pre-existing warnings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The snapshot was regenerated before 24c4fc5's line-length split, not after, so the extra local variable's +12/+24 gas left it stale. `forge test` passes either way, which is what makes this gate invisible until CI runs. Verified by reproducing the CI check locally: regenerate to a temp file, strip `runs:` lines from both, diff — in sync. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Five agents re-reviewed the deferred-findings work. Nine of the twenty findings were defects in that work itself; this closes them. The structural one, which three agents reached independently: the completeness guard added last round lived on `BaseProtocolDeploy`, so only the genesis path had it. `ActivateBuyback` — the runbook, with no `_assertBuybackActivated` backstop — had none, and `vm.envAddress` rejects an *unset* var but happily parses an explicit `0x0`. That is the two-entry-point drift #1090 exists to remove, reintroduced by the fix for it. Validation now lives in `BuybackVenueLib`, the chokepoint both callers already pass through (`WiringIncomplete`). Relocating it also closed a second door to the same outcome. `GuardedBuybackBurner` rejects an inverted band (`min > max`) but not a zero one, so `MIN_BUYBACK_AMOUNT=0 MAX_BUYBACK_AMOUNT=0` — the "0 means unlimited" misreading, reachable from production env — constructed cleanly and then reverted `AboveMaxBuyback` on every call forever, holding 30% of revenue. Checked at the same seam rather than in the burner, which is shipped and whose bounds are ADR 018 parameters (`GuardBandDead`). `PoolSeed` is now self-checking. Recording a `venue` tag was weaker than it read: the tag is an unverifiable claim by whoever built the struct, and `Venue.UNISWAP == 0` made it vacuous on a default-constructed seed — the venue #1083 actually uses. It now records `targetPrice` and `_assertVenueSeedMatches` re-derives `tokenSeed` rather than trusting the label (`PoolSeedNotDerived`); an unset seed dies on `TargetPriceZero`. `_activateBalancer` rejects a caller-supplied `bal.wiring.pool` instead of silently overwriting it (`PoolPrefilled`) — a supplied value meant a second pool created and seeded with real POL, and it is the natural mistake since `ActivateBuyback` reads `BALANCER_POOL` from env. Tests, all for guards that nothing pinned: - All five `BalancerWiring` fields, table-driven at the library. `vault` is the only term in either venue with no downstream backstop — a zero router or permit2 hits `ZeroAddress` in the constructor — and deleting its clause left every test green. Tested at the library because the guard fires before the deployment, so it needs no live factory; my previous docstring claimed the opposite and was wrong. - The guard band read back off the deployed burner. It crosses three hand-written mappings and most transpositions do not self-detect: swapping `slippageBps` with `epochLiquidityCapFraction` yields 1000/200, both in bounds, shipping 10% slippage in place of 2%. Verified by mutation — the assertion fails as intended. - The deployer seating leg, `NotInBootstrapPhase` on a half-seated multisig (both `&&`->`||` mutations previously survived), and third-party cancellation. - `_transitionBatch` now calls `transitionBatchChecked` — the variant `run()` uses, whose success path was executed by nothing. Comment corrections. Two were verified false by an agent running solc: the claim that nesting `BalancerWiring` added compile-time safety (the code it replaced was a named-args literal, which solc already rejects on a missing member), and that a local `GuardParams` copy would silently default a new field to zero (it fails to compile either way). Also: my gate change from `bootstrapMultisig != 0` to `expected != governor` is a pure readability edit, not the hole-closing one my comment claimed — the deployer leg did all of it; `test_venueOrdinalsFrozen`'s rationale was wrong, since `_deriveTokenSeed` compares symbolically and what the ordinals actually protect is the zero-default; the under-wire half IS reachable from the env reader, which undersold it; two docstrings had been orphaned from their functions by an insertion; and `adr/009-governance.md` still carried the false grant-before-revoke rationale round one removed from the script. CI now reports how many fork suites the glob matched, and fails if it matched none. `forge test --match-path` exits 0 on a glob matching nothing, so a rename would have gone green — and, with last round's summary, green beside three configured-secret checkmarks. Reporting configuration made the ambiguity worse until it also reported execution. Verified: 851 forge tests (21 new), 27 anvil-e2e, forge fmt, ci build --sizes --deny warnings, npm run lint (0 errors), aderyn 0 high, slither exit 0, gas snapshot regenerated and diffed against a fresh run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`VenueParserHarness` reached 27,849 bytes and failed `forge build --sizes --deny warnings`. Calling `deployBalancerBurner` / `deployUniswapBurner` from a harness inlines both burners' full creation bytecode into it — the "inheriting test harnesses" case the size gate has caught before. Split the guards out of the builders into `requireBalancerWiring` / `requireUniswapWiring` and point the harness at those. Better shape regardless: validation is separable from construction, the builders read as one line of intent plus a constructor call, and the guards are now directly testable rather than testable-only-through-a-deployment. I missed this locally by grepping the build output for `^warning` instead of reading the exit code — the failure is an `Error:` line after the size table. Re-ran every gate by exit code: fmt, build --sizes --deny warnings, ci test, solhint, slither, and a gas snapshot diffed against a fresh run. All 0. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Closes #1175, Closes #1090
Two contracts issues on the same deploy-script surface, both derisking the Arbitrum Sepolia deploy (#1083).
#1175 — ADR 009 bootstrap-multisig phase
ADR 009 § Bootstrap-multisig phase was specified but never implemented. The deploy handed
GOVERNANCE_ROLEstraight to the Timelock withDecdnGovernoralready seated as proposer, so served-bytes-weighted DAO voting was live from block one — against exactly the thin operator set (<50 for the first 6–12 months) the phase exists to protect.DeployProtocolrun withBOOTSTRAP_MULTISIG=<addr>now seats that multisig as the Timelock's solePROPOSER_ROLE/CANCELLER_ROLEholder and grants the Governor neither.The load-bearing detail: the Timelock keeps
GOVERNANCE_ROLEon every target in both modes, so the ADR's "standard 48-hour timelock on every parameter change" holds for the multisig's own changes too. The phase confines who may schedule, not who may act instantly. The Governor is still deployed and vote-wired at deployment (ADR 009 § Transition), it just cannot propose.script/TransitionToGovernor.s.solprints the one-way Timelock batch that ends the phase — grant the Governor both roles, then revoke the multisig's. No bespoke contract: every leg targets the self-administering Timelock, so it is an ordinary proposal, and no address holds a standing out-of-band power to perform it. Executing it strips the multisig'sPROPOSER_ROLE, so it can never schedule a reinstatement._assertNoBackDoorsgainsProposerNotSeated, asserted in both directions. Nothing else could catch a mis-seated proposer: the target role matrix is byte-identical across modes, so every deployer-back-door and handed-off check passes while DAO execution sits one delay away.Off by default. A deploy without
BOOTSTRAP_MULTISIGis byte-for-byte the previous one; the anvil-e2e harness and the in-flight #1083 deploy are untouched.#1090 — genesis buyback-activation follow-ups
GenesisBuybackActivation.fork.t.solgates onARBITRUM_SEPOLIA_RPC_URL; thesolidity fork testjob exported onlyARBITRUM_RPC_URL/SEPOLIA_RPC_URL, so the Uniswap genesis path — the one Testnet deployment v0.1.0 (Arbitrum Sepolia): deploy → onboard origin → verify #1083 actually runs — had zero executable CI coverage. Now passed through.script/lib/BuybackVenueLib.solis the single home for the steady-state split, the canonical Permit2 address, theBUYBACK_VENUEdispatch, and the per-venue burnerConfig. These were duplicated three ways (BaseProtocolDeploy,ActivateBuyback,DeployProtocol) — four ways for the genesis activation and the post-deploy runbook to wire different burners from the same inputs. The two deliberate caller asymmetries (deployer-vs-Timelock admin; creates-pool vs assumes-live-pool) are preserved, not erased. Behaviour unchanged.BuybackActivation's 17 flat fields regroup into venue-scoped sub-structs. Solidity has no tagged union, so grouping alone cannot make cross-wiring unrepresentable —_assertVenueFieldsScopedsupplies the enforcement, revertingVenueFieldsCrossWiredon any non-zero field of the unselected venue. Settingbal.vaultundervenue == UNISWAPwas previously dropped in silence.The
ARBITRUM_SEPOLIA_RPC_URLrepo/org Actions secret must be created, or the fork job keeps no-oping for that suite. I can't create it. A plain public endpoint suffices (the suite forks at latest and creates its own pool).Docs
ADR 009 § Transition and ADR 026 § Governance described a
transitionToGovernorsetter; both rewritten in place to the Timelock batch that ships. ADR 016 records the two proposer-seating modes.contracts/README.mddocuments the new script. CHANGELOG carries theDeployConfig/BuybackActivationstruct-shape break (deploy-script-only; no contract ABI, config, or CLI change).Verification
forge testcargo nextest runcargo nextest run -p decdn-e2e --features anvil-e2eforge fmt --checkFOUNDRY_PROFILE=ci forge build --sizes --deny warningsaderynslither.gas-snapshotpre-commit run --all-files.github/workflows/issue-triage.mdMD032Not verified locally: the CI half of the fork-coverage fix, which can only be confirmed once the secret exists and the job runs on
main. The suite itself was run directly against a live Arbitrum Sepolia endpoint.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Tests