AI Engineer

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

1881 summary words 8 min summary Watch video

Start with the signal

8 min read

Summary

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: Agent changes must be regression-tested against runtime traces and multi-dimensional evaluations because a locally simple prompt, model, tool, or policy diff can produce unpredictable behavioral trade-offs in production.
  • Why it matters: This provides a practical control-loop architecture for safely operating and improving agent systems, including CI gating, production-derived test sets, and a path for coding agents to use observability data rather than making changes blind.
  • Best use: Use it as a design reference for an agent regression harness: define production trace datasets, establish scorecards and release thresholds, automate experiment runs on PRs, and feed failures back into the suite.

Executive Summary

Sofia Jakovcevic argues that conventional code review is insufficient for agents because the meaningful logic emerges at runtime through model behavior, tool calls, sub-agent handoffs, and long trajectories. A code diff explains what was edited, but a trace reveals what the system actually did. Therefore, traces—not static code alone—should become the operational source of truth for agent regression work.

Her motivating example is a support-agent policy requiring confirmation before every action. The change improved action safety by 17 points, but reduced task completion by 17 points because users could abandon the new confirmation-heavy flow. The lesson is that an isolated metric gain can conceal an overall product regression; teams need explicit, numeric evaluation scorecards rather than intuition-driven prompt edits.

The proposed loop is: construct a representative dataset from production traces; build evaluators for relevant quality, safety, efficiency, cost, and reliability dimensions; establish a baseline experiment; compare candidate changes against that baseline; and make passing the agreed regression criteria a CI/CD merge gate. The dataset should include ordinary workflows, known failures, edge cases, and successful workflows worth protecting.

The forward-looking claim is that observability should evolve from dashboards for humans into a feedback substrate for coding agents. Every observed failure should become a durable regression test, while agents connected to production traces and evaluation results can investigate failures, propose fixes, test them, and eventually improve themselves with bounded release controls.

Key Takeaways

  • Claim: Agent regressions are primarily runtime behavior failures, not code-level failures, so static review cannot reliably predict the impact of a small agent change. | Evidence: The speaker contrasts a one-line system-prompt markdown change with its downstream effects: added steps, altered tool calling, changed sub-agent interactions, and potentially thousands of runtime trajectories. Her framing is: "the diff tells you what changed, but the trace tells you what actually happened." | Implication: Treat tracing as a required input to change review and regression testing; a clean-looking PR should not be interpreted as a low-risk behavioral modification.
  • Claim: Improving one agent objective does not establish that the agent improved overall; releases need a multi-metric scorecard with explicit trade-offs. | Evidence: In the refund/support-agent example, requiring confirmation before actions generated a 17-point improvement in action safety but a 17-point decline in task completion, as users could leave before completing a confirmation-heavy flow. The two scores netted to zero in the example. | Implication: Define non-negotiable safety floors and task-success thresholds separately, then make the desired safety-versus-friction trade-off an explicit product decision. | Caveat: The talk does not specify how to select metric weights or resolve irreducible trade-offs; teams must define their own release policy rather than relying on a simple average.
  • Claim: The regression corpus should be drawn from production traces and deliberately cover four categories: representative normal workflows, known failures, edge cases, and successful flows that must not be broken. | Evidence: Jakovcevic recommends using real user queries, inputs, and tool calls rather than synthesizing data when production traces already exist; the demo uses a curated 100-row dataset containing edge cases, known failures, and protected successful workflows. | Implication: Build a versioned, continuously maintained regression dataset from trace sampling and incident review, rather than testing prompt/model changes only on ad hoc examples. | Caveat: Production-derived data is only useful if it is curated and representative; the speaker specifically warns against overlooking already-successful workflows.
  • Claim: Subjective agent qualities can be operationalized as measurable release criteria using evaluators, with evaluator type matched to the property being tested. | Evidence: The speaker names hallucination, accuracy, tool trajectory, step efficiency, task completion, action safety, user frustration, latency, cost, and error rate as trackable dimensions. She describes LLM-as-a-judge for non-deterministic assessments, while code-based evaluators are appropriate for deterministic checks; outputs can be binary, 0-5, or multi-label. | Implication: Use deterministic assertions wherever possible and establish validation for judge-based metrics before using them as hard merge or deployment gates. | Caveat: An LLM judge is presented as an automation mechanism, not as ground truth; the transcript provides no method for validating judge quality, calibration, or resistance to evaluator drift.
  • Claim: A baseline-versus-candidate experiment loop allows teams to test prompt, policy, handoff, tool, and model changes before deploying them to production. | Evidence: The proposed experiment runs the existing agent across the production-derived dataset, scores it with the evaluation suite to establish a baseline, then reruns the exact corpus after each candidate change. The speaker specifically cites using this to compare prompts and to justify a model switch when a proposed new model is five times more expensive. | Implication: Require experimental evidence of quality, cost, latency, and safety impact before approving material model or orchestration changes; do not treat nominal model capability as sufficient ROI evidence.
  • Claim: Regression evaluation should be automated as a PR gate in CI/CD rather than performed only after deployment or through manual dashboard inspection. | Evidence: The talk proposes a GitHub Actions-style workflow in which every pull request runs an experiment against the team-defined evaluation suite and cannot merge until it meets the listed regression criteria. | Implication: Add an agent-specific CI stage that compares candidate results to a baseline and blocks or escalates changes that violate predefined score thresholds. | Caveat: The transcript does not address practical CI concerns such as test-run latency, nondeterministic result variance, secrets isolation, or how to handle flaky evaluation failures.
  • Claim: Every production failure should be converted into a regression test, creating a compounding reliability loop and eventually enabling agents to participate in their own debugging. | Evidence: Jakovcevic's first closing takeaway is "every failure should become a test." Her second is that coding agents currently push PRs blind when they lack production context; connecting them to observability and evaluation systems would let them investigate, propose, test, and improve fixes. | Implication: Turn incidents and failed experiments into permanent test fixtures now; later, expose read-only trace and experiment context to coding agents before granting any automated remediation authority. | Caveat: The self-improving-agent portion is presented as a directional future state, not as evidence that autonomous remediation is currently safe to ship without human-controlled thresholds and review.

