AI Agent Guardrails: How an Answer Gets Checked
Say no document gives the end date of a roof warranty. Should the agent guess, or tell you “I don’t know”?

IN 30 SECONDS
A guardrail is a check designed to stop an AI agent from acting on a wrong answer. In this fund, every claim cited a source, every number was checked, and thin evidence went to a person.
KEY TAKEAWAYS · 3
- Every claim must cite a real source document, and every number is checked before anyone acts on it.
- With thin evidence, the agent abstains and hands the case to a person instead of guessing.
- Each of the five agent families added its own guardrail.
On this page
Safety checks that let the agents near the books
IN SHORT Every answer passes the same checks, and “I don’t know” is an allowed outcome.
WORDS TO KNOW
- Citation
- A link from an answer to the exact source document behind it, so a person can open it and check.
- Abstention
- The agent declining to answer because the evidence is too thin, and handing the case to a person.
- Red-teaming
- Attacking a system on purpose, before launch, to find its failures.
In a regulated fund, a confident wrong answer costs more than a slow one.
So most of the engineering went into one safety layer all 11 agents share. Every claim carries a Citation A link from an answer to the exact source document behind it, so a person can open it and check. See the glossary to a real source document, not the model’s memory.
Every number gets checked before anyone acts on it. And thin evidence leads to Abstention The agent declining to answer because the evidence is too thin, and handing the case to a person. See the glossary: the agent says so and hands the case to a person instead of guessing.
STEP BY STEP
Step 1. Question. An analyst asks a question about the fund.
- Question An analyst asks a question about the fund.
- Find the evidence The agent pulls documents from the shared store. No document, no answer.
- Check the sources Each claim must point at a real document. A claim from memory fails.
- Check the numbers A claim that doesn’t add up is caught before anyone acts on it.
- Answer with sources Enough evidence: the answer goes out with its documents.
- Abstain Thin evidence: no answer goes out. The agent says so and hands the case to a person.
All of it went through tests and Red-teaming Attacking a system on purpose, before launch, to find its failures. See the glossary before it went live.
IN PLAIN WORDS
This way of answering is called RAG: find the documents, then answer from them. These agents were designed to answer only from what they found. The RAG episode goes deeper.
WATCH OUT
Measure abstention alongside answer quality. More escalations can mean the system caught missing evidence. They can also signal broken retrieval, stale data or too many refusals, so check the cause first.
Coming up next: What does that look like on two everyday questions?
A worked example: one answer, one abstention
IN SHORT Same safety layer, two questions: one has a document behind it, the other has none.
The values below are invented, but the shape is everyday: a question, a document that may not exist, and a number to check.
A WORKED EXAMPLE
Illustrative numbers
PASSQuestion 1: a document answers it
INPUT
- Question
- What monthly rent does the Unit 4B lease set?
- Asked by
- an analyst
WHAT HAPPENS
- Retrieval finds the Unit 4B lease. Page 3 holds the rent clause.
- The draft answer says 2,450.00 USD a month and cites page 3.
- The numeric check finds 2,450.00 USD on page 3, the same figure.
OUTPUT
- Answer
- 2,450.00 USD a month
- Source
- lease_unit_4B.pdf, p. 3
ESCALATEDQuestion 2: no document answers it
INPUT
- Question
- When does the roof warranty on Building C expire?
WHAT HAPPENS
- Retrieval returns no document that mentions a roof warranty for Building C.
- With no evidence, the agent doesn’t draft an answer.
- It abstains with the reason “no supporting document”.
OUTPUT
- Result
- no answer
- Next
- a person takes the question
ITEM GET
No evidence, no answer
Coming up next: So how did one layer fit 11 different jobs?
The 11 agents, by family
IN SHORT The 11 agents fell into five families, and each family carried its own guardrail.
The fund is confidential, so here is the view by family, not agent by agent.
FAQ
A generic automation aims at speed and good demos. This was built to survive an auditor: every claim cites a source, every number is checked, and thin evidence goes to a person.
STAGE CLEAR
What you now know
- An answer goes out only with a cited source and matching numbers.
- “I don’t know”, then a person: a planned outcome, not a failure.
- Each agent family adds its own guardrail to the shared checks.
Check yourself
Tap or click a question to see the answer.
Illustrative case: a draft answer says a lease sets 3,100.00 USD a month, but the cited page says 3,010.00 USD. What should happen?
The numeric check should catch the mismatch before anyone acts on it. A citation alone isn’t enough: the number has to match the source.
Web3 x AI engineer, former CTO of Integra. Named author (1 of 5) of ERC-3643, first author of ERC-6960, co-author of ERC-7410, and co-author of ERC-8203, which is still a draft.
Have a project to ship or a role to fill?
Discuss your project or roleMy work at the web3 x AI intersectionOpen-source tools I build
Follow the engineering notes
Get new articles on production AI and smart contracts by email.