Guardrails and approvals

Exceptions

Rules for specific actions, checked before any server's guardrails.

Guardrails decide by risk level, per server. Exceptions are for the cases a risk level cannot express: allow stopping instances in staging without asking, send every S3 object write to two people, hold members' agents' deletes, block one provider entirely. They are checked first, for every server, and the first match decides.

Create them under Guardrails → Exceptions with Add exception; the templates cover the common cases. Dry-run replays your last 100 calls through an exception before you save it; the Simulate tab tests a call you describe against the exceptions already saved.

What an exception is#

{
  "name": "Stopping instances in staging is fine",
  "effect": "allow",
  "conditions": {
    "action_prefix": "aws:ec2:StopInstances",
    "blast_radius.environment": "staging"
  },
  "required_approvals": 1,
  "approval_ttl_minutes": 0
}

effect is allow, require_approval (shown as Ask a person) or block. For require_approval, required_approvals asks for 1 to 3 different people (2 or 3 on Team and Enterprise) and approval_ttl_minutes sets how long the request stays open (0 uses the organization default).

Conditions#

All conditions in one exception must match. A condition is a path and either a value (equality) or one operator:

OperatorMatchesExample
valueequal"risk_level": "CRITICAL"
eq, neequal, not equal"cloud_provider": {"ne": "aws"}
in, not_inone of a list"risk_level": {"in": ["DESTRUCTIVE", "CRITICAL"]}
gt, gte, lt, ltenumbersonly the older score below is a number
containsa list field contains the value"blast_radius.impact_plane": {"contains": "iam"}

action_prefix matches actions starting with a string, or any of a list: "action_prefix": ["aws:iam:", "aws:organizations:"].

Anything else (another operator, a nested object as a value, a path Tracehold does not know) is refused when you save, so a typo cannot quietly turn an exception into a no-op.

What a condition can look at#

Exceptions see the call as Tracehold classified it, not the raw arguments:

PathExample values
actionaws:s3:DeleteObject
risk_levelREAD, WRITE (Change), DESTRUCTIVE, CRITICAL
cloud_provideraws, gcp, azure, k8s, github, terraform, cloudflare, datadog, mcp (tools from your own MCP servers)
blast_radius.environmentprod, staging, dev, unknown: the label of the account the call runs in (Where a call runs)
blast_radius.impact_planea list read from the action: compute, data, iam, network, storage
agent_idthe agent of one server
user.emailthe person an agent signed in as, lowercase
user.roletheir role: owner, admin, member

A condition on user.email or user.role only matches calls from agents signed in as a person; a call made with a server's token names nobody. In the builder, these are Acting for: a person, or a role.

Exceptions written earlier may also use blast_radius.score, blast_radius.shared_infra, blast_radius.rollback_available, blast_radius.resource_count_estimate or maintenance_window. They still load and still match as written, but the builder no longer offers them: shared infrastructure and maintenance windows are never set (calls carry no resource tags), and the others only restate the action, its risk level and environment (The score).

Versions#

Every save is a new version; the history shows what changed and lets you roll back. Creating, changing and deleting exceptions is written to the audit chain.