cd /news/ai-agents/my-agent-passed-every-check-i-wrote-… · home › topics › ai-agents › article
[ARTICLE · art-177427] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

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

A developer who built a support agent for order questions found that a green eval suite missed the core failure: the agent correctly looked up orders and drafted emails but ignored a customer's request to change a delivery address. The developer argues engineering metrics (tool-call accuracy, hallucination rate, latency and cost) must be paired with product metrics (intent resolution, task completion, satisfaction) and that test scenarios, log reviews and traces should be split between engineering and product owners.

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 playbook: Evals and testing for LLM apps
by read4 min views4 publishedNov 27, 2026

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.

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

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/my-agent-passed-ever…] indexed:0 read:4min 2026-11-27 · —