> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goantiai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Policy Simulation

> Test any policy against a mock request before it goes live.

The **Policy Simulator** lets you test any policy against a hypothetical request without affecting live agents.

## Running a simulation

1. Go to **Policies → \[your policy] → Simulate**
2. Fill in the mock request:
   * **Agent ID** — which agent is making the request
   * **Action** — the scope being requested (e.g. `stripe:charge:write`)
   * **Resource** — the resource being accessed
3. Click **Run Simulation**

## Reading the result

* **Allow** or **Deny** — the decision
* **Matched rule** — the exact line in the policy that made the decision
* **Line number** — find it in the editor immediately
* **Full input** — the complete request object that was evaluated

<Tip>
  Always simulate before activating a new policy. A misconfigured policy can lock out your agents immediately.
</Tip>
