Answers · By Hugh Donatello, Atlas Bio · Updated 2026-12-02

AI Agent Audit Trails in an FDA Inspection: Being Ready

How do you show an AI agent's audit trail to an FDA investigator during an inspection? Start from the record the investigator picks and walk back through the trail: the agent entries that created or changed it, the agent's identity, version and permissions at the time, and the person who reviewed or approved the result. In our reading, retrieve it with a documented, rehearsed procedure run by trained staff, and give copies that keep the record's content and meaning, including the metadata needed to reconstruct what happened. Prepare this before the inspection: FDA's 2003 Part 11 guidance says you should provide an investigator with reasonable and useful access to records, and in our view an agent trail that only an engineer can pull from raw logs is hard to show.

What an investigator can ask to see

FDA's 2018 guidance Data Integrity and Compliance With Drug CGMP: Questions and Answers asks, in question 17, whether FDA is allowed to look at electronic records, and answers yes: all records required under CGMP are subject to FDA inspection, including records generated and maintained on computerized systems. It adds that you must allow authorized inspection, review and copying of records, which includes copying of electronic data, citing 21 CFR 211.180(c) and 212.110(a) and (b). The same guidance defines an audit trail as a secure, computer-generated, time-stamped electronic record that allows for reconstruction of the course of events relating to the creation, modification, or deletion of an electronic record. When an AI agent writes to a required record, the agent's entries are part of that reconstruction.

21 CFR Part 11 asks for the same thing in its own terms. Section 11.10(b) asks for the ability to generate accurate and complete copies of records in both human readable and electronic form suitable for inspection, review, and copying by the agency, and section 11.10(e) says audit trail documentation shall be available for agency review and copying. Part 11 remains in effect, but under the 2003 guidance FDA intends to exercise enforcement discretion over the specific Part 11 audit trail requirements (11.10(e)), as it does for copies, record retention and validation; predicate rule requirements, including that changes to records not obscure previous entries, still apply in full. FDA's 2003 guidance Part 11, Electronic Records; Electronic Signatures - Scope and Application says the agency intends to exercise enforcement discretion over the specific Part 11 requirements for generating copies, but that you should provide an investigator with reasonable and useful access to records during an inspection, and that all records you hold are subject to inspection under the predicate rules. Whether a given agent's output is a Part 11 record at all is covered in Does 21 CFR Part 11 apply to AI tools?; what the trail itself should capture is covered in AI agent audit trails under Part 11 and Annex 11.

What a copy of an agent's trail has to keep

Question 9 of FDA's data integrity guidance says electronic copies can be used as true copies provided they preserve the content and meaning of the original record, which includes all metadata required to reconstruct the CGMP activity and the static or dynamic nature of the original records. The 2003 Part 11 guidance recommends supplying copies in common portable formats where records are kept in them, or by established automated conversion or export methods (it gives PDF, XML or SGML as examples), with a copying process that preserves the content and meaning of the record. It also says that if you can search, sort or trend Part 11 records, copies given to the agency should provide the same capability if that is reasonable and technically feasible, and that you should allow inspection, review and copying of records in a human readable form at your site, using your hardware and following your established procedures.

For an agent this means a screenshot of a chat window or an unexplained dump of raw trace lines is unlikely to be enough. A useful export of the entries for one record shows, for each action, the date and time, the agent and its version, the accountable person, what was created, changed or deleted with the earlier value still visible, the reason where your procedure requires one, and the human review or signature that followed. Keep a machine-readable form as well as a readable one, so the investigator can filter by record, agent or date if your system can.

Before the inspection: a readiness checklist

Each line below is something to have in place and tested before an investigator asks. Part 11, the predicate rules and FDA's guidance do not prescribe this list; it is our reading of what the cited texts ask for when an agent touches a required record, and the scope decisions stay with your quality function. FDA's 2003 guidance says it intends to exercise enforcement discretion over the specific Part 11 requirements for validation (11.10(a)), audit trails (11.10(e)), record retention and retrieval (11.10(c)) and copies (11.10(b)); the predicate rules behind them, such as 21 CFR 211.180, still apply in full. The 21 CFR 211 and 212 provisions and FDA's 2018 data integrity guidance cited here are drug CGMP texts; GLP and GCP records have their own predicate rules, such as 21 CFR 58 and 21 CFR 312.

Have readyWhat it looks like for an AI agentWhere the expectation comes from
A written retrieval and export procedureStep-by-step instructions to pull the trail for a named record and export it in readable and electronic form, with the role allowed to run itPart 11 11.10(b) and (e); 2003 guidance, Copies of Records
A rehearsed retrievalA dated dry run on a real record, by the people who would do it on the day, with the export checked against the source2003 guidance: reasonable and useful access during an inspection
Trained people to demonstrateNamed QA and system-owner staff who can explain the agent's entries without the developer in the roomPart 11 11.10(i) education, training and experience
The agent's inventory entry and intended useOwner, intended use, model and version history, and the permissions in force on each dateOur reading of Part 11 11.10(a) (validation, under enforcement discretion per the 2003 guidance), (d), (g) and (k)
Evidence of audit-trail reviewRecords showing that reviewers looked at agent entries with the record they approved, at the frequency the CGMP regulations set for that data (for example before batch release), or where they set none, at a risk-based frequency your procedure definesData integrity guidance, questions 7 and 8
Retrieval across changesOld entries still readable after a model, prompt or platform change, and for the full retention period21 CFR 211.180 (retention and availability); Part 11 11.10(c) and (e), which are under FDA enforcement discretion per the 2003 guidance
Access to entries held by a vendorAgreed, tested way to retrieve agent logs kept in a supplier's or model provider's systems, or a copy kept in systems you control21 CFR 211.180(c): records that can be immediately retrieved from another location by computer or other electronic means meet the availability requirement

