arXiv:2610.42144cs.SEOct 2026

Manuscript Offprint

arXiv:2610.42144

Dittany: Contribution-Guided Repair Framework for MAS Applications

Hanqi Sun, Yuchen Shao, Hanyi Si, Beibei Xu, Lisheng Wang, Chengcheng Wan

HANQI SUN, East China Normal University, China

YUCHEN SHAO, East China Normal University, China and Shanghai Innovation Institute, China

HANYI SI, East China Normal University, China

BEIBEI XU, East China Normal University, China

LISHENG WANG, East China Normal University, China

CHENGCHENG WAN ∗^{*}, East China Normal University, China and Shanghai Innovation Institute, China

LLM-based multi-agent system (MAS) applications can produce useful intermediate results while leaving task requirements unsatisfied. Repairing such executions requires identifying the work still needed and the completed results that can support it. We present Dittany, a contribution-guided runtime repair framework for MAS applications. Dittany derives expected contributions and acceptance conditions from task requirements and method specifications, and connects their dependencies in a contribution graph. Runtime checks locate unmet conditions and establish which results remain usable. These results guide action-level correction when available inputs suffice, or graph-level recovery when prerequisites or unfinished work need revision. Both repair scopes retain validated contributions and check repaired outputs before subsequent work uses them. We evaluate Dittany on 30 applications across six MAS frameworks and 9,000 tasks. It detects runtime failures with 88.28% precision and 79.18% recall, and achieves 84.76% task accuracy, improving over Native execution by 26.74 percentage points and the strongest of four recovery baselines by 21.28 points. Estimated deployment token consumption is 17.92% above Native, but 24.19% below Reflexion and 13.05% below Iterative Rollback. Ablation results show that combining the two repair scopes achieves higher accuracy and lower token consumption than graph-level repair alone.

1 INTRODUCTION