# Reparo: Synthesizing and Validating Access Control Policies

DevFeed: [Reparo: Synthesizing and Validating Access Control Policies](<https://devfeed.tech/articles/reparo-synthesizing-and-validating-access-control-policies-111230.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41800>)

Author: Ayesha Binte Mostofa, Gehao Zhang, Sam Stern, Juan Zhai, Pubali Datta

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Access Control](<https://devfeed.tech/topics/access-control.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [code](<https://devfeed.tech/tags/code.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [github](<https://devfeed.tech/tags/github.md>), [llm](<https://devfeed.tech/tags/llm.md>), [manual-review](<https://devfeed.tech/tags/manual-review.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [policies](<https://devfeed.tech/tags/policies.md>), [rego](<https://devfeed.tech/tags/rego.md>), [repair](<https://devfeed.tech/tags/repair.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [sample](<https://devfeed.tech/tags/sample.md>), [synthesis](<https://devfeed.tech/tags/synthesis.md>), [test](<https://devfeed.tech/tags/test.md>), [validating](<https://devfeed.tech/tags/validating.md>), [validation](<https://devfeed.tech/tags/validation.md>)

## AI overview

Reparo uses repository evidence from code, comments, and documentation to synthesize access control policies, repair language errors with official validators, and check behavior against allow/deny requests generated by a separate LLM. Across 228 GitHub repositories using Cedar, OpenFGA, or Rego, 40.6-55.7% of existing policies failed language validation; after repair, Reparo produced 99.0-100% valid policies. Agreement with its behavioral oracle varied by language: 98.2-99.6% for OpenFGA, 82.0-86.5% for Cedar, and 76.3-80.2% for Rego. Manual review found 91.5-96.9% of 390 sampled oracle cases correct. Processing one repository took about five minutes and cost $0.55-$1.57.

## Source excerpt

arXiv:2610.41800v1 Announce Type: cross Abstract: Writing correct access control policies for software applications is difficult because it requires expertise in the authorization language and a thorough understanding of the application's authorization requirements. Existing synthesis and mining approaches assume explicit authorization inputs and a trusted reference policy. However, authorization logic is often distributed across code, comments, and documentation rather than captured in a single artifact, and developer-defined policies in real-world application repositories are often incomplete, outdated, or incorrect. We present Reparo, an LLM-aided pipeline for access control policy synthesis, repair, and validation. Reparo collects repository evidence for authorization intent and uses it to guide an LLM in generating an initial policy. It then uses official policy-language validation tools to identify and automatically repair errors. For semantic validation, a different LLM derives a behavioral oracle from the same repository evidence, consisting of concrete authorization requests with expected allow or deny decisions, which Reparo executes against the generated policy. We manually assess the oracle on a statistically sized sample of 390 test cases. We evaluate Reparo on 228 real-world GitHub repositories that use Cedar, OpenFGA, or Rego. In these repositories, 40.6-55.7% of the repository policies fail their language's validation tool, whereas Reparo produces 99.0-100% valid policies after repair. Agreement with the oracle is 98.2-99.6% for OpenFGA, 82.0-86.5% for Cedar, and 76.3-80.2% for Rego. Manual review confirms 91.5-96.9% of the sampled test cases as correct. Synthesizing and validating the policy for one repository takes about five minutes and costs $0.55-$1.57. These results show that repository evidence can support both access policy synthesis and independent validation, even when no reliable reference policy exists.