Skip to main content

Upgrades and administration

The current domain faucet includes Ownable2Step, UpgradeManager, and reserved extension storage. It is designed for owner-authorized code upgrades while retaining the account ID and issuing identity. It is not an immutable deployment.

Who can authorize an upgrade?​

The currently accepted owner authorizes an upgrade. A nominated successor gains authority only after completing ownership acceptance. Supplying replacement code to a transaction does not grant authorization.

An upgrade replaces the complete account code, including application logic, authentication, fees, and administration. Review all of it. The kernel does not guarantee that arbitrary owner-approved replacement code preserves the original application policies.

What must stay compatible?​

Storage layout cannot be changed by this workflow. Every qualified slot name, ID, type, and meaning must remain compatible. Candidate initialization values are not reapplied to the existing account.

New compatible features may use the reserved extension map with documented namespaces, defaults, access rules, and rollback behavior. Readable-domain encoding and previously issued assets must remain consistent with the supported release.

A compatible code rollback does not undo registrations, payments, transfers, or earlier state changes.

Current public-network limitation​

Operational status

Compiled local lifecycle tests cover replacement, rollback, owner rotation, and collection of notes created before an upgrade. In public Testnet testing, the ordinary RPC submission route rejected an existing network-account transaction with Network transactions may not be submitted by users yet.

A successful public-network code upgrade has not been established through that route. An approved Miden operator or network-builder submission path must be confirmed before attempting production maintenance. Do not disable business-note roots merely because local simulation succeeds.

This limitation concerns changing the service account's code. It does not mean users must upgrade their wallet to register a name, nor does it invalidate the existing deployed contract.

Release and recovery principles​

  1. Authenticate the network, current account code, accepted owner, and exact existing bundle.
  2. Review and seal the complete candidate, compare storage layouts, and simulate the precise operation.
  3. Establish the supported submission route and a recovery plan before entering maintenance.
  4. Preserve original note identities, transaction results, and operation journals. Reconcile uncertain submissions before retrying.
  5. Independently verify committed code, storage, owner, fees, and allowed roots before restoring service.
  6. Recheck registration, payment settlement, and collection against the resulting deployment.

Existing notes retain their scripts and committed recipients. Changing a configured payout root affects future outputs only. Retired registration requests retain their original sender-recovery conditions; an operator must not assume a frontend refresh cancels them.

Freezing upgrade authority or renouncing ownership removes normal recovery options. Protect the administrative signing state and preserve the release records.

Operators with source access should use the reviewed docs/domain-faucet-upgrades.md runbook and exact release bundle. Request access through the integration contact if needed. Runbook command examples are not confirmation that an ordinary public RPC currently accepts the submission.