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

# Action policy

> Deny a tool, step up on a label, and verify the signed receipts

`agent_with_action_policy` registers three rules and writes receipts as JSON lines.

* A forbidden rule denies `shell`.
* A contextual rule steps up when `refund` carries the `restricted` label.
* Anything else is allowed.

```bash theme={null}
go run ./agent_with_action_policy
go run ./agent_with_action_policy verify receipts.jsonl
```

`verify` checks the signature and the hash chain with the public key printed at startup. On Temporal, register the same policy id, version, agent id, and key id on the starter and the worker.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.