Write your first policy
In this tutorial you turn one sentence into an Agent Intent Policy (AIP), ratify it in Monitor, and watch it record an anomaly without stopping the agent.
Before you start, install the client on a machine with a coding agent and sign in to the console.
Write the policy
Section titled “Write the policy”-
In the console, open Autonomy Zone, then the policies list, and choose New intent policy.
-
On the Brief step, paste one sentence that says what you want, or pick an example. This tutorial uses:
Don't let the agent fetch anything from pastebin.com. -
On the Policy step, read the sentence OpenLatch generated from your brief, with the test cases shown beside it. Each case is a concrete situation and the verdict the policy would return. Answer Yes if the sentence says what you meant. Answer No and say what you meant in your own words, and OpenLatch regenerates the sentence and its cases.
-
On the How it runs step, choose the mode Monitor.
-
On the Ratify step, choose the zone that holds the policy, then run the replay. It applies the policy to your recent agent activity and shows what it would have decided. Ratify the policy.


If the wizard says that authoring is unavailable, an administrator of your OpenLatch site has not configured AI authoring yet.
See it record
Section titled “See it record”- Ratifying rebuilds the policy bundle. The client fetches it on its next poll; to fetch it now, run
openlatch system aip refreshon the agent’s machine. - Ask the agent to fetch a page from pastebin.com.
- The policy runs in Monitor, so the action proceeds and an anomaly is recorded. Open Anomalies in the console to read it: the anomaly names the policy, its dimension and the zone it came from.
What you did
Section titled “What you did”You wrote an intent policy in your own words, checked it against concrete cases, and ran it in Monitor, where it records and never stops the agent. When the anomalies show the policy is accurate, switch it to Enforce in its zone: the client then applies its verdict before the action runs. Modes explains the difference, and Intent policies explains what OpenLatch built from your sentence.