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
| Type | What it does | Example | What it cannot do |
|---|---|---|---|
| Input controls | Check or block what goes into the model | Block payment card numbers and customer personal data from prompts | Catch sensitive data it does not recognize |
| Topic and scope limits | Keep the system to its purpose | A support assistant that only answers about shipments | Prevent a confident wrong answer within scope |
| Output filters | Check what comes out before it is shown or used | Block harmful content; check answers against approved policy text | Detect subtle factual errors |
| Grounding checks | Require answers to cite approved sources | Answers must come from published help articles | Stop errors in the sources themselves |
| Permission limits | Restrict what an agent can read and change | Read invoices; write only to a draft queue | Help if the permissions are too broad to begin with |
| Approval steps | A person approves certain actions | Credits above $5,000 need approval | Work if approvers rubber-stamp |
| Spend and rate limits | Cap cost, volume or frequency | A daily spend limit per agent | Prevent harm below the limit |
| Kill switch | Stop the system fast | One action disables the agent's credentials | Undo 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
| Tier | Typical guardrails |
|---|---|
| Low | Approved tool with enterprise data terms; data rules in the policy |
| Medium | Topic limits; output checks; grounding to approved sources; monitoring of complaints and errors |
| High | All 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
- NIST, Generative Artificial Intelligence Profile, NIST AI 600-1, July 2024
- OWASP, Top 10 for Large Language Model Applications
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.
- Free toolsFree AI governance tools and templates4 tools and 2 downloads, free to use
- The TBM guideWhat is Technology Business Management (TBM)?A way to run technology like a business
- The FinOps for AI guideWhat is FinOps for AI?Knowing what each piece of AI work costs, and whether it pays
- The Operating model guideWhat is an operating model?How a company is set up to deliver its strategy
- The Strategic portfolio management guideWhat is strategic portfolio management?Deciding which work to fund, staff and stop, and changing your mind on purpose
- The Strategic planning guideWhat is strategic planning?Deciding where to compete, and how you will know
- The FinOps guideWhat is FinOps?Shared ownership of what cloud costs, and what it buys
- The Enterprise architecture guideWhat is enterprise architecture?A shared map of how the business and its technology fit, used to steer change