LLM pipeline generates valid access control policies from repository evidence
Reparo can synthesize policies that pass language validation and match a behavioral oracle with high agreement
Software arXiv 30 Oct 2026 Method Prototype evidence
Published as “Reparo: Synthesizing and Validating Access Control Policies”
Why it matters
Practitioners can automatically generate and repair correct access-control policies for existing cloud applications, reducing manual policy authoring and catching errors in legacy repository policies.
Summary
Reparo can synthesize executable access-control policies from only repository evidence with near-perfect syntactic validity (99-100% after repair) and high semantic agreement (up to 99.6% for OpenFGA, 82-86% for Cedar, 76-80% for Rego); the automatically generated test oracles are 91-97% correct, showing strong evidence across 228 real-world GitHub repositories.
What they found 5
- Policy syntactic validity after repair reaches 99-100% across all three languages.
“Reparo produces 99.0-100% valid policies after repair in all three languages.”
- Semantic decision agreement varies by language: 98.2-99.6% for OpenFGA, 82.0-86.5% for Cedar, and 76.3-80.2% for Rego.
“Decision agreement 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 generated test cases are correct.
“Manual review finds 91.5-96.9% of 390 sampled test cases correct.”
- Smaller open-weight models can generate and repair policies only when evidence fits within their effective context window, achieving lower and less consistent validity.
“Finding 4. Smaller open-weight models can generate and repair valid policies when the relevant repository evidence fits within their effective context window, but their validity is less consistent across languages.”
- Human-validated oracle test cases are 93.1% correct for Cedar, 96.9% for OpenFGA, and 91.5% for Rego.
“Of the reviewed cases, 93.1% for Cedar, 96.9% for OpenFGA, and 91.5% for Rego are correct.”
Caveats 3
- Semantic decision agreement is substantially lower for Cedar (82-86%) and Rego (76-80%) than for OpenFGA, limiting overall correctness.
- Because the oracle and policy use the same evidence, their errors may be correlated, so agreement alone does not establish correctness.
- The main limitation arises before generation. Although both models advertise long context windows, the effective input limit varied across requests in our deployment: some requests failed at approximately 81K tokens, while others accepted substantially larger inputs.
What’s new here 4
- Synthesizes policies without requiring a separate natural-language specification or structured authorization data.
- Uses separate LLMs for policy synthesis and for generating a validation oracle from the same evidence.
- Validates policies without a trusted ground-truth reference by comparing against LLM-generated test cases.
- Provides a new benchmark of 228 real-world repositories spanning Cedar, OpenFGA, and Rego.