doc/user/duo_agent_platform/ai-audit-events.md
{{< details >}}
{{< /details >}}
{{< history >}}
agent_artifacts_page. Disabled by default.{{< /history >}}
[!warning] This feature is in beta. It is subject to change without notice. For more information, see GitLab Testing Agreement.
Use the AI audit event report for a unified, browsable record of GitLab Duo agent activity. Each agent session produces a comprehensive audit artifact that you can inspect.
AI audit events are available on the Governance page as the Audit events tab.
Prerequisites:
To view AI audit events for a group:
The tab displays a list of agent sessions. Each row shows:
You can filter the session list to narrow results:
To inspect the events within a session:
{{< history >}}
{{< /history >}}
AI audit event storage is disabled by default. You must explicitly enable storage before agent session data is written to the database or ClickHouse. Disabling storage does not affect real-time streaming of AI audit events.
The setting cascades from instance to group to project:
Prerequisites:
If the setting is locked by a parent group, the control is disabled and cannot be changed at the project level.
{{< history >}}
{{< /history >}}
When an agent session runs with a composite identity,
which is the default identity for agent sessions, the AI audit events for the session
are attributed to the service account.
The author_id field contains the user ID of the service account, and the
service account appears as the event author.
The event details field records the human user who started the session:
| Field | Description |
|---|---|
human_author_id | User ID of the human user |
human_author_name | Name of the human user |
human_author_username | Username of the human user |
When a session is authenticated with a human user's own token, the human user
is the event author and the human_author_* fields are not added.