Vaikora › Blog › Product Updates
What actually happens when an AI agent action is blocked, modified, or held for approval at runtime
The question security engineers ask most often about AI agent control is not "can you block a bad action" but "what exactly happens to the agent when you do." The answer depends on where enforcement sits and what decision the policy engine returns.
Vaikora sits inline between an AI agent and every LLM call or tool invocation it makes. Before the action executes, Vaikora evaluates it against policy and returns one of four deterministic decisions: allow, block, modify, or require-approval. Each path produces a different runtime outcome, and each decision is written into a SHA-256 hash-chained audit log regardless of which path is taken.
What "inline" means in practice
When an agent calls a tool, the call goes to the Vaikora gateway first. The gateway inspects the request through six content inspection modules, checks it against the active policy set, and returns a decision. The agent receives the result of that decision, not the raw response from the tool. This is not monitoring after the fact. The gate sits before execution.
At P50 the enforcement decision adds 8ms. At P99 it adds 45ms. At scale the gateway handles more than 10,000 actions per second. For most agent workflows these numbers are operationally invisible.
The four decision paths
Allow passes the action through without modification. The event is still logged.
Block returns a structured refusal to the agent. The agent sees a denial, not a timeout or an error. If the agent is designed to handle refusals, it can reason about the block and choose a different path. If it is not, the chain stops. Either way, the blocked action never reached the LLM or the tool.
Modify rewrites the payload before it reaches the destination. A common use case: an agent constructs a database query that includes a field it is not authorized to return. Vaikora strips that field from the query and passes the modified version downstream. The agent receives a valid response. The unauthorized field never moved.
Require-approval holds the action in a queue and routes it to a human reviewer. The agent waits. The reviewer sees the full action payload, the policy that triggered the hold, and the agent context at the time of the call. They approve or deny. If they approve, execution resumes. If they deny, the agent receives a structured refusal. This path exists specifically for high-consequence actions where a deterministic policy cannot safely resolve the case without human judgment.
A concrete scenario
Consider an AI agent built to summarize customer support tickets. It has read access to a CRM and write access to a ticketing system. During a session it starts constructing a query that would return payment card numbers alongside ticket content. That query triggers a PCI-DSS preset policy in Vaikora.
Vaikora modifies the query to exclude the card number field before it reaches the CRM. The agent receives a response without that field and continues summarizing. No card data moved. No alert fired, no incident opened, no human involved. The modification is logged with the full before-and-after payload, the policy that triggered it, and a timestamp signed into the audit chain.
If that same agent later attempts to write a summary file to an external storage endpoint outside the approved destination list, Vaikora blocks the write entirely and returns a structured refusal. The agent logs the failure. The audit record shows the blocked destination, the payload that was attempted, and the policy rule that applied.
Why the audit chain matters for compliance
Every decision, allow, block, modify, or require-approval, produces a signed entry in a tamper-evident log. The SHA-256 hash chain means that any post-hoc alteration of a log record is detectable. For teams working under HIPAA, PCI-DSS, GDPR, SOC 2, or ISO 27001, this gives an ordered record of what every agent attempted, what policy decided, and what actually executed.
Compliance presets for all five of those frameworks ship with Vaikora out of the box. For teams that need custom policy, the control plane accepts rule definitions without requiring SDK changes. Vaikora supports 12 LLM providers in the same configuration.
What to verify in your own setup
If you are evaluating or running an AI agent control layer, check these things specifically:
- Does enforcement happen before execution, or does the system log and alert after the fact?
- Can you inspect the before-and-after payload for a modify decision in the audit log?
- What does the agent receive when an action is blocked? A structured response, an error, or a timeout?
- Does the approval workflow capture the full action context, not just a summary?
- Is the audit log tamper-evident, or is it a flat log file that can be edited?
Those five questions will tell you whether you have a control layer or a monitoring layer. The distinction matters when something goes wrong and you need to demonstrate to an auditor what the agent did and what policy stopped.
See Vaikora enforce policy on your AI
Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.
Get a demo Self-host the gateway
Vaikora