Vaikora › Blog › Product Updates
What runs between your AI agent and the LLM call, and why that gap is where control actually lives
Ten milliseconds is long enough to block a database write, redact a secret, or deny a tool call entirely. That is roughly the median enforcement decision time for an inline AI runtime gate, and it is the entire window in which you can still stop something from happening rather than detect it afterward.
Most teams do not think about agent security at this resolution. They think about it at the policy level: rules in a document, guardrails in a system prompt, role bindings in IAM. Those controls matter, but none of them sit on the call path. By the time an agent has composed a tool request and fired it, IAM has already answered "is this identity allowed?" It has not answered "should this specific action execute with these specific parameters, right now, against this specific resource?"
Where the enforcement gap actually is
An AI agent operates by planning, then calling. The plan is text. The call is an action with a target, a method, and parameters. The gap between those two things is where runtime enforcement belongs.
An inline policy engine intercepts the call before execution, evaluates it against a policy, and returns one of four decisions: allow, block, modify, or require approval. That decision happens before the downstream system sees the request. If the decision is block, the tool never executes. If it is modify, the payload is rewritten in transit. If it is require approval, the action queues for a human.
This is different from logging. A log tells you what ran. An enforcement point decides what runs.
What the inspection actually covers
A meaningful runtime gate does not check the action type alone. It checks the full call context:
- Identity: which agent, which session, which user principal initiated the request
- Target: what resource or endpoint the action points to
- Parameters: the actual values in the payload, not just the method signature
- Data content: whether the payload contains PII, credentials, secrets, or other policy-scoped content
- Behavioral context: whether this call is consistent with prior calls in the session, or anomalous
The parameter level matters more than most teams expect. An agent might have permission to call a file-write tool. That permission says nothing about whether the destination path is a credential store, whether the content being written includes tokens scraped from a prior step, or whether the write volume is consistent with the declared task. Parameter-level inspection is what separates a gate from a firewall rule.
A concrete scenario
Suppose a coding agent has permission to read source files and open pull requests. During a session, it starts calling a secret-scanning tool with output piped to an external webhook. The tool call itself is authorized. The destination endpoint is not in policy. The payload contains strings matching credential patterns.
A detection-after-the-fact approach catches this in the SIEM after the exfiltration completes. An inline enforcement point catches it at the moment the outbound call is constructed, blocks the action, writes a signed record to the audit chain, and can push a threat indicator into CrowdStrike Falcon or SentinelOne for correlated response. The agent never reaches the webhook.
That is not a monitoring outcome. It is a prevention outcome.
Throughput and latency as operational constraints
Runtime enforcement only works if it is fast enough that teams do not route around it. At P50, the decision should be imperceptible. At P99, it should still fall within the response-time budget of the agent framework calling it.
Vaikora enforces at P50 8ms and P99 45ms, at throughputs above 10,000 actions per second. Those numbers mean the enforcement point can sit inline on production agent traffic without becoming a bottleneck that teams disable under load.
What the audit record needs to capture
Every enforcement decision should write a record that includes the full action, the policy that matched, the decision, the agent identity, the session, and a timestamp. That record should be tamper-evident. Vaikora chains each decision entry with a SHA-256 hash, so any modification to a prior record breaks the chain and is detectable.
That matters for investigation. If an agent did something unexpected three weeks ago, you need to replay exactly what the enforcement point saw, not a summarized log of what ran.
What to check in your current setup
Look at your agent framework and find the moment a tool call is composed. Ask whether anything sits between that call and execution that can read the full payload and make a deny decision. If the answer is "IAM checks identity" or "the system prompt includes instructions," that is policy, not enforcement.
The practical next step is to trace one production agent session end to end and identify every outbound call it makes. For each one, ask: could this call be blocked, modified, or queued by a control that sits inline on the call path? If not, you have detection coverage but not enforcement coverage.
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