Detailed Brief

Implementation surfaces demonstrated in Arize

  • Claims: The workflow can be applied at either a single-agent prompt level or to a remotely callable multi-agent system.; The same experimentation pattern can be run through a UI, SDK, REST interface, CI pipeline, or CLI rather than being tied to manual console usage.; A coding-agent skills repository can connect IDE-based coding agents to observability-platform capabilities and contextual data.
  • Evidence: The prompt playground combines a prompt version, attached tools, model and LLM configuration, dataset, and selected evaluators; prompt variants can be duplicated and run side by side.; The agent playground can call a remote agent through HTTP for end-to-end evaluation of sub-agent communication and codebase-level orchestration.; The UI shown tracks evaluation results alongside latency, total cost, and error rate over time.
  • Caveats: The product walkthrough is vendor-specific and demonstrates Arize capabilities, but the underlying workflow—trace dataset, evaluator suite, baseline comparison, and CI gate—is tool-agnostic.; Remote-agent evaluation requires a safe connectivity and access design; the transcript does not cover authentication, data exposure, or environment isolation.
  • Implications: Choose the test boundary deliberately: use isolated prompt tests for rapid iteration, but retain end-to-end remote-agent runs for orchestration, tool-use, and sub-agent regressions.; A control plane should preserve experiment history and compare quality results with operational measures such as cost, latency, and failures.

Operating model shift: observability to self-improvement

  • Claims: The current loop remains human-limited because people inspect dashboards, triage errors, write patches, and review PRs.; The intended future control loop gives agents access to runtime context so they can identify causes and generate candidate fixes instead of relying only on static repository context.
  • Evidence: The speaker describes a loop of production tracing, evaluation, implementation of a prompt/model/tool/skill/policy change, experimentation, and shipment or feedback of failed cases into observability.; She explicitly characterizes coding agents without production data as "pushing PRs blind."
  • Caveats: The talk does not specify governance mechanisms for agent-generated PRs, including permissions, rollback criteria, approval requirements, or safeguards against optimizing narrowly to the evaluator suite.
  • Implications: The near-term opportunity is not unsupervised self-modification; it is giving development agents structured access to failure cases, traces, and evaluation reports so proposed fixes start from operational evidence.

Notable Concepts & Terms

  • Runtime logic / traces as source of truth: For agents, meaningful execution logic emerges from model outputs, tool use, handoffs, and trajectories at runtime; traces provide the evidence static diffs omit.
  • Regression loop: The proposed operating cycle: select production-derived data, define evaluators, establish baseline, experiment on changes, and enforce results in CI/CD.
  • LLM-as-a-judge: Using an LLM with an evaluation rubric to turn subjective agent properties such as task completion, hallucination, or efficiency into trackable scores.
  • Production-derived regression dataset: A corpus built from actual traces that includes normal traffic, known failures, rare edge cases, and successful workflows requiring protection.
  • Baseline experiment: A scored run of the current agent against the fixed test dataset, used as the comparison point for each proposed prompt, model, tool, or policy change.
  • CI regression gate: A pull-request workflow that runs agent experiments and prevents merge until defined evaluation criteria are met.
  • Every failure should become a test: A compounding-reliability principle: production failures and failed experiments should be added to the permanent regression suite.
  • Observability to self-improvement: The proposed evolution from humans using dashboards to agents using trace and evaluation context to investigate, test, and propose their own fixes.

Operator Notes / Why Ken Should Care

  • Create a versioned regression corpus from production traces with explicit quotas for normal flows, incidents, edge cases, and protected successes.
  • Publish a release scorecard that separates hard constraints from optimization metrics; at minimum, prevent safety gains from masking task-completion losses.
  • Implement baseline-versus-PR experiment comparison for prompt, model, tool, handoff, and policy changes, including cost and latency deltas.
  • Validate and monitor LLM-judge evaluators before making them hard deployment gates; use code checks for deterministic requirements.
  • Add an incident practice requiring each confirmed failure to produce a sanitized regression fixture and associated expected evaluation outcome.
  • Give coding agents read-only access to relevant traces, failed cases, and experiment reports first; retain human approval and bounded CI gates for generated fixes.

