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.
Prompt rules ride here. So does poisoned input.
Proposes commands, file touches, and MCP/tool calls.
Screens every action here, outside the agent, before it executes.
Enforcement on Linux: a refused binary never runs.
One poisoned file can rewrite an agent's intentions. It cannot rewrite the kernel.
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.
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.
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.
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.
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.
The best of what we've written on this.
Runtime guardrails, not prompt guardrails
The thesis: why the safety layer cannot live inside the thing being tricked.
ReadWhat happens when an AI agent gets hacked
The attack chain from poisoned input to shell, step by step.
ReadYour AI agent needs a bodyguard
How out-of-process guarding works in practice.
ReadShort 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.
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.
- 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.