Your Agent Fix Just Broke Something Else - Sofia Jakovcevic, Arize AI

Sofia Jakovcevic from Arize AI highlights the importance of runtime observability and regression testing in understanding and improving AI agent behavior, as traditional code reviews fail to detect errors that manifest only during execution. She presents a five-step automated testing loop integrated into CI/CD pipelines, enabling agents to self-monitor and self-improve by leveraging production traces, evaluators, and Arize’s platform, ultimately envisioning a future where AI agents autonomously debug and enhance themselves.

Sofia Jakovcevic from Arize AI discusses the critical role of observability in building and maintaining AI agents, emphasizing that AI systems often behave like black boxes, making debugging and prediction challenging. Observability shines a light into these black boxes by providing detailed runtime traces, enabling engineers to understand agent behavior step-by-step. This understanding allows for the evaluation of agent performance through metrics and supports iterative improvements. However, a major challenge arises when fixes to agents inadvertently break other functionalities, highlighting the need for robust regression testing integrated into continuous integration and deployment (CI/CD) pipelines.

Jakovcevic illustrates this challenge with a concrete example where a simple one-line policy change intended to improve agent safety by requiring confirmation before actions led to a significant drop in task completion rates. This example underscores that agents fail at runtime rather than at the code level, meaning that behavioral changes and errors manifest during execution and are only visible through observability data such as traces. Therefore, traditional code reviews are insufficient, and runtime traces become the new source of truth for understanding agent behavior and detecting silent errors.

To address these challenges, Jakovcevic outlines a five-step regression testing loop leveraging production traces. The process begins with selecting a representative dataset from real production data, including common workflows, edge cases, failures, and successful scenarios to protect. Next, evaluators are created to score agent performance on key metrics like hallucination, accuracy, and task completion. These evaluators can be automated using large language models (LLMs) as judges or deterministic code-based checks, converting subjective assessments into quantitative scores. The third step involves running baseline experiments on the current agent, followed by testing changes and comparing results to identify improvements or regressions.

The final steps focus on automation and integration into CI/CD workflows, enabling continuous and automatic regression testing with every pull request. Jakovcevic demonstrates how Arize’s platform supports this process through a user-friendly interface for running experiments, managing datasets, and applying evaluators. The platform also supports testing complex multi-agent systems and remote agents, with programmatic access via SDKs and APIs. Additionally, Arize offers agent skills that connect coding agents with observability data, allowing agents to understand and improve their own behavior based on real production feedback.

Jakovcevic concludes by envisioning a future where agents not only rely on human engineers to debug and improve them but can autonomously investigate failures, propose fixes, and close the regression loop at “agentic speed.” This paradigm shift moves observability from a human-centric activity to an agent-centric one, where agents have the tools and accountability to self-monitor, self-evaluate, and self-improve. By integrating runtime observability with coding agents, AI systems can become more robust, adaptive, and capable of continuous self-enhancement, marking a significant advancement in AI development and maintenance.

Useful Links