Governance used to have a human buffer
For most of the short history of enterprise AI, the output of a model was text. A person read the summary, the draft or the recommendation, and then decided what to do with it. Governance could afford to work after the fact, because a human stood between the model and the consequence. Logs, evaluations and reviews caught problems before they mattered, or soon enough that they rarely did.
Agents remove the buffer. AI agents are no longer only generating responses, they are executing decisions. An agent with tools does not hand you a recommendation to issue a refund. It issues the refund, updates the customer record, sends the message and moves the file. The output is the action.
That changes what “after the fact” means. When the output was text, after the fact still meant before anything had happened in the world. When the output is an action, after the fact means after the customer, the ledger or the downstream system has already felt it. We saw the sharp end of this in October, when US banks found AI agents operating inside customer accounts using credentials customers had handed over themselves.
In-flow vs after the fact governance: where the decision sits in time
Agentic AI governance can make its decision about an agent’s action at one of two moments.
After the fact, a control observes what the agent did through a trace, a log entry, an alert or an evaluation score. It can tell you that something went wrong, how it went wrong, and how often. It can trigger a rollback or a review. What it cannot do is change the action, because the action is already done.
In-flow, a control sits in the agent’s execution path and evaluates the action before it executes. It can let the action run, hold it for a person, or stop it. Then it records the decision.
Five practical differences follow from that one difference in timing. An after the fact control makes its decision once the action has executed, while an in-flow control makes it before the action executes. The first can change what happens next through alerts, reviews and rollbacks, and the second can change whether this action runs at all. The first produces a record of what happened, and the second produces a decision together with a record of it.
When a rule is broken, the first tells you so and leaves you to clean up, while the second holds the action for a person or refuses to run it. They also ask different things from you, because one needs access to your logs and traces, and the other needs a control point inside each agent.
Neither approach is a bad idea. AI agent observability is how you debug agents, measure quality, track cost and investigate incidents. You need it. The point is narrower, which is that it cannot promise prevention, and buyers sometimes hear prevention when a vendor is describing visibility. If you are weighing the two directly, our earlier post on what separates monitoring from governance goes further.
A standard body has landed in the same place. The OWASP GenAI Security Project published the Top 10 for Agentic Applications on 9 December 2025, and tool misuse sits second on that list as ASI02, covering an agent that uses a legitimate tool in a way nobody intended. Among the mitigations OWASP lists are validating a tool’s arguments before execution and requiring explicit confirmation for destructive actions. Both of those are decisions that have to be made before the tool runs.
Is a gateway not already “before” the action?
This is where the question gets sharper. An LLM gateway sits on the network path between an agent and its model provider. It can check a prompt before the model sees it, check a response before the agent gets it, and block either one. That is a genuine “before”, and an AI gateway of that kind is a useful piece of infrastructure to own.
But before what? With function calling, the model does not run the tool. It returns a request to call it, with arguments, and the application executes the code and sends the result back. OpenAI’s function calling guide describes exactly this flow, with the execution step happening on the application side.
So the LLM gateway decides before the model’s answer reaches the agent. The action itself, the tool call that issues the refund or writes to the database, is carried out afterward by the agent’s own code, in a place the gateway does not see unless that tool is routed through it too.
This is not a controversial reading of the category. Gateway vendors describe the same boundary in their own words, which is that an AI gateway governs the model call and has no visibility into the tool call. Once agents reach databases, message queues and MCP servers directly, a second governance problem opens that the gateway was never built to close.
That is why “before or after” needs a second half, which is before or after what. A control can only decide before an action if the action passes through it.
The proof point: what “after” really means
Here is how we put it, and we think it holds whoever you buy from. LLM gateways, AI agent observability platforms and output guardrails all operate outside the agent’s runtime execution. For actions the agent carries out itself, by the time they observe what happened, the action has already occurred.
Picture a refund agent. An after the fact control sees a $5,000 refund in a trace, flags it as above policy, and opens a ticket. Finance reverses the refund, if it can be reversed, and someone explains it to the customer. An in-flow control sees the same refund before the tool fires and holds it for a supervisor. Same policy, same agent, same data. The difference is when the decision is made, and that difference decides the outcome.
When does the timing question become urgent?
Not every agent needs in-flow control on day one. An agent that searches, summarises and drafts for a person who then acts still has a human buffer, and after the fact review is often a reasonable fit there. Agentic AI risk management does not have to start with the heaviest control available.
The moment to act is the design review for the first agent that can change something on its own, whether that is issuing a refund, updating a record, messaging a customer, or writing to a queue or a file. From that point on, every after the fact decision costs as much as the action it missed. Ask the timing question then, before that agent reaches production, not after its first incident. That is also the point where agentic AI risk management stops being a policy document and starts being an architecture choice.
Four questions to put to any vendor at that review, including us.
- When is the decision made? Before the action executes, or after it is logged?
- Which actions pass through the control point? Tools that run inside the agent, or connect straight to databases, message queues and file systems, are easy to miss.
- What can the decision be? Yes or no is a start. Can it hold one action for a named approver, then let the agent carry on where it stopped?
- What does the record show? What happened, or also which policy applied and who approved it?
How we answer the question
We built AgentPatrol™ around the “before” answer. It is meshIQ’s agentic AI governance product for AI agents, and it runs inside each agent’s execution path, checking every action against policy before it runs. Policy is set at the level of the action and enforced before that action executes, rather than applied to a record of something that already happened.
Here is how that maps to the four questions.
- When: Tool calls are intercepted at the point the agent tries to fire them, which is before the call reaches the system on the other side.
- Which actions: Because AgentPatrol runs inside the agent, it can check every action however it is carried out, including tools that go straight to databases, queues and file systems.
- What the decision can be: Policies read the actual values inside each tool call, not only the name of the tool being used. Take an agent that provisions access during employee onboarding. It can grant read only access to a reporting dashboard on its own, ask the requester to confirm before adding someone to a production support group, and wait for a named approver before handing out administrator rights on a payments system. The decision turns on what is inside the call, which here is the role and the target system, rather than on the fact that a provisioning tool was used at all.
- What the record shows: Every decision is recorded, so you can show exactly what an agent did, which policy applied and who approved it.
In-flow governance asks something of you in return. It has to run inside each agent, so it depends on framework support, and we set out why we chose to govern the frameworks teams already use rather than build another one in our whitepaper on governing AI agents in enterprise environments. It also does not replace your after the fact tooling. Keep your traces and dashboards, because in-flow governance makes the decision and AI agent observability helps you understand what happened.
See how in-flow governance works
Frequently asked questions
In-flow governance means a control that runs inside an AI agent’s execution path and evaluates each action against policy before that action executes, so it can allow the action, hold it for a named approver, or stop it. Governance that works after the fact can only record what has already happened.
An LLM gateway sits between the agent and the model and governs the model call. It does not see a tool call that the agent’s own code executes, such as a write to a database or a message queue, unless that tool happens to be routed through it. In-flow governance runs inside the agent, so it sees every action however it is carried out.
No. AI agent observability tells you what an agent did and how often, which makes it essential for debugging, cost tracking and incident review. Agentic AI governance decides whether an action is allowed to run at all. Most enterprise stacks today have the first and not the second.
Tool misuse is the second entry on the OWASP Top 10 for Agentic Applications, published on 9 December 2025, and it covers an agent using a legitimate tool in a way nobody intended. Among the mitigations OWASP lists are validating a tool’s arguments before execution and requiring explicit confirmation for destructive actions.
It does not have to. Because policies read the actual values in each tool call, low risk actions run on their own and only high impact ones wait for a person.
meshIQ is running 30 day proofs of concept on customers’ own agents and frameworks. Contact us to learn more, or read the AgentPatrol™ product overview.