# Policies

Write the rules that decide what an agent may do.


- [Your first deny](https://docs.straza.ai/guides/write-policy/first-deny/index.md) writes and activates a policy that denies one dangerous command and tells the agent why.
- [Hold a call for a person](https://docs.straza.ai/guides/write-policy/hold-for-a-human/index.md) holds one call until a named person approves it, with a bounded wait.
- [Tickets](https://docs.straza.ai/guides/write-policy/tickets/index.md) gates a class of calls behind a ticket that an approver grants once and the agent consumes later.
- [Classify](https://docs.straza.ai/guides/write-policy/classify/index.md) sends a call to the inline classifier when a static rule cannot tell whether it is safe.
- [Record a conversation](https://docs.straza.ai/guides/write-policy/capture/index.md) turns recording on for one role, word for word or with secrets masked.
- [Simulate a call](https://docs.straza.ai/guides/write-policy/simulate-and-coverage/index.md) tests a policy against a call before you activate it and shows which policies govern each role.


- [Your first deny](https://docs.straza.ai/guides/write-policy/first-deny/index.md): One role's agents cannot run a recursive force-delete, and each denial tells the agent why.
- [Hold a call for a person](https://docs.straza.ai/guides/write-policy/hold-for-a-human/index.md): The command kubectl apply waits for a holder of an approver role, and the agent runs it once after the approval.
- [Tickets](https://docs.straza.ai/guides/write-policy/tickets/index.md): The command terraform apply needs a ticket, an approver grants it once, and a later session runs it once.
- [Classify](https://docs.straza.ai/guides/write-policy/classify/index.md): Send a call to the inline classifier when a static rule cannot tell whether it is safe.
- [Record a conversation](https://docs.straza.ai/guides/write-policy/capture/index.md): One role's conversations are recorded with secrets masked, and you have read a recorded prompt back.
- [Simulate a call](https://docs.straza.ai/guides/write-policy/simulate-and-coverage/index.md): You have asked the live policy about one call, tested a change before it is live, replayed a recorded call, and read which policies govern each role.
