Origin Attribution for Unsafe Behavior in Self-Evolving Multi-Agent Coding Systems
Hanyi Yu, Jiaming Cui
Abstract
As language-model-based coding agents evolve their programs and reuse code from one another, safety failures can acquire a history that extends beyond the agent in which they are detected. An unsafe change may originate in one agent, propagate through intermediate recipients, and survive subsequent revisions before an audit reveals it. Understanding this history is important for identifying the introducing change and distinguishing inherited behavior from independently occurring failures. We study origin attribution in self-evolving multi-agent coding systems: recovering the agent and program version that introduced an observed unsafe behavior into the target's code lineage, or determining that it arose locally. This task is challenging because rewriting obscures textual similarity, independent occurrences confound temporal ordering, and intermediate recipients can resemble the source. We propose a method that combines behavioral fingerprint matching with historical localization and recursive tracing. It compares candidate implementations beyond the unsafe outcome, retains evidence from multiple historical versions, and follows matching candidates upstream. On 158 queries across 85 controlled scenarios, the method achieves 96.8% exact attribution accuracy, compared with 77.2% for exhaustive fingerprint matching without recursion. Component ablations and evaluation on 34 additional queries using the same method and hyperparameters demonstrate the complementary roles of multiple representatives and recursive tracing. Further checks extend the evaluation to approval-boundary and resource-owner errors. Together, these results show how behavioral and historical evidence can recover the origins of unsafe behavior through code revision and cross-agent propagation.
Create a lesson
Related papers
MAS-Loop: Beyond One-Shot Orchestration towards Self-Evolving Multi-Agent Systems
Shared title terminology · Hehai Lin, Qi Yang, Chengwei Qin
SEPM: Self-Evolving Procedural Memory Grounded in Task Graphs for Multi-Agent Collaboration
Shared title terminology · Yi Liu, Junwei Zhao, Li Sun et al.
Self-Evolving Multi-Agent Symbolic Discovery for Financial Fundamental Analysis
Shared title terminology · Kelvin J. L. Koa, Filip Orestav, Shengqiong Wu et al.
Steering Emergent Behavior in Multi-Agent LLM Systems via Information Networks
Shared title terminology · Sepehr Ilami, Babak Heydari
EvolveMAS: A Unified Self-Evolution Framework for Decentralized Multi-Agent Systems
Shared title terminology · Yalun Wu, Qiwei Ma, Bingbing Xu et al.
SCARCE: Emergent Institutions in Long-Horizon Multi-Agent Coding Systems
Shared title terminology · Abhinav Kumar, Rediet Abebe, Eugene Bagdasarian et al.