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

# Agent Governance

> Control which tool calls your AURA agents and coding agents can run, route risky calls to a person for approval, and review every decision in Mezmo.

Agent Governance puts a policy checkpoint between your AI agents and the tools they call. Before a tool call runs, the agent asks Mezmo whether the call can proceed. Mezmo checks the call against the policy assigned to that agent and answers in one of three ways: allow the call, deny it, or hold it until a person approves it. Use Agent Governance to let agents act on their own where it's safe, keep a person in the loop for risky actions, and keep a record of every decision.

Agent Governance works with two kinds of agents:

* **[Mezmo AURA](https://docs.mezmo.com/aura/index.md) agents.** Governance support is built into AURA. You turn it on in the agent's `config.toml`.
* **Coding agents and agent SDKs.** The [Mezmo Governance plugins](https://docs.mezmo.com/docs/governance-coding-agents.md) add the same check to coding agents such as Claude Code, Codex, Cursor, and Gemini CLI, and to apps built with SDKs such as LangChain and the OpenAI Agents SDK.

This page explains how Agent Governance works and how to set it up. Each part has its own page, listed in [Agent Governance Pages](#agent-governance-pages). For how approval gates work inside AURA itself, see [Human-in-the-Loop Approval Gates](https://docs.mezmo.com/aura/hitl.md).

> [!NOTE]
>
> Agent Governance is available when it is enabled for your account. In the Mezmo web app, it appears as **AI Governance** in the left navigation, or as **Governance** in the redesigned navigation. If you don't see it, contact Mezmo, or ask your account admin about your permissions.

## How Agent Governance Works

Agent Governance connects four parts:

* **Agents.** An agent is an AURA instance, or a coding agent with a governance plugin, registered to your Mezmo account. Each agent signs in with its own service account, which tells Mezmo which agent is asking. See [Governed Agents](https://docs.mezmo.com/docs/governance-agents.md).
* **Policies.** A policy is a versioned set of rules. Each rule matches tool calls by the tool's namespace, the tool's name, or the arguments the agent passed, and gives an outcome: **Allow**, **Require Approval**, or **Deny**. A call that no rule matches gets the policy's fallthrough outcome. See [Agent Governance Policies](https://docs.mezmo.com/docs/governance-policies.md).
* **Workflows.** Every request that Mezmo evaluates against a policy is recorded as a workflow, with its tool calls and the decision for each one. A workflow that needs a person stays **Pending** until someone approves or denies it, or until it expires. See [Agent Governance Workflows](https://docs.mezmo.com/docs/governance-workflows.md).
* **Approvers.** A policy can name an approving role. Only members of that role can approve or deny the calls that the policy holds. Approvers can decide in the Mezmo web app or from a notice in Slack or Microsoft Teams. See [Approve Agent Governance Requests in Slack](https://docs.mezmo.com/docs/governance-slack-approvals.md) and [Approve Agent Governance Requests in Microsoft Teams](https://docs.mezmo.com/docs/governance-teams-approvals.md).

When an agent wants to run a tool call:

1. The agent sends the call to Mezmo before running it.
2. Mezmo finds the agent from the service account credentials and evaluates the call against the agent's policy.
3. When several rules match, the most restrictive outcome wins. **Deny** outranks **Require Approval**, which outranks **Allow**. A request that holds several tool calls gets the most restrictive outcome of all its calls.
4. An allowed request runs right away, and a denied request is refused with the rule's code and message. A request that requires approval waits for an approver. If nobody decides within the approval window, which is 15 minutes, the workflow expires and the agent treats it as denied.

Mezmo records every evaluated request as a workflow, so you can review what each agent asked to do and how each request was decided.

> [!WARNING]
>
> If an agent has no policy assigned, Mezmo refuses every tool call it sends. Mezmo also refuses calls from credentials with no registered agent, and from a deactivated agent. These calls are refused before any policy is evaluated, so they aren't recorded as workflows. Assign a policy to each agent before you route its tool calls to Mezmo.

## Set Up Agent Governance

Set up Agent Governance in this order, so that each agent has a policy as soon as it starts sending tool calls.

1. [Create a policy](https://docs.mezmo.com/docs/governance-policies.md#create-a-policy) with rules for the tools your agents use, and choose its fallthrough outcome.
2. Recommended. On the policy's **Approvers** step, [assign an approving role](https://docs.mezmo.com/docs/governance-policies.md#approvers), and add Slack or Microsoft Teams channels that should receive approval notices.
3. Recommended. [Evaluate the policy](https://docs.mezmo.com/docs/governance-policy-testing.md#evaluate-a-policy) with sample tool calls to confirm that its rules decide as you expect.
4. [Register an agent](https://docs.mezmo.com/docs/governance-agents.md#register-an-agent), choose its service account, and assign the policy.
5. Connect the agent to Mezmo:
   * For an AURA agent, [connect the agent to AURA](https://docs.mezmo.com/docs/governance-agents.md#connect-the-agent-to-aura) by adding the configuration from the registration wizard to the agent's `config.toml`.
   * For a coding agent, [install the governance plugin](https://docs.mezmo.com/docs/governance-coding-agents.md#install-a-plugin) and give it the URL and service account token from the registration wizard.
6. [Review workflows](https://docs.mezmo.com/docs/governance-workflows.md) as the agent works, and approve or deny the requests that the policy holds.

## Find Agent Governance in Mezmo

In the Mezmo web app, Agent Governance is labeled **AI Governance**, or **Governance** in the redesigned navigation. Select it in the left navigation. The **Governance** sidebar lists the pages you have access to:

| Page | What you do there |
| - | - |
| **Overview** | Monitor decisions, pending approvals, and agent and policy health. See [Agent Governance Overview Dashboard](https://docs.mezmo.com/docs/governance-overview-dashboard.md). |
| **Workflows** | Review requests and approve or deny the ones waiting on a person. See [Agent Governance Workflows](https://docs.mezmo.com/docs/governance-workflows.md). |
| **Policies** | Create, change, evaluate, and test policies. See [Agent Governance Policies](https://docs.mezmo.com/docs/governance-policies.md). |
| **Test Cases** | Keep a library of saved test cases to use with any policy. See [Evaluate and Test Agent Governance Policies](https://docs.mezmo.com/docs/governance-policy-testing.md). |
| **Candidate Rules** | Review the MCP tools your agents have called, and add policy rules or test cases from them. Appears when Candidate Rules is enabled for your account. See [Agent Governance Candidate Rules](https://docs.mezmo.com/docs/governance-candidate-rules.md). |
| **Agents** | Register agents and assign their policies. See [Governed Agents](https://docs.mezmo.com/docs/governance-agents.md). |

When requests are waiting for approval, a count appears on the **AI Governance** navigation item. Hover over it to see the newest pending workflows. In the redesigned navigation, the sidebar groups the pages under **Governance**, **Activity**, **Policy**, and **Access**, and the count also appears on **Workflows**.

Selecting **AI Governance** opens the first page you can use: **Overview**, then **Policies**, then **Agents**.

## Permissions

Each Agent Governance page needs a permission on your role. Account admins set permissions on a role's **Permissions** tab under **Settings** > **Organization** > **Roles**. Levels are cumulative: **Manage** includes **Write**, and **Write** includes **Read**. See [Role-Based Access Control](https://docs.mezmo.com/docs/rbac.md).

| Permission | Level | What it lets you do |
| - | - | - |
| `workflow` | Read | View the **Overview** dashboard, the **Workflows** list, and workflow details. |
| `workflow` | Write | Approve or deny pending workflows, in the web app or from Slack or Microsoft Teams. |
| `policy` | Read | View and evaluate policies, view test suites and the **Test Cases** library, and view **Candidate Rules**. |
| `policy` | Write | Create policies, change them through drafts, fork and revert revisions, and edit and run test suites and test cases. |
| `policy` | Manage | Delete policies. |
| `agent` | Read | View the **AURA Agents** list. |
| `agent` | Write | Register and edit agents. Choosing or creating the agent's service account also needs `service_account` permissions. |
| `agent` | Manage | Delete agents. |

Some features also need other permissions:

* To see or assign a policy's approving role, you need `role` Read. To create an approving role from the policy wizard, you need `role` Write.
* To add Slack or Microsoft Teams notification channels to a policy, you need `role` Read and `integration` Manage.

If a policy names an approving role, you also need to belong to that role to approve or deny its workflows.

## Agent Governance Pages

* [Agent Governance Overview Dashboard](https://docs.mezmo.com/docs/governance-overview-dashboard.md): Monitor tool-call decisions, approvals, and coverage.
* [Governed Agents](https://docs.mezmo.com/docs/governance-agents.md): Register agents, assign policies, and connect AURA to Mezmo.
* [Govern Coding Agents with Governance Plugins](https://docs.mezmo.com/docs/governance-coding-agents.md): Install the governance plugins for coding agents such as Claude Code, Codex, and Cursor.
* [Agent Governance Policies](https://docs.mezmo.com/docs/governance-policies.md): Write rules, choose the fallthrough, assign approvers, and manage revisions.
* [Evaluate and Test Agent Governance Policies](https://docs.mezmo.com/docs/governance-policy-testing.md): Dry-run tool calls and keep test suites that catch unwanted changes.
* [Agent Governance Candidate Rules](https://docs.mezmo.com/docs/governance-candidate-rules.md): Turn the tool calls your agents have made into policy rules and test cases.
* [Agent Governance Workflows](https://docs.mezmo.com/docs/governance-workflows.md): Review requests and approve or deny them in Mezmo.
* [Approve Agent Governance Requests in Slack](https://docs.mezmo.com/docs/governance-slack-approvals.md): Send approval notices to Slack, and approve or deny from Slack.
* [Approve Agent Governance Requests in Microsoft Teams](https://docs.mezmo.com/docs/governance-teams-approvals.md): Send approval cards to Microsoft Teams, and approve or deny from Microsoft Teams.
