SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.00212 · 2025

Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.00212.json · badge: /api/ran/2505.00212.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mingyin1/agents_failure_attribution canonical (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
evaluate_accuracy Ran
ran on a synthesized input
mingyin1/agents_failure_attribution/Automated_FA/evaluate.py
code served (permissive licence) · get_code("cc9af32b8ab59e05")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create a temporary directory for test data
test_dir = tempfile.mkdtemp()

# Create sample JSON files that will be referenced
sample_data_1 = {
    'mistake_agent': 'agent_alpha',
    'mistake_step': 'step_001'
}

sample_data_2 = {
    'mistake_agent': 'agent_beta',
    'mistake_step': 'step_002'
}

# Write sample JSON files
json_file_1 = os.path.join(test_dir, 'file_001.json')
json_file_2 = os.path.join(test_dir, 'file_002.json')

with open(json_file_1, 'w', encoding='utf-8') as f:
    json.dump(sample_data_1, f)

with open(json_file_2, 'w', encoding='utf-8') as f:
    json.dump(sample_data_2, f)

# Create predictions dictionary
predictions = {
    'file_001.json': {
        'predicted_agent': ['agent_alpha', 'agent_gamma'],
        'predicted_step': ['step_001', 'step_003']
    },
    'file_002.json': {
        'predicted_agent': ['agent_beta'],
        'predicted_step': ['step_002']
    }
}

# Define arguments for evaluate_accuracy function
ARGS = {
    'predictions': predictions,
    'data_path': test_dir,
    'total_files': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_actual_data Ran
ran; our contract draft was wrong, not the code
mingyin1/agents_failure_attribution/Automated_FA/evaluate.py
pointer only (licence: MIT); the stored copy get_code serves, from UIUC-MLSys/CORRECT, is pointer only (licence: NOASSERTION) · get_code("77a00911d05aa11b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from UIUC-MLSys/CORRECT, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_predictions Ran
ran on a synthesized input
mingyin1/agents_failure_attribution/Automated_FA/evaluate.py
code served (permissive licence) · get_code("23b923056bf19e53")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary evaluation file with the expected format
temp_dir = tempfile.mkdtemp()
eval_file = os.path.join(temp_dir, 'eval_results.txt')

# Write sample evaluation data matching the expected format
eval_content = """Prediction for test1.json:
Agent Name: agent_alpha
Step Number: 5
Some other content here

Prediction for test2.json:
Agent Name: agent_beta
Step Number: 10
More content here

Prediction for test3.json:
Agent Name: agent_gamma
Step Number: 3
"""

with open(eval_file, 'w', encoding='utf-8') as f:
    f.write(eval_content)

ARGS = {
    'eval_file': eval_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
read_actual_data 1 other paper
1 later
2509.24088 (2025-09)
CORRECT: Condensed Error Recognition via Knowledge Transfer in Multi-agent Systems

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Failure attribution in LLM multi-agent systems-identifying the agent and step responsible for task failures-provides crucial clues for systems debugging but remains underexplored and labor-intensive. In this paper, we propose and formulate a new research area: automated failure attribution for LLM multi-agent systems. To support this initiative, we introduce the Who&When dataset, comprising extensive failure logs from 127 LLM multi-agent systems with fine-grained annotations linking failures to specific agents and decisive error steps. Using the Who&When, we develop and evaluate three automated failure attribution methods, summarizing their corresponding pros and cons. The best method achieves 53.5% accuracy in identifying failure-responsible agents but only 14.2% in pinpointing failure steps, with some methods performing below random. Even SOTA reasoning models, such as OpenAI o1 and DeepSeek R1, fail to achieve practical usability. These results highlight the task's complexity and the need for further research in this area. Code and dataset are available at https://github.com/mingyin1/Agents_Failure_Attribution

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.00212")
get_code_for_paper("2505.00212")
have("2505.00212")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.00212.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.00212.svg)](https://syntology.ai/paper/2505.00212)

Connect an agent — have() is free.