TRANSMISSION // 2609.33295v2

Turning AI agents’ real-world missteps into tests

Source published

TraceDance builds targeted tests from real agent deployment records. Its evaluations reveal weaknesses in checks, recovery and other behaviors, but assess only a single decision—not a full task.

AI-generated conceptual illustration for Turning AI agents’ real-world missteps into tests
AI-generated conceptual illustration; not documentary evidence.

An AI agent may finish a job and still handle parts of it poorly—for example, by retrying a failed tool call without fixing the cause. TraceDance is designed to turn such problems, observed in deployment records, into focused tests for other language models.

Why test an agent’s behavior, not just its result?

A task can end successfully even if an AI agent took an unsafe or unreliable route. It might expose a secret in a log, skip a check or claim tests passed without running them. A benchmark that checks only the final outcome can miss these problems. Fixed test suites, meanwhile, may not cover the particular behaviors developers encounter in deployment.

TraceDance, described in an arXiv preprint, aims to address this gap. It takes a plain-language description of an undesirable behavior and searches recorded agent sessions for moments where it occurred. It then builds tests of what another language model would do next in those situations.

From recorded session to test

The researchers used 252,557 sessions collected over six weeks from two agent settings: Claude Code, used for coding, and OpenClaw, used for general tool use. The records were de-identified and sanitized, but are not publicly released.

TraceDance first searches for possible examples using executable rules called “anchors.” These can look for observable events such as tool errors, arguments or event sequences. A fast language model checks selected candidates to confirm whether they match the requested behavior. For behaviors not covered by predefined specifications, TraceDance can generate and revise new anchors and testing criteria.

For each confirmed example, the system presents an evaluated model with the recorded context just before a key decision. The model produces one next turn, which might contain text, a tool call or both. A behavior-specific rubric judges whether that response is appropriate. The original agent’s response helps establish that the behavior occurred; it is not treated as the single correct answer.

This approach avoids replaying the original environment, which may rely on private tools, accounts or repositories. But the test stops after one response. It cannot establish what would happen if that response were carried out or what the agent might do in later turns.

What the tests found

In the main evaluation, TraceDance built 107 benchmarks containing 4,125 instances and fulfilled 95.3% of requests designated for benchmark construction. Two human annotators independently reviewed a sample of 100 instances. Both confirmed the requested behavior in 84 cases; across all 200 individual judgments, annotators confirmed it in 89.5%. The automated grading panel agreed with human pass/fail judgments on 81% of the 84 instances both annotators considered valid. This was comparable to agreement between the annotators, although the panel tended to score responses more generously.

Nine language models were tested on the benchmarks. Their mean pass rate was 26.7%. This is not a measure of how often these models behave badly in everyday use: test cases were selected from contexts where the undesirable behavior had already appeared. And a failed score does not always mean a model repeated that behavior; it may have avoided it but still failed to meet other rubric requirements.

The tests highlighted differences between kinds of decisions. Across the models, the mean pass rate was 67.9% when a benchmark required a well-formed tool call, compared with 8.1% when it required a check before proceeding. The paper also reports low pass rates for specific behaviors, including inspecting a failure log before retrying. These results point to difficulties with safeguards and verification in the tested contexts, not necessarily across every task or deployment.

What remains uncertain

The findings depend on which behaviors the system can find and how its rubrics define a good response. Anchors can miss examples that do not match their programmed conditions. In a small retrieval analysis, anchors found between 62.7% and 100% of cases identified by direct language-model review for three behaviors. This comparison concerns those reviewed cases, not coverage across every session. Human reviewers also flagged unclear boundaries between some rubric score levels.

The benchmark evaluates a next turn rather than a complete, executed task. Its results should complement, not replace, tests of agents in working environments. Because the deployment records cannot be released, researchers cannot independently reconstruct the exact benchmarks from the original data. The findings also concern particular datasets, prompts, rubrics and model versions; they do not establish how all agents behave in every setting.

TraceDance offers a way to turn observed deployment problems into repeatable, behavior-specific checks. Whether using these tests to improve later models creates a reliable improvement cycle remains an open question: the authors propose this as a possible use, not a result demonstrated in the study. The work is an arXiv preprint; its status alone does not establish peer review, and findings may change as research develops.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A better test for AI agents looks beyond the final answer

    Supporting evidence: Both papers motivate evaluating agent behavior beyond task outcomes: TraceDance notes that an agent can complete a task while behaving undesirably, and Claw-Eval reports that output-only judging missed safety violations and robustness failures in its tests. These findings support the bounded point that outcome-focused evaluation can overlook execution problems; they come from different evaluation designs and settings and are not a direct comparison.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2609.33295v2 — Original paper

      Excerpt reference: static/papers/2609.33295v2.md:13-70
      Basis: Paper text
      Source SHA-256: dd1e796f23ec85c33a08da643b0b3b635630bdb5794e2f7253212a21dfe877c9

    • 2604.06132v4 — Original paper

      Excerpt reference: static/papers/2604.06132v4.md:65-106
      Basis: Paper text
      Source SHA-256: 5e74331680609e2d45449c4d43beee78b130663370365f1900847e21b810e568

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.