> For the complete documentation index, see [llms.txt](https://docs.visdom.virtuslab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/policies.md). Agents can also search and read this documentation through its [MCP server](https://docs.visdom.virtuslab.com/~gitbook/mcp).

# Policies and verification

Where policies live, which rules the server enforces, and the three points where they reach an agent: its instructions, the pre-push check and CI.

A policy is a rule about how a change may be produced: "the tests were run and passed", "`cargo check` ran after the last edit to a Rust file", "no agent edits the migrations". Policies are kept **on the server, per repository**. There is no policy file in the repository; you create and change them in the web app or through the API, and every developer's CLI picks up the current set on its next call.

The same rules reach the work at three points:

| Point                                                                                                                          | When                                                  | What it does                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [Agent instructions](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/agent-instructions-and-mcp.md) | Session start, and when the agent switches repository | The rules are injected into the agent's context, so it knows what will be checked before it starts             |
| [Pre-push check](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/pre-push-check.md)                 | `git push`, from the pre-push hook                    | `tracevault check` evaluates the unpushed sessions and can refuse the push                                     |
| [Verification in CI](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/verifying-commits-in-ci.md)    | Pull request or push in CI                            | `tracevault verify` fails the build for commits that are not registered, not sealed, or failed a blocking rule |

Every evaluation, at every point, is recorded and shown on the repository's **Policy Activity** list.

{% hint style="info" %}
**Introduce enforcement last.** Set up capture, let the team see its own sessions in the web app, then add policies with the **Warn** action, and only then switch the ones that matter to **Block Push**. A blocked push the team cannot explain reads as a tool that broke git, not as governance.
{% endhint %}

## In this section

* [Policies and conditions](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/policies-1.md): the condition types, actions, scopes and the verification phase, and how to create policies
* [The pre-push check](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/pre-push-check.md): what `tracevault check` evaluates, its output, and why it fails closed
* [Verifying commits in CI](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/verifying-commits-in-ci.md): `tracevault verify`, the GitHub Action, and the server-side merge gate
* [Agent instructions and the MCP server](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/agent-instructions-and-mcp.md): how agents are told the rules, per agent
