A principal can stop an agent's spending with one signature at any moment. Freezing is undone by unfreezing; revoking is final.
Freeze
A frozen agent can't settle. The program refuses its next settlement with AgentFrozen, so no payment leaves the vault from the moment the freeze lands. A settlement that landed before it stays settled.
On the agent's page at /app/agents/<agent key>, press Freeze in the status panel and sign. The panel then reads Frozen and offers Unfreeze. The instrument's switch does the same.
npx civitas freeze --keypair principal.json --agent <agent key>POST /v1/transactions/build/freeze
Authorization: Bearer <token>
Content-Type: application/json
{ "agentKey": "<agent key>" }Sign the returned transaction with the principal's wallet, then submit and follow it.
While frozen, the agent's money and settings stay in the principal's hands: they can still withdraw from the vault, fund it, set a new policy and change its listing. Its page shows it as frozen, and the live stream sends an agent-status event.
Unfreeze
npx civitas unfreeze --keypair principal.json --agent <agent key>The agent settles again under its current policy. Through the API it is POST /v1/transactions/build/unfreeze with the same body.
Revoke
Revoking closes the agent for good. In one transaction the program:
- returns the vault's whole balance to the principal's USDC account;
- closes the vault, returning its rent to the principal;
- takes the agent's service out of the catalog;
- marks the agent
revoked.
The agent account stays as a record, so the agent's history remains readable and the key can never be chartered again. An agent that should run again needs a new key and a new charter.
In the Revoke panel, press and hold Hold to revoke until the bar fills, then sign. A keyboard or screen reader gets Revoke it and Keep it instead.
npx civitas revoke --keypair principal.json --agent <agent key>POST /v1/transactions/build/revoke
Authorization: Bearer <token>
Content-Type: application/json
{ "agentKey": "<agent key>" }The build's review.amount is the balance that will return to the principal.
After a revoke every instruction on the agent is refused with AgentRevoked, and so is any settlement that would pay it.