<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu" -->

---
title: It passed CI. It passed your evals. The customer still...
description: AI agents fail silently: they return 200s, pass faithfulness checks, and still give wrong answers, so debugging requires more than request traces and error...
canonical: https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: It passed CI. It passed your evals. The customer still got the wrong answer. | daily.dev
og:description: AI agents fail silently: they return 200s, pass faithfulness checks, and still give wrong answers, so debugging requires more than request traces and error...
og:url: https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu
og:image: https://api.daily.dev/og/posts/OIicF9kBU.png
og:image:alt: It passed CI. It passed your evals. The customer still got the wrong answer.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# It passed CI. It passed your evals. The customer still got the wrong answer.

**[The New Stack](https://daily.dev/sources/newstack)** · 8 min read · 0 upvotes · 1 comments

## Summary

AI agents fail silently: they return 200s, pass faithfulness checks, and still give wrong answers, so debugging requires more than request traces and error rates. Using a worked example of a support agent with a slow, version-confused response after a doc-lookup rewrite, the piece shows how to read distributed traces (spans for model and tool calls) to distinguish a harness-driven retry loop from a model-driven one, and explains why a passing faithfulness or retrieval-relevance eval can still miss an invalid answer (relevant documents that are the wrong product version). It recommends asserting deterministic constraints like version filters directly in code and CI, using model-based judges only for what can't be asserted, versioning evaluators, linking eval results to trace/span IDs (since OpenTelemetry disallows writing to closed spans), and reading latency, tool-call counts, and token counts together rather than in isolation before declaring a fix successful.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenewstack.io/ai-agent-trace-debugging>

## Questions this post answers

### Why would an AI agent answer pass a faithfulness check but still be wrong?

Faithfulness or groundedness only measures whether an answer is supported by the retrieved documents, not whether those documents were the right ones to retrieve. A retrieval evaluator scoring relevance can also pass because the documents are topically relevant to the query while being invalid, for example instructions for the wrong product version. Relevance is not validity, so a retrieval precondition can go unchecked.

_Teams shipping AI features track these evaluation gaps and fixes as they surface on daily.dev._

### How do you tell whether repeated identical tool calls in an AI agent trace come from the model or the harness code?

Check whether a model.choose_tool span appears between each repeated tool call in the trace. If there is only one model.choose_tool span at the top with no model call between the second and third identical search, the harness code that manages retries triggered the repetition, not the model. If a model.choose_tool span sits between each search, the model itself kept requesting the same tool, pointing to a prompt or tool-description problem instead.

_Debugging agent trajectories like this is easier when engineers share trace-reading techniques on daily.dev._

### What should you assert in code versus evaluate with a model judge when testing retrieval filters in an AI agent?

Assert deterministic behavior directly in code and CI: for example, that search results for a given product version filter contain only that version, using a fixture of documents carrying version metadata. Use a model-based judge separately for the parts that cannot be asserted, such as whether the generated answer gives usable instructions for the requested version, and validate that judge against human-reviewed examples since an unchecked judge is another model taken on faith.

_Developers designing evaluation pipelines for AI agents can follow this kind of guidance on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@nark3d** · 0 upvotes

> What would you have asserted in code if the version confusion had come from the retrieved documents rather than the harness?  A version filter catches the wrong product but not a stale copy of the right one.  You can pin the filter and still retrieve last quarter's docs for the same SKU.  The answer reads as faithful against them.  Trace reading catches it after the fact, a code assertion catches it only if whatever stamps the version is itself trustworthy.  So which do you treat as the source of truth for that stamp, and what stops it drifting from the docs it labels?

## Similar posts on daily.dev

- [When Status OK Is Still a Failure: Silent AI Agent Breakage](https://daily.dev/posts/when-status-ok-is-still-a-failure-silent-ai-agent-breakage-fp21fyf2r) · Telerik · 1 upvotes · 0 comments
- [I Had Thousands of Agent Traces and Still Couldn’t Tell Which Sessions Failed](https://daily.dev/posts/i-had-thousands-of-agent-traces-and-still-couldn-t-tell-which-sessions-failed-5cga5d8xt) · Medium · 2 upvotes · 1 comments
- ["The Agent Did Something Weird" Is Not a Bug Report](https://daily.dev/posts/the-agent-did-something-weird-is-not-a-bug-report-ptdaxnz0f) · The T-Shaped Dev · 2 upvotes · 0 comments
- [Evaluating AI agents: moving past the vibe check](https://daily.dev/posts/evaluating-ai-agents-moving-past-the-vibe-check-a4tuqyjqx) · Google Developers · 15 upvotes · 1 comments
- [Why Most Multi-Agent Systems Fail Even When Evaluation Passes](https://daily.dev/posts/why-most-multi-agent-systems-fail-even-when-evaluation-passes-cg218glyv) · Towards Data Science · 1 upvotes · 1 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents), [#observability](https://daily.dev/tags/observability), [#opentelemetry](https://daily.dev/tags/opentelemetry)

[View this post on daily.dev](https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"It passed CI. It passed your evals. The customer still got the wrong answer.","url":"https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu"},"datePublished":"2026-09-13T14:03:09.002Z","dateModified":"2026-09-13T14:03:35.504Z","description":"AI agents fail silently: they return 200s, pass faithfulness checks, and still give wrong answers, so debugging requires more than request traces and error...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c70094acb20bf9f16c8f0f7a5c8e7af3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c70094acb20bf9f16c8f0f7a5c8e7af3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The New Stack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The New Stack","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/newstack","url":"https://daily.dev/sources/newstack"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"devops,llm,ai-agents,observability,opentelemetry","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The New Stack","item":"https://daily.dev/sources/newstack"},{"@type":"ListItem","position":3,"name":"It passed CI. It passed your evals. The customer still got the wrong answer."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu","comment":[{"@type":"Comment","text":"What would you have asserted in code if the version confusion had come from the retrieved documents rather than the harness?  A version filter catches the wrong product but not a stale copy of the right one.  You can pin the filter and still retrieve last quarter’s docs for the same SKU.  The answer reads as faithful against them.  Trace reading catches it after the fact, a code assertion catches it only if whatever stamps the version is itself trustworthy.  So which do you treat as the source of truth for that stamp, and what stops it drifting from the docs it labels?","datePublished":"2026-09-25T16:28:31.240Z","url":"https://daily.dev/posts/OIicF9kBU#c-eF9UohqZx","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/it-passed-ci-it-passed-your-evals-the-customer-still-got-the-wrong-answer--oiicf9kbu#faq","mainEntity":[{"@type":"Question","name":"Why would an AI agent answer pass a faithfulness check but still be wrong?","acceptedAnswer":{"@type":"Answer","text":"Faithfulness or groundedness only measures whether an answer is supported by the retrieved documents, not whether those documents were the right ones to retrieve. A retrieval evaluator scoring relevance can also pass because the documents are topically relevant to the query while being invalid, for example instructions for the wrong product version. Relevance is not validity, so a retrieval precondition can go unchecked. Teams shipping AI features track these evaluation gaps and fixes as they surface on daily.dev."}},{"@type":"Question","name":"How do you tell whether repeated identical tool calls in an AI agent trace come from the model or the harness code?","acceptedAnswer":{"@type":"Answer","text":"Check whether a model.choose_tool span appears between each repeated tool call in the trace. If there is only one model.choose_tool span at the top with no model call between the second and third identical search, the harness code that manages retries triggered the repetition, not the model. If a model.choose_tool span sits between each search, the model itself kept requesting the same tool, pointing to a prompt or tool-description problem instead. Debugging agent trajectories like this is easier when engineers share trace-reading techniques on daily.dev."}},{"@type":"Question","name":"What should you assert in code versus evaluate with a model judge when testing retrieval filters in an AI agent?","acceptedAnswer":{"@type":"Answer","text":"Assert deterministic behavior directly in code and CI: for example, that search results for a given product version filter contain only that version, using a fixture of documents carrying version metadata. Use a model-based judge separately for the parts that cannot be asserted, such as whether the generated answer gives usable instructions for the requested version, and validate that judge against human-reviewed examples since an unchecked judge is another model taken on faith. Developers designing evaluation pipelines for AI agents can follow this kind of guidance on daily.dev."}}]}
```