Source/Metadata

  • Title: Your Agent Fix Just Broke Something Else - Sofia Jakovcevic, Arize AI
  • Transcript words: 7318
  • Duration seconds: 1164
  • Timestamp note: No usable timestamps or chapters were present in the supplied transcript; the transcript also contains substantial duplicated content.
Full transcript 3599 words · 32 min read
0:09

Sofie Kovcevic

0:11

Hello everyone, my name is Sofie Kovcevic. I'm a forward deployed engineer at Arise, and for those who aren't familiar, Arise is an observability backend that is designed to make AI work. Now what does that mean? Building AI systems can be inherently intuitive in some sense, especially when a lot of that low-level programming is abstracted into the mind of an agent. Unfortunately though, that mind can be a bit of a black box. When that black box is difficult to understand, it's difficult to predict, and therefore difficult to debug. And that's where observability becomes essential. Observability helps you understand what your systems are actually doing. It's essentially shining a light in the black box. And once you understand what the system is doing, step-by-step, you can then evaluate it. Run evaluation metrics to track its performance, and then use that data to iterate and improve your agents over time.

0:17

But I want to take this one step further. Because the biggest challenge isn't determining what broke, the biggest challenge is that when you do submit a fix, you want to make sure that you don't break 10 other things along the way. Now raise your hand if you've had that exact issue before. You push, yep, seeing a lot of hands. You push a simple change, you know, should be easy, no issues. And next thing you know, everything's on fire. So today we're going to discuss how you can use your observability as a way to build a robust regression process. Not only something that your engineers can do, but an automatic process that feeds into your CI/CD. We're going to break this down into three parts. First, we'll discuss why agent regression is so different and difficult to detect. And the first thing we're going to touch on is that agents don't fail at the code level, they fail at runtime. We're then going to use this premise to build out our regression loop. It's going to be a five-step process. We'll touch on it at a high level overview and then we'll move on to the Arise platform and show you exactly how you can do it today. Then we'll close off the session by closing that regression loop at agentic speed and touching on where we're seeing the next frontier of agent observability move to. And if you stick with me till the end, I'll introduce a paradigm shift that I hope you'll all find interesting. So let's get started. First, with a concrete example. So imagine with me that you have a support agent and you have a security engineer that has approached you and that security engineer has reviewed the policy of your support agent and determined that he wants to add one line, a simple one line to your agent that will ask your agent to confirm before it takes any action. Sounds simple, sounds harmless. Your security engineer says he has the intuition and oftentimes we're quick to make this change. I'm not even going to ask if you've done this before because I know everyone has pushed a one line prompt change and just assumed everything will go well. And the reason we make that assumption is because we think that because it's written in natural language that we have this intuition on how these agents are performing. We're really coding on vibes and we don't want to be. We want to be able to code with a numeric evaluation suite backed by data. We want to have scores that prove that these changes are actually making a positive impact and not just crossing our fingers. But let's say in the scenario you did push that one line change and now you are running your evaluations on your production data a week after it's been submitted. And the first thing you notice is that you actually have a 17 point improvement on action safety. So your security engineer was correct. Asking the agent to confirm before taking any action does improve its overall safety. But your observability engineers are continuing to evaluate and they also check for task completion and they notice a 17 point degradation. Now this is occurring because if you have an agent that's confirming before every single action it's taking, now tasks are being uncompleted. If a user leaves the session that session is never completed to the end and now you have incomplete tasks and you see this unlikely result. You may not have caught this initially when you were thinking about the project but your evaluation suite has caught this. And ironically enough the overall average of both is net zero. And what I want you to take away from here is just because you improve the dimension of one agent does not mean that you're improving the agent as a whole. The question I have for you is would you have shipped this change? Many of us would have before the evaluation test. And this is why it's so important that we get these numeric results so that we're not shipping on vibes. We're shipping with backed data. So to understand where the mistake that we made is we made an unrealistic assumption and that assumption is that the error is going to occur at the code but the error rarely occurs at the code level. Instead these agents are failing at runtime. What the code reviewer saw is here on the left hand side. It was a one line change in a system prompt markdown file. Easy change, simple to understand, simple to approve. But in reality this code change was local but the behavioral changes of this code change was in production. It was in the runtime. This one simple line has shifted how the agent operates. It's adding additional steps. It's changing how the agent works with other sub-agents. It's changing how the agent calls tools. All of these different trajectories which could be thousands of possible trajectories are not in your static code. They're only in your observability backend. They're only in your traces. And so what we are seeing here is that the diff tells you what changed but the trace tells you what actually happened. And there's a shift here that traces are becoming the new source of truth. These structured logs of what your agents are actually doing actually is what truly represents what these systems are doing. In traditional software logic was written down. It was very clear to determine what that runtime was before you ever pushed production. But now the logic only exists at runtime. The observability becomes essential when we're looking at regression testing. This gap between what was written and what actually happens is filled with silent errors. So to capture that we need to start our regression testing by looking at our traces. So let's build out this regression loop together. It's a five-step process. We're going to start with our production traces. We're going to build evals, run experiments, and then close it all up to be an automatic gate at CI. First I'm going to do a five-step high-level overview and then we're going to go into the actual product and show you how you can do it yourself.

