An AI support agent tells a customer “sure, I issued your refund.” The customer says thank you. Latency is fine, error rates are zero, every dashboard is green. But the refund tool was never called. The agent lied, and nobody finds out until the customer returns weeks later, furious.

This is the founding problem that Annabell Schäfer, AI solutions engineer at Langfuse, lays out on the AI Engineer podcast. Non-deterministic systems don’t just fail—they report successes that never happened. And for banks, payment processors, and any institution handling customer money, that gap between system health and task completion isn’t an engineering curiosity. It’s financial and legal liability.

Langfuse’s founders hit this wall during their Y Combinator batch around 2023, concluded there was “nothing like a unit test for AI applications,” and built an open-source platform to trace, monitor, and evaluate AI systems. Schäfer now claims adoption by more than 150,000 developers, presence in 21 of the Fortune 50, and over 90 billion observations ingested per month across customer instances. The company’s customers include Ramp, Canva, Khan Academy, and SumUp.

The loop that ships reliable agents

Schäfer’s core argument is that companies shipping reliable agents don’t run a test once and call it done. They operate a repeating cycle with five stages:

Each stage has a specific job. Tracing produces a full step-by-step record—root trace with aggregate time and cost, per-step generations, tool calls, inputs, outputs, metadata. Monitoring aggregates those traces into metrics: cost, latency, guardrail hits, and signals like “how many users are frustrated”—messages typed in ALL CAPS, for instance.

Datasets are test cases. Schäfer’s colleague Donnelly De Jesus, who leads AI solution architecture at Langfuse, is blunt about it: most teams have merged code to main without a QA gate, and they shouldn’t treat AI agents differently. Expected outputs don’t have to be literal answers—they can encode intent, required behavior, or keywords. Teams typically maintain several datasets for different quality dimensions: one for red-teaming prompt injection, another for unresolved disputes.

Experiments change one variable at a time. If you want to know whether a model performs better with a different prompt, change only the prompt—”not five other things”—or the result is uninterpretable.

A banking demo shows what high-stakes looks like

De Jesus built the demonstration for financial institutions that have a prototype and are being asked by leadership how to evaluate a customer-facing agent. It’s a banking assistant with persona impersonation—everyday customer versus ultra-high-net-worth client—so the team can verify guardrails hold across different user profiles.

The first hard requirement is PII masking. Financial institutions will not store credit card numbers or Social Security numbers in an observability system. When De Jesus types a credit card number in clear text, the trace shows “my card number is” with the digits fully redacted. The data stays on the bank’s own systems of record.

In the trace view, the team sees the full step tree—the Anthropic LLM call, the tools available, the account-listing tool call and its output—plus scores computed automatically on each new trace. Named scores include compliance with banking information rules, guardrail blocks, and intent classification. When a user asks “can I put my savings in Bitcoin,” the agent correctly declines but flags the intent as investment advice, which routes to a human advisor.

The demo also handles multimodal input: a contact-center call is transcribed via speech-to-text, evaluated for violations, and the trace links back to the original audio, transcript, and assistant reply.

Domain experts label traces; LLMs find the categories

At production scale, humans cannot read every trace. The workflow De Jesus recommends is error analysis on a curated sample—say 10% to 20% of traces, filtered to a specific topic like disputes or credit card handling. A domain expert reviews that sample in an annotation queue, assigning simple scores (yes/no, true/false, 1–10) and leaving comments. De Jesus demonstrates flagging “missing a citation” in about ten seconds.

The division of labor is deliberate. The expert provides raw, unfiltered commentary. An LLM then clusters those comments into failure-mode categories, because pattern-matching across thousands of text snippets is exactly what language models do well:

“You’re not asking the SME to invent categories. You’re just telling them, give me your unfiltered, raw commentary on these traces. And then you’re going to use an LLM to then figure out the categories because that’s what they are great at.”

The resulting categories become scoring dimensions. In the demo, those include “cites expected source,” correctness, formal register, language match, “must include,” and “non-unsolicited upsell.”

Blend LLM judges with deterministic checks

De Jesus’s clearest technical recommendation: don’t rely on either approach alone. An LLM-as-judge evaluator has a non-zero chance of inaccurate scores “because that’s just the nature of the LLMs.” A deterministic code evaluator—a regex, an exact match—returns the same output 100% of the time for the same input.

