TOPIC 38/4222 MINNOT STARTED

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.

  1. Check the data at the end
  2. Read the steps taken
  3. Compare before and after
  4. Run it several times
Result, steps, drawers, repeat

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A tidy house on returnThe outcome: the final state of the data
What she did while you were awayThe trajectory
Watering the right plantChoosing the right tool with the right inputs
Opening drawers she should notA side effect
Asking her again tomorrowRunning 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.

What each part of the trick stands for
In the trickWhat it stands for
Resultthe outcome: the final state of the data
Stepsthe trajectory, choosing the right tool with the right inputs
Side effectsa side effect, opening drawers she should not
Another runrunning 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
  1. 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)

    Engineering post saying agents work over many turns, call tools and change state, which makes them harder to evaluate. Only the introduction was seen. Secondary summaries mention repeated trials and grading the final state. · Checked 2026-10-18

    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.

  2. 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)

    Vendor documentation on judging the sequence of tool calls an agent made, with the tool names and arguments at each step. Vendor guidance for one tool. · Checked 2026-10-18

    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.

  3. 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)

    Vendor blog that recommends logging plans, tool calls and side effects, and checking for redundant steps. Practitioner guidance. · Checked 2026-10-18

    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.

  4. 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)

    Risk entry. Search excerpt says the root cause is one or more of excessive functionality, excessive permissions and excessive autonomy, and that fixes limit the tools an agent may call to the minimum needed. A 2026 page claims the numbering changed; check the current list. Search excerpt only. · Checked 2026-10-18

    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.

  5. 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)

    Version 1.1 syllabus (71 pages, 27 April 2026), read in full text. Used for the objective ids and levels in chapters 1 to 5. Also used for the mitigation techniques in 3.1.3 and 3.1.4, the criteria in 5.1.3, the adoption phases in 5.1.4 and the team skills in 5.2.1 and 5.2.2. The agents powered by large language models (LLM) in 4.1.3 (GenAI-4.1.3, K2) are used too. Paraphrased, not quoted. · Checked 2026-10-25

    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.