November 30, 2026

AI Policy vs. Guardrails: Controls for Agents That Act

AI Policy vs. Guardrails

Key Takeaways

  • Guardrails check what an agent says, screening what goes into the model and what comes back. Policy decides what an agent does, allowing or blocking a tool call before it runs.
  • When an agent can act, the decision has to happen between the model producing a tool call and the tool executing. After that, the action has already run.
  • No detector catches everything. A limit on the action holds, however the attack is worded, so limits that must hold every time belong in policy, paired with guardrails.
  • To identify your risk profile, separate conversational systems from those executing functions, verifying if controls evaluate each operational call prior to execution.

“AI policy” means three different things, depending on who is searching. For some readers, it means a government’s AI regulation, such as the EU AI Act. For others, it means a company’s internal AI usage policy: the rules that tell employees which AI tools they may use and what data they may put into them. For security and platform teams, it increasingly means a technical control, a rule that decides what an AI agent is allowed to do. Everything below concerns the third meaning: policy as a control on agent actions, and how it differs from guardrails.

What Is the Difference Between Guardrails and Policy for AI Agents?

Guardrails check what an AI agent says, screening what goes into the model and what comes back out. Policy decides what an agent does, allowing or blocking a tool call before it runs.

For a simple model, such as a chat assistant, guardrails cover most of the risk, because its worst output is a sentence a person reads. An agent that can call tools ends its turn with an action: a refund issued, an email sent, a record changed. Guardrails were built to judge language. An action, on the other hand, needs a decision of its own, made before it executes.

One Refund Agent, from Answer to Action

Take a customer service agent for an online retailer. In its first version, it answers questions. A customer asks whether order 4471 can be refunded, and the agent replies that the order is inside the 30-day window and eligible for a $240 refund. A support rep reads the reply and processes the refund in the billing system. If the agent got the window wrong, the rep catches it, or the customer gets a correction. The mistake costs just a follow-up message.

In the second version, the model, the system prompt, and the conversation are identical. The only addition is a tool: issue_refund(order_id, amount, payment_method). Now the agent’s turn ends with a function call, and the function moves $240 to a card. If the agent got the window wrong, the money has moved before anyone reads anything.

The sequence in the second version has three steps:

  1. The customer’s message arrives.
  2. The model reasons and produces a tool call with arguments.
  3. The tool executes against the payment system.

The decision has to happen between steps 2 and 3. At that point, the model has stated its intent, a specific call with specific arguments, and the payment system has not received it. It is the last moment at which anything can stop the refund. After step 3, the team is reconciling transactions and requesting chargebacks.

Guardrails and policy look at different things at that moment. Guardrails have already screened the customer’s message and will screen the reply. Policy evaluates the call itself: which tool, which arguments, which agent is calling. Rules for this agent might read:

  • Block issue_refund when the amount exceeds $500.
  • Block issue_refund when the payment method differs from the one used on the original order.
  • Block a second refund on an order that already has one.

When a rule blocks the call, the refund does not run. The application decides what happens next, typically sending the case to a person on the support team.

Guardrails Check What Is Said

Guardrails screen content in both directions. On the way in, they look for prompt injection: text written to override the agent’s instructions, whether a user typed it or it was planted in a document, web page, or email the agent reads. On the way out, they look for problems in what the model produced, such as personal data that should not appear in a reply or a log.

In the Lumenova AI platform, prompt-injection and personal-data detection run on models inside your own cluster, with no external calls.

Detection does a lot well. It catches many injection attempts, especially those that follow known patterns. It stops a customer’s card number or home address from surfacing in a reply another person will read. It cuts down how often a manipulated instruction reaches the model at all. For any agent whose output is text a person reads, guardrails are the main control.

Policy Decides What Is Done

A policy rule evaluates a tool call before the tool runs and returns one of two outcomes: allow or block. Lumenova AI’s AI Policy Engine enforces these rules in two places: inside the application where the Lumenova SDK is installed, and at the AI Gateway for agent traffic routed through it. The Lumenova AI Platform holds the policy and the approved use cases, and the AI Gateway checks the traffic routed through it against them.

The engine allows or blocks. What happens to a blocked call afterwards, such as opening a ticket for a person to handle, is up to the application.

A Limit on the Action Doesn’t Depend on Recognizing the Attack

Every detector makes a judgment about language, and language can be rewritten. An injection can be translated into another language, split across several turns, hidden in a footnote of an uploaded claim form, or encoded. Detection models improve, and attackers adjust in response. No detector catches everything, and real agentic AI security incidents show what happens once an agent’s action runs unchecked.

