Skip to main content
Intelliger
AI Agent Evidence Engineering

AI Agent Audit Trail Architecture: Collection to Verification

Design an AI agent audit trail that collects runtime events, protects integrity, separates mutable outcomes and supports independent verification and retrieval.

AI agent audit trail architecture from enforcement events to an independent verifier
Intelliger
9 minute read · Security, privacy and audit review required

AI agent audit trail architecture needs two connected paths: rich operational telemetry for search and diagnosis, plus stable evidence records for protected decisions and actions. A trace can show service timing. A signed receipt can bind request, authority and decision semantics. Neither alone proves the complete real-world outcome.

AI Agent Audit Trails explains the difference between operational logs and durable evidence. The system below follows those records from collection through independent verification.

Reference architecture

[agent runtime] ----- proposal and trace events ------>
[policy point] ------ decision + request digest ------> [collector]
[gateway/adapter] --- dispatch + provider response --->     |
[reconciler] -------- later outcome ------------------->     v
                                                   [event store]
                                                        |
                                  [receipt signer] <----+
                                        |               |
                                  [receipt store]   [search index]
                                        |
                                  [offline verifier]

The search index may be rebuilt and governed by operational retention. Preserve signed records and source evidence according to their own policies. Link them with tenant, transaction, trace and external references.

Protect semantics and integrity

Schema versions must define what authorized, submitted, accepted and settled mean. Canonicalize protected records before signing; RFC 8785 is one suitable JSON canonicalization basis when paired with a declared signature profile.

receipt_claims:
  integrity: signature verifies over canonical payload
  attribution: issuer controlled verification key under stated trust policy
  decision: issuer attests policy result for request digest
  outcome: only as strong as named source evidence
  no_bypass: not proven by receipt alone

Publish verification fixtures for valid, altered, expired-key, unknown-issuer and missing-evidence cases. A verifier should return unknown when evidence cannot be resolved, not convert absence into success.

Design for later outcomes

Append settlement, return or reversal observations instead of rewriting the original action record. Preserve the time a system was uncertain. This is essential for payment and other distributed workflows.

Plan for pipeline failure

The enforcement point should know whether evidence delivery is required before a material action can proceed. A durable local queue may allow the operation while the central collector is unavailable. If neither synchronous recording nor durable buffering is available, high-risk policy may need to deny. Define this by action class.

Protect ordering with per-transaction sequence numbers or linked event digests, but do not assume global arrival order. Collectors, retries and regional queues can reorder events. Preserve original event and observation times.

Separate evidence writers from evidence administrators where feasible. Limit who may delete, re-sign or alter trust material. Monitor missing sequence values, signature failures, export lag and unauthorized access.

Test restoration from archive. A retention policy is incomplete if an authorized investigator cannot retrieve historical keys, schema definitions and source references needed to interpret the record.

OpenTelemetry supplies correlation fields for operational events. Use what to log for agent activity for the envelope and offline receipt verification for the verifier.

The OATI lookup path exposes developer-preview verification concepts. It does not prove a customer deployed every action through an enforced gateway or that external events occurred as claimed.

Architecture review decisions

An append-only database can preserve history under its access and operational assumptions, but it does not define evidence semantics or prove that every action used the enforced path. Add schemas, source attribution, access control, retention, integrity monitoring and independent comparison with domain-system operations. Sign stable portable records when another organization must verify them without trusting the live database.

Not every telemetry event needs a signature. Signing high-volume debug data can add cost without useful assurance. Protect request-bound decision and action records, and secure the broader collection pipeline with authenticated writers, tenant partitioning and monitored administration. Define exactly what each signature covers, who controls its key and how historical verification behaves after rotation or compromise.

The enforcement point needs an evidence failure rule. A durable local queue can preserve material events while the central collector is unavailable. If neither recording nor durable buffering works, sensitive policy may need to stop the action. Define behavior per risk class, and test a full queue, exporter outage and regional partition instead of assuming the logging service is always available.

Use stable tenant, transaction, trace and evidence-reference identifiers to connect records without copying sensitive payloads. Store protected source documents in their systems of record. A verifier can compare digests when authorized and report missing evidence as unknown. Partition ingestion, indexes, keys, queries and exports, then test identical transaction IDs across tenants.

Plan for out-of-order delivery and later outcomes. Sequence within a transaction where useful, but preserve event and observed timestamps. Append settlement, return and reversal observations rather than rewriting the original uncertainty. Monitor missing sequence values, signature failures, export lag and unauthorized evidence access.

Archive migration must preserve original signed bytes, schemas, trust material and referenced evidence. Test retrieval and verification before and after the move. If a transformation is necessary, keep the original and a verifiable migration record. Confirm legal hold and deletion across both old and new stores.

Design retrieval around a real investigator rather than a storage diagram. Given a domain transaction, the reviewer should find the agent, authority, policy, approval, dispatch and later outcomes without unrestricted access to every tenant's prompts or documents. Given a receipt, the reviewer should resolve its schema and trust material even if the issuing service has been replaced.

Measure both paths. Record time to retrieve, unresolved references, authorization failures and records that only one administrator can interpret. An audit architecture that preserves bytes but loses the schema, key history or owner is durable storage, not durable evidence. Make restoration and explanation part of the service objective.

Keep a small, self-contained verification package for every supported schema version. It should include one valid record, trust material, expected findings and controlled failures. Use it after storage, library and key-management changes. A successful database restore does not prove that an investigator can still interpret or verify the evidence.

Name the owner of schema retirement. Old records may outlive the service that wrote them, so deprecation needs a final supported verifier, archived documentation and a tested export path. Removing parser code from the current application should not strand evidence still inside its required retention period.

Include retired formats in the annual recovery exercise. Evidence is only usable if today’s investigators can still locate its documentation, obtain the right keys and explain the result.