RegoMender: A Multi-agent Framework for Automated Rego Policy Repair

Ruijie Zhang, Huaxiao Yin, Li Hu, Fanqi Kong, Haozhe Liang +3 more
10/21/2026
cs.SEcs.AIcs.PL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026regomender,
  title  = {RegoMender: A Multi-agent Framework for Automated Rego Policy Repair},
  author = {Ruijie Zhang and Huaxiao Yin and Li Hu and Fanqi Kong and Haozhe Liang and Shaoyin Cheng and Kun Zhang and Bibo Tu},
  year   = {2026},
  eprint = {2610.29456},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29456v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29456.svg)](https://codeofpaper.com/paper/2610.29456)

Discussion