VaikoraVaikora

Vaikora › Blog › Product Updates

LLM policy enforcement: how an allow, block, modify, or require-approval decision actually gets made

Product Updates · Dec 1, 2026 · 4 min read

Every enforcement gap in an LLM policy system comes back to the same structural problem: the check happens after the action, or the check happens on a copy of the request, not the actual one. Neither gives you control. Both give you telemetry.

The question worth asking is not whether you have a policy. It is whether your policy is in the execution path.

What "inline" means and why position matters

An inline enforcement point sits between the agent and the model or tool call. The request arrives at the gateway, the policy engine evaluates it, and the gateway either forwards, blocks, modifies, or holds it for approval. The model or tool never sees a request the policy engine did not process first.

Compare that to a sidecar or log-based approach. Those receive a copy of the request, often with a small delay, and their output is an alert or a report. By the time the alert fires, the tool call has already executed. That is detection, not enforcement. The difference is not semantic. A database write that completed before the alert fired is a completed database write.

Enforcement before execution is the only position that gives you control. Everything else gives you visibility.

The four decisions a policy engine makes

When a request arrives inline, the policy engine has four options, and only one is "let it through unchanged":

That four-way split matters because most content inspection problems do not fit cleanly into allow or block. A prompt that contains a customer email address is not automatically malicious, but it may need redaction before it leaves your environment. Modify handles that inline, without stopping the agent's workflow.

What the inspection modules actually check

Inside the gateway, each request passes through content inspection before the routing decision. The specific checks depend on configuration, but the categories are:

A concrete scenario: an agent is processing customer support tickets and passes a full ticket body, including an email address and account number, as context to an LLM. The gateway's content inspection module detects the PII, the policy engine issues a Modify decision, the redacted payload is forwarded, and the original text never reaches the hosted model. The agent receives the response and continues. No exception, no manual step.

Determinism and the audit chain

For enforcement to be auditable, the policy engine has to be deterministic. Identical input must produce identical output every time. If the decision can vary based on runtime state that is not captured in the log, you cannot reconstruct what happened during an investigation.

Vaikora writes every enforcement decision to a SHA-256 hash-chained audit log. Each record is signed into the chain at write time, so the sequence is tamper-evident and the records cannot be reordered or deleted without breaking the chain. The practical effect is that an investigation can replay the exact sequence of decisions made during an incident, with the payload state at each step, without relying on the memory of whoever was on call.

Enforcement throughput for the gateway runs at 10,000 or more actions per second, with P50 latency at 8ms and P99 at 45ms. For most agent workflows, the policy check is not the bottleneck.

What to verify in your current setup

If you have an LLM policy system in place, the check is straightforward. Find the enforcement point and ask: does the action execute before or after the check completes? If it executes before, you have detection. If it executes after, the policy document and the runtime behavior are not connected.

Then check whether Modify decisions are possible, or whether your system is binary. A binary allow/block system forces you to either block legitimate requests that contain sensitive data or let sensitive data through unredacted. Neither is the right answer for most production agent workflows.

Finally, pull a sample of audit records and verify whether they contain the payload state at decision time, not just the action name and timestamp. A record that says "tool call blocked" without the payload is not usable in a post-incident investigation.

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

More from the Vaikora blog