A PM's guide to testing AI agents
Dr. Nicolai Bohn
• 12 min read

You've worked for months with your dev team: writing user stories, running sprints, and shipping increments.
Now the agent looks great in demos. It answers your prompts. Stakeholders nod along. But the question that matters is the one you can't dodge anymore:
Is it ready for production?
If you're the PM on an agentic product, you've probably started "vibe-testing" it: you try a few prompts, you explore a couple happy paths, you sanity-check the tone. And then reality hits. Real users don't behave like your demo script. They add constraints late, change goals mid-flow, misread what the agent said, and push it into corners you didn't anticipate.
At that point, the default PM move is… a spreadsheet.

You list user stories. You paste acceptance criteria. You invent test cases. You try to cover personas and scenarios. You log results from each test run. And pretty quickly, it stops feeling like "organizing" and starts feeling like drowning.
This guide is for that moment.
It's a practical playbook for moving from vibe-testing to systematic testing, in a way that doesn't require you to become "the code PM." I'll reference Rhesis as a concrete implementation (UI for non-technical reviewers + SDK for engineers), but the workflow is transferable to any setup.
If you want the product concepts while reading: Platform overview and Getting started.
Build your testing system
The moment spreadsheets stop working
A spreadsheet works when you have: a handful of tests, a single reviewer (you), and no real need to compare runs over time. But agent testing grows fast:
- Every user story wants multiple angles. Same requirement, different persona (new user vs frequent flyer), different context (in a hurry vs browsing), different constraints (budget, time, baggage, refund policy).
- Single-turn tests are only a first clue. Agents reveal their real failure modes in multi-turn journeys: they forget constraints, drift in tone, mishandle tool errors, or "lock in" on the wrong plan and never recover.
- Manual execution doesn't scale. Coming up with scenarios is hard; running them consistently is harder; tracking results across releases is where it breaks.
If you've ever thought "I can't tell if we're improving or just changing", you're already past what spreadsheets are good at.
A quick reality check
If you're still manually testing: pick 5 realistic multi-turn journeys and run them end-to-end.
If that feels painful today, it will be impossible after the next two features.
Translate your user stories
Your user stories and acceptance criteria are already a gold mine for testing. The trick is translating them into a structure that's: systematic (you can see what's covered / missing), collaborative (non-engineers can review), and repeatable (you can compare runs across releases). In Rhesis, the translation is simple:
- Behaviors = what to check. An atomic expectation of the application: what should be true if this works?
- Metrics = how to score it. The automated way you decide pass/fail (or categories) consistently.
Here's a concrete example:
| PM artifact | Example | In testing terms (Rhesis) |
|---|---|---|
| User story | "As a new user, when I open the agent for the first time, I want a warm welcome and to be asked for the minimum personal info needed to start." | Behavior: Personal onboarding complete |
| Acceptance criteria | 1) Greets user warmly in brand tone 2) Asks only necessary information 3) Explains why info is needed | Metrics (examples): Warm welcome • Data minimization • Clarity / justification |
Practical notes that make this work in the real world
One behavior can have multiple metrics. That's good, because real requirements are multidimensional. Keep behaviors atomic: "Books a flight perfectly" is too big; "Collects missing constraints before acting" is testable. A useful pattern is to write behaviors as Verb + object + condition, for example, "Collects missing constraints before searching", "Maintains constraints across turns", or "Uses tool results when available".
Metrics: what "measuring" can mean
Rhesis currently supports LLM-as-judge metrics, and it's common to mix in other types over time: LLM judge metrics for nuanced rubric-based evaluation, deterministic metrics (code-based checks, string/JSON validation, regexes, schema checks), and API-based metrics (e.g., calling an external service like a specialized bias or toxicity detector).
Common pitfalls (and how to avoid them)
Behaviors that are too broad won't help. If you can't imagine one focused test for it, it's probably too big. Metrics that are vague don't scale: "Good tone" isn't a metric unless you define what "good" means with examples, a rubric, or boundaries. And avoid mixing multiple requirements into one metric; split them so you can see what failed.
When humans disagree, turn it into better automation
Disagreement is signal. When two reviewers disagree on whether a metric should pass, resolve it in comments or a short calibration. Then update the metric (tighten the rubric or examples) or create a new metric that captures the missing nuance. Over time, this is how "review" turns into a reliable quality system.
Reuse is your superpower
Behaviors and metrics can be reused: across test sets (same behavior, different scenarios), and even across products (company internal rules, marketing language, legal disclaimers; these often apply across multiple applications).
Minimum viable evaluation setup (MVES)
Keep your first setup intentionally small:
1 user journey
3–5 behaviors
2–4 metrics per behavior
10–20 tests (mix single-turn + multi-turn)
1 test run with 2 reviewers
1 issue turned into a task with clear follow-up
The goal is not coverage. The goal is proving your workflow works end-to-end.
Your quality model: reliability, robustness, compliance
Its important to remember that when someone says "quality assured," the next question should be: quality in what sense?
For agents, three buckets keep you honest:
- Reliability: Does it do what it's designed to do for legitimate requests, across a full journey? Completes tasks, respects constraints, stays coherent across turns.
- Robustness: Does it handle the unexpected gracefully? Malformed inputs, goal changes, prompt injection, tool errors, weird edge cases.
- Compliance: Does it respect boundaries? Internal policy, brand voice, legal/regulatory constraints, and "don't imply what you didn't actually do."
These overlap in practice. One single conversation can test all three. But naming them makes prioritization possible: you can decide what's "must-not-fail" vs "nice-to-have," and you can measure progress without guessing.
Make it operational
Turn behaviors into tests: Goal, Instructions, Restrictions, Scenario (and multi-turn)
Once you've mapped behaviors and metrics, the next step is generating coverage: the same behavior, tested in different contexts.
In Rhesis terms, a Test is a concrete instantiation of a behavior in a specific context. The simplest way to keep this consistent (and non-technical) is to structure each test with four fields:
- Goal: what the user is trying to achieve
- Scenario: the situation and persona (first-time user, power user, frustrated user, internal employee, etc.)
- Instructions: what the user actually says (and any system/policy instructions you want applied)
- Restrictions: constraints that must hold (budget, time, policy rules), often introduced late in the conversation
From there, you can execute the test as multi-turn. For agents, multi-turn is where most of the "real" failures show up: constraint loss, goal drift, or acting too early.
Here's an example in that structure:
- Behavior under test: "Collects missing constraints before acting" + "Maintains constraints across turns"
- Goal: plan a trip itinerary
- Scenario: first-time user, wants to start quickly, doesn't provide all details upfront
- Instructions: "Help me book a trip from Berlin to Barcelona next week. Keep it simple."
- Restrictions: user adds constraints late ("arrive before 5pm"), then changes the goal ("make it multi-city")
In practice, you'll assign multiple tests to a single behavior: the same behavior with different scenarios (new user vs frequent flyer), different restriction patterns (adds constraints late vs contradicts themselves), and different tool conditions (tool succeeds, tool times out, tool returns partial results).

