<!-- DOCS_POLICY_COMPILER:policy-compiler -->
# Policy compiler

Canonical HTML: https://spoolis.com/docs/policy-compiler. This page is also available in machine-readable Markdown.

Propose grounded policy fields, then confirm them into supported policy fields.

## Two steps

POST /api/v1/policy-compiler uses a model to propose fields with source quotes. POST /api/v1/policy-compiler/confirm maps caller-confirmed fields without a model call.

## Privacy and links

The routes do not save proposals or source text. [API reference](/docs/api), [OpenAPI](/openapi.json).
