Back to all posts
AI Operations7 min read·October 25, 2026

What Should an AI Action Audit Trail Record?

TB
ThynkBlox AI Team
AI Engineering

An AI agent audit trail for ERP and CRM actions should record who initiated the work, which sources informed it, the exact action requested, who approved it and what changed in the target system. Connect those events with correlation IDs and preserve the relevant version identifiers. Design the trail around observable actions and evidence; private model reasoning is neither an assumption nor a requirement.

What questions should the trail answer?

Start with a practical review question: could someone who was absent reconstruct what happened?

For each action, the trail should answer:

  • Who requested the work, and which identity executed it?
  • Which source records or documents supported the proposed change?
  • What operation and arguments reached the target system?
  • Which permission checks and approvals applied?
  • What did the target system accept, reject or change?
  • Were there retries, partial results or later corrections?

Treat a proposed change, an attempted call and a confirmed record change as separate events. A request to update a customer record is evidence of intent. It is not proof that the update happened.

Which fields should every action record?

Use a shared event structure across workflows, with additional fields for each action type. The table below is a recommended starting point.

AreaWhat to recordReview question it answers
Event identityUnique event ID, event type, timestamp and workflow correlation IDWhich event is this, and where does it belong?
Initiating identityRequester identity, business account and trigger typeWho or what started the work?
Executing identityAgent identity, service identity and delegated scopeUnder whose authority did it run?
Source referencesRecord or document IDs, versions and relevant excerpts where permittedWhat evidence supported the action?
Proposed operationTarget system, record ID, operation and argumentsWhat exactly was requested?
ControlsPermission decision, applicable rule version and approval requirementWhich controls allowed or blocked it?
ApprovalApprover identity, decision, scope and approved proposal versionWhat did the person authorise?
Execution resultAttempt ID, response status, target receipt and error categoryWhat happened when the action ran?
Record changesPrevious and resulting field values, or protected references to themWhat actually changed?
Related eventsParent event, retry relationship and correction referenceHow does this connect to other actions?

Record timestamps with an explicit time zone. Where events arrive later than they occur, preserve both the occurrence time and the collection time.

How should identity and approval be connected?

Keep the initiating identity separate from the executing identity. A salesperson might request an update while an agent performs it through a service account. Recording only the service account would leave the business request unattributed.

For scheduled work, record the schedule and its accountable owner. For delegated requests, preserve the delegation relationship and permitted scope.

Tie approval to a specific proposal version. The approval record should identify the target record, operation and values shown to the approver. If a material value changes afterwards, require a fresh decision.

Also distinguish approval from permission. A manager's approval should not grant access that the executing identity lacks. Record both decisions independently. Our guide to human approval steps for AI agents explains where to place that review.

How much source material and tool detail should be retained?

Preserve enough evidence to review the decision without copying every document into the log.

For a source reference, record the document or record identifier, its version and the relevant location, such as a section or field. A link to the current document alone is insufficient for reconstructing an earlier action if its contents have changed.

For tool arguments, capture the operation and business values actually submitted after validation and transformation. Keep the proposed arguments separately when they differ.

Do not put credentials, access tokens or unrestricted sensitive documents into general logs. For sensitive arguments, use a restricted evidence store and retain a reference in the main trail. Document which values were masked or omitted so a reviewer understands the limit.

Set access and retention rules for audit evidence alongside the agent's data permissions. See what data an AI agent should be able to see for the related access decisions.

How should correlation IDs, versions and retries work?

Give each workflow a correlation ID, then give each action and execution attempt its own identifier. Link child events to their parent.

This structure should let a reviewer follow one request through retrieval, proposal, approval, execution and verification without treating every retry as a new business request.

Keep correlation and duplicate prevention separate. A correlation ID groups events. Where the target supports it, use an idempotency key to identify repeated submissions intended to produce one business effect.

Preserve identifiers for the workflow definition, instructions, tool contract, permission rules and model configuration used. Include source and target record versions where available. These identifiers provide context; they do not promise an identical rerun.

If the target record changes between approval and execution, check whether the proposal still applies. Record a conflict or renewed approval instead of silently applying an outdated decision.

What would a complete record look like?

Consider an illustrative workflow: an account manager asks an agent to update a customer's delivery address from an attached request.

A useful trail would show this sequence:

  1. Request received: the account manager's identity, customer reference and workflow correlation ID.
  2. Evidence retrieved: the attachment reference and version, plus the customer record version read.
  3. Change proposed: the previous address, proposed address and exact target record.
  4. Approval recorded: the reviewer, decision and proposal version displayed.
  5. Execution attempted: the submitted arguments, executing identity and attempt ID.
  6. Result verified: the target receipt, resulting record version and confirmed address.
  7. Workflow closed: a clear outcome and any unresolved exception.

If the update times out, record the outcome as unknown until reconciliation establishes what happened. Check the target before retrying where possible.

If the address is later corrected, append a linked correction event. Preserve the original history.

How should the trail resist tampering?

Treat tamper resistance as a set of controls to specify and verify.

Prefer append-only event storage, restrict deletion and give the workflow identity no authority to rewrite its own history. Separate business administration from audit administration, and record access to sensitive evidence.

If the design uses event hashes or signed checkpoints, specify who protects the keys, where trusted checkpoints live and how verification runs. Do not label a trail tamper-proof merely because it contains hashes. Require the integrity check to detect an intentionally altered test record before trusting it.

Set retention and deletion rules explicitly, including how protected evidence and its references expire. A trail should make its evidence boundaries clear.

Which common mistakes make a trail hard to trust?

Keeping only conversation transcripts. A transcript may describe a request but omit the submitted arguments, permissions and resulting changes.

Recording success before confirmation. Distinguish a successful tool response from a verified business outcome, and state which one the evidence supports.

Approving a broad instruction. Approval should identify the specific proposal authorised.

Storing every payload without limits. Define necessary evidence, access controls and retention before collecting sensitive material.

Expecting private reasoning to explain everything. Ask for a concise action summary grounded in source references and control results. Review it against the recorded events.

Applying one format without testing recovery. Test denied actions, stale approvals, timeouts, retries and partial completion. An audit trail should remain useful when the workflow fails.

What are the frequently asked questions?

Does an audit trail need private model reasoning?

No. Base it on inputs, source references, submitted actions, control decisions and observed outcomes. A generated explanation can provide context, but should not replace those records.

Should read-only actions be logged?

Log consequential reads according to data sensitivity and review needs. Record which identity accessed which source under which scope. Avoid duplicating the retrieved content unless it is necessary evidence.

Is the ERP or CRM history enough?

Compare the available history against the questions above. Use it as evidence for target changes, then add any missing request, source, approval and execution context. Confirm what the system actually retains before relying on it.

Where should a team start?

Choose one workflow with a clear owner and bounded permissions. Define its event fields and failure states, then reconstruct a completed action and a failed action using only the retained evidence. Include this exercise in an AI pilot that ends in a decision.

Ready when you are

Want to talk this through for your business?

Send us the process you are thinking about. You will hear back from an engineer, not a sales team.