Blog
An AI guardrail can arrive too late

An AI answer appears word by word on screen. It feels fast. Halfway through, a control decides that the output should not be released. The rest is blocked, but the first part has already reached the user. The guardrail worked, just not in time for the requirement you actually had.
This is not a theoretical detail. On 18 November, Databricks made streaming evaluation the default for output policies in the Unity Gateway Service Policies beta, including existing policies. Approved text can be released while the model is still generating. If a later check denies the response, text already released stays with the client. If your requirement is that nothing leaves before the complete response passes, you need full response evaluation. [1][2]
A day earlier, Microsoft announced Agent Grid in public preview. Its focus is central policy for traffic among agents, models, tools and external services, enforced outside the agent's trust boundary. [3] These are different releases, but together they expose the same architecture question: where is your control, and what may already have happened when that control finds a problem?
A policy is not yet a guarantee
The word guardrail sounds reassuring. In an architecture review, I would be more precise. Which event is inspected? Does that happen before the model call, during the response, after the response or before a tool action? And what does blocking mean at that exact point?
Databricks separates input checks before a service is invoked from output checks after it responds. For streaming output, text is evaluated in overlapping windows. A short tail is held temporarily, but the documentation explicitly says this does not guarantee that sensitive content cannot reach the client. Evaluation also has a cost: longer streams can trigger multiple evaluator calls and therefore add latency and token usage. [2]
The right setting therefore depends less on what looks fastest and more on what is irreversible. A low-risk internal summary may allow streaming. An answer containing personal data, contract information or a formal decision may require full buffering. For a tool that deploys code or deletes a record, output checking is already too late if the action has happened.
Design per boundary, not per product
Imagine an agent preparing a change to a data platform. It reads a ticket, asks a model for a plan, retrieves metadata through an MCP server and can then update a pipeline. This is a design example, not a customer story. One general ‘AI safety’ switch does not cover that flow.
- Before the model call: remove or block data that may not cross the model boundary.
- Before retrieval: enforce the requester's rights and data scope, not only those of the application.
- Before a tool call: check the tool, parameters, destination and mandate for this task.
- Before an irreversible action: require deterministic approval or human confirmation.
- After the action: record identity, intent, decision and outcome in logs the agent cannot alter.
For Agent Grid, Microsoft describes FQDN and URL filtering, granular MCP tool policies and identity-based encrypted connections for supported Azure environments. More important than the feature list is the enforcement point: outside the agent, without letting agent code manage its own rules. It is still a preview, so supported environments, limitations and rollout status belong in the technical decision. [3]
Do not let the model decide its own authority
NIST published a useful design tenet in late October: policy should be architecturally separate from reasoning. A model may propose what should happen, but an independent and preferably deterministic layer decides what is actually allowed. NIST also states that guardrails alone are insufficient and combines separation with agent identity, least privilege, continuous monitoring and independent evidence. [4]
That distinction prevents a common mistake. A prompt saying ‘do not share confidential information’ guides behaviour; it is not access control. A second model judging the output remains probabilistic. Those checks can be useful signals, but they should not be the only boundary protecting money, production, identities or sensitive data.
Microsoft expressed the same direction through transparency this week: organisations should be able to see what AI was authorised to do, what happened between request and outcome, and whether that can be independently verified. The announced components have different statuses, including preview and limited preview. This is a direction and product roadmap, not proof that the complete problem is solved. [5]
Four questions for your next architecture review
For every agent flow, I would put four questions on the table. First, what is the irreversible step? Second, which information or action must not pass before that point? Third, is enforcement outside the component that may reason incorrectly? Fourth, what evidence remains to reconstruct what was authorised and executed?
Then build a small test matrix. Test more than the happy path: include a prompt containing sensitive data, a tool call with changed parameters, a slow or unavailable external policy and a response that crosses the boundary only near the end. Check what the user can already see, which action has already started, how the client handles a block and which logs are actually available.
Measure the cost of your control as well. Full buffering increases perceived waiting time. Streaming evaluation may call an evaluator more often. Fail-closed policy may reduce availability when an external guardrail fails. These are not reasons to remove controls. They are architecture trade-offs that need an explicit decision.
A guardrail is only strong when you know exactly what it stops, when it stops it and what can no longer be undone by then.
Linda Bujitu
Partner Solution Architect · Microsoft
Keep reading
Want to know more about my work and the choices behind data and AI platforms?
Join the conversation
Share your experience or ask a question. Keep it respectful and relevant.
Your comment stays with this article until you request removal or it is removed for spam or abuse. Stored with Vercel. For removal: contact me.