Publish a policy version
- Dashboard
- CLI
- Go to Admin → policy editor and, in compose, describe the failure mode or paste the JavaScript policy source.
- Validate the source and fix every reported error.
- Enter the policy identity and publish it, then use library to compare or disable versions.
-
Select enforcement when the version is ready for a machine rollout.

Authoring checklist
- Name the failure mode in operational language.
- Select the hook events and tools that contain enough evidence to decide.
- Write the narrowest condition that matches unsafe behavior.
- Return a reason that tells the agent or operator what to do next.
- Add examples that should match and examples that must remain allowed.
- Save a new version and request review.
instruct when the agent can safely correct course. Use deny when allowing the action would create unacceptable or irreversible risk.
Policy versions are immutable deployment inputs. Editing a draft creates a new version; it should not rewrite the version already assigned to machines.

