In the AI governance guide

What are AI guardrails?

The short answer

Run-time controls that keep AI within limits, sized to the risk of each use

Updated · 3 min read

AI guardrails are controls that keep an AI system within agreed limits while it runs. They check what goes in, what comes out and what the system is allowed to do: blocking certain data from prompts, filtering harmful or off-topic output, requiring a person to approve an action, capping spending, or stopping the system entirely. Policies say what should happen. Guardrails make some of it happen automatically.

Guardrails are a layer, not a guarantee. Output filters miss things, prompt injection gets around instructions, and a model can be confidently wrong in ways no filter detects. The strongest guardrails do not depend on the model behaving: they limit what the system can reach and do, whatever it decides.

The main types

TypeWhat it doesExampleWhat it cannot do
Input controlsCheck or block what goes into the modelBlock payment card numbers and customer personal data from promptsCatch sensitive data it does not recognize
Topic and scope limitsKeep the system to its purposeA support assistant that only answers about shipmentsPrevent a confident wrong answer within scope
Output filtersCheck what comes out before it is shown or usedBlock harmful content; check answers against approved policy textDetect subtle factual errors
Grounding checksRequire answers to cite approved sourcesAnswers must come from published help articlesStop errors in the sources themselves
Permission limitsRestrict what an agent can read and changeRead invoices; write only to a draft queueHelp if the permissions are too broad to begin with
Approval stepsA person approves certain actionsCredits above $5,000 need approvalWork if approvers rubber-stamp
Spend and rate limitsCap cost, volume or frequencyA daily spend limit per agentPrevent harm below the limit
Kill switchStop the system fastOne action disables the agent's credentialsUndo what already happened

The bottom 4 rows are the ones that hold when the model misbehaves. In our view, any AI system that acts on money, data or people needs at least permission limits, an approval step for consequential actions and a kill switch. See governing AI agents.

Guardrails by risk tier

TierTypical guardrails
LowApproved tool with enterprise data terms; data rules in the policy
MediumTopic limits; output checks; grounding to approved sources; monitoring of complaints and errors
HighAll of the above, plus permission limits, human approval for consequential outputs or actions, logging of every decision, and a tested way to stop the system

The tier comes from AI risk assessment.

How to tell if a guardrail works

  • Test it on purpose. Try to get around it before launch and after every significant change. See AI red teaming.
  • Count what it catches. A guardrail that has never fired may be miscalibrated, or the risk may be absent. Find out which.
  • Count what gets through. Incidents and complaints show the misses.
  • Watch approvers. If every request is approved in seconds, the approval step has stopped being a control.

An example: Halden Freight

Halden Freight, the fictional logistics company used across these guides, runs 2 systems with substantial guardrails. Its customer support assistant answers only from published help articles, blocks payment data from prompts, and hands the conversation to a person when a customer asks about a claim or a refund. After it quoted a delivery guarantee Halden does not offer, Halden added a rule: every prompt change is tested against a fixed set of 200 real customer questions before release.

Its freight invoice dispute agent has its own identity, can write only to a draft credit queue, needs a person's approval for credits above $5,000, and has a daily spend limit. In the pilot, the approval step stopped a $12,400 credit the agent had calculated from a misread contract clause. The guardrail held because it did not depend on the agent being right. See AI incident management.

Sources

Questions leaders ask

What are AI guardrails?

AI guardrails are controls that keep an AI system within agreed limits while it runs, such as blocking sensitive data from prompts, filtering output, limiting topics, requiring human approval for certain actions, capping spending and providing a way to stop the system. They put parts of an AI policy into effect automatically.

Are AI guardrails enough to make AI safe?

No. Filters and instructions can be bypassed, for example by prompt injection, and they cannot catch every confident error. The most reliable guardrails limit what a system can access and do regardless of its output: narrow permissions, human approval for consequential actions, spend limits and a kill switch. Testing and monitoring are still needed.

How do you choose AI guardrails?

By risk tier. Low-risk uses usually need only an approved tool and data rules. Medium-risk uses add topic limits, output checks and grounding. High-risk uses, especially agents that act on money, data or people, need permission limits, human approval for consequential actions, full logging and a tested way to stop the system.

Keep goingSee every guide in the series