Manuscript Offprint
arXiv:2610.23284Annotrace: A Workbench for Step-Level Annotation of Agent Traces
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Every study of why LLM agents fail begins by labelling traces by hand, and every such study builds its own throwaway tool. Observability platforms record agent traces but offer no structured labelling; annotation tools label text but have no notion of a step, a delegation or a tool call, leaving it unclear what the smallest unit of execution to label should be. Annotrace reads six trace formats, including OpenTelemetry GenAI, LangSmith and Langfuse, and turns each run into an ordered, nested list of steps. The annotator writes their own labelling codebook; a frontier model proposes a starting set from a sample of their own traces, answers first, and is asked exactly the questions the human is asked, making annotation a joint human–AI process. Annotrace measures agreement between any two annotators, human or AI. On a multi-agent question-answering corpus it reproduces a previous manual effort's 235 annotation units exactly, and two models labelling the same traces agree of the time at .
Introduction and Problem
Outcome: correct — the run's only label
a coordinator delegates sub-questions to workers e1 and e2
| coordinator | asks “notable American character actors?” | No |
|---|---|---|
| worker e2 | Charlie Chaplin, after four search cycles | No |
| coordinator | asks the same question again | No |
| worker e2 | Marlon Brando, after four more cycles | No |
| coordinator | asks “who owns KWPW?” | Yes |
| worker e1 | Bill McCutcheon, two cycles | Yes |
| coordinator | asks whether he is an actor | Yes |
| cycle 3 | reasons “software engineer”, answers “yes” | No |
| final answer | Bill McCutcheon | Yes |
Figure 1: One multi-agent run on HotpotQA (Yang et al. 2018). It answers correctly, so a trace-level scheme calls it a success. Its steps record eight wasted search cycles and a verification the worker's own reasoning contradicts. Indentation is delegation depth; the decisive fault sits inside a recovered cycle (Figure 3).
Research on agent failure runs on hand-labelled traces. MAST derived its taxonomy from annotated traces across seven systems (Cemri et al. 2025); Who&When annotated 127 failure logs to make attribution a benchmark task (Zhang et al. 2025); AgentErrorTaxonomy was built the same way (Zhu et al. 2025), and AgentRx checks constraints against trajectories (Barke et al. 2026). Each began with people reading traces and writing labels, and each built disposable tooling to do it. Ours encoded our taxonomy and our trace format in its source, so nobody else could use it.
Neither existing category of tool covers the job. Observability platforms — LangSmith, Langfuse, Arize Phoenix — record and display traces faithfully, and OpenTelemetry now standardises them (OpenTelemetry Authors 2025), but none supports structured human labelling. Annotation tools — Label Studio (Tkachenko et al. 2020), doccano (Nakayama et al. 2018), INCEpTION (Klie et al. 2018) — label well, but their unit is a span of text or a document. A trace is neither. It is a nested structure of decisions, delegations, tool calls and replies, and flattening it into a transcript destroys what a labeller needs: which step, of what kind, went wrong. AgentGraph reads traces into a knowledge graph and has a model detect failures in it (Wu et al. 2026); the structure there feeds automatic analysis. Ours feeds a person, so a step is a thing to label and every label records who made it.
Annotrace makes the step the unit. Its users are researchers building failure taxonomies and practitioners reviewing deployed agents. It bridges two communities: it consumes the artefacts of agent observability and supports the practices of human data annotation, with a model as proposer inside the loop.
Figure 1 is one run from our demo set. It answers correctly, so every label a trace-level scheme can give it says success. Its steps say otherwise, and the decisive one sits two levels down.
Adapters. An adapter turns one format into Step objects carrying named fields, an actor, a kind and a nesting depth. Six ship (Table 1). Detection reads file content — each adapter looks for a marker no other format uses, such as run_type with dotted_order for LangSmith — so the user need not know what they were given.
Granularity differs by format and is exposed rather than chosen. Where a worker's reasoning is one text field of interleaved think, search, information and answer
*Corresponding author.

one object writes the questions and the model's instructions
Figure 2: Top: six trace formats, one adapter each, one nested step model. A step may contain finer steps, so nesting survives the conversion. Bottom: the annotator writes the questions; the model proposes a first set from a sample of runs, and later answers a run before the annotator does. Grey marks the model. Both the questions a person sees and the instructions the model receives are generated from the same object, so the two cannot diverge.
| Format | Step kinds | Nested |
|---|---|---|
| OpenTelemetry | invoke_agent, chat, execute_tool | yes |
| LangSmith | chain, llm, tool, retriever | yes |
| Langfuse | agent, generation, tool, span | yes |
| Chat messages | message, tool call, tool result | no |
| Who&When | message | no |
| Coordinator | decision, reply, cycle, output | yes |
Table 1: The six adapters. Kinds are each format's own vocabulary; a question can be restricted to any subset of them.
tags, the adapter recovers Thinking-Action-Response cycles (Figure 3). A step containing finer steps is left unselected, so nothing is labelled twice.
Schema as questions. A schema is a list of questions, each with a prompt, the labels the user typed, the step kinds it applies to, and optionally a condition on an earlier answer: ask “what went wrong?” only when “severity” is “Critical”. Conditions are authored in the interface, not a file. No taxonomy ships; the three included schemas are examples a user may delete.
The model in the loop. A model is used twice, both times asked the questions the human is asked, generated from the same object. It reads ten randomly sampled runs and proposes a starting schema — at most three questions, four labels each, with house rules — then answers a trace. Every answer records whether a person or the model produced it; a suggestion never overwrites a human decision, and editing one makes it the annotator's. Any of 46 models may be chosen, so a cheap model can draft and an expensive one check.
Agreement. Two annotation sets are compared question by question, reporting raw agreement, Cohen's and the steps they disagree on; either side may be the open session. is reported because raw agreement flatters an uneven schema.

