Skip to main content

What are you looking for?

Explore our services and discover how we can help you achieve your goals

AI Agent Audit Trail and Compliance Evidence

A compliance-grade AI agent audit trail records, for every action, an event id, a UTC timestamp, the triggering and executing identities, the policy or model version in force, the tool calls made and the outcome, kept for a retention period set by risk and assembled into an evidence package on request from an auditor, a regulator or a customer.

Book a solution review See the related solution

By Huy Nguyen (David), Founder & CEO · Updated · 10 min read

star

This guide is for the engineering lead or CTO who already runs a live AI agent and has not yet designed its logging schema, and for the compliance or risk owner who must answer a security questionnaire or an audit request about what an agent actually did. Our AI automation guide decides which process gets an agent, and the agentic AI automation service covers delivery; this page starts once an agent is already live and something — a customer, an auditor, a regulator — is going to ask for proof of its behaviour.

In this guide

What must an AI agent's audit log record for every action?

A log entry that only shows the final output cannot answer who told the agent to act, under what authority, or what it touched to get there. The minimum record ties four identities and three content fields to every action: a unique event id and a UTC timestamp; the triggering identity (the person or system that started the chain) and the executing identity (the agent, its version, and any parent agent that invoked it) kept separate, not collapsed into one "user" field; the policy, prompt or model version in force at the time, so a later rule change does not retroactively make an old decision look wrong; every tool call with its inputs and outputs; and the action taken, its outcome, and any human approval or override, naming the role from the agent's operating model that gave it. That field only proves an approval was logged, not that it was a genuine review; our human-approval quality guide computes the signals that tell the two apart.

This schema is deliberately narrower than a full reasoning trace. Our observability and cost-control guide designs the trace that debugging and budget control need; an audit log reuses that data where it exists but is a separate, retained artifact built to answer "what happened and under whose authority," not "why did the model produce this token sequence." A log without the triggering-identity and executing-identity split cannot show whether a human or the agent itself escalated an action — exactly the gap an auditor checking the escalation ladder in our operating model guide will ask about first.

Full reasoning traces or action-only logs: what to actually keep

Every extra field logged costs storage, review time and, for traces that touch customer data, a privacy-minimisation question. The choice is not "log everything" versus "log nothing" but which layer matches the risk the agent carries.

Approach Strength Risk Choose it when
Action-only log (identities, version, action, outcome) Cheap to store and review; fast to query for a specific action Cannot show why a decision was made, only that it happened A low-risk internal agent with no regulated decision and no customer-facing output
Action log plus tool-call record (inputs/outputs of every call) Reconstructs the decision chain: what was retrieved, what was checked, what fired More storage; inputs may carry personal data, so minimise what is captured at source Any agent that reads from a knowledge source or writes to a system of record
Full reasoning trace retained long-term Richest forensic detail if a dispute reaches the token level Expensive to retain, hardest to keep privacy-minimised, rarely needed to answer an auditor's actual question A regulated, high-stakes decision class under active investigation or legal hold, for the duration of that hold only

A log that is not tamper-evident is not evidence, regardless of which layer it captures: a plain database row with access controls can be edited by anyone with admin rights, so the field list above is necessary but not sufficient. The record also needs a mechanism — a hash chain, write-once storage, or an independently anchored checkpoint — that makes a deletion or edit after the fact detectable, not merely restricted by permissions.

The evidence-assembly runbook

  1. Set a retention period by risk tier before launch, not after an incident

    A regulated, external-facing decision agent needs the longest retention any applicable obligation sets; an internal drafting agent with no regulated decision needs far less. Never retain less than the shortest external obligation that applies to the agent's data or decision class.

  2. Separate the identities at write time

    Log the triggering identity and the executing agent identity as two fields from day one; retrofitting this split after launch means every prior log entry is unusable as evidence of who authorized what.

  3. Record the policy and version id with the action, not just in a separate change log

    Our change management and versioning guide gates what version ships; the audit log's job is to say which version was live when a specific action ran, so the two records must share the same version id.

  4. Make the store tamper-evident, not just access-controlled

    Add a hash chain or write-once storage layer before the agent goes live with real data, not as a retrofit once a dispute makes it urgent.

  5. Keep an evidence-assembly checklist ready, not improvised

    When a request arrives — an auditor, a regulator, a customer's security team — the checklist pulls: every action in the requested window, the identity pair and policy version on each, any human approval or override, and confirmation the record has not been altered since it was written.

  6. Rehearse the pull before the first real request

    Running the checklist once against a quiet period, before an auditor asks, surfaces missing fields or an unqueryable store while the fix is still cheap.

Where AI fits

Netbase works with the major commercial and open-source AI tools and models, chosen per project, and treats a tamper-evident log and a rehearsed evidence pull as part of what makes an agent fit to run in production, the same way the observability guide treats a kill switch and the incident response guide treats a preserved run: a control that has to exist before the first real request for it, not assembled while answering one.

