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

# Triage policy violations

> Read the summary breakdowns and the per-event table to confirm enforcement is working and investigate any policy match.

**Policy Violations** records every event that matched a policy on a developer's machine. Use the page to confirm enforcement is working, investigate a single incident, and plan the next policies you write.

## Open Policy Violations

Select **Agent Governance** from the left sidebar, then select **Policy Violations**.

The page opens with three summaries above a per-event table. Use **Last Active** at the top to scope every summary and the table to the same window.

![Policy Violations](https://mintcdn.com/endorlabs-b4795f4f/fffHtDIaLv4Z53Ka/images/agent-governance/policy-violations.webp?fit=max\&auto=format\&n=fffHtDIaLv4Z53Ka\&q=85\&s=3cbe26257978a2b1d2013e625df82549)

## Summary at a glance

Above the violation table, the page shows three summaries:

* **Top 5 Policies**: A ranked breakdown of the busiest match-category and agent combinations.
* **Violations by Action**: A breakdown of how violations resolved, with the total in the center.
* **Violations**: The last seven days as a per-day breakdown, with a comparison against the week before.

> [!NOTE]
>
> **Top 5 Policies** ranks match-category and agent combinations, not individual policy names. Read the table to find specific policies.

## Filter results

Use the filters above the table to narrow the rows.

* **Last Active** scopes to the last day, week, or month. The page opens on the last month.
* **Category** scopes to a single activity type: **Dangerous Command**, **File Access**, **MCP Tool Call**, **MCP Server**, **Skill**, **Session**, **Malware**, **Secret**, or **Dependency Risk**.
* **Agent** scopes to one agent: **Cursor**, **Claude Code**, **Codex**, **GitHub Copilot**, or **Snowflake Cortex Code**.
* **Action** scopes to how the violation resolved: **Blocked**, **Alert**, or **Ask**.
* **User** scopes to one developer.
* **Group by** collapses the table into one row per **Category**, **Agent**, **User**, or **Action**, with a violation count for each group. Select **None** to return to the flat list.

For example, filtering by **Category: File Access** narrows the view to file-operation policy matches:

![Policy Violations filtered to File Access](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-file-access.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=8bcf81a605ce7d7f528a0a233996479f)

## Read a violation

Each row begins with an icon for the action the policy applied. Hover the icon to see whether the action was **Blocked**, **Alert**, or **Ask**.

The following table describes the rest of the columns.


&#x20; \- Column: \*\*Policy Name\*\*
&#x20; What it shows: The policy name, with the match category on a second line beneath it. The categories are the same set the \*\*Category\*\* filter offers, from \*\*Dangerous Command\*\* through \*\*Dependency Risk\*\*.
&#x20; \- Column: \*\*Agent\*\*
&#x20; What it shows: The agent that produced the event, for example \*\*Cursor\*\*, \*\*Claude Code\*\*, \*\*Codex\*\*, \*\*GitHub Copilot\*\*, or \*\*Snowflake Cortex Code\*\*. Events without an agent identifier show \*\*Unknown Agent\*\*.
&#x20; \- Column: \*\*User\*\*
&#x20; What it shows: The developer who triggered the event, when the agent's hook payload includes a user identifier. Cursor supplies one on most events. Claude Code, Codex, and GitHub Copilot derive one from the local environment when they can. The value can still be empty. Snowflake Cortex Code reports \`ENDOR\_ACTOR\` when set, otherwise the operating system login.
&#x20; \- Column: \*\*Last Active\*\*
&#x20; What it shows: When the event occurred.
&#x20;&#x20;

Select a row to open the violation's detail drawer. The header shows **Action**, **Policies Matched**, and **When** cards. Below the header, the drawer shows the event context, such as the agent, user, working directory, session ID, and permission mode.

Select **Policy Matches** to list each policy that matched. Each match names the policy and shows the pattern or criteria that caught it. For command and file access matches, **Matched Text** shows the exact fragment of the command or file path that matched, so you can see why a broad pattern fired.

![Policy Matches panel showing the matched text for a file access violation](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-matched-text.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=fbcc22940bd47285548dacbd1db35cda)

A secrets match shows the rule and the finding's line and column instead of the secret value. A malware match shows the package and ecosystem. Select **View Payload** to read the raw event.

## Common triage workflows

### Confirm a new policy is working

After you create a policy, ask one developer to perform an action that matches the policy. Set **Last Active** to the last day and **Agent** to that developer's agent. Confirm the violation appears with the expected **Blocked**, **Alert**, or **Ask** action.

### Investigate a single incident

Set **Last Active** to a window that covers the incident. Browse the rows for the developer's agent and user. Select the row to open the detail drawer and read the full command, file path, or MCP tool name under **Policy Matches**.

### Spot patterns to write new policies

Filter on **Category** to find clusters of unsanctioned activity. For example, repeated **MCP Tool Call** rows from the same MCP server suggest adding an **MCP Server Access** policy. A wide spread of **Dangerous Command** rows like the one below points to a missing **Command Execution** policy.

![Policy Violations filtered to Dangerous Command](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-dangerous-commands.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=0f7a464c8992553e1d735579133fa591)

## Export violations

The following steps enable you to export the events behind the current view as a CSV report.

1. Select **Export Usage** above the table.
2. In the **Create Report** dialog, review **Last Active** and the filters. The range defaults to the window the page is scoped to, and the dialog keeps your current filters.
3. Click **Create Report** to queue the export.
4. Download the file from **Reports** in the left sidebar. It appears under the **Agent Governance** report type.

Exporting requires permission to create jobs. Users without an admin role see the action disabled. Every inventory detail drawer offers the same export through the download icon in its header, scoped to that item's events.

## When no violations match

**Policy Violations** shows **No Policy Violations found** when nothing matched the current filters.

If you expected matches to appear, work through the following checks:

* Widen **Last Active** in case the filter window is too narrow.
* Check hook health on the developer machines you expect to govern. See [Deploy hooks for Cursor](https://docs.endorlabs.com/agent-governance/cursor.md) or [Deploy hooks for Claude Code](https://docs.endorlabs.com/agent-governance/claude-code.md).
* Confirm a policy exists for the activity you expected to match. See [Write a policy](https://docs.endorlabs.com/agent-governance/policies.md) to create one.

## Next steps

Continue with the following pages:

* See [Read the Coding Agent Governance overview](https://docs.endorlabs.com/agent-governance/overview.md) for how violations trend across your fleet.
* See [Write a policy](https://docs.endorlabs.com/agent-governance/policies.md) to add or refine patterns based on what you find.


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