0:22

So step one is we're going to select a data set. Seems simple enough. We want to pull real production traces. We don't need to synthesize data. If we already have real user queries, real inputs, real tool calls, we're pulling from that directly. It's important that our data set is representative of the average workflow that our users are going to be pushing into our systems. But it's also important that we capture known failures. We filter out moments where it often errors, often fails at eval metrics. Capture those into your data sets. You also want to capture edge cases. Maybe not as common, but just as important. And one thing that we often see users forget is capturing successful workflows that we want to protect. Because again, we're not just trying to make sure that the fix is going to work, but we also want to test that we're not going to break something that was already working. So it's important that we capture all four of these in our data set. Once we have this production data set, we can then build out the rest of our regression testing suite. The second step is we want to have a scoring mechanism. And this is where we bring in evaluators. Now, show of hands, how many here are familiar with the concept of evaluating agents? I'm so happy to see so many hands. This is a core foundational part of agentic engineering. Evaluators allow us to take metrics and dimensions that are important to your engineers, your product team, and actually quantify them. What do I mean by that? Let's take some metrics that are important for your agents. Things like hallucination, accuracy, tool trajectory, step efficiency. All of these metrics are subjective in nature. And you may have a human that reviews them and can potentially determine whether or not something was hallucinated, whether or not the most efficient pathway was taken. But we want to be able to automate this process. We want to turn a subjective metric into a numeric score. And we do this by leveraging LLMs. We use a concept of LLM as a judge, where we judge a span, a trace, some log data against an LLM. The LLM has a particular guide of how it determines whether or not something was hallucinated or factual, something was efficient or not efficient. And now we've done essentially a binary classification. In this example at the top right corner, you could see a task completion eval, where the LLM as a judge has a task of determining whether or not something was complete or incomplete. Now we've taken a subjective metric and we've essentially turned it into a binary score, zero, one. You can translate the score across

0:29