During the inspection: walking an investigator through an agent's trail

These steps are our reading of how to present an agent's trail; FDA does not prescribe a walk-through sequence. 1. Start from the record the investigator selects, not from a summary you prepared. 2. Show the entries that created or changed that record, in time order, with the earlier values still visible. 3. For each agent entry, show which agent acted, its version, the person accountable for it and the permissions it held at that moment. 4. Show the human review, approval or signature that followed, and that it is linked to the record. 5. Where a GMP-relevant value was changed or deleted, show the documented reason. 6. Produce the copy the investigator asks for through your established export procedure, and keep your own record of what was provided. 7. If the trail shows a gap or an unexplained change, say so and open it through your deviation process rather than explaining it away; see AI agent deviations and CAPA.

Gaps that are hard to explain on the day

Several weak points in agent set-ups follow from the texts above. Entries that name a shared service account instead of a specific agent and accountable person do not let anyone reconstruct who acted. Logs kept only on a model provider's short operational schedule may not exist for the full record retention period. A trail that records the agent's final output but not the earlier value it replaced obscures previously recorded information, which 11.10(e) says record changes shall not do; even where FDA exercises enforcement discretion over 11.10(e), the 2003 guidance says predicate rule requirements that changes to records not obscure previous entries still apply. And a trail that has never been reviewed is hard to defend, because FDA's guidance expects reviewers to look at audit trails that capture changes to data as they review the rest of the record.

FDA's question 17 answer also points to its guidance Circumstances that Constitute Delaying, Denying, Limiting, or Refusing a Drug Inspection. Read it with your inspection procedure, and make sure nobody's first attempt to export an agent's trail is in front of an investigator. For audits you run yourself before an inspection, see How to audit AI agent actions.

If you are also inspected under EU GMP

EU GMP Annex 11 (revision 1, 2011) asks in section 8.1 that it be possible to obtain clear printed copies of electronically stored data, and in section 9 that, based on a risk assessment, consideration be given to building in an audit trail of GMP-relevant changes and deletions, and that audit trails be available and convertible to a generally intelligible form and regularly reviewed. The same preparation serves both: a tested export of an agent's entries in a readable form, plus evidence of regular review. A revised Annex 11 and a new Annex 22 on artificial intelligence were published as drafts for public consultation in 2025; check EudraLex Volume 4 for their current status before relying on either draft.

Being ready to show an agent's trail starts with knowing which agents touch which records. Atlas Bio's Secure AI for Life Sciences starts with an AI risk assessment of current AI use and data exposure. Status, October 2026. In use in Atlas Bio's own agent platform today: a separate verification step that checks agent work, and a hold that stops a task until a person decides. Built and tested on synthetic data, not yet used with a client: the AI risk assessment tooling (AI discovery, data-flow and vendor-terms mapping, and a NIST AI RMF gap report) and a record of what data an AI used, what it produced and who reviewed it. Built and tested offline against a mock, not yet deployed: a template for a customer-controlled AI environment in your own Azure tenant. Planned, design only with no code yet: an AI gateway, agent permissions, evidence linkage and notifications. Decisions on GxP scope and validation stay with your organization, under your quality function's oversight.

Can I give an FDA investigator a PDF of an AI agent's audit trail?

It can be, if the copy keeps the content and meaning of the record, including the metadata needed to reconstruct what the agent did and the static or dynamic nature of the original record (FDA 2018 data integrity guidance, question 9); where the original is dynamic, a static PDF alone may not be enough. FDA's 2003 Part 11 guidance names PDF, XML and SGML as examples of common formats, and says that if you can search, sort or trend the records, copies given to the agency should provide the same capability where that is reasonable and technically feasible. You should also allow inspection, review and copying in human readable form at your site.

Does FDA enforce the Part 11 11.10(b) copy requirement for AI systems?

Part 11, including 11.10(b), remains in effect, but FDA's 2003 guidance says it intends to exercise enforcement discretion over the specific Part 11 requirements for generating copies (11.10(b)), but that you should still give an investigator reasonable and useful access to records, and the predicate rules, such as 21 CFR 211.180(c) for drug CGMP records, still require records to be available for inspection. Nothing in that guidance treats AI-generated records differently.

Who should present an AI agent's audit trail during an inspection?

The people your inspection procedure names, usually quality assurance and the system owner, trained to retrieve and explain the agent's entries. Part 11 11.10(i) expects people who use the system to have the education, training and experience for their tasks. Relying on a developer to pull raw logs on the day is a sign the retrieval procedure is not ready.

Are an AI agent's prompts and outputs part of the audit trail FDA can see?

If the agent created, changed or deleted a record that a predicate rule requires, the entries that let someone reconstruct that change are part of the record's audit trail, and FDA's guidance says all records required under CGMP are subject to inspection. Which prompts, inputs and outputs you keep as part of that trail is a decision to document in your risk assessment and procedures.

  1. eCFR: 21 CFR Part 11 - Electronic Records; Electronic Signatures
  2. FDA: Part 11, Electronic Records; Electronic Signatures - Scope and Application (guidance for industry, 2003)
  3. FDA: Data Integrity and Compliance With Drug CGMP: Questions and Answers (guidance for industry, December 2018)
  4. eCFR: 21 CFR 211.180 - General requirements (records and reports)
  5. European Commission: EudraLex Volume 4, Annex 11 - Computerised Systems (revision 1, 2011)
  6. European Commission: Stakeholders consultation on EudraLex Volume 4, Chapter 4, Annex 11 and new Annex 22 (Artificial Intelligence)

Talk to Atlas Bio.

Sponsors, researchers and clinicians: tell us the decision you are trying to make and we will show what the platform can and cannot answer.

Contact Us →