# My agent passed every check I wrote. The product manager said it solved the wrong problem.

> Source: <https://dev.to/kartik-nvjk/my-agent-passed-every-check-i-wrote-the-product-manager-said-it-solved-the-wrong-problem-3hp7>
> Published: 2026-11-27 18:34:20+00:00

**Recommendation:** Before writing evals, agree with product on the target task, success metric and tool/data guardrails, then build test scenarios from both user stories and engineering edge cases.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

I built a support agent for order questions. It looked up the order number, checked the shipping status, and drafted a notification email for the customer.

My eval suite was green. The tool calls hit the right APIs with the right arguments. The emails matched the schema. Nothing made up a tracking number.

Then the product manager on the project read through a batch of conversations with me. On one of them, the agent had done everything my checks asked for. It found the order, reported the status, and drafted a clean email. The customer had written in to change the delivery address.

Every check I had written asked whether the agent did the job correctly. None of them asked whether it was doing the job the user came for.

The question I was asking is the engineering one. Is the agent solving the problem correctly? Is the reasoning sound, are the tool calls correct and secure, and does it stay efficient and stable under load?

The product manager was asking the other one. Is the agent solving the right problem? Did it understand what the user wanted, did it finish the task, and would the user trust the exchange?

Both are evaluation. They need different metrics.

The engineering list is task adherence and planning accuracy, tool-call accuracy (precision, recall and correctness of each call), hallucination and error rate, and latency, tokens and dollars per task.

The product list is intent resolution, task completion rate, user feedback and satisfaction, and one I had never scored at all: whether an answer that is not exact is still helpful.

My suite only had the first list.

An agent makes a chain of decisions, so the eval has to score the whole trajectory.

If each step fails 5% of the time, a five-step run fails about 23% of the time.

That is why per-step checks matter. They catch a low-confidence output at the step where it happens, before later steps build on it.

What fixed this was a conversation before the next round of work. We answered three questions together.

Which multi-step task is the agent for? How do we measure success: task completion rate, decision accuracy, or cost per resolution? What are the guardrails: which tools can it call, and what data can it touch?

Once those answers were written down, both lists of metrics had something to point at.

Test scenarios now come from both sides. The product manager brings user stories that outline the ideal paths, drawn from what users actually ask for. I add the edge cases. What happens if the shipping API is down? What happens if the order number is wrong?

A customer who wants a new delivery address is a user story. It was never going to show up in my edge cases.

We also read logs side by side. I check whether the execution was right. The product manager checks whether it matched the business goal.

Agents do things nobody planned. When one of those decisions shows up, it gets reviewed by both of us.

I ask what data it used, which function it called, and why. The product manager asks whether the decision was actually wrong or just surprising, and whether it followed a business rule or found a creative workaround.

Reviewing these together sharpened the agent's logic and our eval metrics at the same time.

**Tracing.** Engineering logs every step of the reasoning loop: the plan, each tool call's input, and each output. Product decides which user-journey milestones the traces must capture.

**Testing.** Engineering owns most of the synthetic and adversarial tests: rare edge cases, contradictory user goals, faulty API responses, prompt injection, data leakage and bad error handling. Product owns most of the real-world side: a golden dataset built from real user interactions, which becomes the regression baseline, plus human review where automation cannot judge tone, helpfulness or brand fit.

**Automated scoring.** Engineering writes code-based evaluators for JSON formatting, schema adherence and factual consistency against a database. Product configures the LLM-as-judge evaluators: helpfulness, summary quality and intent alignment. The results feed prompt and configuration changes, and the suite runs again. Wire it into CI so a regression fails the build.

The full framework, with the three layers and how each team owns its part, is in [this piece](https://futureagi.com/blog/agentic-ai-evaluation-2025/?utm_source=fagiDevto&utm_medium=organic&utm_campaign=blogdistribution).

Who writes the success criteria for your agent evals? On my project it was only me, and that was the problem.
