AI guardrails: real examples a small team can set up
A guardrail is anything that stops AI from doing the wrong thing, even when it tries. That last part matters.
There are two kinds of rule you can give an AI. Requests and walls. A request lives in the prompt. "Don't email customers." "Don't touch the live database." A wall lives in the system. The AI doesn't have the email key. It can't reach the live database at all.
Requests work most of the time. But they fade over a long session, and "most of the time" isn't good enough for anything that matters. Walls don't fade.
Instructions decay. Walls don't.
Eight guardrails you can set up this week
1. Separate keys. Every agent and every tool gets its own credentials with only the scopes it needs. Never your admin login.
2. Read only by default. Agents start able to look, not change. Write access is added one place at a time.
3. Blocked folders and commands. Most coding agents let you run a check before every action. Use it to block the files and commands that should never be touched, like deleting data or changing settings.
4. Spending caps. Put a monthly limit on every AI and cloud account. A loop that runs all night shouldn't be able to run up a bill.
5. A person approves anything that leaves the building. Sending email, posting, deploying, deleting, paying. The AI can draft it. A person presses the button.
6. Numbers come from data, not prose. If a figure shows up in a report, it should come from a script or a query you can rerun, not from the AI's writing.
7. Test the real output. Don't just check that the code runs. Produce the actual thing the customer gets and look at it.
8. Keep a log. Record what each agent did and when. When something goes wrong, you'll want to know which one and why.
Start small
You don't need all eight on day one. Start with separate keys and a person approving anything outward facing. Those two stop most of the expensive mistakes.
Security groups have names for this. OWASP calls the risk excessive agency. NIST has a whole framework for managing AI risk. You don't need to read either one cover to cover. You need walls around the room your AI works in.
For the thinking behind this, read least privilege for AI agents.
Sources: OWASP Gen AI Security Project, LLM06:2025 Excessive Agency. NIST, AI Risk Management Framework.
Get each new post by email.
One email when a post is out. Unsubscribe anytime.