On this page

Docs / Incidents

Incidents and emergencies

At launch one address holds every governance role. It is the launch owner's key, 0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, and it acts as release approver, challenge checker, emergency administrator, confidential contact and launch owner. This page lists what that key can do to a reviewer release, a deployment, a key or a vault, and what the affected apps and callers see. The contracts are deployed again after the owner's review, and that deployment names the long-term holders, including a Safe for the release approver, the emergency administrator and the launch owner.

The levers that exist

Each action is one transaction from the role's key. Each contract checks the role and nothing else, so the policy behind an action is a governance decision written outside the chain.

Deactivate a release

Who

Emergency administrator

Effect

setReleaseStatus(id, INACTIVE, 0). No new certificates. Existing certificates stay valid to their expiry. Reversible.

Retire a release for cause

Who

Emergency administrator

Effect

setReleaseStatus(id, RETIRED_FOR_CAUSE, 0). Every certificate the release issued becomes stale. Terminal.

Revoke a deployment

Who

Emergency administrator

Effect

setDeploymentStatus(D, REVOKED). execute and the vault refuse, and the SDK returns invalid. Reversible.

Revoke a signer

Who

Emergency administrator

Effect

revoke(key). Sets live = false permanently. A key that was ever registered is never accepted again.

Block an instance key

Who

Account owner

Effect

epoche-launch account block KEY. The key leaves the instance list and loses isPrimary. Permanent for that key.

Remove a Microsoft signing key

Who

Emergency administrator

Effect

removeMaaKey(keyId). Registrations signed by that key fail until the release approver adds it back.

None of these actions can turn a failed review into a pass, or activate a release that has not passed its exam. A fix uses the normal review and activation path.

Retire a release

A reviewer release is retired for cause when the review behind it cannot be relied on: a defect in its exam or grader, a compromised issuer key, or a certificate it should not have issued.

The call is setReleaseStatus(releaseId, RETIRED_FOR_CAUSE, 0). The registry requires a zero third argument for every status except ACTIVE. Nothing else changes. EAS keeps every certificate, the deployment status stays OK, and the release's issuer key stays registered.

Stale is derived, not stored. A certificate is stale when its attester's release has status RETIRED_FOR_CAUSE, and a reader computes that from the registry at the block it reads. The registry holds no reason. The reason lives in the governance record.

Retirement is terminal. The transition table has no move out of RETIRED_FOR_CAUSE.

To pause a release and keep the option to resume, use INACTIVE. An issuer key registers only while its release is ACTIVE, so an inactive release issues no new certificates, and renewCertificate accepts a new certificate only from an ACTIVE release. Existing certificates stay live until they expire, and a Capital vault keeps trading. Reactivation is a new activation, and it carries the exam bundle digest in the third argument.

A stale certificate stops trading.

A Capital vault refuses new swaps under a stale certificate. The capital owner's withdrawal never read the certificate, so it stays available.

Stop a deployment or key

Revoke the deployment

setDeploymentStatus(deploymentId, REVOKED) stops every account on that deployment. execute reverts with DeploymentRevoked, the vault refuses on the next operation, and the SDK returns invalid. renewCertificate cannot clear it, because a revoked deployment refuses execute whatever certificate the account holds. The administrator can set the status back to OK.

Revoke the signer

revoke(key) sets live = false and touches nothing else. The registry keeps no reverse index, so a revoked key can sit in its slot until a later registration replaces it, and every reader counts only live. Revoking an issuer key makes releaseOf return zero, so each certificate that key signed fails the liveness check and callers return invalid. Revoking a runtime key removes that instance from the list.

Block an instance

The account owner blocks a key with epoche-launch account block KEY. The account sets one permanent flag per key. A restart makes a new key, so there is nothing to unblock. A blocked key fails isPrimary even at the primary URL, so it cannot execute. Callers drop it from the instance list, and a connection that presents it fails the TLS pin.

Move the primary URL

If a copy of the image keeps registering fresh keys at the primary URL, the owner moves the primary with epoche-launch account set-primary-url URL. Instances at the old URL stop being primary once they no longer match the account's hash. An empty argument clears the primary.

Custody of vault funds

A mandate vault has one owner and one authorized account. The owner can withdraw at any time, and the vault sends the asset only to that owner. The withdrawal path reads no certificate, deployment status, reviewer status, instance, authorization, limit, pool or TWAP state. The asset moves whenever the asset itself permits the transfer.

Base USDC is Circle's token. Circle's pause and blacklist can block a transfer from the vault or to the owner, and no Epoche contract can override that.

vault withdraw ASSET AMOUNTSends the asset to the vault owner.vault authorize 0 0Revokes the agent. The nonce increments, so a swap built against the old terms reverts before it consumes anything.vault tighten --limits FILELowers the caps to the file. No value in the file can grow.

Limits only tighten in place. Every supported asset cap stays present and at or below its current value, both reference caps can only shrink, and the deviation bound can only fall. A wider mandate is a new vault with new funding. The old vault's funds reach the owner by withdrawal, never by a limit change.

The pooled strategy vault profile is not part of the launch set. The mandate vault is the only vault a capital owner deploys today.

Microsoft signing keys

Microsoft Azure Attestation (MAA) signs the token that describes the hardware and code in an enclave. A registration proof names the key that signed its token. The registry refuses the proof with MaaKeyNotTrusted unless that key is on its trusted list. Microsoft replaces its self-signed keys roughly daily, so the list has to keep up. The registry never drops a key on its own. A key stays trusted after Microsoft stops listing it, until the emergency administrator removes it.