The important PM shift here is that you stop writing "one perfect prompt" and start building a small set of realistic contexts around each behavior.
Run often and compare: build confidence over time
Once you have more than a handful of tests, running them one-by-one stops being realistic.
You want: test sets (coherent suites you run together), a cadence (when you run what), and a way to compare runs over time (regression thinking, not just pass/fail). A pragmatic rule is:
Run tests whenever you want to know whether something got better, worse, or just different.
This is where comparison views become valuable: not just "did it pass," but "what changed?" Side-by-side outputs (and the evaluations attached to them) catch regressions early, especially in multi-turn flows where a single failure can cascade.

Here are typical triggers for when to run tests:
| Change | What you need to know |
|---|---|
| Model update | Did outputs shift? Where did quality regress/improve? |
| Prompt / policy change | Did intended behaviors improve? Any new compliance issues? |
| New feature / tool | Does it work in realistic contexts? Does it fail gracefully? |
| Release | Did anything that "used to work" break? |
If you want to automate cadence with engineering, CI/CD integration helps: CI/CD integration guide
Collaborate on review and close the loop with production
PMs don't win agent quality by testing alone. They win by getting the right people involved.
Support, ops, policy, legal, and brand stakeholders can spot issues that automated evaluation will miss: subtle misleading phrasing, missing disclaimers, "this isn't how we talk," policy violations that look "minor" to an engineer but are major business risk.
The workflow that avoids late surprise feedback is:
- Run tests in shared suites (test sets)
- Collect multiple reviews (not just one opinion)
- Resolve disagreement deliberately (comments or a short calibration meeting)
- Turn confirmed issues into tasks with full context (inputs, outputs, traces, reviewer notes)
Beyond pass/fail
Categorical labels like biased / neutral / unbiased or hallucinated / partially grounded / grounded tell you what failed and how badly, making it easier to prioritize fixes and track specific failure modes over time.
Finally, curated suites won't capture the full messiness of real usage. The missing piece is a loop from production back into your test library:
- A user or stakeholder flags something odd in live traffic.
- You tag it (issue type: hallucination, tool misuse, policy drift, tone, etc.).
- The most important patterns become new tests (and, over time, new behaviors/metrics).
For agents, observability is part of quality. Sometimes the failure isn't visible in the final response. You need to know what the agent did: which tool it called, with what parameters, what came back, and how it used that output. Tracing is built for that: Tracing

At the end of the day, the goal isn't a perfect agent. It's operational confidence: the ability to answer, at any moment:
What did we test, what changed, what broke, who reviewed it, and what are we doing about it?
If you can answer that, you can ship faster and safer, because you're no longer relying on intuition. You're relying on a system.
If you want to map these concepts to product features, start here: Behaviors, Metrics, Tests, Test sets, Test runs, Tasks.