Figure 3: Where a format buries the agent loop in one text field, the adapter recovers Thinking-Action-Response cycles, each labelled separately. This reproduces 235 units of a previous manual effort exactly.
Innovation and Significance
The schema comes from the user's data. Existing tools ask for a label set before the annotator has read anything. Annotrace shows the traces first, then proposes labels from a sample of them. Given the one-line goal “which step caused the run to give a wrong answer”, a model proposed Was this step correct? Yes / No / Irrelevant with rules including “pick No only if you can see a clear mistake”. The proposal lands in editable fields and is never applied unasked.
Evidence. On a 40-run multi-agent corpus the coordinator adapter reproduced all 235 Thinking-Action-Response unit keys of a previous hand-built effort, on 40 of 40 runs, so earlier work still aligns. Two models labelling the same six runs agreed on of 22 answers at . A schema proposal takes about four seconds, annotating a run three to five, at a fraction of a cent per call. Renaming a label keeps and marks the answers that used the old name rather than discarding them. Figure 4 shows the annotation screen: a visitor loads a run, types one line saying what they are looking for, takes the proposed labels, and disagrees with the model on a step, in under two minutes.

Figure 4: The annotation screen. The sidebar holds the run's question and the agent's answer, so both stay in view while the steps scroll. Colour marks the kind of step until a label is chosen, then marks the label. Steps still wanting an answer say so.
References
Barke, S.; Goyal, A.; Khare, A.; Singh, A.; Nath, S.; and Bansal, C. 2026. AgentRx: Diagnosing AI Agent Failures from Execution Trajectories. arXiv:2602.02475.
Wu, Z.; Cho, S.; Munoz Villalobos, C. E.; King, T.; Mohammed, U.; Kazim, E.; Perez-Ortiz, M.; Bulathwela, S.; and Koshiyama, A. 2026. AgentGraph: Trace-to-Graph Platform for Interactive Analysis and Robustness Testing in Agentic AI Systems. In Proceedings of the AAAI Conference on Artificial Intelligence, 41721–41723.
Cemri, M.; Pan, M. Z.; Yang, S.; Agrawal, L. A.; Chopra, B.; Tiwari, R.; Keutzer, K.; Parameswaran, A.; Klein, D.; Ramchandran, K.; Zaharia, M.; Gonzalez, J. E.; and Stoica, I. 2025. Why Do Multi-Agent LLM Systems Fail? In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track.
Klie, J.-C.; Bugert, M.; Boullosa, B.; de Castilho, R. E.; and Gurevych, I. 2018. The INCEpTION Platform: Machine-Assisted and Knowledge-Oriented Interactive Annotation. In Proceedings of the 27th International Conference on Computational Linguistics: System Demonstrations, 5–9.
Nakayama, H.; Kubo, T.; Kamura, J.; Taniguchi, Y.; and Liang, X. 2018. doccano: Text Annotation Tool for Human. https://github.com/doccano/doccano. Accessed: 2026-09-18.
OpenTelemetry Authors. 2025. Semantic Conventions for Generative AI Systems. https://opentelemetry.io/docs/specs/semconv/gen-ai/. Accessed: 2026-09-18.
Tkachenko, M.; Malyuk, M.; Holmanyuk, A.; and Liubimov, N. 2020. Label Studio: Data Labeling Software. https://github.com/HumanSignal/label-studio. Accessed: 2026-09-18.
Yang, Z.; Qi, P.; Zhang, S.; Bengio, Y.; Cohen, W. W.; Salakhutdinov, R.; and Manning, C. D. 2018. HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2369–2380.
Zhang, S.; Yin, M.; Zhang, J.; Liu, J.; Han, Z.; Zhang, J.; Li, B.; Wang, C.; Wang, H.; Chen, Y.; and Wu, Q. 2025. Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems. In Proceedings of the 42nd International Conference on Machine Learning (ICML).
Zhu, K.; Liu, Z.; Li, B.; Tian, M.; Yang, Y.; Zhang, J.; Han, P.; Xie, Q.; Cui, F.; Zhang, W.; Ma, X.; Yu, X.; Ramesh, G.; Wu, J.; Liu, Z.; Lu, P.; Zou, J.; and You, J. 2025. Where LLM Agents Fail and How They Can Learn From Failures. arXiv:2509.25370.