SKIP TO CONTENT
AI AGENTS5 minAgents in Production / Ep. 2 · Stage 2-2

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”?

XIN
Pixel-art illustration of eleven identical agent modules arranged in a ring around one shared glowing foundation slab they all connect to.

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

Flow diagram: 5 stepsFlow diagram: 5 steps. Question, then Find the evidence. Find the evidence, then Is every claim sourced?. Is every claim sourced?, then Do the numbers match?. Do the numbers match?, then Decide. Decide branches into 2: If enough evidence, then Answer with sources. If thin evidence, then Abstain, hand to a person.ENOUGH EVIDENCETHIN EVIDENCE1Question2Find the evidence3Is every claim sourced?4Do the numbers match?5DecideAbstaining is a real outcome,not a failure.Answer with sourcesAbstain, hand to aperson

Step 1. Question. An analyst asks a question about the fund.

Pick a step to see it move
  1. Question An analyst asks a question about the fund.
  2. Find the evidence The agent pulls documents from the shared store. No document, no answer.
  3. Check the sources Each claim must point at a real document. A claim from memory fails.
  4. Check the numbers A claim that doesn’t add up is caught before anyone acts on it.
  5. Answer with sources Enough evidence: the answer goes out with its documents.
  6. Abstain Thin evidence: no answer goes out. The agent says so and hands the case to a person.
One answer through the safety layer: two checks can stop it, then it goes out or the agent abstains.

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

  1. Retrieval finds the Unit 4B lease. Page 3 holds the rent clause.
  2. The draft answer says 2,450.00 USD a month and cites page 3.
  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

  1. Retrieval returns no document that mentions a roof warranty for Building C.
  2. With no evidence, the agent doesn’t draft an answer.
  3. It abstains with the reason “no supporting document”.

OUTPUT

Result
no answer
Next
a person takes the question

ITEM GET

No evidence, no answer

Thin evidence becomes a hand-over to a person, never a guess.

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.

Retrieval and search
Find the right document across 13 sources and 13 years
Every answer cites its source
Reconciliation and matching
Match records to statements, flag the gaps
Numbers must agree, or a person reviews the line
Document review
Pull the key facts from long filings
No claim without a citation to the page it sits on
Fraud and anomaly checks
Flag documents and figures that look wrong
A flag is a question for a human, never a verdict
Drafting and summarizing
Turn retrieved evidence into a first draft a person edits
Abstains on thin evidence instead of inventing

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.

Next stage:What did one of these agents deliver, and how do you judge a build like this?5 min
Adam Boudjemaa
Adam Boudjemaa

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 role

My 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.