Skip to content
Runtime guardrails

Runtime guardrails: rules your AI agent cannot override.

A prompt guardrail is an instruction the model is trusted to follow. A runtime guardrail is a control the model cannot override: it lives outside the agent, screens every action before it executes, and on Linux enforces the rules in the kernel, below the process. It holds when the prompt doesn't.

Where the rules live
model context

Prompt rules ride here. So does poisoned input.

agent process

Proposes commands, file touches, and MCP/tool calls.

InnerWarden

Screens every action here, outside the agent, before it executes.

operating system · kernel

Enforcement on Linux: a refused binary never runs.

One poisoned file can rewrite an agent's intentions. It cannot rewrite the kernel.

How they work

Three layers: screen, enforce, prove.

InnerWarden implements runtime guardrails as three layers on the machine where your agent works. Each one catches what the layer above misses.

layer 1 of 3

Guard: screen every action before it runs

Every command, file touch, and MCP/tool call your agent proposes is screened and risk-scored before it executes. Shell commands go through the parsed-command analysis; MCP tool calls are checked against the ATR rules (85 vendored, 76 loaded in the proxy). Dangerous ones are denied, ambiguous ones go to you, normal work flows untouched.

layer 2 of 3

Enforce: refuse what was never allowed

On supported Linux hosts, with Pro or Enterprise, enforcement lives in the kernel itself. A binary not on the agent's allowlist, launched by a hijacked agent, is refused by the operating system before a single instruction runs. There is no prompt that argues with a denied exec.

layer 3 of 3

Prove: keep evidence of everything it did

Every decision is recorded on your machine. With Pro or Enterprise that record is a hash-chained, tamper-evident audit trail: evidence for you, your customer, or your auditor, and it never leaves your infrastructure.

Prompt vs runtime

Keep the prompt rules. Do not make them the last line.

Why prompt-only guardrails fail

Prompt rules travel inside the model's context, which is exactly the surface an attacker controls through poisoned files, web pages, and tool output. When the context is compromised, the rules go with it. Runtime guardrails sit outside the compromised context: the agent proposes an action; the guardrail decides whether it runs.

Use both. Trust one.

Prompt guardrails still make agents behave better on the happy path, keep them. The mistake is trusting them as your last line. The last line has to be something a compromised agent cannot talk to: a screened action queue and, on Linux, the kernel itself.

Short answers

Setting the guardrails, answered briefly.

How do you set runtime guardrails for an AI agent?
Put the control outside the agent, on the machine it works on. With InnerWarden you install the free Community core in one command and connect your agent; from then on every shell command and MCP/tool call is screened before it runs. It starts in monitor mode, so you first see what would have been denied and tune before anything is blocked. On Linux, Pro adds the kernel Execution Gate: a binary not on the agent's allowlist is refused before it runs.
Can I limit an AI agent with iptables, SELinux or auditd?
Yes, and they are worth having: iptables limits where the agent can connect, SELinux or AppArmor limit what its process may touch, and auditd records what ran. None of them reads what a command means, and writing a tight policy for an agent that runs new commands every hour is hard. InnerWarden adds that layer: it screens each command and tool call by what it does, and on Linux the Execution Gate is an eBPF LSM program that runs next to SELinux or AppArmor, not instead of them.
Get started

Put a control the model cannot override in front of your agent.

Start free. Prefer to see it work first? Watch one block an attack.

The three layers, in short
  • screenEvery command, file touch, and MCP/tool call checked before it executes.
  • enforceOn supported Linux hosts (Pro or Enterprise), a binary not on the allowlist is refused by the kernel before a single instruction runs.
  • proveA local decision record; with Pro or Enterprise, a hash-chained, tamper-evident audit trail that never leaves your infrastructure.