Autoformalization of Agent Instructions into Policy-as-Code

Adam Mondl, Matthew Maisel, John H. Brock
6/25/2026
cs.AIcs.CR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Agent safety in high-stakes domains requires formal policy enforcement, but most existing approaches either rely on probabilistic guardrails (fine-tuned classifiers, prompt-based steering) that offer no formal guarantees, or on hand-coded symbolic enforcement that does not scale to the breadth of real policy specifications. We present an autoformalization pipeline that translates agent prompts, MCP tool descriptions, and natural language policy documents into formally verified policies using an LLM-based generator-critic loop. The resulting policies are written in the Cedar Policy Language. On the MedAgentBench benchmark, our autoformalized policies cover substantially more of the source natural-language specification than the hand-coded symbolic enforcement in prior work.

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. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{mondl2026autoformalization,
  title  = {Autoformalization of Agent Instructions into Policy-as-Code},
  author = {Adam Mondl and Matthew Maisel and John H. Brock},
  year   = {2026},
  eprint = {2606.26649},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.26649v1}
}

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/2606.26649.svg)](https://codeofpaper.com/paper/2606.26649)

Discussion