LeashgateDocs
Concepts

Actions and decisions

What Leashgate checks, and the four outcomes of a check.

Actions

An action is one AI call or one action check that goes through Leashgate. It is also the billing unit: 10,000 a month on Free, 250,000 on Team, 2 million on Business. See Plans and billing.

When a model answers with tool calls, Leashgate reads each one (name and arguments) and judges it against your policies before returning the answer to your agent.

Decisions

DecisionWhat happens
AllowedThe call or action runs normally.
Waiting for approvalThe tool call is removed from the answer and replaced by a message explaining that a human must approve it. An approval request is created.
BlockedThe tool call is removed and the agent is told not to retry.
QuarantinedThe agent is paused: every call is refused until you release it.

The response header x-leashgate-decision is allow, approval or block. x-leashgate-masked gives the number of personal data items replaced.