In This Article
- Executive Summary
- When Does an AI Output Become a GxP Record?
- Why You Cannot Regenerate Your Way Out of Retention
- What to Keep: The Seven Parts of an AI Output Record
- How Long: Tying AI Outputs to the Retention Clock You Already Have
- In What Form: Static, Dynamic, and True Copies
- Where AI Output Records Should Live
- A Five-Step Retention Design for AI Outputs
- Conclusion
- For Further Reading
- References & Sources
Executive Summary
AI tools now draft deviation summaries, classify visual inspection images, flag trends in environmental monitoring data, and pre-screen batch records. Each of those tools produces outputs, and some of those outputs feed decisions that GxP regulations require a company to record. The retention question is no longer theoretical: when an inspector asks why a batch was released or a deviation was closed, the AI output that informed that decision may be part of the answer.
The good news is that no new retention clock is needed. AI output record retention: GxP predicate rules already set the periods, and they follow the record the output supports, not the AI system that produced it. The harder work is in three design choices: deciding which outputs become records, defining what context has to be kept with each output so it still makes sense years later, and choosing a form that preserves its meaning.
This article walks through each of those choices. It sets out a practical test for when an AI output becomes a record, a seven-part definition of what an AI output record contains, a map from existing FDA and EU retention rules to AI use cases, guidance on static versus dynamic formats, and a five-step design any quality and IT team can run. It covers outputs during use; retirement of the system itself is a separate topic.
When Does an AI Output Become a GxP Record?
Most retention debates about AI start in the wrong place. Teams ask how long they need to keep “the AI logs,” as if the AI system were the unit of record. It is not. The unit of record is still the GxP activity: the batch, the test, the investigation, the study. An AI output becomes a record for the same reason any other piece of data does. It was created to meet a requirement, or a regulated decision relied on it.
Regulators on both sides of the Atlantic already have a test for this, written long before generative AI. The tools are new; the test is not.
The FDA Test: Data Generated to Meet a CGMP Requirement
FDA’s guidance on data integrity puts it in one sentence: “When generated to satisfy a CGMP requirement, all data become a CGMP record.”1 The same guidance goes on to say the data must be saved at the time of performance, and it rejects the practice of recording data on scraps of paper that are discarded after transcription. It also says it is not acceptable to store electronic records in a way that allows manipulation without creating a permanent record.1
Apply that to AI. If a model classifies a vial as a reject during visual inspection, the classification was generated to meet an inspection requirement. It is a record. If a language model drafts the narrative of a deviation report and an investigator edits and signs it, the signed narrative is the record, and the question becomes whether the draft that shaped it also needs to be kept. If a data scientist uses a chatbot to brainstorm possible root causes before starting an investigation and none of that output enters the file, the output is probably not a record, though the company should decide that on purpose rather than by default.
The EU Test: Raw Data Is Whatever Quality Decisions Rest On
EU GMP Chapter 4 approaches the same question from the decision end. The current chapter, in force since 2011, tells regulated users to define which electronic data count as raw data, and adds: “At least, all data on which quality decisions are based should be defined as raw data.”2 The draft revision of Chapter 4, released for consultation with the draft Annex 11 and the new draft Annex 22, keeps that sentence and adds language written with AI in mind.3
Two additions matter most here. First, the draft states that accountability for the integrity of documents, records, or raw data produced or processed with artificial intelligence “rests with the regulated user.”3 Second, its description of the “contemporaneous” principle says documentation should be an accurate attestation of “what was done, or what was decided and why, i.e. what influenced the decision at that time.”3 An AI output that influenced a quality decision is, by that description, part of what the record has to show.
A note on status. The European Commission’s consultation on the draft Chapter 4, Annex 11, and Annex 22 opened on 7 July 2025 and closed on 7 October 2025.4 The consultation page gives no adoption or implementation date, and no final text had been published when this article was written. Treat the drafts as a clear signal of direction, not as requirements in force. The 2011 Chapter 4 and Annex 11 remain the operative EU texts.
Four Kinds of AI Output
In practice, AI outputs in a regulated company fall into four groups. The group decides whether the output is a record, and that decides everything that follows.
| Output type | Example | Is it a GxP record? |
|---|---|---|
| Decision input | A model’s accept or reject call on an inspection image; a flag that an environmental monitoring trend has crossed an alert level | Yes. A quality decision rests on it, so it is raw data under the EU test and a CGMP record under the FDA test. |
| Record content | A drafted deviation narrative, a summarized batch record review, a draft CAPA effectiveness check, once edited and approved | The approved document is the record. The as-generated draft should be kept when it materially shaped the approved text (see below). |
| Working aid | A summary of an SOP that a technician reads before a task; a translation of a supplier email | Usually not, unless the aid is used in place of the controlled document or its content is copied into a record. |
| Non-GxP | Meeting notes for a budget review; marketing copy | No. Normal business retention applies. |
The table is a starting point. The final call belongs in the use case’s risk assessment, made by the process owner with quality, and written down. If your company keeps an AI use case register, the output type is a natural column to add.
Discarded Drafts and Regenerated Outputs
The hardest case is the output nobody kept. A user asks a language model to draft a section, does not like it, regenerates twice, and keeps the third version. Are the first two part of the record?
No regulation answers this for AI directly. The nearest existing rule is FDA’s position on reprocessed chromatography. Asked whether it is acceptable to save only the final results from reprocessed laboratory chromatography, FDA answers “No,” and says that if chromatography is reprocessed, written procedures must be followed and each result retained for review.1 The concern is selection: a person running an analysis several times and keeping only the answer they preferred.
The same concern applies when an AI tool produces a decision input. If a model is run three times on the same image and gives two different calls, keeping only the favorable one is exactly the pattern regulators look for. For decision inputs, our view is that every run should be kept. For drafted text that a qualified person then reviews, edits, and signs, the risk is lower, and a documented rule such as “keep the as-generated version that was accepted for editing, plus a count of regenerations” is a defensible middle ground. Whatever the rule, it should be written in the procedure and enforced by the tool, not left to user habit.
The practical test. Ask one question of every AI output: if this output were missing, could an inspector still reconstruct why the regulated decision was made? If the answer is no, the output is part of the record and inherits that record’s retention period.
Why You Cannot Regenerate Your Way Out of Retention
A common objection to keeping AI outputs is that they can always be produced again. Keep the inputs and the model, the argument goes, and the output can be recreated on demand. For most AI tools in use today, that argument fails on three counts.
Many Models Do Not Give the Same Answer Twice
Large language models generate text by sampling from a probability distribution. A 2025 study by Shyr and colleagues, which ran repeated trials of several language models on clinical diagnostic cases, states that “the stochastic nature of this process can lead to different outputs even when the input prompt, model architecture, and parameters remain the same.”8 The study, released as a preprint and indexed in PubMed Central, is one of several that quantify how often repeated runs disagree.
The draft Annex 22 draws the same line from the regulatory side. It applies only to static models with deterministic output, meaning models that “when given identical inputs, provide identical outputs.” It says models with probabilistic output are not covered and “should not be used in critical GMP applications,” and it names generative AI and large language models specifically.5 Where such models are used in non-critical GMP work, the draft expects qualified personnel to be responsible for checking that outputs are suitable, a human-in-the-loop arrangement.5
So for any generative tool, the original output is the only copy there will ever be. Rerunning the prompt produces a new output, not a copy of the old one.
Models Change and Retire
Even a deterministic model only gives the same answer if it is the same model. Hosted models are versioned, updated, and eventually retired by their providers. A tool configured today against one model version may be pointed at a newer version next year, and the old version may no longer be available at all. FDA’s draft guidance on AI credibility notes that “a model’s performance can change over time or across deployment environments” and describes life cycle maintenance as a set of planned activities to keep a model fit for its context of use.9 That guidance remains a draft, issued in January 2025, and is not for implementation, but the underlying point is a technical fact rather than a policy position.
What happens to records when a model is retired is covered in our article on decommissioning a GxP AI system. The point for retention during use is simpler: a plan that depends on rerunning a model years from now depends on a model that may not exist.
The Precedent in 21 CFR 211.68
US CGMP has a rule that shows what regulators accept when output is not kept. Section 211.68(b) requires that input to and output from computer systems “shall be checked for accuracy.” It then allows certain data, “such as calculations performed in connection with laboratory analysis,” to be eliminated by computerization, but only if “a written record of the program shall be maintained along with appropriate validation data.”6
That exception was written for deterministic calculations, where the program and its inputs fully determine the result. It is a reasonable model for a static, deterministic AI model under strict configuration control: keep the exact model version, the inputs, and the validation evidence, and the output can be justified. It does not fit a generative model whose output varies between runs. And even for a deterministic model, most companies will find it simpler and safer to store the output than to prove, years later, that they could reproduce it.
Do not rely on the provider’s logs. Some AI platforms keep request logs for a limited time for their own purposes, such as abuse monitoring or debugging. Those logs are not under your control, are not designed as GxP records, and follow the provider’s schedule, not yours. If an output is a record, the regulated company needs its own copy.
What to Keep: The Seven Parts of an AI Output Record
An AI output on its own is rarely enough. A classification that says “reject” means little without knowing which image was classified, by which model, at what confidence, and what the operator did next. FDA’s definition of metadata makes the same point about all data: it calls metadata “the contextual information required to understand data,” and gives the example that the number 23 means nothing without the unit.1 The draft Chapter 4 adds: “A complete record of data generated electronically includes relevant metadata.”3
For AI outputs, the relevant metadata falls into seven parts. Not every use case needs every part at the same depth, but each should be considered and the choice documented.
What the Model Was Given
The data the model processed: the image, the batch record section, the test results, the complaint text. Store a copy or a stable reference to the source record, including its version.
The Prompt and System Instructions
For generative tools, the user prompt and the system or template instructions in force. Reference a versioned prompt template rather than copying it each time.
Documents the Tool Looked Up
For retrieval-based tools, the documents or passages retrieved and their versions. An answer grounded in a superseded SOP is a different finding from one grounded in the effective version.
Model, Version, and Settings
The model name and exact version, the configuration (such as temperature or decision threshold), and the version of the application wrapped around it.
What the Model Produced, As Produced
The output before any human edit, with a timestamp and a unique identifier. For classifiers, include the confidence score where the model provides one.
Who Reviewed It and What They Decided
The reviewer’s identity, the time, whether they accepted, changed, or rejected the output, and why. This is the part that shows the review took place.
Which Regulated Record It Supports
The batch number, test ID, deviation number, or study ID the output belongs to. Without this link, the output cannot be found when the regulated record is reviewed, and its retention period cannot be set.
Everything the System Could Log
Token counts, latency, and debugging traces are useful for operations. They are not part of the GxP record unless a procedure makes them so. Keeping them in the record store adds volume without adding meaning.
The Human Decision Needs Its Own Record
Where a person reviews an AI output before acting on it, the review is itself a GxP activity and needs its own record. The draft Annex 22 is direct about this. When a model gives input to a decision made by a human operator, and the testing of the model has been reduced on that basis, “records should be kept from this process.” Depending on criticality, the draft says this may mean a consistent review or test of every output, according to a procedure.5
The draft Annex 11 sets out what an audit trail should capture when data changes: the user, what was changed including the old and new value, the date and time, and a reason for the change.10 An AI output that a reviewer edits is a change from an old value to a new one. Capturing the as-generated output alongside the approved version, with the reviewer and the reason, gives an inspector the same who, what, when, and why they expect from any other audit trail.
In the laboratory, this also lines up with an existing requirement. Section 211.194(a)(8) requires the initials or signature of a second person showing that original records were reviewed for accuracy, completeness, and compliance.7 Where an AI tool performs or supports a check that a person used to perform, the record should show which person reviewed the result and on what basis. FDA’s draft AI guidance makes a related point for evaluation: where the context of use involves a human in the loop, evaluation should consider “the performance of the human-AI team, rather than just the performance of the model in isolation.”9 You cannot evaluate the team later if the human’s decisions were not recorded. Our earlier article on human-in-the-loop requirements covers the review design itself; the retention point here is that the review leaves a record.
Keep the As-Generated Output, Not Only the Edited Version
A common design stores only the final, approved text. That loses the evidence of what the reviewer changed. If an AI draft of a deviation summary named the wrong root cause and the investigator corrected it, the correction is evidence that the review worked. If the draft and the approved text are identical across hundreds of records, that pattern is evidence of something else, and a quality team will want to see it before an inspector does.
Section 211.194(a) requires laboratory records to include “complete data derived from all tests,” and 211.194(a)(4) asks for a complete record of all data secured in the course of each test.7 Where an AI tool contributes to a test result, the as-generated output is part of that data. Outside the lab, the same principle follows from the requirement that records show what influenced a decision.
Reference, Do Not Copy, When the Source Is Already Controlled
Storing every input and every prompt in full for every output multiplies storage and creates new copies of data that already exist under control. Where an input is itself a controlled record, such as a batch record in the EBR or a result in the LIMS, a stable reference with a version is enough, provided the referenced record has an equal or longer retention period. The same goes for prompt templates. If templates live in a governed library with version history, each output can point to the template version used rather than carrying a copy. Our article on governing prompt libraries covers how to set one up.
Copy rather than reference when the source is volatile: a user’s free-text prompt, a retrieved passage from a document that may be revised, an image that is not otherwise stored. If the source can change or disappear before the output’s retention period ends, the output record needs its own copy.
How Long: Tying AI Outputs to the Retention Clock You Already Have
Once an output is identified as part of a record, its retention period follows. No GxP regulation sets a separate retention period for AI outputs, and none is needed. The principle is simple: an AI output inherits the retention period of the regulated record it supports. An output that informed a batch release decision is kept as long as the batch record. An output that fed an adverse event assessment is kept as long as the adverse event record.
The Retention Periods That Already Apply
The table below maps common AI use cases to the rule that already governs the underlying record. It is not a complete list of retention rules, and local law, product type, and company policy can extend these periods. It shows how the mapping works.
| AI use case | Underlying record | Governing rule | Minimum period stated in the rule |
|---|---|---|---|
| Visual inspection classifier; batch record review assistant | Production and control records for a batch (US) | 21 CFR 211.180(a)11 | At least 1 year after the batch’s expiration date (3 years after distribution for certain OTC products without expiry dating) |
| Same, for EU-certified batches | Batch documentation (EU) | EU GMP Chapter 4, 4.112 | 1 year after expiry of the batch or at least 5 years after QP certification, whichever is longer |
| Same, for investigational medicinal products | IMP batch documentation (EU) | EU GMP Chapter 4, 4.112 | At least 5 years after completion or formal discontinuation of the last clinical trial in which the batch was used |
| Model supporting stability or validation data analysis | Critical documentation and raw data supporting the marketing authorization | EU GMP Chapter 4, 4.122 | While the authorization remains in force (with documented justification if superseded by a full new data set) |
| Adverse event triage or case assessment tool | Records of adverse drug experiences, including raw data | 21 CFR 314.80(j)13 | 10 years |
| Image analysis or data review in a nonclinical study | GLP documentation records and raw data | 21 CFR 58.195(b)12 | The shortest of: 2 years after application approval, 5 years after submission, or 2 years after study completion when not submitted |
| Data review or query tool in a clinical trial | Clinical trial data and essential documents, including metadata | EMA guideline on computerised systems in clinical trials, 6.1114 | The periods set by regulatory requirements in every region where the data may be used, not just the country where they were generated |
Two details in these rules deserve attention. First, the GLP rule is unusual in setting the shortest of several periods rather than the longest, and it notes that it does not override retention requirements in other regulations.12 Second, the EMA clinical trials guideline asks sponsors and investigators to maintain an inventory of “all essential data and documents and corresponding retention periods.”14 If AI outputs are part of the trial record, they belong in that inventory.
When One Output Supports Several Records
AI outputs often serve more than one record. A trend analysis of environmental monitoring data might support a batch release decision, a deviation investigation, and an annual product review. Section 211.180(e) requires that records be kept so their data can be used to evaluate quality standards at least annually.11 In these cases the output takes the longest applicable period. The simplest way to make that work is the seventh part of the output record, the link: if the output carries references to every record it supports, the retention engine can compute the latest end date instead of relying on someone to remember.
Validation evidence follows its own logic. Chapter 4 says raw data supporting process validation should be kept at least as long as the records for all batches released on the basis of that validation.2 The draft Annex 22 asks that AI model test documentation be retained along with the intended use description, the test data, and the access and audit trail records for that data, “similarly to other GMP documentation.”5 Applied to AI, the model’s validation package lives at least as long as the last output that relied on that validated model version.
The AI Act’s Six-Month Floor Is Not Your GxP Clock
The EU AI Act includes its own record-keeping rules. Article 12 requires high-risk AI systems to allow automatic recording of events (logs) over the lifetime of the system.16 Article 19 requires providers to keep those logs, to the extent they control them, for a period appropriate to the system’s intended purpose “of at least six months, unless provided otherwise in the applicable Union or national law.”15
Whether a given pharma AI tool is a high-risk system under the AI Act is a separate question, and many GxP tools will not be. Either way, six months is a floor, and the Article itself defers to other applicable law. Where GxP rules require a longer period, the GxP period governs. The danger is a platform team that reads “six months” in an AI governance document and configures log deletion to match, not realizing that some of those logs are GxP records with a retention period measured in years.
A rule that holds up. Write one sentence into the AI governance procedure: “Where an AI output is part of a GxP record, it is retained for the retention period of that record, and no shorter log retention setting applies to it.” Then make sure the platform configuration can tell the two apart.
Balancing Retention Against Data Protection
Keeping more context makes outputs easier to understand, but inputs and prompts often contain personal data: patient information in safety cases, employee names in deviation reports, free text typed by users. The EMA clinical trials guideline notes that retention periods “should respect the data protection principle of storage limitation.”14 The OpenTelemetry semantic conventions for generative AI, an open standard for AI telemetry that is still marked as in development, mark the capture of input and output messages as opt-in and warn that these attributes are likely to contain sensitive information, including personal data.17
The answer is to keep what the record needs and no more. Pseudonymize where the process allows it, reference controlled sources instead of copying them, and set operational telemetry to a short retention period separate from the GxP output record. Do not solve the privacy question by deleting outputs that are part of a record.
In What Form: Static, Dynamic, and True Copies
Retention is not only a question of time. A record kept for ten years in a form that has lost its meaning has not been retained in any useful sense. GxP rules give a fairly clear framework for form, built around the difference between static and dynamic records.
Static and Dynamic Records
FDA uses “static” to mean a fixed-data record such as a paper record or an electronic image, and “dynamic” to mean a record format that allows interaction between the user and the record content.1 MHRA’s data integrity guidance uses the same distinction and gives the example that chromatography records, once printed or converted to a static format, lose the ability to be reprocessed.19 MHRA also states that information originally captured in a dynamic state should remain available in that state, and the draft Chapter 4 carries the same sentence into its description of the “original” principle.193
Where does an AI output fall? The output text or classification on its own is closer to static. A drafted paragraph does not change when you look at it again. But the AI output record described above, with inputs, model version, retrieved context, reviewer decision, and links, is a structured set of data. Its value comes from being able to search, sort, and trend it: which outputs did reviewers overturn, which model version produced them, which input types caused low confidence. That makes the record as a whole dynamic, and it should be kept in a form that keeps those abilities.
The draft Annex 11 supports this reading. It says it should be possible to obtain a complete electronic copy of system data including audit trail data, and that “Flat and locked files are not acceptable, it should be possible to search and sort data.”10 For archived data, it asks that retrieval be possible in a format that allows searching and sorting, or export to a tool where this is possible.10
True Copies and Format Changes
US rules allow records to be kept as originals or true copies. Section 211.180(d) says records “may be retained either as original records or as true copies such as photocopies, microfilm, microfiche, or other accurate reproductions of the original records.”11 FDA’s Part 11 scope and application guidance goes further: FDA does not intend to object if companies archive required electronic records to paper, microfilm, or a standard electronic file format such as PDF or XML, provided predicate rule requirements are met and the records “should preserve their content and meaning.”20 The same guidance says FDA intends to exercise enforcement discretion on the Part 11 requirement for protecting records throughout the retention period, while companies must still meet predicate rule retention requirements.20
The phrase that matters is “content and meaning.” FDA’s data integrity guidance defines it further: electronic true copies are acceptable if 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.”1 For an AI output, the meaning includes which model produced it, from what input, and what a person did with it. A PDF of a chat window that shows the text of an answer but not the model version, the source documents, or the reviewer’s decision does not preserve that meaning.
Printing a Chat Is Not Retention
It is tempting to meet retention needs by printing or exporting a conversation and attaching it to the deviation or the batch record. The draft Chapter 4 addresses the practice directly: data recorded or processed electronically “should not be converted to or stored in a paper form” unless it meets the hybrid system requirements or the conversion is validated or verified for accuracy.3 Even under current rules, a static printout of a dynamic record does not meet the requirement to keep the original or a true copy, as FDA has said of laboratory instrument data.1
A printed or PDF export can still be useful as a human-readable view attached to a record. It should not be the only copy.
Protect Completed Records From Change
Once the regulated activity is complete, the output record should become read-only. The draft Annex 11 says that after a process is complete, such as the release of a product, GMP data and metadata including audit trails “should be protected from deletion and changes throughout the retention period,” either by setting the data to read-only where it was created or by moving it to a dedicated archive through a validated interface.10 When data are moved, the draft asks for integrity verification with a high degree of certainty, for example by checksum, before anything is deleted.10
The current Annex 11 already requires that stored data be checked for accessibility, readability, and accuracy, that access be ensured throughout the retention period, and that archived data remain retrievable when the system changes.21 For AI tools, where the application layer changes often, that last point is the one most likely to be missed. An output record that can only be read by the current version of a vendor’s interface is at risk the first time the interface is redesigned.
For long retention periods, format durability becomes its own design problem. Our article on designing GxP archives for 30 years covers format choice and migration planning in more depth.
Where AI Output Records Should Live
The form question leads to a location question. Most AI tools keep some history of their own, and it is easy to assume that history is the record. It usually is not.
The Chat History Is Not the Record
Chat-style tools keep conversation history for the user’s convenience. Enterprise platforms often add compliance retention on top. Microsoft’s documentation for Purview, for example, explains that retention policies can cover user prompts and responses for Microsoft 365 Copilot and other AI apps, and that the retained data is stored in a hidden folder in the user’s mailbox that compliance administrators search with eDiscovery tools.18 That is useful for legal holds and investigations. The same documentation warns that “Messages visible in your AI apps are not an accurate reflection of whether they are retained or permanently deleted for compliance requirements.”18
A store of this kind is organized by user and conversation, not by batch or deviation. It does not know which conversation supported which regulated decision, it does not capture the reviewer’s decision in a structured way, and its retention is set by an IT policy rather than by the GxP record. It can be a useful second copy. It is not a substitute for a GxP output record linked to the regulated activity.
The Record Belongs With the Regulated Activity
The better pattern is to write the AI output record, or a reference to it, into the system of record for the activity. The classification belongs with the inspection record in the MES or EBR. The drafted narrative and its review history belong with the deviation in the eQMS. The trend flag belongs with the environmental monitoring data in the LIMS. The full trace, with inputs, prompts, and retrieved context, can live in a dedicated AI record store, as long as the two are linked in both directions and both are under the same retention and access controls.
Chapter 4 already says: “It should be clearly defined which record is related to each manufacturing activity and where this record is located.”2 For AI outputs, that definition has to include the trace store. Our reference AI audit trail shows one way to structure the trace so it can be joined back to the regulated record.
Backup Is Not Archive
AI platforms are often backed up as a whole, and that can lead teams to assume outputs are retained. FDA uses “backup” in 211.68(b) to mean a true copy of the original record maintained securely throughout the retention period, and states that temporary backup copies would not satisfy that requirement.1 MHRA separates the two plainly: backups for recovery purposes “do not replace the need for the long term, retention of data and metadata in its final form for the purposes of verification of the process or activity.”19 The draft Annex 11 adds that backup retention should be set by risk, with examples running from a week for hourly backups to years for monthly ones.10 A platform backup rotated after 90 days is disaster recovery, not retention.
Hosted Services and Accountability
Many AI tools run as hosted services, and some keep outputs only on the provider’s side. The draft Chapter 4 is clear about who is responsible: if the regulated user relies on hosted services, it is the regulated user’s responsibility “to understand, approve and justify the control measures of the hosted service provider based on a service level agreement.”3 Combined with the draft’s statement that accountability for AI-produced records rests with the regulated user, this means a supplier’s retention settings cannot be treated as someone else’s problem.3
In practice, the supplier agreement for any AI tool that produces GxP records should answer four questions: where outputs and their context are stored, for how long, how the company can export them in a searchable format, and what happens to them if the contract ends or the model is retired. If the answers are “on our side,” “30 days,” “not easily,” and “deleted,” the company needs its own capture before the tool goes live.
| Storage location | What it is good for | Why it is not enough on its own |
|---|---|---|
| AI tool’s chat or session history | User convenience; picking up a conversation | User-controlled, not linked to regulated records, deletable |
| Compliance retention store (for example, eDiscovery) | Legal holds, investigations, misuse review | Organized by user, not by GxP activity; no structured review decision; retention set by IT policy |
| Provider-side request logs | Provider’s own abuse monitoring and debugging | Not under the regulated user’s control; retention on the provider’s schedule |
| Platform backups | Disaster recovery | Rotated on a recovery schedule; not an archive |
| System of record plus linked AI trace store | The GxP record: output, context, review, and link to the regulated activity | This is the target. It needs validation, access control, and a tested retrieval process. |
A Five-Step Retention Design for AI Outputs
None of this requires a new program. It requires applying the company’s existing records management discipline to a new source of records. The five steps below can be run for one AI use case in a few working sessions, then repeated for each new tool as it enters the use case register.
Classify Every Output the Tool Produces
List the outputs the tool generates and place each in one of the four groups: decision input, record content, working aid, or non-GxP. Record the rationale in the use case risk assessment. Decide the rule for regenerated and discarded outputs at the same time.
Map Each Record Output to Its Governing Retention Rule
For each output that is part of a record, identify the regulated record it supports and the rule that sets that record’s period. Where an output supports several records, take the longest period. Add the outputs to the records retention schedule or the trial’s essential documents inventory.
Define the Output Record
Using the seven parts (inputs, instructions, retrieved context, model identity, output, human decision, link), specify what is captured for this use case, what is copied, and what is referenced. Document why any part is left out.
Choose the Form and Location, Then Test Retrieval
Decide where the output record lives and how it links to the system of record. Confirm the format keeps search and sort ability. Test that a reviewer can retrieve a complete output record from the regulated record, and include retrieval in validation and in periodic review.
Control Disposal and Check Readability Over Time
Set disposal to run only after the retention period of every linked record has passed, with controlled access to delete rights. Check readability when the AI tool, its interface, or its storage changes, not only on a fixed calendar.
On disposal, the draft Chapter 4 asks for a documented process to ensure that “the correct original records or true copies are disposed only after the defined retention period,” with measures to reduce the risk of deleting the wrong documents and controlled access rights for disposal.3 For AI outputs, the risk is less often premature deletion by a person and more often deletion by a platform setting nobody connected to GxP. The fifth step is where that setting gets found.
Where Retention Designs Usually Go Wrong
Five patterns to check for in your own tools:
- Only the final text is stored. The as-generated output and the reviewer’s changes are lost, so the review cannot be shown to have happened.
- No model version on the output. Months later, nobody can say which model produced a given classification, which makes impact assessment after a model change guesswork.
- Log retention set by the platform team. A default of 30 or 90 days applies to everything, including outputs that are GxP records.
- No link to the regulated record. Outputs exist, but finding the ones behind a specific batch or deviation needs a manual search, and nobody can compute when they may be deleted.
- Retrieval never tested. Outputs are stored, but no one has tried to pull a complete output record, with context, for a specific decision, in the way an inspector would ask for it.
What Good Looks Like in an Inspection
The simplest way to check the design is to rehearse the question an inspector would ask. Pick a released batch, or a closed deviation, where an AI tool played a part. Ask the team to show, from the regulated record, the AI output that informed the decision, the input it was based on, the model version that produced it, the person who reviewed it, and what that person decided. If the team can do that in minutes, from the system of record, without asking IT to search logs, the retention design works. If it takes a ticket to the platform team, the design has a gap, even if every piece of data exists somewhere.
The rehearsal also shows whether the answer will still be available years from now. Ask the same question about the oldest AI-supported decision in the system. If the model version it references has already been replaced, can the team still read the record and understand it? That is the test the retention period is there to pass.
Conclusion
Retention of AI outputs is not a new regulatory category. It is the existing records framework meeting a new source of data. The FDA test for when data becomes a CGMP record, the EU rule that data behind quality decisions is raw data, the predicate rule retention periods, and the long-standing guidance on true copies and dynamic records already answer most of the questions. What they do not do is make the design choices for you. Deciding which outputs are records, what context turns an output into something an inspector can follow, and where that record lives are choices each company has to make and write down. The draft Annex 22, Annex 11, and Chapter 4 set out the same expectations: records from human review of AI outputs, searchable and complete metadata, read-only archives, and clear accountability with the regulated user, whatever the hosting model.
Sakara Digital works with pharma and biotech organizations on the records, validation, and governance side of AI adoption. If you are putting AI tools into GxP processes and want an independent view on which outputs your procedures need to capture and how to keep them usable for their full retention period, we are happy to have that conversation.
For Further Reading
For Further Reading
- Decommissioning a GxP AI System: Records, Weights, and Retention
- GxP Records Retention and Archiving: Designing for 30 Years
- We Went Looking for an AI GxP Audit Trail Example. It Didn’t Exist. So We Built One.
- Human-in-the-Loop Requirements for Pharma AI: What FDA and EMA Actually Expect
- The Revised EU GMP Chapter 4: What the Documentation Rewrite Means for Hybrid Records
References & Sources
- U.S. Food and Drug Administration. “Data Integrity and Compliance With Drug CGMP: Questions and Answers.” Guidance for Industry, December 2018. https://www.fda.gov/regulatory-information/search-fda-guidance-documents/data-integrity-and-compliance-drug-cgmp-questions-and-answers
- European Commission. “EudraLex Volume 4, Chapter 4: Documentation.” In operation since 30 June 2011. https://health.ec.europa.eu/system/files/2016-11/chapter4_01-2011_en_0.pdf
- European Commission. “EudraLex Volume 4, Chapter 4: Documentation.” Draft for stakeholder consultation, July 2025. https://health.ec.europa.eu/document/download/fa336a6e-753b-46fc-b53b-9178bacd8878_en?filename=mp_vol4_chap4_consultation_guideline_en.pdf
- European Commission, Public Health. “Stakeholders’ Consultation on EudraLex Volume 4, Good Manufacturing Practice Guidelines: Chapter 4, Annex 11 and New Annex 22.” Consultation 7 July 2025 to 7 October 2025. https://health.ec.europa.eu/consultations/stakeholders-consultation-eudralex-volume-4-good-manufacturing-practice-guidelines-chapter-4-annex_en
- European Commission. “EudraLex Volume 4, Annex 22: Artificial Intelligence.” Draft for stakeholder consultation, July 2025. https://health.ec.europa.eu/document/download/5f38a92d-bb8e-4264-8898-ea076e926db6_en?filename=mp_vol4_chap4_annex22_consultation_guideline_en.pdf
- Electronic Code of Federal Regulations. “21 CFR 211.68: Automatic, Mechanical, and Electronic Equipment.” https://www.ecfr.gov/current/title-21/chapter-I/subchapter-C/part-211/subpart-D/section-211.68
- Electronic Code of Federal Regulations. “21 CFR 211.194: Laboratory Records.” https://www.ecfr.gov/current/title-21/chapter-I/subchapter-C/part-211/subpart-J/section-211.194
- Shyr C, Ren B, Hsu C-Y, et al. “A Statistical Framework for Evaluating the Repeatability and Reproducibility of Large Language Models.” medRxiv preprint, 2025, indexed in PubMed Central. https://pmc.ncbi.nlm.nih.gov/articles/PMC12637745/
- U.S. Food and Drug Administration. “Considerations for the Use of Artificial Intelligence To Support Regulatory Decision-Making for Drug and Biological Products.” Draft Guidance, January 2025. https://www.fda.gov/regulatory-information/search-fda-guidance-documents/considerations-use-artificial-intelligence-support-regulatory-decision-making-drug-and-biological
- European Commission. “EudraLex Volume 4, Annex 11: Computerised Systems.” Draft for stakeholder consultation, July 2025. https://health.ec.europa.eu/document/download/40231f18-e564-4043-94de-c031f813d38b_en?filename=mp_vol4_chap4_annex11_consultation_guideline_en.pdf
- Electronic Code of Federal Regulations. “21 CFR 211.180: General Requirements (Records and Reports).” https://www.ecfr.gov/current/title-21/chapter-I/subchapter-C/part-211/subpart-J/section-211.180
- Electronic Code of Federal Regulations. “21 CFR 58.195: Retention of Records.” https://www.ecfr.gov/current/title-21/chapter-I/subchapter-A/part-58/subpart-J/section-58.195
- Electronic Code of Federal Regulations. “21 CFR 314.80: Postmarketing Reporting of Adverse Drug Experiences.” https://www.ecfr.gov/current/title-21/chapter-I/subchapter-D/part-314/subpart-B/section-314.80
- European Medicines Agency. “Guideline on Computerised Systems and Electronic Data in Clinical Trials.” EMA/INS/GCP/112288/2023. https://www.ema.europa.eu/en/documents/regulatory-procedural-guideline/guideline-computerised-systems-and-electronic-data-clinical-trials_en.pdf
- European Commission, AI Act Service Desk. “Article 19: Automatically Generated Logs.” Regulation (EU) 2024/1689. https://ai-act-service-desk.ec.europa.eu/en/ai-act/article-19
- European Commission, AI Act Service Desk. “Article 12: Record-Keeping.” Regulation (EU) 2024/1689. https://ai-act-service-desk.ec.europa.eu/en/ai-act/article-12
- OpenTelemetry. “Semantic Conventions for Generative AI Events.” Status: Development. https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-events.md
- Microsoft Learn. “Learn About Retention for Copilot and AI Apps.” Microsoft Purview documentation. https://learn.microsoft.com/en-us/purview/retention-policies-copilot
- Medicines and Healthcare products Regulatory Agency. “‘GXP’ Data Integrity Guidance and Definitions.” Revision 1, March 2018. https://assets.publishing.service.gov.uk/media/5aa2b9ede5274a3e391e37f3/MHRA_GxP_data_integrity_guide_March_edited_Final.pdf
- U.S. Food and Drug Administration. “Part 11, Electronic Records; Electronic Signatures: Scope and Application.” Guidance for Industry, August 2003. https://www.fda.gov/regulatory-information/search-fda-guidance-documents/part-11-electronic-records-electronic-signatures-scope-and-application
- European Commission. “EudraLex Volume 4, Annex 11: Computerised Systems.” In operation since 30 June 2011. https://health.ec.europa.eu/system/files/2016-11/annex11_01-2011_en_0.pdf








Your perspective matters—join the conversation.