← All AI Engineer talks

AI Engineer World's Fair 2026

From Agent Traces to Agent Simulations — Rustem Feyzkhanov, Snorkel AI

About this talk

Snorkel AI platform leader Rustem Feyzkhanov explains how production agent traces can become repeatable, company-specific simulation benchmarks that recreate tools, APIs, files, database state, and user interactions. He describes containerized task environments, oracle solutions, final-state verifiers, LLM judges, and long-horizon workflows, then shows how these evaluations support regression gates, model comparison, cost and latency optimization, and an observability-to-experimentation loop. Audience questions address benchmark composition and verifier design.

Chapters

  1. 0:00Introduction and the case for company-specific benchmarks
  2. 3:14Public benchmarks, production fidelity, and evaluation goals
  3. 6:33Simulation task structure, Docker environments, and oracle solutions
  4. 8:37Production-like services, simulated users, and long-horizon tasks
  5. 10:39Final-state verification, LLM judges, and benchmark validation
  6. 15:48Connecting observability and experimentation
  7. 16:48Audience questions on benchmark composition and verifiers

Talk transcript

  1. 0:00

    [upbeat music] Okay. Yeah, thanks everyone for coming, and I know this is the last session before lunch, so thanks for staying here.

  2. 0:19

    Let's make it smooth and with good vibes, just as Ned said, and thanks Ned for introduction and for inviting me. So yeah, my name is Rustem. I'm leading AI pod platform team, uh, at Snorkel.

  3. 0:31

    And, uh, today, I want to tell you how to turn agent traces into agent simulations and why this, uh, un- becomes the next stage for agent evaluations.

  4. 0:42

    So three main things that I want you to take away from my talk is, uh, every company needs a benchmark. It's the only way to reliably evaluate, release, and improve your agents.

  5. 0:54

    It has to be as close to production as possible. Uh, it has to mimic your real tools, real API services, policies, and workflows.

  6. 1:04

    And finally, it has to be part of your agentic life cycle. It's not a static benchmark. It's a constantly populated data set from your production traces.

  7. 1:17

    So why is Snorkel AI giving this talk? We are a data as a service company, and we, uh, basically selling, uh, benchmarks and we're producing benchmarks at scale, and for us, benchmark construction is an engineering discipline.

  8. 1:33

    We run millions of agent simulations per month, and, uh, we learned how to do, like, uh, en- environment build and scale, working using both agents, uh, and subject matter experts to build reliable benchmarks that are close to production and, uh, specific domains.

  9. 1:52

    So a lot of the time when people say about agent evaluation, they, they're focused on traces, and traces are very useful. The usual traces, like you can see an example on the screen, it basically shows, okay, here is the input prompt, here are the actions that agent took, and here is the agent o- output.

  10. 2:09

    And then evaluation can analyze it, eval, and say, "Okay, was agent successful or not? Was there any edge case?"

  11. 2:16

    Uh, so it is useful to find failures in production, but it's hard to test different variants. You can run A/B testing, and that's one way of checking different agent configurations.

  12. 2:28

    But it's hard to make sure that everything is repeatable because you will get different da- database state, different tool versions, and so on, so you never fully compare apples to apples.

  13. 2:38

    A flight simulation turns traces into repeatable experiments. Now you take tr- production traces, you construct tasks, and then you can run simulation, uh, benchmark, um, with different agent configuration offline, and you can compare agents using different metrics, not just success rate, but cost, latency, and retries, and you can run those in parallel.

  14. 3:05

    But you can ask, "Okay, but why do we need it? Like, we already have public benchmarks." The challenge with public benchmarks is that usually they are focused on a very specific domains.

  15. 3:14

    For example, SWE-bench is focused on, like, uh, fi- fixing GitHub issues, Terminal-Bench will focus on agent running in Terminal, and COAW-bench will focus on computer use agent. In your case, you want your benchmark to be focused on your company's domain, both from perspective of use cases and in terms of tooling that your agent has, whe- whether it

  16. 3:35

    follows the policies that your company uses, and whether you get full production environment.

  17. 3:41

    Basically, public benchmark is useful to o- orient and build your prior, but your private benchmark is useful to ship.

  18. 3:52

    And a lot of the time, public benchmarks, they're specifically focused on pass rate. Every time you see a new model release, you see performance, like pass rate on different benchmarks, which makes sense because it tells us, like, w- uh, like about the frontier, how good is the, like, new model.

  19. 4:10

    But when you release agent to production, you actually care about more metrics. You care about cost of you're solving the task. You care about latency. You care about number of retries.

  20. 4:20

    And by running, uh, evaluation offline with in simulations, you can effectively compare apples to apples and, and iterate on agent.

  21. 4:34

    In this case, you can test the full stack of your agent. You're not just checking, okay, is model, uh, one pe- uh, is one model performs, uh, better than the other model.

  22. 4:45

    You check even like thinking to- like thinking level, you can change the prompt, you can tune the full harness and skills, tools available to agent. Because in your production, you don't care about the model, you care about the full system.

  23. 5:00

    And here you can configure and test the full system while keeping environment and, uh, evaluators the same between runs.

  24. 5:12

    And that raises a point about like what benchmark is in this case. Because first of all, you can use it to first release the agent. You can make sure that it works, you can handle edge cases well, you can select the optimal model, and you can debug the traces.

  25. 5:27

    That's how you make sure that it works. Next, you can make it right. You can put it as a release gate for your agent and verify that a- any change to agent stack in- uh, didn't introduce regression suddenly, and iterate on harness.

  26. 5:42

    And finally, you can optimize it. You can tune it for better cost or latency, or you can use the traces to even do RL training.

  27. 5:52

    Uh, later I will say, uh, I will share a link to our website where we have example how we used simulation environments to fine-tune Qwen, small Qwen model to match performance of large Qwen model for specific tasks.

  28. 6:05

    Here effectively that becomes like trifecta of use cases. Like for you, benchmark becomes por- part of, uh, agent evaluation, becomes part of, uh, integration test for agent for release, and it becomes also training set for agent to improve it.

  29. 6:24

    So I hope I explained why you need benchmark. So now let's take a look, like how can you actually construct it at scale for your company? Like, what is the anatomy of the benchmark task?

  30. 6:33

    If you take a step back, like what, what is the sequence of running the benchmark? It's straightforward. Agent gets input prompt, it interacts with environment trying to solve the task with APIs, MCP tools, database, files.

  31. 6:48

    Then it produces the output. Trace, final state of the environment, and artifacts, basically output files. Then we run verifiers, and we can produce the metrics. How-- Was a- agent able to solve the task?

  32. 7:03

    How well did it do, and so on. The important second part of the task is oracle. When oracle solution runs, it runs through the whole sequence, but just instead of running the real agent, it runs oracle and it-- and when we construct oracle ourselves to make sure that task is solvable in the first place.

  33. 7:23

    Because if it's not solvable, agent won't be able to solve it. So oracle is important part of the task.

  34. 7:30

    If you look at the anatomy of the, like, uh, of the benchmark task, how it looks in terms of files. We can look at o- uh, one of the most popular formats nowadays, Harbor format, which was done by the same team who, uh, uh, maintains Terminal-Bench.

  35. 7:45

    In this case, basically, it's just three set of files. So basically fi- what agent sees and interacts with, instruction.md, classic markdown file. Environment, which you can see Dockerfile, could be Docker Compose in case you have multiple Docker containers.

  36. 8:00

    You have something that agent doesn't see, which are-- which is oracle solution and verifiers. And finally, you have some metadata. The-- It may s- look very straightforward, yeah. I'm saying like, okay, simulation environment is just Dockerfile and bi- bunch of stuff, but it is useful because now you have repeatable way of running experiments in agent simulation.

  37. 8:23

    So now let's dive deeper into two main parts of benchmark. First is environment. The main challenge with environment is that effectively it has to be mini production, but you don't want to run full production for every experiment.

  38. 8:37

    So you want to make sure that, uh, y- your database, API service, tools, and files match production. Just as like previous speaker mentioned, uh, like pre-- uh, that you don't, you don't want your agent to know that it's running within simulation, so it has to be real.

  39. 8:52

    One thing though, you cannot put real user in your simulation task. So you can simulate the user. In this case, that becomes effectively LLM with its own prompt, which with additional context that can mimic human behavior and interaction with your system.

  40. 9:11

    So in the port system, all these things exist in the environment and verifiers just interact with the environment afterwards.

  41. 9:18

    There are certain patterns to make sure that you can, uh, organize environment this way. And think about it as like how you construct integration tests. Basically, how you give effectively dev environment to your agent.

  42. 9:31

    You don't run the full production database. You have a certain snapshot. You can run side, uh, containers sidecars in this case. So your, uh, agent runs in one main, uh, environment, but there are other containers which contain API services, databases, MCP tools, and so on available to your agent.

  43. 9:49

    You don't need to have like full production API services, you can mock them. I already mentioned simulated users. Uh, and uh, one important piece here is multi-step. To handle long-horizon tasks, if your agent needs to handle tasks that span hours, you want to ensure that you have intermediate v- like steps, and for each step you have separate

  44. 10:08

    prompt, separate verifiers, and, uh, you can, uh, finish simulation early if you see agent failing. And basically, that enables you to simulate long-running horizon tasks.

  45. 10:21

    So next part is verifiers. Like in traditional sense, usually when people speak about verifiers, you just verify the output. You get agent output, you verify it, that's it. That's why, let's say, how coding works, like we just verify the output code with tests and so on.

  46. 10:39

    Here it's more complex. The way agent interacts with the simulation, we get a lot of different data. We get the world, basically how environment changed and the final environment state.

  47. 10:49

    What is your database state? What are the API responses? What are user replies? And so on. And your verifier analyzes final state, trace, and artifacts. So how can you analyze it?

  48. 11:02

    Effectively, there are multiple ways to do it. You can have deterministic checks, basically. Uh, and that can work really well for things like final output or tool calls where like it's very easy to check whether it was correct or not.

  49. 11:13

    It-- Sometimes you can use LLM as a judge or even harness as a judge or agent as a judge to evaluate basically whether the, uh, trace quality was successful, whether, um, planning of the agent was correct, and so on.

  50. 11:29

    In this case, it really depends on the use case. So you can use one or another or both, depending on what's, what works better. And finally, it's important to keep in mind that you can use sub- subject matter expert to review some of the traces, some of the outputs.

  51. 11:44

    Not for everything, but for cases where you see discrepancy in agent behavior and where you want human involvement.

  52. 11:55

    So final piece, how can we kind of organize everything together as part of agent release and agent improvement process?

  53. 12:06

    So can we just start? Not just yet. Can something go wrong with benchmark task? Hundred percent. Agent can try to reward hack simulation environment because it can understand that it's in simulation and it can hack it.

  54. 12:19

    Task could be too simple and, like, our verifiers could be too broad, and in this case, agent will always pass, even if it does something incorrectly. It could be that agent always fail because verifiers are incorrect.

  55. 12:30

    Or it could be that agents not perform in a stable way and, like, you have high variation of agent success.

  56. 12:38

    So all of these are effectively edge cases that you need to catch during your benchmark development. Because benchmark development is an art on its own. We saw already, like, hundreds of benchmarks appear over the course of last years.

  57. 12:52

    But this is something that the car- culture and engineering discipline that needs to be built in each, uh, engineering team that needs to ship AI agents to production.

  58. 13:06

    Because as you saw, effectively benchmark is software. It's code, it's files. You need to treat it as such. You need to have a separate CI pipeline for it. It-- And you can check pretty obvious things like, for example, making sure that all dependencies are pinned or, like, your base image is correct, or you don't have any missing

  59. 13:27

    fixtures. Then you can run Oracle, uh, uh, solution and making sure that it passes. Or, like, if you don't run Oracle, that verifiers fail. You can run several agent runs, uh, on the task and verify that, okay, it is solvable and it is hard for agent.

  60. 13:43

    You can tag the task whether it's simple, medium, or hard, depending on how much time-- uh, how many times the agent is successful. And finally, you can approve it to make it part of your benchmark.

  61. 13:57

    In this case, the process for improving agent becomes straightforward. You establish baseline in, uh, like, on your benchmark, you run evaluation dataset, you see the failures where it doesn't perform well, you change one thing, you rerun experiment and where you can use, uh, something like Arise to record your experiments, and then, uh, once you fix it, you

  62. 14:18

    rerun the full experimentation again. And then you can finally release to production.

  63. 14:24

    What it unlocks is to make sure that you fix issues correctly. There is a bit of anti-pattern in the industry where, like, folks try to fix things in the prompt, and they populate the prompt with things like, "Never do this," or, "Only do that," "Never output this," "Critical that," which is one way of handling it for sure.

  64. 14:45

    But with simulation, you control the full stack, you can evaluate the full stack, and you can make sure that fix lives in the correct, uh, place. You don't push everything to the prompt.

  65. 14:54

    You fix harness if you want-- uh, if, if you have context overload. Or you can-- If there is a missing procedure, you put it into skill. Or, like, if you need to have specific output schema, you put it as part of structured output.

  66. 15:09

    So once agent is in production, effectively you will have two loops. One loop for, uh, benchmark expansion.

  67. 15:19

    You take, uh, observability traces, uh, traces from observability, basically using something like Arise. You record failures and use failures to build your benchmark further.

  68. 15:30

    Then you have simulation runner that will run experiments on new be-- on extended benchmark on a ne- or on new agent config, uh, will record these experiments. Then you can use it f- as a release gate, whether, uh, agent performs significantly well, and finally release it to production.

  69. 15:48

    Uh, in this case, it's important that you have system, like it's important to underst- uh, to make sure that your observability piece and experimentation piece are connected

  70. 16:00

    because they're part-- they're two sides of the same coin.

  71. 16:07

    Um, so yeah, to summarize my talk, everyone needs-- every company needs a benchmark. Traces are useful for, like, the finding edge case in production, but simulation helps to, uh, test what would happen.

  72. 16:21

    And finally, uh, you want, uh, your, um, benchmark to be part of your, uh, agent ops, uh, loop.

  73. 16:29

    Thank you very much for, uh, for your time and, uh, I think maybe I will have answer for one question, but will be happy to answer any questions outside and please check our booth, uh, if you have any questions about benchmarks. [audience applauding]

  74. 16:48

    All right. A couple questions. All right. Hi, great talk. I have a question about structuring the benchmark, how many examples you should include ideally, and do you split them into, uh, like a train test split?

  75. 17:04

    If so, like how do you recommend structuring examples, um, across those two splits?

  76. 17:11

    Great question. So, uh, the question was basically how can we structure benchmark for training and validation? And just as previous speakers shared, basically, they also had a pa-pattern of like having train val split.

  77. 17:22

    This is very close to traditional machine learning, where we want to have standalone dataset that agent didn't see, wh- basically, where we can verify agent config. I think the classic approach applies when, like, you want to have eighty, twenty percent.

  78. 17:35

    Always depends on the use case, but, uh, you do want to have a standout dataset that agent didn't see through the experimentation process.

  79. 17:45

    Awesome. Next question.

  80. 17:47

    Um, so when you create the benchmarks, um, what data do you include in the benchmark? Do you include production runs that you've handpicked into the benchmark? Or if your agent is not yet in production, do you create, uh, datasets or problems to solve for the agent in the benchmark?

  81. 18:08

    And if you're, if you're like handpicking problems for the agent to solve, um, how do you make sure you have like- Enough coverage, uh, similar to what you'd see in production

  82. 18:19

    Gr- great question. So the question is how to ensure c- coverage, and distribution of benchmark is a very important piece. So effectively, you want to keep, keep-- make sure, like, you have both.

  83. 18:28

    You have bread and butter use cases, basically covering all main use cases that work, but also making sure you have edge cases. Basically, how you can make sure, like, your agent can handle edge case when tools fail, if, like, there is problem with database and so on.

  84. 18:41

    So you want to have both, um, e- basically think about this integration tests. You, you have happy path, but you also have edge cases.

  85. 18:49

    Would you simulate it with LLMs or would you create handcrafted LLMs?

  86. 18:54

    Yeah, uh, great question. Basically, simulate versus handcrafting. Uh, I think basically... I mean, people use agents to write code, so a lot of things here can be automated. So the-- what is handcrafted kind of changes.

  87. 19:05

    Like, the, the most important piece that you can provide is, like, the build environment once and then build the context, uh, for basically that mimics your production.

  88. 19:15

    Um, you mentioned, um, sometimes you use, um, LLM or sometimes you use a human expert to build verifiers. Um, can you elaborate on that? What's the best practice over there?

  89. 19:28

    Great question. So in our, uh, case, basically we have a lot of subject matter experts, so we do things at scale. So, uh, the important piece here is to spec- you don't need subject matter experts to review everything, but you specifically want to find cases where there is disagreement between, uh, a agent, uh, and different verifiers.

  90. 19:49

    If you, you think that basically task was supposed to be solved, but agent somehow marks it as un- like, not solved correctly, or, like, it marks that trace wasn't optimal enough.

  91. 20:00

    And this is where you want to have subject matter expert that can basically tune the agent that does the review. [outro jingle]