Human that reviews them and can potentially determine whether something was hallucinated, whether the most efficient pathway was taken. But we want to be able to automate this process. We want to turn a subjective metric into a numeric score. And we do this by leveraging LLMs. We use a concept of LLM as a judge, where we judge a span, a trace, some log data against an LLM. The LLM has a particular guide of how it determines whether something was hallucinated or factual, something was efficient or not efficient. And now we've done essentially a binary classification. In this example at the top right corner, you could see a task completion eval, where the LLM as a judge has a task of determining whether something was complete or incomplete. Now we've taken a subjective metric and we've essentially turned it into a binary score, zero, one. You can translate the score across zero to five. You can have multiple different labels. But you've now turned a quantitative measurement into a qualitative score that you can measure against. You're not limited to LLM as a judge. You can also use code-based evals or ML-based evals as well, based on what that metric is. A code evaluator is great for your deterministic checks, but an LLM as a judge is good for your non-deterministic checks. So once we have a list of all of our metrics that are important to us, we build evals for each of them. Now we have a testing suite that we can go against. Step three is we're going to run our baseline experiment. And what this experiment is, is we're going to take our agent and run it against all of our production traces, all of our production data sets. After we get the output of those production data sets, we're then going to run our eval testing suite on top of that. And that's going to be our baseline. Now you can do this in the SDK. It's just run experiment. You'll pass in that data set, pass in that task, pass in your evaluation suite, and you'll get those results. We're going to touch on how you can do this in the UI, as well as how you can do this with your coding agents. But once you have that baseline experiment, you're then going to add your one change. Change that policy, rerun the evaluation. What are the eval results? A simple process now that you can quickly iterate on, and not just with one policy change, but test multiple changes within your prompts, test multiple models. If your team comes to you and says we want to switch to the new Fable model, it's five times more expensive. You're not going to switch without proving that you're going to get a good ROI. This is how you can prove that with a numeric set of measurements to determine whether it actually is improving your investment to switch to a more expensive model. And you can adjust this policy, rerun and compare. Rerun and compare how changing the prompt, changing handoffs, changing tools, changing models is all going to affect your overall output, all without having to deploy to production. And then we can automate this. We push this experiment into CI to complete this automation. Now, each time that you have a pull request, let's say you set this up in GitHub Actions, for example, each pull request, each PR is run through an experiment workflow against the evaluations that your team has deemed important. And you don't merge until it meets all of the regression criteria that you have listed. Now you're no longer pushing on vibes, you're pushing with confidence that you actually do have a positive impact in your performance. And if it is negative, you go back, you test and you reiterate. So let's actually show how to do this in the platform. Let me switch over. Here we have the Arise platform and I'm showcasing this exact refund agent. You can see in our baseline experiment what our scores were and then you can see that plus 17 points on action safety and minus 17 points on task completion. Each one of these points, each one of these line items here is a different test that I ran with different prompt changes, potentially different model changes, and I'm evaluating each one of them to see which one has the best trade-off to get to where my end goal is. And I can see that overall I'm going to have a plus 18 points on action safety and plus six on task completion. Now, how can we build these individual points? Well, there's a couple ways. We'll do this first in the UI. I'm going to jump into the playground here. I'm going to create a new playground. We're going to start with the prompt playground to test a single agent. Let's call this AIE NYC. Perfect. Once I'm in the prompt playground, here is where I can test a single agent. An agent, a single agent, is essentially just a single prompt with a set of tools attached to it, a model, LLM configurations, and so we're going to replicate that here. Now, I've already stored my prompt in my prompt hub, so I can pull it right here. I've got version one, and then I can pull up my data set. I've already selected a data set that I can use here and that I've gone through and pulled out those edge cases, those known failures, and those successful workflows that I want to protect, all listed in this 100 row data set. I can test this right now, or I can test multiple prompts at the same time. So I'm actually going to duplicate this, and I can change a line item directly in here, or I can load up a separate version right here and test side by side, so I can see just how quickly, just how both of these prompts are affected. Now, of course, we have to add our scoring mechanism, so that's going to be our evals. I'm going to click here. I'm going to add in my task completion, and then I'm also going to add in my action safety, and you can see here that there is a ton of other pre-built evaluators you can select from, hallucination, user frustration, and we've got some code templates, security checks, etc., and you always have the ability to customize your own. Once I run this, it's going to run on every single record, and then it's going to pull out those eval scores, and then when I go into my datasets here, go into my experiment run flow, it'll pop up under here as well, and I can pull up all those metrics that are important for me. I can look at latency, I can look at my evals, I can look at my total cost and error rates, and track that over time. So I can look this for PR changes, for playground runs, and there's one more other option that I want to show here too, and that's if I go into playground, I click here, and I do agent playground, call this AIE. Agent playground allows you to not only evaluate at a single agent, but at multiple agent levels. If you give us access to connect to your agent remotely, for example, through an HTTP call, if I go into remote agents here, you can connect your remote agent directly here so that you can change how different sub-agents communicate with each other, all directly in your code base, and then we can call that. So each record in your dataset will call against your agent, we'll test, we'll get the output, we'll run those evals, and then score it in the same mechanism. So you have two ways of running these experiments within the UI. You can run them in the prompt playground, testing a single agent, or run them in the agent playground and test a very complicated multi-agentic system. Now, this is in the UI, but of course you can do this programmatically with the SDK, REST, or CI, or CLI, but my favorite method to do this is actually with coding agents. How familiar is this group with the concept of agent skills? I'd love to see when people are saying advanced. Agent skills allows you to connect your coding agents with external databases in advanced contexts. Arise has a public repository of skills that allows you to connect to every feature available in the Arise UI. This means that you can close the loop between what your coding agents are producing in your IDE, the code that they're producing, with what is actually happening in your observability backend. So let's actually touch more on that closing the loop. So how are we going to close this loop at agent speed? We've got the same loop, but instead of running it by people, we want to run it by agents. Now, I'm going to highlight two key takeaways. We only have two minutes left here, and the first key takeaway I want to touch on is what the engineers are doing. Today, engineers are the ones that are closing the loop. And to summarize what that loop is, is we have observability first. That is, as your systems are running, we are taking that log data, that tracing data, and we are tracking it for every run in production. We then take that, evaluate it, get those scores. Then we can implement a change, that could be a prompt change, model change, tool, skill, policy change, and then we test that change.

0:37

# Observability Backend: Closing the Loop at Agent Speed So let's touch more on closing the loop. How are we going to close this loop at agent speed? We've got the same loop, but instead of running it by people, we want to run it by agents. Now, I'm going to highlight two key takeaways. We only have two minutes left here, and the first key takeaway I want to touch on is what the engineers are doing.

0:47

Today, engineers are the ones that are closing the loop. To summarize what that loop is: we have observability first. As your systems are running, we are taking that log data, that tracing data, and we are tracking it for every run in production. We then take that, evaluate it, get those scores. Then we can implement a change. That could be a prompt change, model change, tool, skill, policy change, and then we test that change. We iterate on it with the experiments workflow. Finally, we improve it. If it passes, great, ship it. But if it fails, we close the loop. We take those failed cases and we bring it back to the observability layer. These new production traces that failed then become new cases in our regression testing suite.

0:53

That's the first takeaway here: every failure should become a test. Every failure should make your agent stronger and harder to break. Once you have regression test suites that are constantly building on themselves, you have a more robust method of continuously iterating and improving. That's takeaway number one.

0:58

Now, takeaway number two, going back to that loop, I have a question for the group: what if an agent could do the investigation and propose the fix? Because right now, the manual investigation is the bottleneck. Humans are the bottleneck here. So what we're seeing is a shift from observability to self-improvement. The manual bottleneck here is that humans are still reviewing dashboards. They're still triaging and shipping those fixes and reviewing those PRs. And that is the ultimate bottleneck.

