Testing AI agents: trajectories, tool choice and side effects
A helper that takes many steps can reach the right result by a harmful path. Learn to grade the outcome, the steps, the tool choices and the side effects, over repeated runs.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a house-sitter with a spare key. You go away and a house-sitter tidies up. You come home and the house looks tidy. That is a good result. But you want to know more.
Did she water the right plants? Did she open drawers she had no reason to open? Did she make twelve trips to the shop for one loaf of bread? Would she do the same thing tomorrow?
Daily List is a to-do list app. It now has a helper, an (AI) agent that tidies a list when asked. Tom asks it: move everything due this week to Today, and delete the done tasks.
The final list looks right. Then Tom reads the helper's trajectory, the record of each step it took. It deleted every task and made the right ones again. The comments and the sharing on those tasks are gone. That is an .
On another run the helper used the wrong tool, so Tom adds a , which asks whether the helper picked the right tool. He also runs each task several times, because the helper does not take the same steps every time.
The picture has a limit. A house-sitter understands why you left. An chooses steps by chance and pattern, so the same request can take a different path each time.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Judging an (AI) agent on its result, its steps and the harm it might do on the way, over several runs.
- Check the data at the end
- Read the steps taken
- Compare before and after
- Run it several times
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A tidy house on return | The outcome: the final state of the data |
| What she did while you were away | The trajectory |
| Watering the right plant | Choosing the right tool with the right inputs |
| Opening drawers she should not | A side effect |
| Asking her again tomorrow | Running the task several times |
WHERE THIS PICTURE STOPS
- A house-sitter understands why you left. An agent follows patterns and chance.
- A person tells you what she did. An agent's own account may be wrong.
- A house-sitter has a key. An agent has exactly the tools it was given, so the tools set the limit.
HOOK
Check the house, the steps and the drawers, and ask again tomorrow.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Judge each agent run on four things: right result, right steps, no side effects, and the same behaviour on another run.
| In the trick | What it stands for |
|---|---|
| Result | the outcome: the final state of the data |
| Steps | the trajectory, choosing the right tool with the right inputs |
| Side effects | a side effect, opening drawers she should not |
| Another run | running the task several times |
TELL A FRIEND
A house-sitter tidies up: you check the result, the steps she took, the drawers she opened, and whether she does the same tomorrow.
OFTEN MIXED UP WITH Testing an LLM feature: test sets, graders and non-determinism. That lesson is about grading the answers of a single (AI) feature. This lesson is about grading an agent that takes many steps and changes things.
PRACTISE AND KEEP
Sources for this topic — 5 sources
- Market practice
Demystifying evals for AI agents (Anthropic engineering) ↗ — Anthropic · Agents work over many turns, call tools and change state, which makes them harder to evaluate; secondary summaries add repeated trials, graders, and grading the final state (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Agent Trajectory Evaluations (Arize documentation) ↗ — Arize · A judge can be given the actual sequence of tool calls with their arguments, the user input and the tool definitions, and asked whether the path was correct (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Mastering agentic techniques: AI agent evaluation (NVIDIA technical blog) ↗ — NVIDIA · Recommends logging plans, tool calls and side effects, and checking for redundant steps (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
LLM06:2025 Excessive Agency (OWASP GenAI Security Project) ↗ — OWASP GenAI Security Project · Advises limiting the tools an agent may call to the minimum, requiring approval for high-impact actions, and checking permission in the downstream system (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Testing with Generative AI (CT-GenAI) Syllabus v1.1 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 4.1.3 (GenAI-4.1.3, K2): LLM-powered agents act by calling tools; autonomous and semi-autonomous agents; multi-agent orchestration; agents share hallucination, reasoning-error and bias risks, mitigated by automated checks of results or semi-autonomous agents for critical tasks (mirror copy of the publisher PDF, version 1.1 of 27 April 2026, read in full text)
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1), version checked against the document's own front matter. The url above is the mirror copy that was read, not a page of istqb.org, and the publisher's own page was not opened. Licence terms were not read, so put it in your own words and do not quote it.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.