How it works
A guardrail does not ask the model to try harder. It stands outside the generation and decides what happens next. It can block a tool call, rewrite a reply before the person sees it, or escalate the case to someone who is allowed to proceed. The check itself might be a classifier on the draft, a schema that rejects arguments, an allow-list of tools for this task, or a person in the loop. Any of those can be a guardrail. The model's wish to be helpful is not one, because that wish is what the check is there to overrule.
Place the check where the harm would happen. A refund cap belongs on the payment tool, not only in the system prompt. Organise the checks so each one has a named input and a named outcome: pass, rewrite, or escalate. Log which guardrail fired. A polite refusal the model wrote on its own is a different event from a guardrail that blocked a call the model had already chosen. Both belong in the trace, labelled as different things.
A worked example
A refund above £200 waits for a person
A retail assistant may refund an order through a payment tool.
The written rule says any refund above £200 needs a person.
A customer asks for £340 back on a damaged sofa.
The model correctly fills the refund call for £340 and is about to send it.
An allow-list check on the tool reads the amount, stops the call, and opens an approval for a payments clerk.
The clerk sees the order, the photos and the amount.
The model had already chosen the refund.
The guardrail, not the model's manners, is what held the money.
If that check were only a sentence in the prompt, the same draft could have moved the £340 without a person.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The rule lives only in the system prompt, the model agrees in prose, and the tool call still moves the £340 because nothing outside the model looked at the amount.
- The guardrail checks the reply text for the word refund and ignores the tool arguments, so a silent tool call walks past a filter that was watching the chat.
- Every borderline case is escalated, the queue fills, and staff start approving without reading, which keeps the control in name and drops it in behaviour.
How to measure it
Count how often each guardrail blocks, rewrites or escalates, and sample both the stops and the passes. A check that never fires on real traffic has not been shown to catch the case it was built for.
Compare the action the model proposed with the action that actually ran. The gap is the guardrail's work. Also count allowed tasks that were blocked, because a noisy check creates its own failures. Report both.
Further reading
How Abracadabra helps
Record which check stopped, rewrote or escalated the step, and whether the model had already chosen the blocked action. A polite reply is not the same as a check that ran.
Abracadabra does not block an attack or run a guardrail. It shows the conversation: a task that never started, off-topic drift, or a refusal, linked to the turn. Those sessions are the cases a guardrail should have caught.
Request access to read this on your own agent.