AI agent guardrails glossary

The words people use for keeping agents in bounds, in plain language, each with a guide where there is one.

Short answer

This glossary defines the terms used for controlling AI agents at runtime, such as loop detection, step limits, run budgets, cost circuit breakers, tool-call policies, human approval, idempotency keys, retry budgets, kill switches and failing closed. Each entry links to a guide with tested code.

Runtime guardrails

Checks that run while an agent is working, before each model call and tool call, and can stop the step or the whole run. Guide: Runtime guardrails, explained.

Agent run

One task from start to finish: every model call and tool call the agent makes for it. Limits are usually set per run.

Step limit

The most model calls or tool calls one run may make. Frameworks call it recursion_limit (LangGraph), max_turns (OpenAI Agents SDK) or max_iter (CrewAI). Guide: Infinite loops.

Agent loop detection

Spotting an agent that repeats itself, such as calling the same tool with the same arguments again and again, and stopping it before the step limit. Guide: Infinite loops.

Churning or thrashing

An agent that keeps working without getting closer to done: rewording the same search, undoing its own change or retrying a failing call. Step and spend limits stop it even when each call looks a little different.

Run budget (execution budget)

The most a single run may spend, counted from the token usage of each model call and checked before the next one. Guide: Spend per run.

Cost circuit breaker

A check that ends a run, or refuses further calls, once spend reaches a limit, instead of only reporting it.

Mid-stream cutoff

Stopping a model's answer while it is still streaming, because the run crossed its limit part way through. It needs something in front of the model, such as a gateway.

Time limit (deadline)

The longest a run may take, checked before each step, plus a timeout on each call so one hung call can't hold the run open. Guide: Runs left overnight.

Tool-call policy

Rules checked before a tool runs: an allow list of tools, a deny list of patterns such as delete_*, rate limits per tool, and which calls need a person. Guide: Deleting data.

Human approval (human in the loop)

Holding an action until a person says yes. Safe versions tie the approval to the exact call and arguments and use it once. Guide: Human approval.

Idempotency key

A value sent with an action so a repeat can be recognised. The same key twice means the second call does nothing new. Guide: Duplicate actions.

Retry budget

A fixed number of retries and amount of waiting for a whole run, shared by every call and sub-agent, so one rate limit error can't turn into dozens of paid retries. Guide: Retry storms.

Kill switch

A way to stop a live run, or every run of an agent, from outside it. It is checked before each call and each action, and can be backed by revoking the agent's key. Guide: Kill switch.

Fail closed

When a guardrail can't decide, for example because its server is down, the step is refused rather than let through.

Deterministic enforcement

Guardrails that are fixed rules in code, so the same step always gets the same answer, rather than a model scoring whether the step looks safe.

AI gateway

A proxy between your code and the model providers. It sees every model call, can count cost and enforce limits, and doesn't see tools your code runs on its own.

Content guardrails

Checks on the text going into and out of a model: harmful content, personal data, jailbreaks and prompt injection.

Agent observability

Tracing and logging of what an agent did, with cost and timing, so you can see and debug it afterwards.

The checks a live agent needs, in order, are in the guardrails checklist.

Shipping agents? Let's talk.

Become a design partner

Our first 10 design partners get every paid feature free.

  • We wire it into one of your agents with you, usually in under an hour.
  • Sign-off requests, alerts and a full record of every run, in your own dashboard.
  • Hosted by us or on your own servers, whichever you prefer.
  • A direct line to the founders, and your requests go to the top of what we build.
  • We ask you to use it on one real agent for 4 weeks and tell us what breaks.