AI agent guardrails: how to stop an action before it executes
A content filter checks what the agent says. A decision guardrail checks what the agent is about to do: it compares the action with its alternatives, measures how much evidence supports it, and returns approve, review or block. The rule that decides has to be fixed and written down, not another model with an opinion.
Two different things with the same name
Most of what is sold as “guardrails” today are filters: they detect personal data, toxic language or attempts to manipulate the model. They are necessary, but they do not answer the question a finance lead cares about: is this action the right one, and how sure are we?
When an agent proposes raising prices, cutting a budget or signing with a vendor, the risk is not in the text. It is in executing an option that is worse than another available one, or a reasonable option resting on evidence that falls short.
What a decision guardrail must do
| Requirement | Why |
|---|---|
| Compare against alternatives, including “do nothing” | An action is only good or bad relative to what could have been done instead. |
| Tie confidence to evidence | A model sounds equally sure with or without data. The cap has to be mathematical. |
| Verdict by fixed rule | If another model decides the verdict, the same case can get two answers. A rule always gives the same one. |
| Never approve blindly | If the action cannot be located in the analysis, the output is “review”, not “approve”. |
| Leave a record | Without a record there is no way to show later that the control existed. |
What it looks like in one call
The agent sends the action it wants to execute, the alternatives and the evidence it has. The policy is three thresholds you set.
curl -X POST https://verdika.pro/v1/verify \
-H "Authorization: Bearer vk_TU_CLAVE" \
-H "Content-Type: application/json" \
-d '{
"action": "Subir precios 20% a toda la base de clientes",
"alternatives": ["Subir solo a clientes nuevos"],
"evidence": [{"content": "El último aumento del 10% elevó el churn de 2.4% a 3.1%", "source": "CRM 2026"}],
"policy": {"min_confidence": 0.6, "min_margin": 0.1, "min_evidence_quality": 0.3}
}' The response carries verdict (approve, review or block), the reasons as stable codes, the confidence with its cap, the margin over the best alternative and the audit record id. Your agent executes only on approve.
The rule, in writing
In Verdika the model proposes the ranking of options and a fixed rule decides the verdict: block if another alternative beats the action by more than the minimum margin; review if it is the best but confidence, lead or evidence quality fall below a threshold; approve only if it clears all three. Confidence never exceeds the cap the evidence supports: 40% with no evidence and 85% at most.
What a guardrail does not do
It does not execute or prevent anything by itself: your agent has to honor the verdict. It does not replace system permissions, which are what truly limit what an agent can touch. And it does not guarantee the outcome: it documents that the decision was made informed. Use it before critical or irreversible actions, not at every step, because each verification takes as long as an analysis.
Put the brake in before the next critical action.
Create a key and try verification with your own case.
Read the API documentationFrequently asked questions
How is it different from a content filter?
The filter checks the text going into or out of the model. The decision guardrail evaluates the action the agent is about to execute against its alternatives and the available evidence.
Who decides the verdict?
A fixed, published rule over three thresholds set by the caller. The model proposes the ranking, but does not decide whether it is approved.
Can Verdika block the action by itself?
No. It returns the verdict and leaves the record; the agent or automation must be configured to honor it.
You may also find useful: MCP server for decision verification · Audit trail for AI agent decisions