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

# Agent Execution History

> Monitor and audit Security Delivery Agent activity with a complete history of every execution, including status, token usage, and incident details.

View a complete audit trail of Security Delivery Agent executions to monitor agent performance, troubleshoot failures, and demonstrate compliance with response policies.

The Execution History tab on the Agent Details page provides a sortable table of every time an agent has processed an incident. Each row captures when the execution occurred, who triggered it, which incident was processed, the data source, severity, token consumption, and the outcome — giving you full visibility into automated response activity.

***

## What Can You Do Here?

<CardGroup cols={3}>
  <Card icon="clipboard-list" title="Audit Agent Activity">
    Review every execution an agent has performed, with timestamps and outcomes.
  </Card>

  <Card icon="triangle-exclamation" title="Troubleshoot Failures">
    Identify failed executions and investigate  causes using status and token data.
  </Card>

  <Card icon="microchip" title="Monitor Token Usage">
    Track AI token consumption per execution to understand cost and complexity.
  </Card>
</CardGroup>

***

## Prerequisites

| Requirement                            | Description                                                                                                                                                  |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Agent Center Deployed**              | Azure AI Foundry infrastructure must be provisioned. See [Deploying Agent Center](/guides/onboarding/agent-center-deployment).                               |
| **Security Delivery Agent Configured** | At least one agent must be created and configured. See [Configuring Security Delivery Agents](/guides/getting-started/configuring-security-delivery-agents). |
| **ContraForce Roles**                  | Organizational Admin or Agent Admin role required.                                                                                                           |

***

## Accessing Execution History

<Steps>
  <Step title="Navigate to Agent Center">
    From the left navigation menu, select **Agent Center**.
  </Step>

  <Step title="Select Your Agent">
    Click the name of the agent you want to review. This opens the Agent Details page.
  </Step>

  <Step title="Open the Execution History Tab">
    On the Agent Details page, click the **Execution History** tab (next to the **Configuration** tab).
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/contraforce/9dmlysXl5hAh-iAo/images/agent-execution-history.png?fit=max&auto=format&n=9dmlysXl5hAh-iAo&q=85&s=bea9255969ed7577d1629760a9571d40" alt="Agent Execution History" width="3278" height="1348" data-path="images/agent-execution-history.png" />
</Frame>

You will see a table displaying all past executions for that agent, sorted by date with the most recent entries at the top.

***

## Understanding the Execution History Table

The Execution History table contains the following columns:

| Column           | Description                                                                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Date**         | Timestamp of when the agent execution occurred (e.g., `Feb 19, 2026 03:10 PM`).                                                                          |
| **Triggered By** | The user or process that initiated the execution. Displays the name of the user for manual triggers (e.g., via the Actions menu) or auto-trigger events. |
| **Incident**     | The incident number the agent processed. Displayed as a clickable link (e.g., `#149631`) that navigates directly to the incident detail page.            |
| **Source**       | The data source the incident originated from (e.g., `Microsoft Sentinel`, `Microsoft Defender for Endpoint`).                                            |
| **Severity**     | The severity level of the incident: **High**, **Medium**, **Low**, or **Informational**.                                                                 |
| **Tokens**       | The number of AI tokens consumed during the execution. Displays `—` if the execution did not complete successfully.                                      |
| **Status**       | The current state of the execution, displayed as a color-coded badge.                                                                                    |

### Execution Statuses

| Status        | Color    | Description                                                                         |
| ------------- | -------- | ----------------------------------------------------------------------------------- |
| **Completed** | 🟢 Green | The agent successfully finished processing the incident.                            |
| **Running**   | 🔵 Blue  | The agent is currently processing the incident.                                     |
| **Failed**    | 🔴 Red   | The execution encountered an error and did not complete. Token count will show `—`. |

***

## Using Execution History

### Investigate a Processed Incident