1:04

So we want to not only close this loop, but we want to close it at agentic speeds. We don't want to just give humans the ability to debug agents. We want to give agents the ability to debug and understand themselves. That's the shift that we're seeing in observability. Observability is no longer about humans understanding agents. It's about agents understanding themselves. Agents having the tools to improve themselves. Agents having the tools to be accountable.

1:08

Remember what we talked about in the very beginning: traces is where the real runtime is. That's where the real logic is stored. If your coding agents are pushing PRs, and I know they are, they're pushing PRs without actually knowing what's happening in production. That means they're pushing PRs blind. They're reliant on the static code. They don't know what's actually happening in production. By closing that loop, by connecting your coding harnesses, your coding agents with what is actually happening in your production database, you are giving your agents the full understanding of what these changes are actually making.

1:14

And that is the second and final takeaway: the best agents don't just learn from failures. The best agents fix themselves. That's the future of observability that we're seeing—agents can not only see, but they can evaluate and improve themselves on their own. Thank you. 10 other things along the way. Now raise your hand if you've had that exact issue before. You push, yep, seeing a lot of hands. You push a simple change, you know, should be, should be easy, no issues. And next thing you know, everything's on fire. So today we're going to discuss how you can use your observability as a way to build a robust regression process. Not only something that your

1:41

engineers can do, but an automatic process that feeds into your CI CD. We're going to break this down into three parts. First, we'll discuss why agent regression is so different and difficult to detect. And the first thing we're going to touch on is that agents don't fail at the code level, they fail at runtime. We're then going to use this premise to build out our regression loop. It's going to be a five step process. We'll touch on it at a high level overview and then we'll move on to the Arise platform and show you exactly how you can do it today. Then we'll close off the session by

2:13

closing that regression loop at agentic speed and touching on where we're seeing the next frontier of agent observability move to. And if you stick with me till the end, I'll introduce a paradigm shift that I hope you'll all find interesting. So let's get started. First, with a concrete example. So imagine with me that you have a support agent and you have a security engineer that has approached you and that security engineer has reviewed the policy of your support agent and determined that he wants to add one line, a simple one line to your agent that will ask your agent to confirm before it takes any action.

2:48

Sounds simple, sounds harmless. Your security engineer says he has the intuition and oftentimes we're quick to make this change. I'm not even going to ask if you've done this before because I know everyone has pushed a one line prompt change and just assumed everything will go well. And the reason we make that assumption is because we think that because it's written in natural language that we have this intuition on how these agents are performing. We're really coding on vibes and we don't want to be. We want to be able to code with a numeric evaluation suite backed data. We want to have scores that prove

3:23

that these changes are actually making a positive impact and not just crossing our fingers. But let's say in the scenario you did push that one line change and now you are running your evaluations on your production data a week after it's been submitted. And the first thing you notice is that you actually have a 17 point improvement on a action safety. So your security engineer was correct. Asking the agent to confirm before taking any action does improve its overall safety. But your observability engineers are continuing to evaluate and they also check for task completion and they notice a 17 point degradation.

3:58

Now this is occurring because if you have an agent that's confirming before every single action it's taking now tasks are being uncompleted. If a user leaves the session that session is never completed to the end and now you have incomplete task and you see this unlikely result. You may not have caught this initially when you were thinking about the project but your evaluation suite has caught this. And ironically enough the overall average of both is net zero. And what I want you to take away from here is just because you improve the dimension of one agent does not mean that you're improving the agent as a

4:32

whole. The question I have for you is would you have shipped this change? Many of us would have before the evaluation test. And this is why it's so important that we get these numeric results so that we're not shipping on Vibes. We're shipping with backed data. So to understand where the mistake that we made is is we made an unrealistic assumption and that assumption is that the error is going to occur at the code but the error rarely occurs at the code level. Instead these agents are failing at runtime. What the code reviewer saw is here on the left hand side. It was a one line change in a system prompt markdown file. Easy change, simple to

5:12

understand, simple to approve. But in reality this code change was local but the behavioral changes of this code change was in production. It was in the runtime. This one simple line has shifted how the agent operates. It's adding additional steps. It's changing how the agent works with other sub-agents. It's changing how the agent calls tools. All of these different trajectories which could be thousands of possible trajectories are not in your static code. They're only in your observability backend. They're only in your traces. And so what we are seeing here is that the diff tells you what changed but the trace

5:47

tells you what actually happened. And there's a shift here that traces are becoming the new source of truth. These structured logs of what your agents are actually doing actually is what truly represents what these systems are doing. In traditional software logic was written down. It was very clear to determine what that runtime was before you ever pushed production. But now the logic only exists at runtime. The observability becomes essential when we're looking at regression testing. This gap between what was written and what actually happens is filled with silent errors. So to capture

6:21