“If you rely 100% just on LLM as a judge, there’s a non-zero chance that some of the outputs are not going to be accurate. But if you factor in some deterministic checks that are always going to be exactly the same for the same inputs, then you can have a blended score.”

Evaluators can run server-side on incoming traces or be computed client-side in real time and reported back.

On calibration, Schäfer describes the standard process: have a human label a representative sample, run the LLM judge against it, and tune the judge until it agrees with human labels—rechecking over time. Her practical advice for production monitoring: start with a judge that produces a few too many false positives. Catch more than necessary, miss nothing, then tune down.

CI/CD gates replace “running on vibes”

The automation chain De Jesus demonstrates is the clearest departure from how most teams currently ship AI features:

In the live demo, promoting prompt version 4 to production fires a GitHub Actions job within seconds. A prior run shows a pass, with per-evaluator results—must-include, source recall, language match, correctness, non-unsolicited upsell—and configurable minimum thresholds. A score below the bar fails the gate. De Jesus notes the process can go fully end-to-end, opening a PR that waits for review, but he deliberately stops short of auto-merging. The question of how much autonomy to grant the gate is left to each organization’s risk appetite.

Prompt versioning lives in Langfuse (free, he notes), though many customers keep a parallel version in GitHub or GitLab. The Langfuse version serves as the trigger for evaluation automation. The demo showed five prompt versions tracked for a single agent configuration—each promotion a potential trigger for automated testing.

The tokenomics argument

De Jesus anticipates the question every leadership team asks: what does this cost, and what is it worth? His demo dashboard covers the last seven days.

MetricValuePeriodContextInteractions handled without a human agent1,400Last 7 daysDirectional evidence of business benefit versus contact-center laborCost of running the agent for those interactionsUnder $7Last 7 daysContrasted with human agents at roughly $15–20 per hourCases flagged for investment-advice risk89Last 7 daysFilterable by categorical score to find specific traces

The comparison is deliberately directional, not a precise ROI model. De Jesus admits he worked in a contact center roughly 20 years ago, and a human agent earning $15–20 an hour cannot handle 1,400 calls in an hour. But the framing is clear: the cost of running the agent for a week of customer interactions is less than half an hour of human contact-center labor.

A second panel ranks failure modes by occurrence—out-of-scope requests, informal register, and unresolved disputes are the top three and trending up. That ranking lets a team skip scanning hundreds of thousands of traces and filter directly to “dispute not resolved equals zero.” A third panel tracks thumbs up/down feedback (about 18% thumbs down in the demo), and a fourth shows the security-risk mix: most interactions carry no risk, but those 89 investment-advice cases surface as a filterable subset.

Schäfer sees a broader shift in enterprise priorities behind the dashboard demand:

“I think 2025 and beginning of 2026, everybody was token maxing. Now everybody is like token valuing or whatever they’re calling it now. So now everybody’s like trying to extract as much value as they can of their tokens.”

Keep human taste in the loop

Schäfer closes with a warning about the “please fix my agent, make no mistakes” prompt to a coding agent. Even with MCP or CLI access to Langfuse data, that approach produces “rather slop than anything that is actually helping you.”

Her framework is a two-axis tradeoff: time invested versus system quality. The bottom corner—fully automated, no human involvement—yields low quality and unhappy customers. The opposite extreme—full manual instrumentation and reviewing every failure mode yourself—is no longer necessary either. The target is the middle: automate instrumentation, failure-mode discovery, eval runs, and experiment generation (a coding agent can produce 20 experiments where a human would run one), while reserving human and domain-expert time for dataset curation and deciding what the application should actually solve.

Her concrete starting checklist: install the Langfuse skill (markdown files that teach a coding agent best practices), collect all available ground truth from historical data, production, and domain-expert samples, and—in regulated spaces—encode hard limits like “never give investment advice” into the evaluation set so violations are at least detected.

The underlying tension the episode never fully resolves is the one it opens with. As agents take more steps and more tasks, the volume of observations grows. And the human review that grounds the entire loop—dataset curation, error analysis, judge calibration—is exactly the part that doesn’t scale with it. The banks and regulated institutions that solve that tension will be the ones shipping agents that don’t lie to their customers.