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

AI Agent Tests: Why Refusals Score Like Right Answers

Would you trust an AI agent that never says “I don’t know”?

XIN
Pixel-art illustration of a robot approaching a checkpoint gate of vertical measuring bars, three signal lamps above with only the top one lit.

IN 30 SECONDS

An eval suite is the fixed set of tests a release gate reads, and it scores five things on one run. Refusing when the evidence is thin counts as much as being right, and one successful attack blocks the release.

KEY TAKEAWAYS · 3

  • Saying “I don’t know” on thin evidence is scored like accuracy.
  • Two equally accurate agents can get different verdicts.
  • One successful attack blocks the release, however clean the accuracy run.
On this page

Five things the suite scores

IN SHORT The suite scores five things, and refusing at the right time counts as much as being right.

WORDS TO KNOW

Grounding
Every claim in an answer points to a real source document that supports it.
Abstention
The agent declining to answer because the evidence is too thin, and handing the case to a person.
Red-teaming
Attacking your own agent on purpose, for example with hidden instructions in a document, to find where it breaks.

These are the dimensions I’d make explicit for an agent that reads documents. Their thresholds and coverage belong to the deployment being tested, set before the run with the person who owns the risk, not to this post.

Grounding
Every answer leads to a real source
No traceable evidence, no pass
Numbers
Figures match the source
A confidently wrong number fails outright
Abstention
It refuses when evidence is thin
Answering what a person should get is a failure
Red-team resistance
It resists hidden instructions and data grabs
One successful attack blocks the release
Latency and cost
It answers in the review window and budget
Correct but too slow does not ship where time matters

The obvious checks are Grounding Every claim in an answer points to a real source document that supports it. See the glossary and numbers. Abstention The agent declining to answer because the evidence is too thin, and handing the case to a person. See the glossary is easy to forget, and this gate scores it like accuracy.

IN PLAIN WORDS

Abstention is what the verified-citations system produces while the agent runs. Here, the suite checks that it still holds under test.

Coming up next: What happens when two agents are equally accurate?

A worked example: one ship, one hold

IN SHORT Two candidates on the same frozen set: one ships, and the other is held even though its answers are just as accurate.

The values below are invented. The shape is the real one: a candidate, a frozen set, five scores, one verdict.

A WORKED EXAMPLE

Illustrative numbers

PASSCandidate A: a new prompt

INPUT

Candidate
agent v1.4, new prompt
Eval set
frozen, same as last release
Includes
missing-evidence cases

WHAT HAPPENS

  1. Grounding and numbers: every answer cites a supporting document, every figure matches.
  2. Abstention: on the missing-evidence cases, it says “I don’t know” and hands them to a person.
  3. Red-team: no attack gets through. Latency and cost: inside the limits.

OUTPUT

Verdict
SHIP, behind human review

HOLDCandidate B: a faster model

INPUT

Candidate
agent v1.5, faster model
Eval set
the same frozen set

WHAT HAPPENS

  1. Grounding and numbers: as good as candidate A.
  2. Abstention: one question needs a lease that is missing. It answers anyway, from a similar lease.
  3. Red-team: no attack gets through.

OUTPUT

Verdict
HOLD
Next
tighten abstention, replay the same set

ITEM GET

Refusing right is scored

In this example, candidate B is held for answering without its source, however accurate its other answers are.

Coming up next: And what if someone attacks the agent on purpose?

Red-teaming can veto the release

IN SHORT One successful attack blocks the release, even when every accuracy check passed.

Accuracy tells you the agent is right on the cases you thought of. Red-teaming Attacking your own agent on purpose, for example with hidden instructions in a document, to find where it breaks. See the glossary shows what it does on the cases an attacker thought of. In a gate, the second can veto the first.

EXAMPLE

Each attack attempt is a probe. A document tries to overwrite the agent’s instructions: that’s a prompt injection. A question tries to pull data the agent shouldn’t show.

STEP BY STEP

Flow diagram: 4 stepsFlow diagram: 4 steps. Candidate agent, then Accuracy checks. Accuracy checks, then Attack attempts. Attack attempts, then Ships.1Candidate agent2Accuracy checks3Attack attempts4ShipsBehind human review

Step 1. Candidate. A new version of the agent enters the gate.

Pick a step to see it move
  1. Candidate A new version of the agent enters the gate.
  2. Accuracy passes Its answers cite real sources and its numbers match.
  3. Attack works: blocked A document hides an instruction and the agent follows it. Blocked, whatever the accuracy score.
  4. Fix, then rerun The hole is closed and the whole suite runs again. If every dimension passes, it ships behind human review, re-evaluated when its data drifts.
Accuracy passes, then one attack works: the release stops there.

Treating red-team findings as known issues to fix later is how an agent ships with a live injection path.

WATCH OUT

Passing a red-team is not the same as containing one. The gate checks resistance. The deployment still needs least privilege so a successful injection cannot move money: the agent gets only the access its job needs.

FAQ

In regulated finance, a confident wrong answer costs more than a refusal. Measure only accuracy and an agent that answers everything looks great, until the case where it should have said “I don’t know.”

STAGE CLEAR

What you now know

  • The suite scores sources, numbers, refusals, attack resistance, and speed and cost, on one run.
  • Answering without a source fails, even when the answer happens to be right.
  • Resisting attacks is not containment: access still has to be limited.

Check yourself

Tap or click a question to see the answer.

Illustrative case: a candidate beats the last release on accuracy, but one attack made it show data the user shouldn’t see. Which verdict?

Block. A successful attack blocks the release, whatever the accuracy. Close the leak, then rerun.

Next stage:How do you write your own release gate, and record what it decided?6 min
Adam Boudjemaa
Adam Boudjemaa

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. Building production AI and regulated Web3 systems.

Have a project to ship or a role to fill?

Discuss your project or role
Follow the engineering notes

Get new articles on production AI and smart contracts by email.