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

# Approvals

> Decide which agent writes run on their own, which wait for a person, and which never run, and answer approval requests.

Approvals controls what happens when an agent wants to change something through a [connection](https://docs.cloudthinker.io/guide/connections/overview.md), such as restarting a service or editing a cloud resource. Each write runs, waits for a person, or is refused, while reads always run.

## How a write is decided

A **write** is any agent call that changes one of your connected systems. Every write goes through these steps in order, and the first step that gives an answer decides.

![A write passes Always blocked, Rules, Approval mode, and Who approves in order; each step can run it, wait for a person, or refuse it.](https://mintcdn.com/cloudthinker/IOnNsZPtwT4C7tHY/images/approvals/diagram-write-decision-light.svg?fit=max\&auto=format\&n=IOnNsZPtwT4C7tHY\&q=85\&s=e594729556fbd129badf4966d747c637)

The first step that gives an answer decides whether a write runs, waits for a person, or is refused.

| Step | What decides | Result |
| - | - | - |
| 1. Always blocked | A built-in list of calls that never run, such as stopping CloudTrail logging, closing an AWS account, or deleting the `kube-system` namespace | Refused. No person and no Rule can change this. |
| 2. [Rules](https://docs.cloudthinker.io/guide/approvals/rules.md) | The Rules you accepted. A Rule names one kind of write. | **Allow** runs it, except in **Manual** mode, where it still asks a person. **Ask first** waits for a person. **Deny** refuses it. All three apply only once CloudThinker turns on Rule enforcement for your workspace; until then Rules record what they would decide. |
| 3. [Approval mode](https://docs.cloudthinker.io/guide/approvals/approval-mode.md) | **Manual** or **Auto** for this run | Manual asks a person. Auto can let AI judgment allow a safe write, then asks you or refuses the rest. |
| 4. [Who approves](https://docs.cloudthinker.io/guide/approvals/approvers.md) | Default approvers, or the group a Rule names | A person approves or declines. |

When several Rules match one write, **Deny** beats **Ask first**, and **Ask first** beats **Allow**.

Approvals checks every call that reaches outside CloudThinker: calls through your connections, cloud and cluster CLIs such as `aws` and `kubectl`, remote programs such as `ssh` and `psql`, Git pushes and pulls, and commands that send a stored [credential](https://docs.cloudthinker.io/guide/credentials.md), such as `curl` with `$STRIPE_API_KEY`. A file an agent changes in its own working folder isn't checked. On an [Environment](https://docs.cloudthinker.io/guide/workers.md), the agent's shell commands run on your machine instead of in the CloudThinker managed sandbox. Calls that reach your systems are checked the same way, but don't count on Approvals to stop a command that only acts on that machine, such as `rm` or a local file write.

## What you get out of the box

New workspaces start on **Auto · Rules + AI · Ask me**. In practice:

* Reads run without asking.
* A write that a Rule allows runs, once Rule enforcement is on for your workspace.
* A write no Rule covers goes to AI judgment. If it's judged safe, it runs. Otherwise the agent pauses and asks a person. For example, restarting a staging pod you just asked it to restart can run. Deleting an RDS snapshot is destructive, so it asks you.
* Automations, which often run with no one watching, default to **Auto · Rules + AI · Refuse**, so they skip a write instead of waiting forever.

| Mode | What happens to a write that no Rule decides |
| - | - |
| **Manual** | A person approves every write before it runs, also one that an Allow Rule covers. |
| **Auto** | Your Rules decide first. AI judgment can allow a safe write that no Rule covers, if it is on. The rest wait for a person (**Ask me**) or are refused (**Refuse**). |

Rules decide only once CloudThinker turns on Rule enforcement for your workspace; until then they record the verdict they would give and the Approval mode alone decides. See [Rules in preview](https://docs.cloudthinker.io/guide/approvals/rules.md#troubleshooting).

Agents propose Rules as they work. A proposed Rule does nothing until a workspace Admin accepts it.

## Review your setup

Do this once when you start, then whenever **Needs you** shows a count.

**1. Open Approvals**

Open **Approvals** in the sidebar. If it isn't there, click **More** and select **Approvals** to show it. The page opens on the **Overview** tab.

![Approvals Overview tab with the Rules, When no Rule matches, and Who approves cards in order](https://mintcdn.com/cloudthinker/7N5Axt6gSxkmeWiW/images/v2/approvals-overview.webp?fit=max\&auto=format\&n=7N5Axt6gSxkmeWiW\&q=85\&s=18868e5f1ccbcc3ab669ebcde910a921)

The Approvals Overview screen: the Rules step, the Approval mode, and who approves

**2. Review proposed Rules**

If the top card says Rules need your review, click **Review**. Accept the ones that match how your team works, and dismiss the rest.

No proposals yet? On the **Rules** tab, click **Find rules**. CloudThinker reads your connections, Optimize findings, incidents, alerts, and approval history, then proposes Rules. Nothing changes until you accept.

**Success state:** **Needs you** reads "Nothing needs your review" and the **Rules** card shows your active Rules.

**3. Check the workspace mode**

Under **When no Rule matches**, the **Workspace mode** picker shows the current mode. Change it here, or click **Edit run types** to set a different mode for chats, automations, and other run types.

**4. Check who approves**

Under **Who approves**, click **Open Approvers**. When Default approvers is empty, every Developer or above can approve. Add people to narrow it.

**Success state:** the **Who approves** card shows the number of default approvers and whether the two-person rule is on.

## Answer an approval request

When a write must wait for a person, the agent pauses and the chat shows an approval card that names the action and the connection it touches.

| Button | What it does |
| - | - |
| **Approve** | Runs this one call. |
| **Approve for…** | Runs this call and lets the same operation on the same connection run without asking, in this chat or incident only, for **1 hour**, **This incident**, or **30 days**. This creates a time-limited Rule called a [Window](https://docs.cloudthinker.io/guide/approvals/rules.md#windows). |
| **Approve and draft rule** | Runs this call now. A side chat drafts a Rule for you to accept, and this chat keeps running. |
| **Decline** | Refuses the call. Tell the agent why, so it can try another route. |
| **Break glass…** | Runs one call a **Deny** Rule refused, once. Only the workspace owner and workspace Admins see it, and only when [break-glass](https://docs.cloudthinker.io/guide/approvals/approvers.md#break-glass) is on. |

**Approve for…** appears only for a plain write on one connection in an Auto mode, and only for a workspace Admin. A delete, a call in Manual mode, or an Ask first Rule once Rule enforcement is on, never offers a Window.

If you can't approve, the card says "Waiting for an approver." The person who started the conversation can click **Notify approvers** to alert them. Anyone who can chat can **Decline**. In [Google Chat](https://docs.cloudthinker.io/guide/google-chat-integration.md), the card has **Approve**, **Approve with reason**, and **Reject** buttons. [Slack](https://docs.cloudthinker.io/guide/slack-integration.md) and [Microsoft Teams](https://docs.cloudthinker.io/guide/teams-integration.md) only link to the web app, so you decide there. To get these requests by email or chat, turn on **Agent approvals** in [Notifications](https://docs.cloudthinker.io/guide/notifications.md).

## The Approvals tabs

| Tab | What you do there |
| - | - |
| **Overview** | See what needs you and the last 7 days: how many calls ran, asked a person, or were refused |
| **Rules** | Find, review, accept, edit, and turn off Rules. Import or export your policy as a YAML or JSON file. |
| **Approval mode** | Set the mode for the workspace, each run type, and what people can pick in one chat |
| **Approvers** | Set Default approvers, approver groups, the two-person rule, and break-glass |
| **Activity** | See what each Rule decided in a period, and export it as CSV |

## Who can change Approvals

| Workspace role | View the page | Change Rules, modes, and approvers | Approve a write |
| - | - | - | - |
| Admin | Yes | Yes | Yes |
| Developer | Yes | No | Yes, unless a group limits it |
| Viewer | Yes | No | No |

Organization Owners and Admins are workspace Admins in every workspace, so a workspace can have several Admins. Controls you can't use stay visible and say "Ask a workspace admin". Some messages say "Ask a workspace owner"; that means the workspace owner or any workspace Admin.

## Troubleshooting

> [accordion] A write still asks me even though a Rule allows it
>
> Check Rule enforcement first: while the **Rules** step says **In preview**, Rules only record what they would decide, so no Rule runs a write yet. If enforcement is on, the run is using **Manual** mode, which asks before every write. Check the mode in the chat, on the automation, for the run type, and for the workspace on the **Approval mode** tab.

> [accordion] An automation skipped a write instead of asking
>
> Automations default to **Auto · Rules + AI · Refuse**, because no one may be there to answer. Add an Allow Rule for that write, or change the automation's mode.

> [accordion] I don't see the Approve button
>
> The server checks who can approve on every click. A Rule may name an approver group you aren't in, or Default approvers may not include you. Click **Notify approvers** if you started the conversation, or **Decline**.

> [accordion] The Rules step says 'In preview: Rules record what they would decide'
>
> Rule enforcement isn't on for this workspace yet. Rules record the verdict they would give, but the Approval mode alone still decides each write. CloudThinker turns enforcement on per workspace; there's no switch for it on this page. Contact CloudThinker support to ask for it.

> [accordion] Can I approve a call that Always blocked refused?
>
> No. Always blocked calls never run, and break-glass can't override them either.

> [accordion] Can an agent turn on its own Rule?
>
> No. An agent can propose a Rule, change its own proposal, or propose turning a Rule off. A workspace Admin must accept each one.

> [accordion] Where did Tool Permissions and Command Permissions go?
>
> Rules replaced them. Old grants became Rule proposals with the source **Imported**. They wait under **Needs review** on the **Rules** tab and do nothing until you accept them.

## Next steps

> [card] [Rules](https://docs.cloudthinker.io/guide/approvals/rules.md)
>
> Find, review, and accept the Rules proposed for each kind of write

> [card] [Approval mode](https://docs.cloudthinker.io/guide/approvals/approval-mode.md)
>
> Choose Manual or Auto for the workspace, a run type, or one chat

> [card] [Approvers and Activity](https://docs.cloudthinker.io/guide/approvals/approvers.md)
>
> Choose who approves and check what each Rule decided

> [card] [Notifications](https://docs.cloudthinker.io/guide/notifications.md)
>
> Send approval requests to email, Slack, Teams, or Google Chat


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