Skip to content
News

The AI agent said it was done. How do you check what actually happened?

An agent says it updated 40 tickets. The ticket system shows 37 changes. Follow the review and learn what an AI agent audit trail should preserve.

A precise angular astronomical instrument rests on supported tracking rails beneath an open roof.

A support lead asks an agent to apply a routing tag to 40 tickets from a queue review. The agent replies, “Updated all 40.” The ticketing system shows 37 changes. Before anyone retries the batch, the lead needs to know which requests reached the system, what it accepted, and whether anyone changed a ticket after the agent finished.

An AI agent audit trail is the record that lets a reviewer answer those questions. For a consequential action, it should connect the assignment, any relevant approval, the action the agent attempted, and independent evidence of what happened in the affected system.

Begin with the system that should have changed

The action in this example is one field update per ticket. The team has the exact ticket list it approved, the tag it asked to add, and the time of the run. The reviewer can open the affected tickets and compare their event histories with that list. Systems differ in what they retain. For instance, Zendesk's ticket audits record ticket updates and the events in each update, including tag changes. Use the fields and identity information your system actually records.

Checking only the current tag is insufficient. One ticket may already have had the tag before the run. Another might have been tagged by a teammate. A third could have received the tag from the agent and had it removed during a subsequent correction. Compare event time, acting identity where available, target ID, and the actual change. If the destination uses a shared service account and no request identifier connects its record to this run, say which part of the attribution you could not establish.

Clear quartz bars of varying lengths extend from a stone mount.

Reconstruct the attempt from four records

Start with the saved assignment. It identifies the set of targets, the permitted change, and the definition of completion. A message asking for a plan gives an agent a different job from a request to change records. Keep the authorized scope fixed during the review; adding a few late tickets to the list changes what you are measuring.

Then check authorization. If the workflow required human approval, find the recorded decision and see which action and targets it covered. An approval of the finished report cannot tell you whether the earlier update was authorized. Confirm the ticketing identity had the necessary permissions at execution. The human approval workflow guide explains how to design those two review points.

Read the action records your host retained. A trace might show a tool invocation, target, time, request identifier, and response status. OpenTelemetry's agent tracing example shows one way hosts can capture tool execution spans. A timeout can mean that the caller did not receive a response, even when the destination accepted the change. The trace alone cannot resolve that uncertainty.

Finally, reconcile the destination evidence. In this illustrative review, 37 tickets have matching change events. Two requests returned a permission error and have no matching change. The remaining ticket has no observed change and no retained attempt record. It is accurate to report 37 confirmed, two rejected, and one unverified. Calling that last ticket “never attempted” would go beyond the evidence.

Close out the mismatch before retrying

Suppose the ticketing system still shows all three outstanding tickets without the tag. The lead checks that the original action still applies to those records. One ticket has since moved to a different queue, so it drops out of the repair. The two permissions errors go to the owner of the integration. Any new attempt waits for the appropriate authorization.

When a write timed out and you cannot determine whether it applied, check the current state and history before sending it again. If the destination supports idempotency for that operation, follow its documented retry rules. If it does not, the reviewer may need to repair the remaining records explicitly. A second batch that says “completed” is poor evidence that the first was safe to repeat.

Keep the initial completion message alongside the correction. Record what was confirmed, what was rejected, what cannot be attributed, and who owns the next step. A later reviewer should be able to see why the final count differs from the first report.

Open pomegranates rest in pale ceramic carriers under an optical inspection rail.

What to keep before you enable write access

The right starting point is the smallest record that can settle a dispute. For the ticket workflow, keep:

  • The approved list of ticket IDs and the exact field change.

  • The run or session ID and the identity or connection that attempted the change.

  • The relevant approval, with the action and target scope it covered.

  • The attempt time and result, and the destination event or request ID where available.

  • The disposition for each exception, with a reviewer and a next action.

Use references in place of copying every ticket or response body. Keep access and retention appropriate to the work. Try one update in a test account, including a deliberately denied action, and ask a teammate who did not run the test to find the records. Anything they cannot establish is a useful improvement to make before expanding access.

In Swarm, a private Space can hold the task, the final report as an Artifact, and the reviewed reconciliation with links to the ticket history. For work recorded as a Swarm Run, include the Run and any approval or trace records the host supplied. When the work ran in an external tool, link its session or job record where the reviewer has access. Swarm brings those records together for the review; the source system supplies evidence of its own changes.

Dark river water meets a pale current between stretches of dense green forest.

Begin with one write that your team would be comfortable testing. Give a second person everything they need to verify the outcome. If they can do it without asking the agent what it meant by “done”, you have the beginning of an audit trail.

Swarm | AI Agent Audit Trail: Verify What an Agent Did