What delivery record exists, and what does not

What exists. Beyond 4over4, Netbase has delivered AI projects for clients that are not named, including retrieval-augmented knowledge assistants, document AI and MLOps pipelines to train, evaluate, release and monitor models (F072). Netbase's own security practice includes role-based access control, MFA for admin dashboards and vulnerability scanning (F021), the access discipline an audit log's identity fields depend on, and Netbase holds ISO 27001 certification and a SOC 2 Type II attestation for its own operations (F022, F051, F052).

What does not exist. No published Netbase record names a retention period, a log-field count, an audit response time, or a tamper-evidence mechanism used on a specific client's agent. No record describes a live agent that has had its logged actions produced to an auditor or regulator in practice. Netbase's certifications cover Netbase's own operations; they are not extended to a client's agent, its logs or its retention policy.

Alternatives: who builds and owns the audit-trail pipeline

Approach Strength Weakness Choose it when
The team that built the agent adds logging ad hoc, as needed Fast to start, no new process Fields vary by agent; no shared retention rule; evidence assembly is improvised the first time it is actually needed A single, low-risk, internal-only pilot agent
A standard log schema and retention rule, owned by the roles named in the agent's operating model One schema every agent follows; evidence assembly is rehearsed, not improvised Needs upfront design work and a tamper-evident store before the first agent with real data goes live Any agent that reads regulated data, writes to a system of record, or faces a customer
A delivery partner designs the schema, the retention tiers and the tamper-evident store alongside the agent itself One team across the agent, its guardrails and its evidence trail from day one Needs the same ownership questions as any delivery engagement No internal owner exists yet, or several agents need one consistent schema

In Netbase custom development the client owns the IP created for the work (F020), and most projects run on fixed-price contracts agreed after discovery, with milestone-based, monthly team retainer and KPI-linked terms also offered where they fit better (F067).

Limits of this guide

  • This is an engineering and operations design guide, not legal, regulatory or compliance advice; which retention period, which fields, and which disclosure rules apply depend on the data, sector and jurisdiction involved.
  • No figure in this guide is a benchmark: no retention period, response time or audit count is published as a Netbase result, because none is registered as a Netbase fact.
  • The log-field schema and the three-layer retention comparison are a starting structure, not a certified framework; a company with its own regulatory reporting obligations should confirm its specific requirements separately.

Plan the next step with a Netbase consultant

Frequently asked questions

An event id and UTC timestamp, the triggering identity and the executing agent identity kept separate, the policy or model version in force, every tool call with its inputs and outputs, and the action taken with its outcome and any human approval or override.

No. Access controls restrict who can read or edit a log, but they do not make tampering detectable after the fact; genuine evidence needs a tamper-evident mechanism, such as a hash chain or write-once storage, that shows the record has not changed since it was written.

Long enough to meet the longest obligation that applies to the agent's data or decision class, with a higher-risk, regulated or customer-facing agent kept longer than a low-risk internal one; a single blanket period applied to every agent regardless of risk is a common and avoidable mistake.

Next step

Tell us which agent is live, or about to be, and which of its actions a customer, an auditor or a regulator could one day ask about, and we will book a solution review to design its log-field schema, its retention tiers and its evidence-assembly checklist. You can also see the enterprise AI agent platform solution or browse more Netbase insights.

AI automation and agents that keep people in charge AI automation and agents that keep people in charge

Netbase provides AI automation and agent development for operations teams that want repetitive, multi-step work done by software while people keep approval over the decisions that matter. We combine rule-based automation with AI where it adds value, build in human approval, and measure return against a baseline.

Learn More
line
Enterprise AI agent platform: run AI agents with approvals, audit logs and cost limits Enterprise AI agent platform: run AI agents with approvals, audit logs and cost limits

An enterprise AI agent platform is a governed runtime where AI agents plan and carry out multi-step work through approved tools, while approvals, audit logs, access rules and cost limits keep every action accountable. Netbase offers it as a forward-looking solution, built inside your own environment rather than licensed as a product.

Learn More
line

Work with Netbase remotely

Every Netbase engagement is delivered remotely, so clients in any country and any industry can work with us; Netbase has worked with clients in 80 countries. Contracts and invoices are issued by Netbase JSC, and payment is made by bank transfer to Netbase JSC's company account or PayPal Business. Talk to the CEO, Huy Nguyen (David), on WhatsApp or by email.

Contact Netbase

Discuss a project

Netbase JSC helps organizations design, build, modernize, and operate digital products and AI-enabled business systems.
Project enquiries

project@netbasejsc.com

WhatsApp

+84 937 869 689

Office address

91 Nguyen Chi Thanh, Dong Da, Hanoi, Vietnam

Get in touch

Tell us what you want to build, modernize, or operate.

Tell us what you want to build, modernize, or operate.

Contact Netbase