TraceElephant Failure Attribution on an Agent Graph
Mark the responsible agent and the decisive step in a failed multi-agent run with agent_interaction_graph and number. Sample traces are illustrative.
Get This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/agentic/traceelephant-failure-graph
potato start config.yamlAbout this dataset
TraceElephant is a benchmark for failure attribution in LLM-based multi-agent systems, built by Chen, Wang, Mu, Wang, Liu, Feng, and Wang and published at ACL 2026. Each item is a recorded run that failed, and the label names the agent primarily responsible and the step where the failure originates. The released data holds Magentic-One and Captain runs on GAIA and AssistantBench, plus SWE-agent runs on SWE-bench.
In the protocol, three annotators with at least one year of experience in developing and debugging multi-agent systems marked the responsible agent and the earliest step at which failure becomes inevitable. The first round reached a Krippendorff's alpha of 0.72 for the agent and 0.64 for the step, and the annotators then reached consensus. The design shows the agent as a clickable node in an interaction graph that Potato builds from the trace turns, with a number field for the decisive step. In the multi-stage protocol, the first round maps to num_annotators_per_item and the consensus round maps to the adjudication block, and the discussion itself happens outside Potato. From Potato 2.15.0, the pre_annotation export format writes the answers of one stage as the predictions_file of the next stage; answers of the agent_interaction_graph schemes are left out.
The design adds one element that the released labels lack, a problematic-edge mark on the message that carried the error onward. Real step_records.json files run from about 0.04 to 11 MB uncompressed and the full archive is about 597 MB, so all ten sample traces are short and hand-written for this design. Real step_records.json files load after renaming agent_name to agent and output to content. No model_training block is included, because no registered Potato trainer consumes an interaction graph.
- Venue
- ACL 2026 (long papers)
- Annotators per trace
- 3
- Krippendorff's alpha, first round
- 0.72 for the agent, 0.64 for the step
- Released archive
- data.zip, about 597 MB
- Sample traces in this design
- 10 (illustrative)
Configuration File
This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# TraceElephant: "Seeing the Whole Elephant: A Benchmark for Failure Attribution in LLM-based Multi-Agent Systems"
# Chen, Wang, Mu, Wang, Liu, Feng, and Wang. ACL 2026 (long), San Diego, pp. 19888-19905.
# DOI: 10.18653/v1/2026.acl-long.912 Anthology: https://aclanthology.org/2026.acl-long.912/
# arXiv: https://arxiv.org/abs/2604.22708
# Data: https://huggingface.co/datasets/TraceElephant/TraceElephant (data.zip, cc-by-4.0 in the Hugging Face metadata)
# Code: https://github.com/TraceElephant/TraceElephant (CC BY 4.0 LICENSE file). Paper App. A.10 places traces and annotations
# under CC BY 4.0.
#
# Real files: data/<run>/<task id>/trace_metadata.json (task_instruction, mistake_agent, mistake_step, mistake_reason) and
# step_records.json (step_id, agent_id, agent_name, input, output). The archive is about 597 MB and none of it is used here. Every
# trace below is hand-written for this design and illustrative. Rename agent_name to agent and output to content to load real traces.
#
# Protocol (App. A.5): "(1) the agent primarily responsible for the failure, and (2) the execution step where the failure originates".
# Annotators: three people "with at least one year of experience in developing and debugging MASs", Krippendorff's alpha 0.72 for the
# agent and 0.64 for the step in the first round, then consensus. Sec. 3.2: "step-level attribution identifies the earliest point at
# which failure becomes inevitable".
#
# Multi-stage protocol: the first round has three independent annotators and the second round resolves disagreements. In Potato the
# first round is num_annotators_per_item and the second round is the adjudication block, both set below. The consensus discussion
# itself happens outside Potato, and the adjudication queue records the resolved answer.
# From Potato 2.15.0, the pre_annotation export format (python -m potato.export --format pre_annotation)
# writes stage 1's answers as the next stage's predictions_file. Answers of the agent_interaction_graph
# schemes are left out with a warning.
#
# Adaptations:
# 1. The responsible agent is marked as a critical node in the interaction graph, and the message that carried the failure onward
# can be marked as a problematic edge. The edge marking is an addition and is not in the released labels.
# 2. The decisive step is a number from 1 to 12, matching the traces shown here. Real traces are far longer.
# 3. The free-text mistake_reason field is not collected.
annotation_task_name: "Failure attribution on the agent interaction graph (TraceElephant)"
data_files:
- sample-data.json
item_properties:
id_key: id
text_key: task
task_dir: .
output_annotation_dir: annotation_output
export_annotation_format: jsonl
# Three annotators per trace, then an adjudication pass. Replace the adjudicator name with a real account before a study.
num_annotators_per_item: 3
adjudication:
enabled: true
adjudicator_users: [adjudicator]
min_annotations: 2
instance_display:
layout: {direction: vertical, gap: 16px}
fields:
- key: task
type: text
label: "Task (the run failed)"
- key: steps
type: agent_trace
label: "Execution trace"
display_options: {show_step_numbers: true, speaker_key: agent, text_key: content}
annotation_schemes:
- annotation_type: agent_interaction_graph
name: responsible_agent_graph
description: "Click the agent primarily responsible for the failure, then click the edge that carried the error onward until it reads problematic."
steps_key: steps
agent_key: agent
- annotation_type: number
name: decisive_step
description: "Which step number is the earliest point at which the failure becomes inevitable?"
min_value: 1
max_value: 12
user_config:
allow_all_users: true
annotation_instructions: |
The decisive step is the earliest point at which the failure becomes inevitable. If a later verifier or orchestrator was
responsible for catching an upstream error, attribute the failure to the step where that check was missed.
Sample Data
[
{
"id": "te_001",
"task": "Find the year the museum named in the attached PDF was founded.",
"steps": [
{
"agent": "Orchestrator",
"content": "Plan: FileSurfer opens the PDF and extracts the museum name, then WebSurfer looks up the founding year."
},
{
"agent": "FileSurfer",
"content": "Museum name found on page 2: Rijksmuseum Twenthe."
},
{
"agent": "Orchestrator",
"content": "WebSurfer, search for the founding year of the Rijksmuseum."
},
{
"agent": "WebSurfer",
"content": "Rijksmuseum, Amsterdam, founded in 1800."
},
{
"agent": "Orchestrator",
"content": "Final answer: 1800."
}
]
},
{
"id": "te_002",
"task": "Fix the failing test in the repository and confirm the suite passes.",
"steps": [
{
"agent": "Orchestrator",
"content": "Coder, locate the failing test and patch the cause."
},
{
"agent": "Coder",
"content": "Edited parse.py to catch ValueError. Running the tests."
},
{
"agent": "ComputerTerminal",
"content": "2 passed, 1 failed (test_dates)."
},
{
"agent": "Coder",
"content": "The remaining failure looks like flakiness. Marking the task complete."
},
{
"agent": "Orchestrator",
"content": "Final answer: the tests pass."
}
]
}
]
// ... and 8 more itemsGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/agentic/traceelephant-failure-graph
potato start config.yamlDataset & paper
Chen et al., ACL 2026
- Paper DOI
- 10.18653/v1/2026.acl-long.912
Citation (BibTeX)
@inproceedings{chen-etal-2026-seeing,
title = "Seeing the Whole Elephant: A Benchmark for Failure Attribution in {LLM}-based Multi-Agent Systems",
author = "Chen, Mengzhuo and Wang, Junjie and Mu, Fangwen and Wang, Yawen and Liu, Zhe and Feng, Huanxiang and Wang, Qing",
editor = "Liakata, Maria and Moreira, Viviane P. and Zhang, Jiajun and Jurgens, David",
booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.acl-long.912/",
doi = "10.18653/v1/2026.acl-long.912",
pages = "19888--19905",
ISBN = "979-8-89176-390-6"
}Details
Annotation Types
Domain
Use Cases
Tags
Found an issue or want to improve this design?
Open an Issue(opens in a new tab)Related Designs
AgentAsk Handoff Error Types in Multi-Agent Runs
Flag error types on agent-to-agent handoffs and rate message quality with handoff_review. Based on the AgentAsk preprint, with illustrative traces.
BIG-Bench Task Evaluation
Evaluate language model responses on diverse reasoning tasks from the BIG-Bench benchmark. Annotators assess correctness, provide reasoning explanations, and rate confidence for model outputs across multiple task categories.
GPQA - Graduate-Level Expert QA Evaluation
Expert-level question answering evaluation on graduate-level science questions from the GPQA benchmark (Rein et al., COLM 2024). Questions span physics, chemistry, and biology, designed to be answerable only by domain experts.