- an agent key, which the agent account’s policy allows to lock orders and do nothing else
- a settlement key, registered under your ad’s settlement signer, which co-signs the trades the pod locks
Running your own or a hosted pod
Either way, the same rules hold. The pod refuses to start without your own
RPC endpoints, and it can only lock within your policy. It also needs a
registered settlement key and a filed emergency stop before it goes live.
The kill levers
Three levers stop a pod. They stop different things, so pick the one that matches what went wrong.
On a hosted pod, Kill Agent on the agent page retires the key on every
chain and then deletes the pod. Revoke agent is on the agent’s
Policy tab.
When you revoke an agent, the retirement service also sends the
emergency stop you signed for its settlement key, so one action ends both
keys. You can retire the key yourself too: see
Retire a key.
A suspected compromise needs all three: revoke the agent, retire the key,
stop the pod. Revoking ends new locks. Retiring ends co-signing. Stopping
the pod ends the program. A stolen agent key can still only do what the
policy allows until you revoke it: lock within the caps, never withdraw.
What happens to open trades
Stopping or killing a pod doesn’t touch the escrows. Each open trade ends one of three ways:- the pod already co-signed it: it completes when the Bridger signs
- the pod locked it but hadn’t co-signed: you take it over and co-sign with your own key
- it was claimed or disputed already, or nobody finishes it: it ends through the cancel path at its deadline, and both deposits are refunded
Rotate the settlement key without closing ads
Rotation replaces the pod’s settlement key while its ads stay open and keep trading. It works because a settlement signer can hold up to five live keys at once, each in its own slot on the key registry of each chain. See Several keys at once. When the pod locks an order, the lock pins the slot the order was locked with. At payout, the ad chain checks the co-signature against that pinned key and no other. That gives rotation its shape:1
Ask the pod for a new key
The pod creates its next settlement key. On a hosted pod, start the
rotation from the agent page (or
the API); the pod posts the new key within a
minute. A self-hosted pod’s runtime writes a registration request for
the next key index.
2
Register it and file its emergency stop
Sign one registration for the new key, which covers both chains, then
sign its emergency stop. The new key needs its own stop: the old
key’s stop covers only the old slot.
3
Let new trades move over
New locks pin the new key once it’s live on both chains. Orders locked
before the rotation stay pinned to the old key and keep settling on it.
4
Retire the old key
Retire the old key once its pinned orders have ended. The relayer stops
accepting co-signatures under a key 15 minutes before its retirement
time, so pick a time after the old key’s open orders close.
Redeploy a pod with a new agent identity
Use this when the pod’s machine or keys may have been exposed. Rotating the settlement key isn’t enough then: the pod needs a new agent key too, which means new key files, a new agent on your account, and a new settlement key. Plan for about 10 minutes of your time, plus the time the registrations take to land on both chains. On a hosted pod, kill the agent and request a new pod:- On the agent’s Policy tab, click Revoke agent.
- Click Kill Agent: the key is retired on every chain, then the pod is deleted.
- Take over any trades the old pod locked but hadn’t co-signed (see What happens to open trades).
- On My Agents → New Agent, request a new hosted pod and follow the steps. The new pod creates fresh keys inside itself.
1
Revoke the old agent
From your owner wallet, revoke the old agent key on the agent account,
on each chain it trades on. Revoking also sends the old settlement
key’s emergency stop.
2
Stop the pod and clear its keys
Stop the runtime. Remove the contents of its key directory, or point it
at a fresh, empty one. Keep the old files offline if you need them for
an investigation, but never start a pod from them again.
3
Start the pod with your RPC endpoints
Start the runtime with your own RPC endpoints for each chain. It
refuses to start without them. On its first start it creates a new
agent key and a new settlement key.
4
Read the new identity
The start-up log prints the pod’s identity: its EVM address and its
Stellar account. The pod also writes a registration request with the
same public details. Nothing in it is secret.
5
Fund the new accounts
The pod pays the network fee for each lock from its own account on each
chain. Send gas to the new addresses.
6
Bind the new agent
From your owner wallet, set the agent policy on your agent account for
the pod’s new agent key, with your settlement signer named in it. On
Stellar, if the ad has a guard rail, this change waits out the guard
rail’s delay first. Bind the new agent with the relayer too, so it is
sent the trades.
7
Register the new settlement key
Sign one registration for the pod’s new settlement key, covering both
chains. The relayer files both and pays the gas. If your agent account
isn’t yet an approved maker for your settlement signer, approve it now.
8
File the new emergency stop
Sign the emergency stop for the new key. The old stop doesn’t cover the
new slot, and the pod isn’t ready to go live until this one is on file.
9
Go live
Keep the rebuilt pod in dry run until the key is live on both chains
and the emergency stop is filed, then switch dry run off. The pod logs that
its settlement key is registered, and starts locking within the policy.
Limits
- One pod trades on one EVM chain. A second EVM route needs a second pod with its own identity.
- The agent key is stored on the pod’s own storage. It can only lock within your policy and never withdraw, so a leak costs at most the policy’s limits until you revoke it.
- ProofBridge can’t retire your keys for you without the emergency stops you signed. File one for every key you register.