Concept / intent

AI agent guardrails the model can't talk past

Most AI agent guardrails are a paragraph in a system prompt, and a prompt is a suggestion. ClearedBy puts the limit outside the agent: the action doesn't run until your policy clears it or a named person signs off.

cb.guard({ action }, fn)request_clearancerefund.createcontent.publishcode.deploy
cb.guard({ action }, fn) cleared SCheld → a person your policy decides

The problem

Write "never refund above £500" into the system prompt and you've described a preference, not a rule. The agent still decides whether to follow it. One poisoned support ticket in the context window, one confused chain of thought, one jailbreak pasted by a user, and the model reasons its way to a £900 refund.create or a content.publish that should never have gone out. You usually find out from the logs, after the fact.

A bigger model doesn't close that gap, and neither does a longer prompt. Every instruction you add lives in the same place the attacker is already talking to. The guardrail has to sit somewhere the agent can't rewrite: a gate that the action passes through before payout.send or code.deploy ever touches anything real.

How ClearedBy handles it

  1. 01

    The agent calls the gate before it acts

    Wrap a sensitive tool with guard(), or hand the agent the MCP request_clearance tool. The real action only exists on the other side of approval, so there's nothing for the model to reason around.

  2. 02

    Your policy clears the routine and stops the rest

    You write the rules in plain terms: refunds under £200 on orders newer than 30 days clear in milliseconds, anything bigger or stranger gets held. An action type nobody wrote a rule for fails to a human, never to auto.

  3. 03

    A named person signs off what's held

    Held actions hit a queue, a Slack message, or a phone. Only after a real human clears it does the agent get a short-lived credential to act, so a fully compromised agent is still holding nothing it can spend.

  4. 04

    Every verdict is sealed to whoever signed

    Cleared, held, rejected, sent back: each outcome is hash-linked into a tamper-evident record and bound to the person who signed with a passkey. When someone asks who approved the £4,000 payout, there's an answer you can prove.

Wrapping a tool so the limit lives outside the agent
import { ClearedBy } from '@clearedby/sdk'
const cb = new ClearedBy({ apiKey: process.env.CLEAREDBY_API_KEY! })

// the limit lives in policy, not in the agent's prompt
await cb.guard(
  { action: 'payout.send', policy: 'finance-ops',
    params: { amount: 4000, currency: 'GBP', to: 'acct_8821' } },
  () => payout.send('acct_8821', 4000),   // runs only if policy + a human clear it
)

FAQ

How is this different from guardrails in my system prompt?

A system prompt sits inside the agent, so the agent can be argued, tricked, or jailbroken past it. These guardrails sit outside: the gated action can't run until your policy clears it or a person signs off, whatever the model talks itself into.

Can a prompt injection slip past the gate?

It can change what the agent wants. It can't mint the short-lived credential, because that only appears after approval. A poisoned context will make the agent ask for a bad action, then the ask just sits in the queue.

Won't a hard guardrail block my agent all day?

No. Only the consequential few percent ever wait. You decide which actions and limits are safe, everything inside the lines clears instantly, and you can start in shadow mode where nothing is held while you watch what the rules would have done.

What stops the agent from approving its own request?

The requester and the approver are kept separate on purpose. An agent's API credential can open a gate but can never close one. Only a named human, signing with a passkey, can clear a held action.

Do these guardrails loosen as the agent earns trust?

Yes. Once the record shows a rule getting approved unchanged again and again, ClearedBy proposes loosening it, a human ratifies that on the ledger, and the share going to review keeps shrinking.

Related use cases

Let your agents run. Inside the rules you set.

Most AI agent guardrails are a paragraph in a system prompt, and a prompt is a suggestion. ClearedBy puts the limit outside the agent: the action doesn't run until your policy clears it or a named person signs off.