· AI dev tools

Podcast: Simulation Can Tell You What Your Agents Are Actually Doing, Conversation with Zhou Yu

The ability to simulate how conversations shift based on factors like moods, preferences, accents, or even ambient noise such as factory background sound is one of the key advantages of dynamic…


The ability to simulate how conversations shift based on factors like moods, preferences, accents, or even ambient noise such as factory background sound is one of the key advantages of dynamic simulations for AI agents.

In a recent discussion, Michael Stiefel conversed with Zhou Yu regarding the use of dynamic simulations to assess artificial intelligence agents. A specific area of focus involved conversational agents, where the subsequent action hinges upon preceding responses. Because Large Language Models (LLMs) possess a non-deterministic nature, relying on static, reference-based benchmarks becomes impossible. Instead, testing necessitates dynamic simulations that incorporate varied goals, different personas, and edge cases.

Simulations offer a means to measure task completion, moving beyond simple binary pass or fail outcomes; they can also track threshold metrics pertaining to efficiency, compliance, safety, and cost, utilizing rule-based task verifiers. These simulation capabilities are applicable throughout the entire software development lifecycle. Product managers can deploy them for prototyping and design work, while engineers can integrate them into CI/CD pipelines. Furthermore, simulations can be employed to check for model drift or failures in external tools in a live production environment, and they can also verify adherence to regional laws. Moreover, these simulations can be paired with synthetic data to refine models.

Michael Stiefel began the conversation by posing a broad inquiry about the significance of simulation. He noted that, beyond mere testing, simulation aids architects and designers in truly grasping what their systems are accomplishing, a feat that is otherwise nearly unattainable.

Zhou Yu responded by emphasizing that, coming from a research background, the primary objective when developing a new technology or research project centers on how it is evaluated. She stressed that the fundamental basis of technology development is evaluation, particularly concerning the need for a standardized method to repeatedly achieve the same outcome, highlighting the importance of robustness and standardized testing. In the context of conversational agents, evaluation has always been a central pillar of her research. She contrasted this with traditional software or website testing, where manual checks or automated tooling exist for tasks like rolling out different pages, but noted the significant difficulty in ensuring comprehensive coverage of all possible behaviors.

She elaborated that agents are not limited to single turns; they involve multi-turn interactions, multi-hub operations, tool calling across extended sequences, and long-horizon traces. Taking a chatbot as a simple example, its multi-turn nature means that the user's subsequent input changes based on the agent's reply. This makes evaluation inherently challenging, essentially creating a moving target; if the system changes, the evaluation must be redone. Consequently, one cannot depend on a fixed benchmark or reference-based evaluation because the reference itself shifts depending on the agent's evolution, as a user might ask a different question next time or seek clarification at a given point.

Adding to this complexity, natural language input introduces exponential complexity and diversity, as different users interact with the agent in unique ways. Traditional software, conversely, presents a defined action, such as pressing a button leading to two possible outcomes: swiping left or swiping right, which makes testing infinitely harder in various dimensions. This difficulty spurred the initial investigation into how agents could simulate user behaviors. Instead of relying on standard static benchmarks, the approach shifts to testing against standardized personas or scenarios. These scenarios are then standardized, and the application is built upon a standard golden CI/CD pipeline featuring these virtual scenarios equipped with human profiles and distinct objectives. Consistency is maintained by testing these scenarios, which encompass all desired corner cases and the diversity of user dimensions, effectively automating what would otherwise require manual recruitment and testing of human subjects.

Michael Stiefel pressed further, focusing on the non-deterministic nature of these systems, which he found particularly difficult for architects, engineers, and SREs to grasp, as this contrasts with past systems where inputs could be checked against a finite set of correct or incorrect answers. He asked how testing is constructed and how it integrates into the CI/CD process, even disregarding variations in dialects or accents.

Zhou Yu explained that the impressive aspect of current agents is their capacity to formulate plans instantaneously. Since every plan variation means the agent's actions cannot be assessed turn-by-turn, external guidelines or "shackles" must be provided. The focus must be on integrated testing—determining if the agent ultimately achieved the user's intended goal. This concept is generally termed "goal completion." Once the interaction concludes, the critical question is whether the user successfully met the goal originally presented to them. In testing, different users with varying profiles and objectives are given a task, and the agent's success in completing that task is observed. Sometimes these are called "task verifications," and the verifier must align with the specific task. For an individual task, the verifier might vary, employing either rule-based methods or LLM judges, and multiple verifications—such as those concerning safety and alignment—must be executed.

Michael Stiefel then presented two broad scenarios for "completion." One example is a transactional scenario, like "I want to buy a ticket to a concert," where success is binary: the ticket is obtained or it is not. He questioned how to verify successful information retrieval in a scenario where the user is merely seeking data, noting that an abrupt chat termination might stem from user frustration rather than the delivery of the desired answer.

Zhou Yu confirmed this is a common area of focus, underscoring why simulating diverse scenarios is even more critical. When setting up simulated users, a specific objective is provided, and the system attempts to verify that goal throughout the interaction. This goal might simply be, "I wanted to get this information, and then I can leave." Conversely, some simulations involve difficult users who abandon the process mid-way only to return later with a different objective. This allows for an evaluation based on the user's ultimate goal. She added that production data often obscures the true intent behind a user's actions, making assessment much harder. To counter this, simulated users are also informed by production data to ensure a diversity that better mirrors actual user behavior. The agent effectively pressure-tests against various real-world occurrences, such as users asking repetitive questions, momentary lapses in attention, or repeated mistyping due to keyboard glitches. These variations constitute the necessary pressure tests. Furthermore, she noted that the diversity of input is crucial for natural language systems, as experienced and novice users may employ different acronyms or speaking styles, and different accents must also be accounted for.

Michael Stiefel concluded by observing that significant human effort remains required, specifically in defining the personas and understanding the system's intended accomplishments, suggesting that agents have not yet reached a point where they can design these tests independently; it remains a human-in-the-loop situation. He then posed a practical question for his audience: for an architect, developer, SRE, or QA specialist, how should one approach designing such a test? Should the persona be defined first? The goal? How should that be articulated, and subsequently, how is the evaluation fed back into the system?

Why it matters

For developers working with modern AI, this signals a shift away from simple pass/fail testing methods. Understanding dynamic simulation is crucial for building robust agents that handle the complexity of real-world, multi-turn interactions.

Related coverage

Also worth reading

  1. next.js 16.5.0-canary.62 released with switchyard updates, Turbopack fixes
  2. AWS releases API Portal, API Security, AI Security for API and AI endpoint protection
  3. Anthropic Claude Ship lets Claude review, fix, and approve routine pull requests
  4. Google DeepMind releases Lean 4 framework to verify Gemini 4 agents cutting quantum costs 290-fold
  5. Signal blocks screenshots on Apple, Google OS to protect data from AI agents