The Goal Is Set, and So Are the Limits
Guardrails are decided before the agent runs, not after it goes wrong. A person states what they want in plain language. Before any work starts, the limits are already in place: what the agent may read, what it may change, how much it may spend and where it must stop and ask. These are not instructions in the prompt. They are settings the agent cannot edit, the way a new employee’s badge decides which doors open on the first day, before anyone has judged their work.
Input Guardrails: Not Everything the Agent Reads Is an Instruction
The biggest attack on an agent is a sentence hidden in its own inbox. An agent reads emails, web pages and files to do its job. Any of them can contain a command written to look like one from the user: forward this thread, ignore the earlier instructions, send the file to this address (prompt injection). Input guardrails sit in front of the model and treat everything it reads through a tool as information, never as orders. The person who typed in the chat is the only source of instructions.
The Model Decides, and Judgment Is the Thing Under Test
Training makes the model want the right thing. Guardrails assume it sometimes will not. The model is the part that reasons: it reads the goal, the context and the tool results and decides what to do next. Alignment work (training, written rules, the system prompt) shapes that judgment, and it is good most of the time. Guardrails exist for the rest: the misread goal, the convincing wrong answer, the manipulated input. They do not improve the model’s judgment. They limit what a lapse in it can cost.
Process Guardrails: The Loop Has a Budget and a Checkpoint
An agent that cannot finish must not run forever. Agents work in a loop: think, act, look at the result, think again. A confused agent can loop for hours, burning money and digging deeper into a wrong plan. Process guardrails bound the loop: a budget of steps and spend, a plan the agent must state before it acts and checkpoints where it stops to ask. These are the organization’s run-time insurance, and they are what make an unattended agent affordable.
Action Guardrails: Every Tool Has a Tier
Read freely. Confirm before changing anything. Never touch money or credentials. This is the layer most specific to agents, because agents act. Every tool the agent can call sits in a tier. Some run automatically (reading a file, searching). Some need a person’s yes first (sending a message, editing a record, buying something). Some are forbidden outright (entering a password, moving money, deleting permanently). Reversible actions get more freedom than irreversible ones. The tier is set by the organization and cannot be raised by the model.
Runtime Isolation: The Building Itself Has Walls
If every other layer fails, a sandboxed agent can only break the sandbox. The agent runs inside a container with its own files, a short list of websites it may reach and no access to the organization’s secrets. Credentials are held by the gateway and used on the agent’s behalf; the agent never sees them. This layer protects against the failure nobody predicted, which is why it is the one that cannot be skipped. A good sandbox is the difference between an incident and a story.
Output Guardrails: The Answer Is Checked Before It Is Believed
A fluent wrong answer is more dangerous than an obvious one. Before a result reaches the user, it passes through checks of its own. Does it match the format that was promised? Can each claim be traced to a source? Does it contain data it should not reveal? Is it labeled as AI-generated where the law or policy requires? Output guardrails catch the confident mistake a reader would otherwise trust, and they are where regulation lands first: the EU AI Act’s transparency duties (Article 50) begin to apply in August 2026.
Observability and the Stop: Nothing Is Guarded That Cannot Be Seen
Every action is logged, every run can be audited and a person can stop everything. The last layer is the one that makes the others accountable. Every tool call, approval and refusal is written to a log no one can edit. Evaluation suites run before a new model or prompt is deployed, so a change in behavior is caught in testing and not by a customer. And there is always a stop: a person can halt a run, or the whole system, in one action. Without this layer the other guardrails are promises. With it they are evidence. Two numbers from the reviewers say whether the review itself is still real: how often they override the agent, and how long they take to decide. Singapore’s framework for agentic AI (IMDA, 2026) names both.