No key watcher is registered on the mainnet registry at launch; watcherDeploymentId is zero. The release approver adds keys by hand, with one pass of the watcher application:

Terminal
pnpm --filter @epoche/maa-key-watcher approver:pass \
  --rpc-url https://base-rpc.publicnode.com \
  --registry 0x7B823101b79F3f8e8882b808388B08B7ebFE507d \
  --key file:/path/to/production-deployer-key

The pass reads /certs over the Microsoft-pinned TLS GET, sends addMaaKey for each listed key the registry lacks, and reads every listed key back. --dry-run lists and reads the keys without the key. Exit 0 means every listed key is trusted.

Where: the owner's machine, the only place the deployer key lives. When: before each production registration, and once a day while registrations are expected. The operator CLI's MAA verifier checks maaKeyTrusted before it proves, so a registration under a new key stops early with nothing spent. Signs with: the deployer key, read through the CLI's secret store by file: reference. The store refuses a file anyone but its owner can read. Cost: about 0.0000003 ETH per new key. Microsoft has replaced roughly two keys a day, so under 0.0002 ETH a year. The three keys added at launch cost 0.000000886 ETH.

No timer runs the pass. The deployer holds every governance role, and an unattended job would put that key on an always-on schedule.

The key ID is sha256(issuer ++ 0x00 ++ SPKI DER), so a reissued certificate for the same public key maps to the same ID. At launch, two reads of /certs 26 seconds apart served one key in two certificates with different notBefore times, and both produced one ID.

Removal is the emergency administrator's: removeMaaKey(keyId) clears the trust flag and sets a removal flag with no getter. The hand pass reads that flag and refuses a removed key with MAA_KEY_REMOVED, so a routine pass does not undo a removal while Microsoft still lists the key. Only addMaaKey from the release approver clears the flag and trusts the key again.

What callers see

A caller's SDK reads the account, its certificates, the registry and the instance list at one block that two RPC endpoints agree on. It returns one verdict.

valid

Everything checks out

The certificate's release is ACTIVE or INACTIVE, its deployment is OK, and at least one live, unblocked instance serves the account.

stale

The review was retired

Every check passes and the certificate's attester release is RETIRED_FOR_CAUSE. The options come back with the verdict, and the caller decides. A Capital swap is refused by the vault.

invalid

The evidence contradicts itself

A revoked deployment, a certificate from a revoked key, a missing certificate, or an empty instance list.

unknown

The read did not finish

A read could not be completed, or two RPC endpoints disagreed. The SDK does not guess.

Search keeps a stale, invalid or unknown record with its failure instead of deleting it. A query with requireValid hides stale and invalid results. Without it, the record shows the verdict.

The instance list is every registered key for the account on its deployment that is still live and not blocked, primary first. A blocked or revoked key leaves the list, and a connection that presents it fails the TLS pin.

A Privacy app keeps serving while its certificate is stale, and the SDK says so on every call. A Capital app keeps its withdrawal path, and the vault refuses new swaps.

The operator reads the same evidence. epoche-launch account show prints each certificate's expiry, its stale flag and its limitations text. epoche-launch status reads the guard, account, certificates, vault and Azure once and raises alerts.

Getting back to valid

The source is usually unchanged. A reviewer defect or a compromised issuer key does not change the code that was certified.

  1. 01 / resubmit

    Send the same source again

    epoche-launch review prepare builds the submission and epoche-launch submit --renew sends it for a fresh certificate. A resubmission is a normal review at the current domain price. The launch owner handles a reviewer-defect exception through support, outside the protocol.

  2. 02 / re-review

    The reviewer checks it again

    A pass attests a new certificate for the same deployment ID with a fresh 180 days.

  3. 03 / pointer

    Anyone moves the account to it

    renewCertificate is callable by anyone, and epoche-launch account renew-certificate sends it. The new certificate must name the same deployment and domain, come from an ACTIVE release, and expire later than the current one. The owner does not sign a transaction, and the deployment and its vault authorization stay as they are.

  4. 04 / changed code

    A code change makes a new deployment

    The owner calls epoche-launch account set-deployment. A capital owner calls epoche-launch vault authorize D A before any instance is configured under the new deployment, because the guard's configuration check reads the vault's authorization.

  5. 05 / many at once

    Epoche adds reviewer copies

    If many deployments go stale at once, Epoche runs extra copies of the newest active release under the same release ID, each with its own issuer key, and retires the copies afterward.

A capital owner can keep trading under the retired review. authorize on a certificate that is already stale records the retired release in acceptedStaleRelease, and the vault accepts that release until the authorization changes. A later retirement of a different release is not covered by that acceptance.

What gets recorded

Each change writes one event. The registry and the account carry the status and the key. The vault carries the money path.

ReleaseStatusSetThe release ID, the new status, and the exam bundle digest on activation.DeploymentStatusSetThe deployment ID and OK or REVOKED.RevokedThe key, and nothing else.MaaKeySetThe key ID, trusted or removed, and the address that sent it.InstanceBlockedThe instance key.AuthorizationSetThe deployment, account, recorded owner and accepted stale release.WithdrawnThe asset and the amount.

No event carries a reason. The registry stores status, not the finding, and the activation digest is an event field that nothing on-chain reads. The reason for a retirement is written in the governance record.