that we need to start our regression testing by looking at our traces. So let's build out this regression loop together. It's a five-step process. We're going to start with our production traces. We're going to build evals, run experiments, and then close it all up to be an automatic gate at CI. First I'm going to do a five-step high-level overview and then we're going to go into the actual product and show you how you can do it yourself. So step one is we're going to select a data set. Seems simple enough. We want to pull real production traces. We don't need to synthesize data. If we already have real user queries, real inputs, real tool calls,

6:59

we're pulling from that directly. It's important that our data set is a representative work is representative of the average workflow that our users are going to be pushing into our systems. But it's also important that we capture known failures. We filter out moments where it often errors, often fails at eval metrics. Capture those into your data sets. You also want to capture edge cases. Maybe not as common, but just as important. And one thing that we often see users forget is capturing successful workflows that we want to protect. Because again, we're not just trying to make sure that the fix is going to work,

7:36

but we also want to test that we're not going to break something that was already working. So it's important that we capture all four of these in our data set. Once we have this production data set, we can then build out the rest of our regression testing suite. The second step is we want to have a scoring mechanism. And this is where we bring in evaluators. Now, show of hands, how many here are familiar with the concept of evaluating agents? I'm so happy to see so many hands. This is a core foundational part of agentic engineering. Evaluators allow us to take metrics and dimensions that are

8:09

important to your engineers, your product team, and actually quantify them. What do I mean by that? Let's take some metrics that are important for your agents. Things like hallucination, accuracy, tool trajectory, step efficiency. All of these metrics are subjective in nature. And you may have a human that reviews them and can potentially determine whether or not something was hallucinated, whether or not the most efficient pathway was taken. But we want to be able to automate this process. We want to turn a subjective metric into a numeric score. And we do this by leveraging LLMs. We use a

8:44

concept of LLM as a judge, where we judge a span, a trace, some log data against an LLM. The LLM has a particular guide of how it determines whether or not something was hallucinated or factual, something was efficient or not efficient. And now we've done essentially a binary classification. In this example at the top right corner, you could see a task completion eval, where the LLM as a judge has a task of determining whether or not something was complete or incomplete. Now we've taken a subjective metric and we've essentially turned it into a binary score, zero, one. You can translate the score across

9:20

zero to five. You can have multiple different labels. But you've now turned a quantitative measurement into a qualitative score that you can measure against. You're not limited to LLM as a judge. You can also use code-based evals or ML-based evals as well, based on what that metric is. A code evaluator is great for your deterministic checks, but an LLM as a judge is good for your non-deterministic checks. So once we have a list of all of our metrics that are important to us, we build evals for each of them. Now we have a testing suite that we can go against. Step three is we're going to run our

9:52

baseline experiment. And what this experiment is, is we're going to take our agent and run it against all of our production traces, all of our production data sets. After we get the output of those production data sets, we're then going to run our eval testing suite on top of that. And that's what's going to be our baseline. Now you can do this in the SDK. It's just run experiment. You'll pass in that data set, pass in that task, pass in your evaluation suite, and you'll get those results. We're going to touch on how you can do this in the UI, as well as how you can do this with your coding agents. But once you

10:24

have that baseline experiment, you're then going to add your one change. Change that policy, rerun the evaluation. What are the eval results? A simple process now that you can quickly iterate on, and not just with one policy change, but test multiple changes within your prompts, test multiple models. If your team comes to you and says, we want to switch the new Fable model, it's five times more expensive. You're not going to switch without proving that you're going to get a good ROI. This is how you can prove that with a numeric set of measurements to determine whether or not it

10:56

actually is improving your investment to switch to a more expensive model. And you can adjust this policy, rerun and compare. Rerun and compare how changing the prompt, changing handoffs, changing tools, changing models is all going to affect your overall output, all without having to deploy to production. And then we can automate this. We push this experiment into CI to complete this automation. Now, each time that you have a pull request, let's say you set this up in GitHub Actions, for example, each pull request, each PR is run through an experiment workflow against the evaluations

11:30

that your team has deemed important. And you don't merge until it meets all of the regression criteria that you have listed. Now you're no longer pushing on vibes, you're pushing with confidence that you actually do have a positive impact in your performance. And if it is negative, you go back, you test and you reiterate. So let's actually show how to do this in the platform. Let me switch over. Here we have the Arise platform and I'm showcasing this exact refund agent. You can see in our baseline experiment what our scores were and then you can see that plus 17 points on action safety and minus 17 points

12:06

on task completion. Each one of these points, each one of these line items here is a different test that I ran with different prompt changes, potentially different model changes, and I'm evaluating each one of them to see which one has the best trade-off to get to where my end goal is. And I can see that overall I'm going to have a plus 18 points on action safety and plus six on task completion. Now, how can we build these individual points? Well, there's a couple ways. We'll do this first in the UI. I'm going to jump into the playground here. I'm going to create a new playground. We're going to start with the prompt playground to

12:40

