
It’s 2 a.m. and an incident commander has just learned that an AI agent may have sent an attachment to an external email address. She has already revoked the agent’s mail access and checked the mail logs to see if there are any other attempts to send emails. She now wants to get the run history for the agent. Unfortunately, none of the on-call staff know how to export the run history for the agent, nor do they know how long the application keeps the run history. The engineer who does know is due in at 9 a.m.
When Legal calls in the morning, the question is simple: Did anyone approve the sending of the attachment to that recipient? The ticket shows that the workflow was approved by someone. To link the message to the agent’s run, and to see what the reviewer saw before the message was sent, Security will need to look at the records for the run in question, as well as the mail log for the mail system that accepted the message for delivery from a shared account.
A lot of recent activity can be hard to produce even when the incident occurred only a week prior. Nylas conducted a survey of 1,030 U.S. professionals who build, buy or influence AI systems in October 2026. Of the 1,030 respondents to the survey, 53% said they could produce a complete audit log of the previous week’s agent activity, identifying which agent took each action.
Give incident commanders authority to preserve evidence
The gap in that 2 a.m. scenario was not a lack of effort. Nobody had decided in advance who could preserve the evidence, or how. That decision is the first thing to fix.
I trust an incident commander to shut down a production workflow at 2 a.m. and I trust them to preserve evidence of that workflow at 2 a.m. as well. For each agent that can send messages, share files, or take other consequential actions, the runbook should identify the records that need to be preserved, where they are, how long they are kept, and who can export them after hours.
Stop any sends still in progress. As containment proceeds, another responder can export the run history, the approval record and mail events for the affected run. For each of these exports, record the name of the person who exported it, the date and time of the export and the time window covered by the export. Counsel can then consider whether to issue a formal hold.
Set collection scope based on what the evidence shows
Preserving the first set of records is only the beginning. Once the exports are safe, the harder question is how far the collection needs to reach, and the evidence itself should answer that.
For each run affected by the incident, use the message ID that the agent and the mail system both record to match the send request to the mail event. Review other runs and mail events that occurred around the time of the affected run to see if there were any retries or other attempts to send the same message. How many messages were accepted by the mail system for delivery and to which addresses?
If an earlier run shows a request to send the same attachment to a different external address, then the run, its approval record and related mail events should be preserved. Why was collection expanded to include these runs? Did the mail system accept the second message for delivery? These are the questions that Security and Legal will need to answer to determine whether further evidence is required.
Document what the agent did and what a person approved
One responder should map the records to show what the agent did and what a person approved for the incident. For the email incident, the records would include the agent’s run history showing that the agent requested to send the attachment to the recipient, the mail system’s log showing that the system accepted the message for delivery, and the ticket showing that a person approved the workflow for the agent. Note that writing “approved email sent” in the incident summary does not provide evidence of what the reviewer saw and approved before the email was sent.
Evidence map for the email incident
The incident summary should link each finding to its source and list what responders changed during containment. If the approval record does not show the attachment and recipient that the reviewer saw before sending the email then that remains an unresolved issue.
Test whether responders can reconstruct an agent action
A runbook only counts if someone other than its author can follow it at 2 a.m. Here is a simple way to find out before an incident does it for you.
Pick a production agent and an action it took last week that required human approval. Ask an on-call responder who didn’t build the workflow to export the records, identify the agent and the permissions it used, and match its request to the event in the system that carried it out. The test passes if the responder can do that after hours and show what the reviewer saw and approved. If any link is missing, record which source, access permission, or approval detail the team needs to fix.
When Legal asks what the agent did on Tuesday night, the answer should come from the incident record, not from the one engineer who happens to know where the run history lives. Our incident commander shouldn’t have to wait until 9 a.m. to find out.
Join our LinkedIn group Information Security Community!












