gxp compliance · audit trails
GxP Audit Trails for AI: 21 CFR Part 11 & Annex 11 Rules
February 4, 2026
Updated October 3, 2026
40 min read
Explore GxP audit trail requirements for AI systems. Review 21 CFR Part 11, Annex 11, and ALCOA+ rules for logging training data, prompts, and model outputs.

- 01Define applicable predicate rules, required records and documented risks before selecting audit-trail controls. AI use does not automatically make every prompt, dataset or intermediate output a regulated record.
- 02Part 11 specifies secure, time-stamped trails for applicable electronic records, alongside FDA enforcement discretion and predicate-rule obligations. Annex 11 calls for risk-based consideration of GMP-relevant changes and deletions, documented reasons and regular review.
- 03AI provenance can link datasets, model versions, inputs, outputs and human review decisions. Adapt the logging checklist to the intended use and documented record scope.
- 04Protect audit records against alteration, validate relevant functionality and link review and change control to the quality system. Supplier arrangements should provide exportable evidence for inspection.
- 05Distinguish consultation proposals from adopted GMP requirements. Assess AI Act classification and application dates for the specific intended use rather than assuming universal GxP logging duties.
Executive Summary
Auditability and traceability support GxP data integrity. Audit-trail scope depends on the regulated activity, required records and documented risk assessment. FDA continues to enforce predicate rules while exercising enforcement discretion for specified Part 11 provisions, including audit trails ([1]). EU GMP Annex 11 §9 uses risk assessment ([2]). For AI, determine which artifacts support required records; the recommendations below are not a mandate to log every AI data point. This report examines applicable controls and practical approaches to AI auditability. The key findings are:
-
Regulatory Scope: For applicable closed-system electronic records, §11.10(e) specifies secure, computer-generated, time-stamped trails of operator entries and actions that create, modify or delete records, preservation of previous information and retention for agency review ([3]). Read this provision alongside FDA’s enforcement policy and the applicable predicate rules. Annex 11 §9 calls for risk-based consideration of trails for GMP-relevant changes and deletions, documented reasons and regular review ([2]).
-
Data Integrity (ALCOA+): The nine attributes are Attributable, Legible, Contemporaneous, Original, Accurate, Complete, Consistent, Enduring and Available ([4]). Traceability is a useful related concept rather than a tenth attribute in this definition.
-
AI-Specific Recommendations: Consider retaining training-data provenance, model versions, prompts, outputs and review records according to their role in the regulated workflow. FDA’s CGMP guidance states that data generated to satisfy a CGMP requirement become CGMP records ([5]). This is the basis for identifying relevant AI records, rather than treating every AI artifact as regulated automatically.
-
Implementation and Oversight: Protect audit-trail records from alteration and control changes to systems and configurations ([2]). The 2025 consultation draft separately prohibits editing audit-trail data and restricts logged changes to settings, system time or deactivation to administrators independent of GMP activities ([6]). These are draft provisions, not evidence of adoption. For implementation, define review, change-control and supplier responsibilities in the quality system.
-
Future Trends: Regulatory bodies are actively updating guidance for AI. The EU’s AI Act (2024) will impose record‐keeping and logging obligations on high‐risk AI systems, complementing GxP rules. EMA’s recent reflection paper reiterates that existing law (and ALCOA+) applies to AI in drug development ([7]). Meanwhile, proposed updates to Annex 11 (including a new “Annex 22” on AI) and PIC/S harmonization will further clarify expectations. Emerging frameworks like the NIST AI Risk Management Framework stress documentation and accountability in AI. In all cases, thorough audit trails provide the evidence regulators need to “trust but verify” AI – capturing provenance, user actions, and decision logic so that patients’ rights and product quality remain protected.
The body of this report details these points with extensive citations, data analysis, examples, and discussion of implications. It concludes with strategic recommendations and future outlook for AI auditability in GxP.
Year FDA finalized Part 11
Year the Annex 11 version discussed in the article was issued
Introduction and Background
Regulated pharmaceutical, biotechnology, and life-science industries operate under GxP (Good Practices) rules that prioritize data integrity, traceability, and accountability. Whether in clinical trials (GCP), manufacturing (GMP), laboratories (GLP), or distribution (GDP), firms must ensure that every record — from laboratory results to product specifications — is attributable, legible, contemporaneous, original, and accurate (ALCOA). In practice, this means maintaining thorough documentation of who did what, when, and why. With electronic systems now ubiquitous, regulators have explicitly extended paper‐record rules into the digital realm via audit trails.
Audit Trails Defined: An audit trail is a chronological record, automatically logged by computerized systems, documenting the creation, modification, and deletion of records. It typically includes the date/time of each action, the identity of the user, details of what was changed (old and new values), and often the reason for the change. Audit trails provide “proof of integrity” for electronic data: inspectors can examine them to verify that the data are reliable and unaltered. For example, FDA’s 21 CFR Part 11 requires “secure, computer-generated, time-stamped audit trails” that record the date/time of user entries and actions that create, modify, or delete records ([8]). The rules explicitly state that “record changes shall not obscure previously recorded information,” so nothing can be erased or hidden ([8]). EU GMP Annex 11 similarly mandates that systems capture “all GMP-relevant changes and deletions” (as determined by risk assessment) and record the reason for each change ([9]).
Historical Evolution: Audit trails trace their origin to paper‐based documentation practices. For decades, GMP Chapter 4 required that “every change to an entry in a document should be signed and dated, and the original information should remain legible” ([10]). Computerized systems must replicate this: no data may vanish or become illegible after editing ([10]) ([8]). In the 1990s, regulators worldwide recognized electronic records as equivalent to paper, provided systems are validated and secure. The U.S. FDA codified this in Part 11 (finalized 1997), and the Annex 11 version discussed here was issued in 2011 ([11]). These rules were designed to ensure confidence in digital data: an electronic batch record, for instance, must show who entered each test result and any subsequent revision, just as a paper notebook would.
Rise of AI in GxP: AI introduces new data-integrity questions in drug development and manufacturing. Determine which outputs and supporting artifacts are required for the regulated activity. Under FDA’s CGMP guidance, data generated to satisfy a CGMP requirement become CGMP records ([5]). Recommended provenance controls should follow that intended use, rather than assuming that all training data, prompts and intermediate outputs are GxP records.
Thus, audit trails must evolve to cover these new artifacts. This report explores the requirements and best practices for audit trails in AI‐enabled decision support under GxP. We review the regulatory framework (Part 11, Annex 11, PIC/S), examine how AI changes the data flows, and cite guidance and case examples on ensuring traceability. The goal is to equip stakeholders with a deep, evidence‐backed understanding of how to make AI systems auditable and compliant in regulated settings.
Regulatory Requirements for Audit Trails in GxP
21 CFR Part 11 (US FDA)
Electronic Records and Audit Trails: In the United States, 21 CFR Part 11 sets the foundational requirements for computerized systems in FDA‐regulated activities. Part 11 §11.10 lists controls needed in closed systems (systems accessible only to authorized individuals). Most pertinent is §11.10(e), which states:
“Use of secure, computer-generated, time-stamped audit trails to independently record the date and time of operator entries and actions that create, modify, or delete electronic records. Record changes shall not obscure previously recorded information. Such audit trail documentation shall be retained for a period at least as long as that required for the subject electronic records and shall be available for agency review and copying.” ([8]).
For applicable electronic records, the quoted provision describes the audit-trail controls. Scope and implementation must also account for FDA’s enforcement policy: predicate-rule obligations remain in force, and FDA recommends a justified, documented risk assessment for audit trails ([1]). Section 11.10(g) requires authority checks so only authorized individuals perform the specified operations ([3]); it does not itself prescribe unique user IDs.
System Documentation: Another Part 11 rule (§11.10(k)(2)) requires that system documentation itself be change‐controlled, with revision histories maintained in an audit trail format. This means standard operating procedures, software documentation, and other controlled documents must also bear logged change records. For example, if a validation protocol or user manual is updated, the history of edits (author, date, rationale) should be preserved (much as with paper records).
Implications: Determine and document which records fall within Part 11 and which predicate rules apply. Use that assessment to define audit-trail controls and validate the relevant functionality ([1]).
EU GMP Annex 11
Risk-Based Audit Trails: In Europe, EU GMP Annex 11 (“Computerised Systems”) similarly addresses audit trails, though with a more risk‐based tone. Section 9 of Annex 11 states:
“Consideration should be given, based on a risk assessment, to building into the system the creation of a record of all GMP-relevant changes and deletions (a system generated "audit trail"). For change or deletion of GMP-relevant data the reason should be documented. Audit trails need to be available and convertible to a generally intelligible form and regularly reviewed.” ([2]).
Annex 11 §9 calls for consideration of a system-generated record of GMP-relevant changes and deletions based on risk assessment. Reasons should be documented, and trails should be available, intelligible and regularly reviewed ([2]). This should not be contrasted with a blanket FDA mandate covering all GxP data.
Section 12.4, rather than §7, addresses operator attribution: data and document management systems should record the identity of operators entering, changing, confirming or deleting data, including date and time ([2]).
Annex 11 Revision Context: The concept paper is dated 19 September 2022, with consultation from 16 November 2022 to 16 January 2023 ([11]). The Commission subsequently consulted on revised Chapter 4, Annex 11 and a new Annex 22 on AI from 7 July to 7 October 2025; that consultation is closed ([12]). The published materials are consultation drafts; consultation closure does not establish adoption. Section 12.3 of the proposed Annex 11 prohibits editing audit-trail data and separately restricts changes to logging settings, system time and deactivation ([6]).
PIC/S and Other Data Integrity Guidelines
PIC/S PI 041-1 (2021): The guidance supports risk-based interpretation of GMP/GDP data-integrity requirements. It is not itself mandatory or enforceable under law ([4]).
WHO and ICH: The World Health Organization’s 2016 guidance (TRS 996, Annex 5) and ICH Quality guidelines also emphasize data integrity, though they defer to regional laws (Part 11/Annex 11) for specifics. ICH Q10 (Quality Systems) and Q12 (Lifecycle Management) generally call for robust record-keeping. In practice, compliance with Part 11/Annex 11 meets these expectations.
Summary of Regulatory Requirements: Table 1 compares the relevant controls. Apply the record and activity scope described above; AI recommendations do not independently create a universal legal logging obligation.
| Guideline/Standard | Key Audit Trail Requirements |
|---|---|
| 21 CFR Part 11 (FDA) | For applicable records, §11.10(e) specifies secure, time-stamped audit trails, preservation of earlier information, retention and agency availability ([3]). Apply FDA’s predicate-rule and documented risk-assessment approach ([1]). |
| EU GMP Annex 11 | Risk-based consideration of trails for GMP-relevant changes/deletions; documented reasons and regular, intelligible review. Operator identity and date/time are addressed in §12.4 ([2]). |
| PIC/S PI 041-1 | Guidance for GMP/GDP data integrity; not independently mandatory or enforceable under law ([4]). |
| FDA Data Integrity Guidance (2018) | Aborted or incomplete injections should be captured in audit trails, investigated and justified ([5]). |
| ISO 13485 / IEC 62304 | (For medical device software, including diagnostic decision tools) ISO 13485 §4.2.5 and IEC 62304/62366 require controlled documented design – audit trails are applied where applicable if used in device development/maintenance. |
NOTE: This comparison addresses audit trails. Validation, access controls, retention and other applicable controls need their own scoped assessment.
ALCOA+ and GxP Data Integrity Principles
The audit trail requirement is a direct manifestation of the ALCOA+ framework for data integrity. Regulators worldwide summarize integrity as Complete, Consistent, Enduring, Available data, as well as Attributable, Legible, Contemporaneous, Original, Accurate (ALCOA). These nine attributes (ALCOA+) apply equally to paper and electronic records. In computing, audit trails enforce many of these: they make entries Attributable (recording user identity) and Contemporaneous/Accurate (timestamping actions as they happen) ([8]) ([13]). They ensure Consistency and Completeness by letting us verify that no changes went unlogged. As one detailed analysis notes, “any changes… must not obscure the original record, and all modifications must be captured in a comprehensive audit trail” ([14]).
The table below illustrates how ALCOA+ criteria map to audit trail characteristics in an electronic system: for data to be Legible, entry fields and logs must be readable; for Enduring/Available, logs must survive over the retention period and be retrievable by auditors; for Traceability specifically, the chain of custody (which software, which user, which changes) is preserved. In effect, a robust audit trail is the mechanism by which ALCOA+ principles become demonstrable.
| ALCOA+ Principle | Audit Trail Implementation |
|---|---|
| Attributable (Who performed the action) | User ID/role must be logged with each record change ([8]) ([15]). |
| Legible (Readable) | Audit entries must be human-readable (Annex 11 requires logs to be convertible to readable form) ([9]). |
| Contemporaneous (Timestamping) | Every log entry is time-stamped. FDA guidance implies time accuracy to distinguish steps ([16]). |
| Original (First record of the data) | Original entries remain in log even after edits. Old values are preserved (cannot be overwritten) ([8]) ([15]). |
| Accurate (Correct) | Audit entries must accurately reflect actual actions. Systems often record exact input values, new vs. old data, ([15]) helping ensure no discrepancy. |
| Complete (All data retained) | Logs must capture all changes, including metadata (e.g. chromatogram runs) ([16]). PIC/S explicitly notes “audit trails” are part of complete datasets ([13]). |
| Consistent (Sequential and logical) | Audit logs maintain chronological order of events. Entries include preceding and current values to avoid contradictions ([14]). |
| Enduring (Durable storage) | Logs must be stored on durable media (not easily altered). Annex 11 implies logs last full retention time. ([9]). |
| Available (Accessible) (Retrievable) | Logs must be protected yet accessible for review. Systems require the ability to search and retrieve audit history quickly. |
| Related concept: Traceability (Full lineage) | The audit trail itself is part of traceability – linking each data item through its entire lifecycle (user, system, changes) ([14]). |
- Secure, computer-generated, time-stamped trails record operator actions that create, modify or delete electronic records.
- Preserve earlier information and retain audit documentation for agency review and copying.
- Account for enforcement policy, predicate-rule obligations and justified, documented risk assessment.
- Consider system-generated records of GMP-relevant changes and deletions based on risk assessment.
- Document reasons and make trails available, intelligible and regularly reviewed.
- Record operator identity, date and time for entering, changing, confirming or deleting data.
Apply the relevant record and activity scope. AI recommendations do not independently create a universal legal logging obligation.
AI Decision Support in GxP: Implications for Audit Trails
AI in the Regulated Lifecycle
AI and machine learning (ML) are being applied across the medicinal product lifecycle: drug discovery, process development, manufacture, clinical trials, and pharmacovigilance. For example, AI/ML can predict optimal formulations, automate data analysis, draft regulatory documents, screen safety reports, or assist clinicians in diagnostics. For manufacturing, identify records by their role in satisfying CGMP requirements ([5]).
For implementation, define the AI system’s intended use, relevant records and risks before specifying validation and oversight controls. For manufacturing, EMA recommends quality risk management for model development, performance assessment and lifecycle management ([17]). These recommendations do not classify every AI output as a regulated record.
A risk-based design review can ask: which data and model version produced the outcome; which inputs and parameters were used; and which outputs and review decisions support the required record? Use the answers to define appropriate provenance controls.
For medicinal product information documents, EMA recommends close human supervision of AI/ML drafting, editing, translation and review, with quality review of model-generated text before submission ([17]). This context-specific recommendation should not be represented as a quotation imposing universal human review of all AI outputs.
Audit Trails Tailored to AI Workflows
Traditional audit trails focus on user interactions with a given software system. For AI workflows, consider provenance across the ML operations (MLOps) pipeline. This includes: (1) Data lineage – the provenance of training and validation datasets; (2) Model lineage – architectures, weights, hyperparameters, and code versions; (3) Operational logs – inference requests (prompts/inputs) and outputs; (4) Human interventions – reviews or overrides of AI outputs; (5) Change controls – approvals of new model releases or data updates. Effective audit trails in AI systems will correlate all these. For example, an analyst prompt (“generate protocol synopsis”) and the resulting text, along with timestamps, user ID, and model version, should all be logged together.
The following is an implementation checklist to adapt to the intended use and documented record scope:
- Training Data Register: Record the identity and version of each data source or dataset used to train the model, along with approvals or annotations.
- Model Registry: Log each model (and sub-component) version, training run, and performance evaluation. Store who triggered a model training or update, and its release date.
- Deployment Events: When a model is deployed or upgraded in production (with specific configuration), log the event and approval.
- Inference (Decision) Logs: Every time the AI is used to make a decision or generate output (typically through an API call or user prompt), log the full context: user/role, input data or prompt content (or ID), model version, parameters, and the output (e.g. predicted result, generated text). Include timestamp and client application.
- Post-Processing and Actions: If automated post-processing or further actions occur after the AI output (e.g. triggering an alert or updating a database), log those as well with references to the original AI event.
- Human Reviews/Sign-offs: Any human review or approval step after AI generation must be logged (who reviewed what and when, and what changes they made).
- Change Controls: If the AI model or its data is changed through a change control (e.g. retraining with new data), that process itself (with its own audit trail of who initiated and approved) should link to the model registry.
The article “AI in the Age of Regulated Work” (Validfor) succinctly states: “Your audit trail should independently record who did what, when, where, and to which object across every AI event.” ([18]). In practice, this means structuring logs by event type (dataset import, model training, inference run, etc.), and for each, capturing timestamp, actor, action, object identifiers, and old/new values where applicable. Table 2 below summarizes candidate fields to consider in an AI system’s audit records, mapped to ALCOA principles.
| Audit Trail Field | Description / Purpose | ALCOA Mapping |
|---|---|---|
| Timestamp (Date/Time) | Exact time of the event (to sequence actions). | Contemporaneous/Accurate (records “when” event occurred). |
| User/Operator ID | Identity of the person or system account that triggered the event (e.g. an administrator, scientist, or automated task). | Attributable (records “who” did it). |
| User Role/Location | Role (e.g. QC Analyst, System Admin) or context (workstation ID). Useful for responsibility & scope. | Attributable/Traceable. |
| Event Type/Description | Free text or coded description of the action (e.g. “Model_Training”, “Inference_Request”, “Data_Edit”). | Consistent (standardized event names) and Traceable. |
| Affected Object/Record ID | Identifier of the data or model being affected (e.g. database record key, model version ID, dataset name). Links the action to a particular record or model. | Traceable (connects action to an object). |
| Old Value (if applicable) | Original content/value before the change (blank if new entry or overwrite prevented). | Original/Legible (keeps lookup of original state). |
| New Value | New content or value after the action. | Accurate/Consistent (shows what changed). |
| Reason/Comments | Optional field for user to explain why the change was made (often required for manual edits). | Attributable (documents rationale; partially Legible). |
| Source/System ID | Identifies the software or AI model (e.g. model name & version) used. | Original/Traceable (shows which tool produced the result). |
| Model (Version/Hash) | For AI events: exact model identifier (such as a version number or checksum) deployed at the time. | Original/Traceable (records the “which model”). |
| Method/Parameters | For AI outputs: key parameters (e.g. prompt text, API call settings). | Contemporaneous/Traceable (captures input context). |
| Human Reviewer ID | If a human reviewed or signed-off an AI output, that person’s ID and decision status. | Attributable/Traceable (shows oversight). |
Table 2: Candidate fields for audit logs for AI decision support. These fields support ALCOA+ attributes and the related goal of traceability.
Technology and Control Mechanisms
Protect audit-trail records against alteration. Section 12.3 of the 2025 Annex 11 consultation draft says that no user should be able to edit audit-trail data. Its separate provision for logged changes to settings, system time or deactivation is restricted to a system administrator not involved in GMP activities; it is not an exception permitting record editing ([6]). This is a proposal. The 2011 Annex 11 §10 calls for controlled system and configuration changes under a defined procedure ([2]).
Systems should also include audit trail review processes. Annex 11 already requires that audit trails be checked regularly as part of quality oversight ([9]). In AI contexts, this might involve periodic validation of AI performance logs, or scheduled audits of logged inference results for expected patterns. Some firms are exploring automated log-analysis tools (even AI‐based) to flag anomalies in audit trails (e.g. unusual patterns of model queries or unexplained performance shifts).
Data security is crucial. Audit entries must be protected against external access but also made available to authorized personnel on demand. SOC‐2/ISO 27001 controls (access logs, intrusion detection) complement GxP audit trails, but GxP inspectors specifically look for evidence in these trails during audits. As one expert warns, “AI is fine to use, but its data and decisions must meet the same integrity rules as any other electronic record under Part 11, PIC/S, and EU GMP” ([19]). This means implementing role-based access controls (so logs are not accessed inappropriately), secure authentication (to accurately identify users in the logs), and disaster recovery (so logs survive outages). Association of audit trails with electronic signatures (if users sign off on outputs) brings additional Part 11 requirements (linking a signature ID with its record in the log).
Finally, given that AI models evolve, change history of the models and data must also be logged. For example, every time a model is retrained or a new dataset added, the system should record the change control ticket number, approver name, and date. One recommendation is to apply ICH Q9 risk management to models: treat model updates like manufacturing process changes— classify risk, qualify critical changes formally, and capture rationale and validation results in logs ([20]). Ongoing monitoring is advised: scheduling periodic reviews to detect data/model drift or AI-induced errors and opening CAPAs as needed ([20]).
Identify relevant records and risks before specifying validation and oversight controls.
Record dataset identity, versions and approvals; log model versions, training runs and performance evaluations.
Link deployment approval to inference context, including user, inputs, model version, parameters, outputs and timestamps.
Record who reviewed or approved an AI output, when the review occurred and what changes were made.
Link model or data change controls to the registry, retaining who initiated and approved the change.
“Audit-trail scope depends on the regulated activity, required records and documented risk assessment.
Audit Trail Focused Use Cases and Examples
While literature on AI in GxP is still emerging, several industry examples and analogies illustrate the audit trail imperatives. The following hypothetical scenarios illustrate possible controls; they are not documented client implementations or measured case studies:
-
Clinical Document Generation: A pharmaceutical sponsor implements a generative AI to draft clinical trial protocols and reports. To meet audit requirements, all AI outputs flow into the same controlled document management system as human drafts – they cannot bypass official workflow ([21]). Each AI-generated draft is linked to a logged prompt record (“summarize study design”) and the resulting text, including a citation of relevant source documents (via retrieval-augmented methods) ([22]) ([21]). Quality Assurance verifies that every AI manuscript passes through an electronic review and approval chain identical to non-AI content. In practice, this means having a “prompt log” that records the original user request, the date/time, and version of the model; an “output log” containing the AI text; and an “edit log” if clinical writers revise the text. Each of these is stamped with user and time, so inspectors can trace any final submission text back through the AI-generation and human-validation steps. As one guidance noted, this “makes risk-based validation visible in daily operations and gives auditors confidence that failure modes are caught early” ([21]).
-
Analytical Lab Data Processing: A quality control lab adopts an AI/ML algorithm to integrate chromatographic peaks. For each sample, if a technician manually adjusts the integration, the system logs the pre-adjustment and post-adjustment values, user ID, and timestamp ([16]). The audit trail also records every AI‐driven analysis event: e.g. “Sample 1234 injected; user A started analysis at 10:02; AI integration completed at 10:03 using model v1.2”. FDA guidance suggests that even incomplete injections should be automatically recorded, and any post-run corrections must be justified in the trail ([16]). Here, the smart algorithm is treated as part of the validated equipment; its output (the initial integration) is a record, and the user’s review or correction is an amendment. The log entries allow a reviewer to see exactly how each chromatogram was processed, by whom, and why any changes were made.
-
Automated QC Batch Release: In manufacturing, a company uses an AI system to predict batch quality outcomes (based on sensor data and historical batches). When a batch passes through the system, the AI gives a “release recommendation.” The audit system logs: sensor input data ID, model ID, model output (pass/fail probability), and the QC release decision-maker’s actions. If the operator overrides the AI (e.g. “fail – retest batch”), that override and its reason are traced. The system’s audit log ensures that, at reporting time, the chain from raw data → algorithmic prediction → human decision is clear. In effect, the AI’s suggestion becomes part of the electronic batch record, with full provenance.
-
Pharmacovigilance Case Triage: A drug safety department deploys an AI tool to screen incoming adverse event reports. Each report assessed by the model generates an audit entry: which model (and which version) evaluated it, the decision made (e.g. “flag for evaluation”), and the algorithm’s confidence score. The safety analyst who reviews the flag then records their judgment into the system, which is logged and linked to the AI-assessment entry. Although this scenario is in clinical safety rather than GMP, it illustrates the pattern: every AI decision is logged along with the final human determination. As FDA reviewers have noted, “the trustworthiness of the AI algorithm is the main determinant of its acceptance by human experts” ([23]), which is only attainable if its outputs are transparent and auditable.
These examples highlight that the audit trail for AI is not a single log per se, but a linked ecosystem of records spanning data, model, and actions. Industry-authority discussions advise building architectures so that “AI outputs cannot bypass QC,” i.e. any content or action from AI must enter validated systems with visible logs ([21]). Quality teams should treat AI development and deployment like any other regulated process: requiring User Requirements Specs (URS), risk assessments, test protocols, and formal validation documentation ([24]). This is “not reinventing the wheel,” as one source puts it, but “applying GAMP 5… to generative systems” ([24]).
Notably, supplier oversight is critical for cloud-based AI. If a model is hosted by a third party, the contract must obligate the vendor to provide audit data on usage, performance, or configuration changes. Experts recommend including clauses for “exportable evidence” in Service Level Agreements: the vendor should furnish logs and records (or at least means to recreate them) for inspection if needed ([25]). This mirrors Annex 11’s existing Chapter on outsourcing: compliance is only as strong as your suppliers’ practices. The Commission published a draft Annex 22 on AI in its now-closed 2025 GMP consultation ([12]). The proposal should not be described as adopted requirements.
Data and Evidence-Based Considerations
FDA’s 2018 data-integrity guidance provides a concrete laboratory example: aborted or incomplete injections should be captured in audit trails, investigated and justified ([5]). This is guidance about laboratory CGMP records, not a measured AI productivity result or a rule covering every AI parameter.
For implementation, organizations can define coverage and review-timeliness metrics against their approved record scope. A metric might compare required events with available logs, or track completion of scheduled reviews. Set and justify targets for the specific workflow; these examples are not published regulatory percentages.
Regulatory and Industry Perspectives
Multiple expert reviews and training modules have synthesized regulators’ evolving stance on AI and auditability. Key insights include:
-
Accountability and Oversight: For medicinal product information documents, EMA recommends close human supervision and quality review of AI-generated text before regulatory submission ([17]). Do not generalize this recommendation into a universal requirement that a qualified human review every AI output.
-
Traceability & Explainability: Regulators are challenging “black box” AI. The full chain of evidence—from data input, through algorithm, to decision—must be available. One analysis for DRA professionals notes: “Regulators are not only asking, ‘What is your model’s performance?’ but increasingly, ‘Show me the full chain of evidence that this model…was validated and released under control.’” ([26]). This expectation maps directly to audit requirements: if an auditor asks why an AI prediction was trusted, the company should retrieve the audit trail showing data lineage, code version, validation records, and human approvals.
-
Harmonization: Internationally, regulators are aligning their approaches. The 2021 PIC/S data integrity guide (PI 041-1) has been widely adopted, so expectations in Japan, Canada, Europe, etc. are becoming similar ([27]) ([28]). While the U.S. FDA has been somewhat technology-agnostic, FDA’s draft guidances and workshops now directly address AI/ML. For instance, FDA’s January 2021 AI/ML Software as a Medical Device (SaMD) Action Plan and subsequent drafts recommend good machine learning practice (GMLP), which includes traceability of training datasets and algorithm changes.
-
EU AI Act: Determine classification under Article 6. The product route requires both an Annex I product or safety component and third-party conformity assessment; Annex III provides another route with specified exceptions. GxP use alone is not a classification criterion. Article 11 concerns technical documentation; Article 12 requires automatic event-logging capability. Article 19 governs providers’ retention of logs under their control, generally for at least six months subject to applicable law. The Commission’s current Article 113 text states that Chapter III Sections 1–3 apply from 2 December 2027 for Article 6(2)/Annex III systems and 2 August 2028 for Article 6(1)/Annex I systems. Assess the relevant classification and transition provisions for the intended use; do not equate these duties with universal GxP logging.
-
Industry Case Studies: Some industry voices have begun publishing case-style discussions. The Clinical Trials 101 piece demonstrated an AI‐writing pipeline where each document version is traceable ([21]) ([29]). Professional forums (e.g. ISPE GAMP discussions) have iterated best practices for integrating AI with existing validation workflows.
One critical consensus is that AI tools must fit into the existing quality culture. As Validfor’s overview puts it, “Yes, regulated writing tasks can be performed by AI, but you still need an IT and QMS approach for each content type — including cloud LLMs” ([19]). In other words, AI does not change the fundamentals: you must validate, log, and audit. The only difference is that there are more things to log.
“A risk-based design review can ask: which data and model version produced the outcome; which inputs and parameters were used; and which outputs and review decisions support the required record?
Tables
Table 1 compares the regulatory controls. Table 2 presents candidate audit-log fields for AI decision support.
Discussion of Implications and Future Directions
Audit trail requirements for AI in GxP are not merely bureaucratic boxes to check; they have profound implications for quality, trust, and innovation. Thorough logging and traceability shift the perspective on AI from “mystery black box” to “traceable tool.” Document the controls and evidence needed to validate the intended use and support inspection review.
Ensuring Quality and Accountability
A robust audit trail ensures that if an AI system makes an error or is attacked, the root cause can be found. For example, if a defective product is released due to faulty AI predictions, the company must be able to show which data went in, what the model output was, and how a human handled it. Audit trails support “forensic” analysis after an incident: they reveal whether a failure was due to bad input data, a software bug, or human oversight.
Accountability is another driver: regulatory audits (and even civil regulators) expect evidence. The Validfor commentary bluntly states regulators “expect clear documentation that ties AI activities to regulated outcomes” ([30]). In practice, before deploying any AI solution, companies should map its data flow and ensure that every GxP-relevant step is logged. Internal audits and risk assessments should treat AI like any other computer system, asking “can we answer ‘who, what, when, where, why’ for every outcome?”.
Technology Enablers
As AI becomes commonplace, technology is evolving to support audit trails. For instance, MLOps platforms (TensorFlow Extended, MLflow, etc.) can be configured to automatically record provenance and model metrics. Blockchain and immutable ledger technologies are being explored for tamper-proof logs. Natural Language Processing and anomaly detection tools can screen audit logs for suspicious patterns, adding a layer of automated oversight. In the future, one might use AI to audit AI: e.g. machine learning algorithms could flag unusual sequences of operations in log data.
Furthermore, standards organizations are working on normative frameworks. ISO/IEC JTC 1/SC 42 is developing standards for AI governance and transparency, which may eventually include requirements for documentation and logs. Cybersecurity guidelines (NIST 800-series) are also relevant to protecting audit log integrity. Firms should keep abreast of such developments and consider participating in standards efforts to ensure practical requirements.
Challenges and Gaps
Comprehensively auditing AI systems poses challenges. Continuous‐learning models (which update themselves in real-time) require special attention: how to log every adaptive retraining step, and how to validate a moving target? FDA issued final guidance in August 2025 on predetermined change control plans for AI-enabled device software functions ([31]). Its recommendations concern AI-enabled medical devices and device-led combination products in the 510(k), De Novo and PMA pathways. This device framework should not be applied as an authorization for autonomous learning in pharmaceutical GMP systems. Interoperability of log formats is also an issue: if using multiple tools (e.g. cloud AI services, local software, lab equipment), consolidating logs can be complex.
Another challenge is volume of data. AI systems can generate enormous logs (every query, every intermediate result). Companies must design log retention policies that scale. Define retention against the applicable record requirements. Scope discretionary logging through the documented risk assessment; do not use it to shorten mandatory retention or discard required records ([1]).
Finally, human factors matter. Organizations must train personnel on the importance of audit trails and how to use them. If employees view audit logging as onerous, they might try to circumvent formal systems – which is a recipe for enforcement. A culture that values data integrity (one of the fundamental PIC/S pillars) will be more successful in implementing these systems.
Conclusion
Audit trails support accountability for regulated records. Identify applicable predicate rules and AI record scope before choosing controls; FDA’s enforcement discretion does not remove predicate-rule obligations ([1]). For manufacturing, data generated to satisfy a CGMP requirement become CGMP records ([5]). Recommended provenance controls can include relevant model versions, datasets, inputs, outputs and review decisions without treating every AI artifact as automatically regulated.
Key takeaways include: (1) Design AI systems to log everything material: inputs, outputs, system changes, and human reviews. (2) Ensure logs are tamper-proof – no unauthorized edits or deletions of audit entries. (3) Link audit data into existing QMS processes (validation protocols, change controls, CAPAs) so it is reviewed and available. (4) Validate AI tools with documented testing and include audit trail verification as part of validation. (5) Engage vendors and cloud providers contractually to enforce these logging requirements.
For planning, distinguish consultation proposals from adopted GMP requirements and assess AI Act classification and application dates for the specific use case. The regulatory discussion above provides the relevant sources. Robust auditability also helps teams explain and reproduce outcomes.
Implement a documented, risk-based control strategy that meets the applicable record requirements. For EU GMP systems, Annex 11 §9 calls for risk-based consideration of audit trails and regular review ([2]). Verify audit-trail functionality as part of the controls specified for the intended use.
References
- 21 CFR Part 11 (FDA): Controls for closed systems, §11.10(e) (audit trail requirements) ([8]).
- EU GMP Guidelines Annex 11 (Computerised Systems), Section 9 (Audit Trails) ([9]) ([32]).
- PIC/S (2021), Guideline PI 041-1: Good Practices for Data Management and Integrity (introductory description) ([28]) ([14]).
- FDA (2018), Data Integrity and Compliance With Drug CGMP: Questions and Answers, guidance for industry; see question 12 for chromatography and audit trails ([5]).
- EMA (2024), Reflection paper on the use of artificial intelligence (AI) in the medicinal product lifecycle, final paper ([17]).
- Council on Pharmacy Standards – CAIDRA Modules: FDA/EMA View on AI Documentation ([33]) ([34]); GMLP Documentation & Audit Trails ([26]).
- VTI Life Sciences, David Vincent (2025): “Digital and AI-enabled GMP Systems” ([35]) ([36]).
- Technologynetworks (Lotfinia, McDowall, 2025): Audit Trail Requirements for a Digitalized Regulated Lab ([37]) ([16]) ([13]).
- Validfor (Oct 2025): AI in regulated work & ALCOA+ principles ([38]) ([18]) ([20]).
- ClinicalTrials101 (Nov 2025): AI-Assisted Writing & Validation: Risk-Based GxP Controls ([21]) ([24]) ([29]).
- Ball et al. (2024): “Trust but Verify: AI in Postmarketing Case Assessment” (JMIR) ([23]).
- EMA News (July 2023): “Reflection paper on the use of AI” (EMA press release) ([7]).
- PIC/S News (July 2021): Adoption of PI 041-1 Guidance on Data Integrity ([28]).
About IntuitionLabs
Build practical AI for pharma and biotech with IntuitionLabs. We help life-science teams turn complex information and workflows into useful software, governed knowledge systems and AI tools.
IntuitionLabs is an AI consulting, custom software development and data engineering firm serving pharmaceutical, biotechnology, medical-device and other life-science organizations. We work with clinical, regulatory, medical-affairs, commercial, quality and IT teams to connect technology decisions with the work people need to accomplish.
AI consulting and adoption
Our AI enablement services cover readiness assessments, use-case selection, governance and policies, team workshops, adoption measurement and ongoing advisory support. We help organizations structure the information layer behind AI: source material, context, permissions and maintained knowledge that make generated answers useful and reviewable. Private LLM inference and hosted AI options support teams evaluating how to operate AI with appropriate control over their data and infrastructure.
Software, data and life-science workflows
IntuitionLabs develops custom software for pharma and biotech, integrates enterprise systems, and builds data engineering and business intelligence solutions. Areas of focus include AI agents, regulatory research, medical writing, medical affairs, CMC information, competitive intelligence and clinical-document workflows. Our eTMF intelligence work includes cross-system reconciliation and inspection-readiness support.
Enterprise platforms and regulated delivery
We provide Veeva services, application support, managed services, integrations and custom applications, alongside enterprise content work involving platforms such as Egnyte. For regulated workflows, our services include GxP enablement, computer-system validation and software development addressing 21 CFR Part 11 requirements. The applicable controls, validation responsibilities and acceptance criteria are defined for each engagement.
Work with IntuitionLabs
Explore AI enablement, pharma and biotech software development, data engineering and BI, and Veeva services. Contact IntuitionLabs to discuss your workflow, information sources and implementation needs.
IntuitionLabs publishes educational research to help life-science teams make informed technology decisions. Coverage of a product or organization does not imply a client relationship, endorsement or partnership.
Sources / 38

