RegoMender: A Multi-agent Framework for Automated Rego Policy Repair
Ruijie Zhang, Huaxiao Yin, Li Hu, Fanqi Kong, Haozhe Liang, Shaoyin Cheng, Kun Zhang, Bibo Tu
Abstract
Policy-as-Code (PaC) has emerged as a foundational paradigm in cloud-native systems. However, repairing Rego policies remains challenging due to their strict syntax, declarative semantics, and specific verification requirements. Existing automated program repair (APR) methods are mainly designed for mainstream languages and struggle to accommodate the unique policy logic and repair workflows of Rego. Thus, Rego policy repair remains a manual process driven by trial and error. To address this, we introduce RegoBench, the first automated Rego policy benchmark comprising 1,159 real-world defects, and propose RegoMender, a feedback-guided multi-agent framework. Collaborating via a shared blackboard and an atomic toolkit, RegoMender dynamically executes patching, rewriting, or rolling back, to resolve complex repair scenarios. Evaluated on RegoBench, RegoMender achieves syntactic and test-based semantic success rates of 82.9\% and 77.9\%, respectively, outperforming the strongest baseline by 13.4\%. Unlike other approaches whose performance drops in complex scenarios, RegoMender maintains effectiveness across single-step and chained repair tasks. Furthermore, it generalizes strongly across HCL and SQL and achieves an 86.4\% repair rate on 132 real-world CVE vulnerabilities, proving its robustness and practical utility for security.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.PL
- Comments
- 13 pages, 5 figures, accepted to ASE 2026, research Track
Related papers
DeepAVR: Deep Analysis via Multi-Agent Collaboration for Automated Vulnerability Repair
Shared title terminologycs.SEWoorim Han, Hyunjun Kim, Brian Junekyu Lee et al.
MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation
Shared title terminologycs.SEJie Wu, Haoran Ma, Shisong Tang et al.
When Single Agent Is Enough: Rethinking Multi-Agent Systems for Automated Code Review
Shared title terminologycs.SEJiawei Li, Hoa Khanh Dam, Iftekhar Ahmed
ArchGuard-APR: Architecture-Constraint-Aware Multi-Agent Program Repair Using Repository Graphs and Execution Feedback
Shared title terminologycs.SEMajid Feiz Deilami
Automating Feature Flag Cleanup at Scale with Multi-Agent LLM Systems: An Industrial Experience at DoorDash
Shared title terminologycs.SEAtharv Chandratre, Jai Datar
ATLAS: A Multi-Agent Framework for Lifting Binary to Canonical Compiler IR
Shared title terminologycs.SEXiaoao Zhu, Ni Zhang, Jie Ren et al.