test a single agent. Let's call this AIE NYC. Perfect. Once I'm in the prompt playground, here is where I can test a single agent. An agent, a single agent, is essentially just a single prompt with a set of tools attached to it, a model, LLM configurations, and so we're going to replicate that here. Now, I've already stored my prompt in my prompt hub, so I can pull it right here. I've got version one, and then I can pull up my data set. I've already selected a data set that I can use here and that I've gone through and pulled out those edge cases, those known failures, and those successful workflows that I

13:16

want to protect, all listed in this 100 row data set. I can test this right now, or I can test multiple prompts at the same time. So I'm actually going to duplicate this, and I can change a line item directly in here, or I can load up a separate version right here and test side by side, so I can see just how quickly, just how both of these prompts are affected. Now, of course, we have to add our scoring mechanism, so that's going to be our evals. I'm going to click here. I'm going to add in my task completion, and then I'm also going to add in my action safety, and you can see here that there is a ton of other

13:53

pre-built evaluators you can select from, hallucination, user frustration, and we've got some code templates, security checks, etc., and you always have the ability to customize your own. Once I run this, it's going to run on every single record, and then it's going to pull out those eval scores, and then when I go into my datasets here, go into my experiment run flow, it'll pop up under here as well, and I can pull up all those metrics that are important for me. I can look at latency, I can look at my evals, I can look at my total cost and error rates, and track that over time. So I can look this for PR changes,

14:35

for playground runs, and there's one more other option that I want to show here too, and that's if I go into playground, I click here, and I do agent playground, call this AIE, oh, there we go. Agent playground allows you to not only evaluate at a single agent, but at multiple agent levels. If you give us access to connect to your agent remotely, for example, through a HTTP call, if I go into remote agents here, you can connect your remote agent directly here so that you can change how different sub-agents communicate with each other, all directly in your code base, and then we can call that. So each record in your dataset

15:14

will call against your agent, we'll test, we'll get the output, we'll run those evals, and then score it in the same mechanism. So you have two ways of running these experiments within the UI. You can run them in the prompt playground, testing a single agent, or run them in the agent playground and test a very complicated multi-agentic system. Now, this is in the UI, but of course you can do this programmatically with the SDK, REST, or CI, or CLI, but my favorite method to do this is actually with coding agents. How familiar is this group with the concept of agent skills? I'd love to see when people

15:48

are saying advanced. Agent skills allows you to connect your coding agents with external databases in advanced contexts. Arise has a public repository of skills that allows you to connect to every feature available in the RISE UI. This means that you can close the loop between what your coding agents are producing in your IDE, the code that they're producing, with what is actually happening in your observability backend. So let's actually touch more on that closing the loop. So how are we going to close this loop at agent speed? We've got the same loop, but instead of running it by people, we want to run it

16:20

by agents. Now, I'm going to highlight two key takeaways. We only have two minutes left here, and the first key takeaway I want to touch on is what the engineers are doing. Today, engineers are the ones that are closing the loop. And to summarize what that loop is, is we have observability first. That is, as your systems are running, we are taking that log data, that tracing data, and we are tracking it for every run in production. We then take that, evaluate it, get those scores. Then we can implement a change, that could be a prompt change, model change, tool, skill, policy change, and then we test that change.

16:54

We iterate on it with the experiments workflow. Finally, we improve it. If it passes, great, ship it. But if it fails, we close the loop. We take those failed cases and we bring it back to the observability layer. These new production traces that failed then become new cases in our regression testing suite. And that's the first takeaway here, is that every failure should become a test. Every failure should make your agent stronger and harder to break. Once you have these regression tests that are regression test suites that are constantly building on themselves, you have a more robust

17:30

method of continuously iterating and improving. That's takeaway number one. Now, takeaway number two, going back to that loop, I have a question for the group, and that is, what if an agent could do the investigation and propose the fix? Because right now, the manual investigation is, that's the bottleneck. Humans are the bottleneck here. So what we're seeing is a shift from observability to self-improvement. The manual bottleneck here is that humans are still reviewing dashboards. They're still triaging and shipping those fixes and reviewing those PRs. And that is the ultimate bottleneck. So

18:02

we want to not only close this loop, but we want to close it at agentic speeds. We don't want to just give humans the ability to debug agents. We want to give agents the ability to debug and understand themselves. And that's the shift that we're seeing in observability. Is observability is no longer about humans understanding agents. It's about agents understanding themselves. Agents having the tools to improve themselves. Agents having the tools to be accountable. Remember what we talked about in the very beginning. That is that traces is where the real runtime is. That's where the real logic is stored.

18:34

If your coding agents are pushing PRs, and I know they are, they're pushing PRs without actually knowing what's happening in production. That means they're pushing PRs blind. They're reliant on the static code. They don't know what's actually happening in production. By closing that loop, by connecting your coding harnesses, your coding agents with what is actually happening in your production database, you are giving your agents the full understanding of what these changes are actually making. And that is the second and final takeaway. That is that the best agents don't just learn from failures. The best

19:06

agents fix themselves. And that's the future of observability that we're seeing is that agents can not only see, but they can evaluate and improve themselves on their own. Thank you.

Reading tools

Type to find a passage

Appearance
Ask this transcript

Add a note