Need Expert Guidance on This Topic?
Let's discuss how IntuitionLabs can help you navigate the challenges covered in this article.
I'm Adrien Laurent, Founder & CEO of IntuitionLabs. With 25+ years of experience in enterprise software development, I specialize in creating custom AI solutions for the pharmaceutical and life science industries.
The information contained in this document is provided for educational and informational purposes only. We make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability of the information contained herein. Any reliance you place on such information is strictly at your own risk. In no event will IntuitionLabs.ai or its representatives be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from the use of information presented in this document. This document may contain content generated with the assistance of artificial intelligence technologies. AI-generated content may contain errors, omissions, or inaccuracies. Readers are advised to independently verify any critical information before acting upon it. All product names, logos, brands, trademarks, and registered trademarks mentioned in this document are the property of their respective owners. All company, product, and service names used in this document are for identification purposes only. Use of these names, logos, trademarks, and brands does not imply endorsement by the respective trademark holders. IntuitionLabs.ai is an AI software development company specializing in helping life-science companies implement and leverage artificial intelligence solutions. Founded in 2023 by Adrien Laurent and based in San Jose, California. This document does not constitute professional or legal advice. For specific guidance related to your business needs, please consult with appropriate qualified professionals.
Related Articles

Microsoft 365 vs Google Workspace for GxP Pharma Compliance
Compare Microsoft 365 and Google Workspace for pharmaceutical GxP compliance. Learn how each cloud platform meets FDA 21 CFR Part 11 and data integrity rules.

21 CFR Part 11 Compliance: Electronic Records in Pharma
Review the core requirements for 21 CFR Part 11 compliance in pharma. This guide explains FDA electronic records, signatures, ALCOA+, and system validation.

GxP Compliance Software: eQMS & Document Management
Analyze leading GxP compliance software, eQMS, and document management platforms for life sciences. Learn how systems meet 21 CFR Part 11 and ALCOA+ rules.