A limit on the action works differently. Suppose an insurer’s claims agent can send email, and a rule says it may not send email to any domain outside the company’s own. An attacker plants an instruction in a claim document telling the agent to forward the claimant’s file to an outside address. The guardrail may flag the instruction or miss it. Either way, when the agent produces a send_email call addressed to an outside domain, the rule blocks it. The rule never has to understand the request. It reads one field on the call, the recipient domain, and no rewording of the request changes what that field must contain to pass.

This is tool misuse: a prompt injection turns a legitimate tool into a route for data exfiltration. We map it against the OWASP and NIST frameworks in our breakdown of agentic AI risks.

That is the case for pairing the two. Guardrails reduce how often a malicious instruction reaches the point of action, and they keep sensitive data out of what people read. Where a rule covers the action, policy makes sure that when an instruction gets through anyway, the action it asks for still does not run. Because detection will sometimes miss, any limit that must hold every time belongs in policy on the action.

PwC makes the same point in its 2027 Global Digital Trust Insights, published October 1, 2026. Where an outcome should be correct every time, PwC writes, the agent’s output “should pass through a control the agent cannot influence … before it takes effect.” A policy rule on a tool call fits that description. It sits outside the model; it reads the call after the model has finished reasoning, and nothing the model writes can argue with it.

How Rules Are Set, Enforced and Recorded

Policy runs as a loop, and two limits apply at every turn of it.

  1. Your team writes the rule. It defines what an agent may do with a tool: an amount ceiling, an allowed recipient domain, a permitted record type.
  2. A person reviews it and switches it on. A rule goes live only when someone on your team has reviewed it and turned it on.
  3. The engine allows or blocks. Every covered tool call is evaluated before it runs.
  4. Blocks are recorded. Each one keeps the rule that decided it, the reason and the exact input it saw, so your team can explain any block and show a reviewer exactly why the action didn’t run. That record exists only for agents connected through the SDK or the AI Gateway.
  5. Your team adjusts. Patterns in the records shape the next rule, which again goes live only when a person switches it on.

The second limit has a practical consequence. An agent connected through neither the SDK nor the AI Gateway has no policy enforcement and leaves no record of a block. Finding those agents is part of the work.

Block records can serve as evidence when an agent is audited. A Strategic Guide to the Agentic AI Audit covers what auditors examine, from inventory and permissions to decision records.

Which of Your Agents Answer, and Which Act?

This vocabulary changes the question a security review asks of a build. Whether the content was filtered still matters. The question that decides the risk for an acting agent is whether anything decided on the action before it ran.

To sort your own estate, ask one question of each agent: when it is wrong, does a person read the mistake, or has an action already run?

Agent When it’s wrong Control that covers it
Internal policy Q&A assistant An employee reads a wrong answer Guardrails on input and output
Customer service agent with issue_refund Money moves Policy on the refund call, plus guardrails
Claims agent with send_email Claimant data leaves the company Policy on the recipient domain, plus guardrails
Operations agent with ticket and config write access A production system changes state Policy on each write call, plus guardrails

Then compare that list with the controls you have in place. If every agent in your inventory has guardrails and none has a rule deciding on its tool calls, the agents in the bottom three rows are your gap: by the time anyone sees their mistakes, the action has already run.

Close that gap while agents are being built, not after they ship. Why Retrofitting Agentic AI Guardrails Costs More Than Building Them breaks down where the extra cost comes from.

Map Your Agents Before the Next Review

The Agentic AI Security Center shows how Lumenova AI pairs guardrails on what agents say with policy on what they do. To sort your own agents into those that answer and those that act, and check which controls cover each, get the free AI Agent Security Evaluation Guide. It sets out what to test, what to enforce, and what proof to ask for, with a 14-question scoring checklist.

Frequently Asked Questions

For an agent that only answers, guardrails cover most of the risk. For an agent that calls tools, they reduce how often a bad instruction reaches the action, but they cannot promise the action won’t run. Limits that must hold every time need a policy rule on the tool call.

No. Detection catches many injection attempts early, especially those that follow known patterns, and keeps sensitive data out of replies. Policy limits what an agent can do when an attempt gets past detection. They cover different points of failure, so they work best together.

In the application where the Lumenova SDK is installed, and at the Lumenova AI Gateway for traffic routed through it. Agents connected through neither are not covered.

The call does not run. The application decides what follows, typically sending the case to a person. For agents connected through the SDK or the AI Gateway, the block is recorded.

No. A person on your team reviews each rule and switches it on.


Related topics: Banking & InvestmentConsumer GoodsHealth & Life SciencesInsuranceTelecommunicationsUtilities

Ready to Put This into Practice?

Turn what you’ve read into controls on your own AI agents.

Book your demo