Compile and pin a Policy Pack.
rootform compile policy-pack <directory> [options]Compile one Policy Pack source directory using the semantics of the saved Form in --semantics, and write the compiled JSON file to --output. The compiled Policy Pack keeps its semantic pins for later offline evaluation without the Dialect sources that produced the Form.
The summary goes to standard output. Diagnostics go to standard error.
# Compile the baseline Policy Pack for offline checks using a saved plan Formrootform compile policy-pack ./policies \ --semantics plan-form.json -o baseline.json
# Compile a separate production Pack using its saved state Formrootform compile policy-pack ./policies/production \ --semantics state-form.json -o production.json