What is the circuit breaker?
The circuit breaker is an emergency control that blocks all transactions for a specific agent. When tripped, every validation request from that agent is rejected immediately, regardless of policy rules. Use it when you detect suspicious behavior or need to halt an agent while investigating an issue.Manual toggle
On the agent detail page, the circuit breaker toggle is always visible. Two states:- Off (normal): the agent operates under its configured policy. Transactions are evaluated normally.
- On (tripped): all transactions are blocked. The agent receives a
CircuitBreakerErroron every validation attempt.
Automatic tripping
The circuit breaker trips automatically when envelope verification detects a mismatch. This means the on-chain transaction did not match the parameters that were validated. Mandate treats this as a security event and halts the agent. When auto-tripped, the dashboard shows:| Field | Value |
|---|---|
| State | Tripped |
| Tripped at | Timestamp of the triggering event |
| Reason | Description of what caused the trip (e.g., “envelope mismatch: to address differs”) |
API control
You can also trip or reset the circuit breaker programmatically:curl
active to true to trip, false to reset.
Resuming normal operation
Toggle the circuit breaker off from the dashboard or setactive: false via the API. The agent resumes normal policy evaluation immediately. No cooldown period applies.
Before resetting, verify that the root cause of the trip has been addressed. Check the audit log for failed transactions and review the agent’s configuration.
Next Steps
Circuit Breaker (Security)
Security model and design rationale for the circuit breaker.
Envelope Verification
How Mandate verifies on-chain transactions match validated parameters.
Troubleshooting
Steps to diagnose and resolve a tripped circuit breaker.