Building an Agent Regression Loop from Production Traces

Sofia Jakovcevic demonstrates how to compare agent changes across safety, task completion and other dimensions before deployment.

SJSofia JakovcevicPonente · Arize AI
Canal
AI Engineer
Publicado
24 oct 2026
Vídeo
19:24
Lectura
5 min
Diapositivas
4
Original
inglés
Abrir en YouTube
Al desplazarte, el vídeo se reduce a la esquina inferior derecha y sigue reproduciéndose. Los subtítulos siguen tu idioma de lectura.
Idioma de lecturaDisponible en 2 idiomas
Este artículo aún no está en español, así que se muestra el original en inglés.
RESUMEN

En 30 segundos

Arize AI forward deployed engineer Sofia Jakovcevic uses a support-agent example to show how a prompt change can improve one measured outcome while degrading another. She describes a five-step regression process: curate production-derived cases, define evaluators, run a baseline, compare changes and gate merges in CI. Jakovcevic demonstrates the process in Arize and proposes connecting coding agents to production traces so they can investigate failures and suggest fixes. The example scores and product capabilities are presented in the context of her demonstration; automated evaluators and fixes remain subject to their coverage and reliability.

  1. 1A one-line tradeoffIn a support-agent scenario, requiring confirmation improves action safety by 17 points while task completion falls by 17 points.
  2. 2Diff versus traceA small prompt diff can produce different runtime trajectories; traces record observed behavior.
  3. 3Select representative casesThe proposed dataset includes common workflows, known failures, edge cases and successful workflows to protect.
  4. 4Define evaluatorsThe speaker describes LLM judges and deterministic code-based checks for different dimensions.
  5. 5Compare and gateRun a baseline, test a candidate change and use the chosen regression criteria in CI.
  6. 6Close the loopNew failures can become tests; coding agents may use traces to investigate and propose improvements.

Conclusiones

  1. A change can improve one evaluation dimension while harming another, so an average score may hide a tradeoff.
  2. Production traces show observed runtime behavior that a small prompt or code diff alone cannot reveal.
  3. A regression dataset should include representative workflows, known failures, edge cases and successful behavior worth protecting.
  4. Teams can score a baseline and candidate changes with appropriate evaluators, then apply explicit CI criteria.
  5. LLM judges turn qualitative criteria into scores but their accuracy and alignment must be evaluated too.
  6. Jakovcevic proposes feeding failures into tests and giving coding agents trace access to investigate and propose fixes.
TEXTO COMPLETO

Lee el texto editado por capítulos

Solo la transcripción
01

Observability and the regression problem

Jakovcevic explains why understanding runtime behavior matters and frames the risk of a fix breaking other workflows.

I'm Sofia Jakovcevic, a forward deployed engineer at Arize. An agent can make building AI systems feel intuitive, but its behavior can also be a black box. Observability helps us see what the system actually does step by step; we can then evaluate its behavior and use that information to improve it.

The challenge is not just finding what broke. When we submit a fix, we also need to know whether it breaks other workflows. I want to show a regression process grounded in observed behavior and connected to continuous integration, before considering how agents might help close the loop.

02

A support-agent tradeoff

A one-line confirmation policy improves one score and worsens another in the demonstration. A single average conceals the opposing movements.

Imagine a support agent and a security engineer who asks for one extra line: confirm before taking an action. It sounds harmless, and natural-language prompts can give us a false sense that we know exactly how a change will behave. Instead of relying on intuition alone, we need an evaluation suite covering the outcomes we care about.

A fix that changes two outcomes
DIAPOSITIVA 1 / 4A fix that changes two outcomesThe scenario introduces a policy edit that improves safety but reduces task completion.

In the example, a later evaluation shows action safety improving by 17 points. But task completion falls by 17 points: if the agent asks for confirmation at every step and the user leaves, a task may never finish. Averaging the two movements gives no net change and hides the tradeoff. The scores are from the demonstration, not a general effect of confirmation policies.

03

From traces to regression tests

The speaker describes runtime trajectories and a five-step loop from curated cases to a CI gate.

A reviewer may see a one-line change to a system prompt, but the behavioral effects occur when the agent runs. The change can alter steps, subagent handoffs and tool calls across many possible trajectories. A diff shows what changed; a trace records what happened in a particular run.

Jakovcevic argues that traces help expose silent failures that are difficult to infer from static changes alone. They are observations of actual runs, not a complete guarantee that every possible behavior has been covered. She uses them as the starting point for a regression loop.

The proposed loop has five steps: select a dataset from production traces, define evaluators, run a baseline experiment, compare a change against that baseline, and enforce chosen criteria in CI. The aim is to test a candidate before deploying it, rather than discover all of its consequences afterward.

For the dataset, use real inputs, tool calls and outcomes that represent normal workflows. Add known failures and edge cases, but also include successful workflows that must be protected. Testing only the failure being fixed may miss a regression in something that already worked.

Selecting a regression dataset
DIAPOSITIVA 2 / 4Selecting a regression datasetThe slide lists representative workflows, known failures, edge cases and successes to protect.

Next, choose scoring mechanisms for the dimensions that matter: task completion, factuality, tool trajectory or efficiency, for example. Jakovcevic describes using a language model as a judge with a rubric to classify a trace or span. A score makes comparison possible, but a model judge can itself be wrong and needs validation against suitable human or other reference judgments.

