Skip to content

[FEAT] task:goLiveAsSafe and task:disableTaskManager - #145

Merged
liorbond merged 1 commit into
masterfrom
feat/go-live-tasks
Oct 13, 2026
Merged

liorbond merged 1 commit into
masterfrom
feat/go-live-tasks

Conversation

@liorbond

@liorbond liorbond commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • task:goLiveAsSafe --accounts <a,b>: checks the go-live preconditions (production signers, ACL / PlaintextsStorage / share registry wired, access list on), then addToAccessList + enable() through the Safe. Runs with SAFE_OWNER_KEY, otherwise writes one atomic Transaction Builder batch. Idempotent; re-run to verify.
  • task:disableTaskManager: maintenance wallet's emergency disable(). Sends from MAINTENANCE_KEY (new, optional), otherwise prints the call for the Ledger.
  • Go-live docs and .env.example updated.

Test plan

  • test/addressBook/GoLive.ts (8 cases: refusal with access list off, batch path, execute path, no-op re-runs, Ledger print path, non-pauser key refused, disable, re-enable)
  • Full host-chain suite: 291 passing

🤖 Generated with Claude Code


Note

Medium Risk
New operational paths that enable or halt TaskManager intake on mainnet; mitigated by fail-closed prechecks, role checks, and integration tests, but operator error still affects availability.

Overview
Adds mainnet go-live and emergency-stop Hardhat tasks so operators can open or halt TaskManager intake without hand-building Safe transactions.

task:goLiveAsSafe --accounts <a,b> enforces go-live preconditions (production signers, ACL / PlaintextsStorage / share registry wired, access list enabled), then atomically addToAccessList and enable() as the Safe—via SAFE_OWNER_KEY (direct or through the Safe) or a single Transaction Builder batch when the key is unset. It is idempotent and verifies on re-run.

task:disableTaskManager sends disable() from optional MAINTENANCE_KEY, or prints the Ledger call when only MAINTENANCE_ADDRESS is configured.

Docs (.env.example, mainnet runbooks, CHANGELOG) and test/addressBook/GoLive.ts cover batch vs execute paths, precondition refusal, and maintenance pause/re-enable.

Reviewed by Cursor Bugbot for commit 807b43f. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@liorbond
liorbond requested a review from a team as a code owner October 13, 2026 11:58
@liorbond
liorbond merged commit 2c0a33f into master Oct 13, 2026
9 checks passed
@liorbond
liorbond deleted the feat/go-live-tasks branch October 13, 2026 12:25
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.

1 participant