Click any **Incident** link (e.g., `#149631`) in the table to navigate directly to that incident's detail page. From there, you can review the full incident timeline, entity context graph, and any Gamebook actions that were executed.

### Identify Failed Executions

Filter or scan for rows with a **Failed** status. Failed executions typically show `—` in the Tokens column, indicating the agent did not complete its analysis. Common causes include:

| Possible Cause                    | What to Check                                                    |
| --------------------------------- | ---------------------------------------------------------------- |
| Agent Center infrastructure issue | Verify the Logic App is enabled in the Azure Portal              |
| Connectivity to data source       | Confirm the workspace module consent is active                   |
| Token or rate limit exceeded      | Review token consumption trends in recent executions             |
| Incident no longer available      | Check if the incident was deleted or merged in the source system |

If failures persist, contact [support@contraforce.com](mailto:support@contraforce.com) with the agent name, affected incident numbers, and the timestamps of the failed executions.

### Monitor Token Consumption

The **Tokens** column shows how many AI tokens were consumed per execution. This helps you understand the complexity of agent processing and monitor usage. Executions that involve larger incidents with more entities and evidence will typically consume more tokens.

<Tip>
  Compare token counts across similar incidents to establish a baseline. Unusually high token usage on a routine incident may indicate the agent is processing excessive data or encountering retry loops.
</Tip>

***

## Best Practices

<AccordionGroup>
  <Accordion title="Review execution history regularly">
    Check the Execution History tab periodically to confirm agents are processing incidents as expected. Look for patterns in failures, unexpected token spikes, or gaps in execution activity.
  </Accordion>

  <Accordion title="Investigate repeated failures on the same incident">
    If the same incident appears multiple times with a Failed status, the issue is likely environmental (permissions, connectivity) rather than incident-specific. Check the troubleshooting table above.
  </Accordion>

  <Accordion title="Use execution data for compliance reporting">
    The Execution History table serves as an audit trail for automated response activity. Use it to demonstrate that incidents were triaged and processed within your SLA requirements.
  </Accordion>

  <Accordion title="Correlate with Gamebook activity">
    Cross-reference Execution History entries with the Gamebook Activity widget on the Command Dashboard to verify that agent-initiated Gamebooks completed successfully.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

| Issue                             | Possible Cause                            | Solution                                                                                                               |
| --------------------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| No entries in Execution History   | Agent has not processed any incidents yet | Verify the agent Mode is set to **On Queue**, or manually trigger an investigation from an incident's **Actions** menu |
| All executions show Failed        | Agent Center infrastructure issue         | Check that the Logic App is enabled in the Azure Portal and that Azure AI Foundry resources are healthy                |
| Incident link returns an error    | Incident was deleted or merged            | Verify the incident exists in the source system (Sentinel or Defender for Endpoint)                                    |
| Token column shows `—`            | Execution failed before completion        | Review the Status column — failed executions do not record token usage                                                 |
| Execution History tab not visible | Feature not available in your environment | Confirm Agent Center is deployed and you have the required roles                                                       |

***

## Related Guides

<CardGroup cols={2}>
  <Card icon="robot" href="/guides/getting-started/configuring-security-delivery-agents" title="Configuring Security Delivery Agents">
    Set up and configure agents using the three-phase adoption model.
  </Card>

  <Card icon="server" href="/guides/onboarding/agent-center-deployment" title="Deploying Agent Center">
    Deploy the Azure AI Foundry infrastructure required for agents.
  </Card>

  <Card icon="shield-halved" href="/guides/getting-started/incident-management" title="Incident Management">
    Learn how incidents flow through ContraForce.
  </Card>

  <Card icon="gauge-high" href="/guides/getting-started/command-dashboard" title="Command Dashboard">
    Monitor agent activity and incident trends from mission control.
  </Card>
</CardGroup>

***

Questions about Agent Execution History? Contact us at [support@contraforce.com](mailto:support@contraforce.com).