Evaluations need not all use language models. Code-based checks can test deterministic properties, while model-based evaluators may help assess less deterministic behavior. The choice depends on what the team is trying to measure and on the evaluator's own reliability.

Run the agent against the selected dataset and score its outputs to establish a baseline. Then make one change—such as a policy, prompt, model, tool or handoff—and rerun the same tests. Comparing dimensions separately makes it easier to see an improvement in one area alongside a regression in another.

Jakovcevic gives model selection as an example: a more expensive model should be assessed against the quality, cost and latency that matter for the application. Experiments can inform that tradeoff, but a numerical score is evidence within the test design, not proof of return on investment in every deployment.

The fifth step is to put the experiment into CI. A pull request can run the regression suite, and the team can require its chosen criteria before merging. A failed candidate goes back for investigation and iteration; a passing gate is only as useful as its cases, thresholds and evaluators.

04

Experiment demonstration

She compares refund-agent prompt variants in the Arize interface and describes single- and multi-agent testing. The walkthrough illustrates the vendor's product.

Comparing refund-agent experiments
DIAPOSITIVA 3 / 4Comparing refund-agent experimentsThe product demonstration displays separate action-safety and task-completion metrics for candidate runs.

In the Arize demonstration, Jakovcevic shows a refund-agent experiment with several prompt variants. The display compares action-safety and task-completion results; one example shows the opposing 17-point movements, while another candidate has different improvements. These are demonstration results, not a controlled comparison of all agents or products.

She opens a prompt playground, selects a saved prompt and a 100-row dataset containing edge cases, known failures and successes to protect. She duplicates a candidate so two prompt versions can be tested side by side, then adds task-completion and action-safety evaluators.

The interface runs the evaluation over the records and presents metrics including evaluation scores, latency, cost and error rates. Jakovcevic then shows an agent playground that can call a remote agent over HTTP, allowing the same dataset and evaluators to exercise a more complex system with subagents.

Besides the user interface, she says experiments can be run programmatically through the SDK, API, CLI or CI. She highlights Arize's public agent-skills repository as a way to connect coding agents to the observability system and the context behind production behavior.

05

Closing the loop at agent speed

Jakovcevic describes skills and coding agents connected to traces. She proposes turning failures into tests and having agents investigate and suggest fixes.

The human-led loop is observe, evaluate, change, test and improve. Engineers collect traces, score them, change a prompt, model, tool, skill or policy, and test the candidate. When new production failures appear, those cases can be added to the regression suite so future changes are checked against them.

The observe-to-improve loop
DIAPOSITIVA 4 / 4The observe-to-improve loopThe slide connects tracing, evaluation, changes, testing and feeding new failures back into regression cases.

Jakovcevic asks what happens if an agent investigates a failure and proposes a fix instead of leaving all dashboard review and triage to people. She envisions connecting coding agents to runtime traces so they can inspect behavior and suggest changes. This is a proposed direction for agent observability, not evidence that autonomous fixes are always correct or need no oversight.

Her closing argument is that code changes made without runtime context can be blind to production behavior. Giving agents access to traces, evaluation and feedback can help them investigate and improve their own systems. The value of that loop still depends on the data, tests and safeguards around the proposed changes.

Más de este canal

7 diapositivas14:50EN
AI Engineer· 29 oct 2026Cole Gannaway on code review, cross-repository risk and AI software factoriesCole Gannaway · QodoA one-line rename can pass local checks while affecting distant clients. Qodo’s Cole Gannaway explains how review context, shared rules and independent agents can expose those risks.Code review & verificationAgentes de programaciónFlujos de desarrollo y pruebas+2
5 diapositivas11:47EN
AI Engineer· 29 oct 2026Revolut’s David Abitbol on self-hosting AI coding models at scaleDavid Abitbol · RevolutAbitbol shares engineering delivery trends, GPU-serving costs and latency tuning, then describes controls for operating the tools in a regulated bank.Local inferenceAI cost & performanceDeveloper productivity+2
4 diapositivas21:47EN
AI Engineer· 28 oct 2026Patrick Smyth on Open-Source Supply Chain Security in the AI EraPatrick Smyth · ChainguardChainguard’s Patrick Smyth discusses faster exploitation, malware in dependencies, zero-days and the expanding attack surface around developer workflows.CybersecurityOpen-source ecosystemsAI security+2
5 diapositivas14:09EN
AI Engineer· 28 oct 2026Taylor Luttrell-Williams on Finding Logic Vulnerabilities with SonarQube Hunter AgentTaylor Luttrell-Williams · SonarSonar’s Taylor Luttrell-Williams explains how a security agent maps a codebase, investigates logic flaws and presents validated findings alongside conventional scans.CybersecurityAI securityCode review & verification+2
5 diapositivas16:29EN
AI Engineer· 28 oct 2026Chris Vela on Benchmarking vLLM Configurations with Runpod BenchPodChris Vela · RunpodRunpod’s Chris Vela demonstrates a dashboard for comparing LLM serving configurations and choosing performance settings with workload-specific data.InferenceBenchmarksAI cost & performance+2
6 diapositivas18:52EN
AI Engineer· 28 oct 2026Manish Kapur and Addy Osmani on Verifying AI Software FactoriesManish Kapur, Addy Osmani · SonarSonar’s Manish Kapur and Anthropic’s Addy Osmani discuss code review, evidence and layered checks as coding agents increase the pace of software changes.Fábricas de softwareCode review & verificationAgentes de programación+2