An audit trail checklist for AI agents
· 4 min read
When something goes wrong, or when someone asks, you need to reconstruct what an agent did. A good audit trail answers who, what, why, when and with what result.
Record for every call
- Agent identity and version. Which agent, and which version of its prompt, model and tools.
- Purpose. The declared reason for the call.
- Target. The data source, object and fields requested.
- Decision. Allow, deny, mask or would-deny, with the reason and the policy version that decided.
- On behalf of. The person or system the agent acted for.
- Time and correlation ID. So related calls can be joined.
What not to record
Do not write raw identifiers into the log. Mask Aadhaar, PAN, phone and account numbers before they are stored. An audit log full of personal data becomes a liability of its own.
Make it tamper-evident
Link each record to the previous one with a hash so any edit or deletion breaks the chain and names the first altered record. Store it write-once where you can, and verify the chain on a schedule.
Make it useful
Support filters by agent, decision and date, and export for your auditor. Show chain integrity status so reviewers can trust what they see. Include approvals, quarantines and support access in the same log.
Test the trail
Tamper with a record on purpose and confirm the check catches it every time. If you cannot prove integrity, you do not yet have an audit trail, only a log.
Where to go next
See how the gateway records and chains every call, and what our security and deployment model keeps inside your network. If you are not sure what your agents log today, the free risk analyzer is a quick first check.