The audit trail for AI
This page is for administrators, auditors and data protection officers who must show what AI and agents did on an installation. Exponential has a tamper-evident audit trail: canonical JSON lines with a hash chain, which can be verified, archived, exported and forwarded (The audit trail). AI use is recorded there, as actions and metadata.
Contents
- What is never recorded
- Exponential Intelligence: the channel ai
- What agent accounts do
- Keys and tokens of agents
- Reading it
- An auditor for AI only
What is never recorded
The audit trail records who did what, when, with what result. For the assistant it never holds a prompt, an answer, a draft's text, a provider's error text or a key. Personal data beyond the user id follows the kernel's audit privacy settings.
Exponential Intelligence: the channel ai
From the extension's audit page, written into the
channel ai (var/log/audit/ai-<day>.jsonl):
| Event | When |
|---|---|
system.expai.request | Every request sent to a model: provider, model, region, retention, purpose, lane, token counts, latency, status, estimated cost |
system.expai.request.failed | The request failed or the model refused |
system.expai.request.refused | The veto refused it, or the master switch is off |
content.expai_draft.write | A version written by the assistant, from any source |
content.expai_draft.keep, .submit, .publish, .discard, .reopen | The draft's state changed |
content.expai_chain.start, .approve, .changes, .stop, .resume | An editor acted on a chain |
system.expai.model.action | A local model loaded or unloaded, a model test queued |
system.expai.budget.hold, .resume | A queued job held by a budget, or resumed |
Changes of the assistant's settings (the master switch, the data policy) written through exp:ini or the settings
views are recorded by the kernel as system.setting.write; role changes as access.role.*.
The volume is about one line of 1 KB per request and per draft. To record only failures, refusals and drafts, disable
system.expai.request in your audit settings.
What agent accounts do
An agent that works through the REST API or expservices acts as its own account, so its actions are recorded like any user's:
- every expservices write records
service.<domain>.<method>in the audit trail (Remote services and apps); - content changes made through the kernel are recorded in the content channel under the account that made them.
This is why every agent should have an account of its own: the audit trail then answers "what did the agent do?" directly (Roles and least privilege).
Keys and tokens of agents
| Event | Records |
|---|---|
access.apikey.* | Making, revoking, first use and refusals of personal API keys |
access.expservices.token.create, .revoke, .failed | expservices tokens |
Reading it
./console exp:audit tail --channel=ai --allow-root-user
./console exp:audit search --name=system.expai.request.failed --allow-root-user
./console exp:audit verify --channel=ai --allow-root-user
./console exp:audit tail --channel=access --name='access.expservices.*' --lines=5 --allow-root-userIn the administration, with the assistant active, the audit console has an Exponential Intelligence source: a
dashboard panel (requests, failures, refusals, drafts, estimated cost of 7 days, top users and models), a chart per
day, a card per event with links to the request in EI: Log, and an alert rule for many failed requests to one model in
a short time. The CSV export of the channel ai adds columns such as provider, model, region, purpose, tokens and cost.
An auditor for AI only
The Channel limitation of audit/read offers "Exponential Intelligence" (ai). A role with audit/read limited
to that channel sees the AI events and nothing of the content, access or system channels. Add expai/log if the
auditor should also read the usage log.
Related pages
- Security and audit
- Cost control
- Incident response for AI
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.