The approval workflow for AI agents, ready to drop in
You shouldn't have to rebuild a queue, routing and an audit trail for every agent you ship. ClearedBy is the approval workflow for AI agents as one drop-in: your policy clears the routine in milliseconds, a named person handles the rest, and each verdict is sealed to the record.
The problem
Give an agent the power to run refund.create or content.publish and you've signed up to build an approval step. A hold. A notification. Somewhere to say yes or no. Some guarantee the agent can't just go ahead anyway. Fine, once. Then the next agent needs it, and code.deploy needs different rules from payout.send, and the logic is buried inside each tool. Now you're maintaining five half-workflows that drift apart.
The part that bites is the part everyone skips. Blocking the call until there's a real verdict, an unforgeable record of who said yes, a credential the agent can't mint for itself. That plumbing is dull to write and easy to defer, right up until a £4,000 refund clears at 2am and someone asks who approved it. The honest answer, usually, is nobody, and there's nothing to show.
How ClearedBy handles it
-
01
Wrap the action, not the agent
Drop in the request_clearance MCP tool, or put guard() around any function. The agent sends what it wants to do and the context with it. The call sits there until a verdict comes back, so nothing acts on a maybe.
-
02
One policy decides
You write the rules once and they cover every action type: refund.create over £500, any code.deploy that touches payments, a payout.send to a new account. Routine calls clear in milliseconds. The few that trip a threshold or look off get held and routed to a named reviewer.
-
03
A person clears what's held
Held items land in a fast keyboard-driven queue, on mobile, or in Slack. Approve, reject, or send back for a fix. Only after a clear does the agent get a short-lived credential to do the thing, so there's no way around the gate.
-
04
The verdict gets sealed
Cleared, auto-cleared or rejected, every action is written to a tamper-evident, hash-linked record bound to the person who signed it. When the question comes a month later, the answer is already there.
import { ClearedBy, RejectedError } from '@clearedby/sdk'
const cb = new ClearedBy({ apiKey: process.env.CLEAREDBY_API_KEY! })
try {
await cb.guard(
{ action: 'refund.create', params: { order: 'SO-4471', amount: 842, currency: 'GBP' } },
() => shopify.refund('SO-4471', 842), // runs only once cleared
)
} catch (err) {
if (err instanceof RejectedError) console.log('blocked:', err.result.reason)
else throw err
}
FAQ
Why not just build the approval workflow myself?
You can, and the queue is the easy bit. The hard parts are blocking the call until a real verdict, a tamper-evident record tied to the signer, and a credential the agent can't issue itself, repeated for every agent and action type. ClearedBy is that whole thing as a drop-in, so one policy covers refunds, deploys, payouts and the rest with no plumbing to keep alive.
Does a single workflow really handle every action type?
Yes. You set thresholds and rules per type, but refund.create, content.publish, payout.send and code.deploy all run through the same queue, routing and record. Add a new action and it inherits the workflow instead of needing its own.
Won't an approval workflow slow my agents down?
Only on the calls you choose to hold. Anything inside your policy auto-clears in milliseconds with no person involved, which is the large majority of traffic. The small share that breaks a threshold or looks anomalous is the only thing that waits.
What stops the agent acting while a call is held?
The request_clearance call blocks until there's a verdict, so the agent waits rather than acting and apologising. It only receives the short-lived credential to perform the action after a clear, so a jailbroken or confused agent still can't slip past.
Can I try the approval workflow without blocking anything?
Start in shadow mode with no card. Every action is scored against your draft policy and recorded, so you see exactly what would have held before a single call is ever stopped. As the evidence builds, ClearedBy proposes loosening rules that have proven safe, so review shrinks over time.
Related use cases
Let your agents run. Inside the rules you set.
You shouldn't have to rebuild a queue, routing and an audit trail for every agent you ship. ClearedBy is the approval workflow for AI agents as one drop-in: your policy clears the routine in milliseconds, a named person handles the rest, and each verdict is sealed to the record.