In pharma, the person your AI agent has to win over is QA
Four clauses of 21 CFR Part 11 and one context-of-use statement decide whether an agent reaches production.
In brief
- Part 11 requires validation, limited access, time-stamped audit trails and signatures that state their meaning, and AI has to meet all of them.
- GAMP 5 Second Edition and FDA guidance both take a risk-based approach, but judging the level of assurance is QA's call.
- A human-in-the-loop design with an accountable signer lowers risk and shortens the review cycle.
- 1Write the context of useWhat the agent reads, what it writes, who decides, who signs, and what it must not do
- 2Agree GxP impact with QAPut the GxP or non-GxP classification in writing and get QA's agreement
- 3Score model riskCombine model influence with decision consequence
- 4Map Part 11 clausesTurn 11.10(a), (d), (e) and 11.50 into concrete design and evidence
- 5Choose the level of testingQA judges by risk, putting patient safety and quality first
- 6Accountable signerThe record shows the reviewer's name, date and time, and the meaning of the signature
A narrow COU and an accountable signer lower the risk and lighten the level of testing QA will accept.
Graphic: FDE Times
At a pharmaceutical company, your AI demo will be judged against a standard written for the age of paper records.
Section 11.1 of 21 CFR Part 11 states that the purpose of the regulation is to set out when the FDA considers electronic records and electronic signatures to be trustworthy, reliable and generally equivalent to paper records and handwritten signatures executed on paper.
An agent that drafts reports, summarizes batch records or classifies deviations is creating electronic records. So the project sponsor does not get the last word. That belongs to quality assurance (QA), and QA can halt everything the day before go-live.
Many FDEs treat QA as paperwork to be got through. That view wastes more time than any other. Learn to speak QA’s language in the first week and the design will be right from the outset, which spares you a rebuild of the whole architecture in week ten.
Part 11 asks your AI feature four questions
QA also relies on GAMP 5 and risk assessment, but for an AI feature there are four Part 11 clauses they will scrutinize most closely. Section 11.10(a) requires closed systems to be validated.
Validation must show that the system is accurate and reliable, performs consistently as intended, and can detect invalid or altered records.
For a system built on an LLM, consistent performance as intended is the hardest part. A probabilistic model can give different answers to the same input. That means pinning the model and prompt versions, and keeping a fixed eval suite to rerun whenever anything changes.
Section 11.10(d) requires that only authorized individuals can access the system. The agent is a “user” too, so its service account, API keys and every read and write permission must be listed and approved.
Section 11.10(e) calls for secure, computer-generated, time-stamped audit trails that independently record every action that creates, modifies or deletes an electronic record.
The fourth question sits in Section 11.50. A signed record must show the signer’s name, the date and time of signing, and the meaning of the signature, such as review, approval, responsibility or authorship. A draft written by AI still needs a person who puts their name to it and takes responsibility.
How much testing is enough? QA decides
Every FDE wants to know how far testing has to go. The framework QA usually applies to computerized system validation is ISPE’s GAMP 5. The Second Edition adds an appendix on AI/ML and leans firmly toward a risk-based approach.
Two ideas in GAMP 5 Second Edition should shape how you make your case. The guide puts patient safety and product quality ahead of compliance for the sake of paperwork.
It also stresses the critical thinking of experienced subject-matter experts in choosing the level of assurance. The amount of testing is therefore a judgment rather than a fixed checklist, and QA makes it.
The FDA points the same way. Its Computer Software Assurance (CSA) guidance, issued in February 2026 to replace the September 24, 2025 version, describes a risk-based approach to establishing confidence in production and quality system software.
Note that CSA was written for medical devices. Pharmaceutical QA teams borrow its way of thinking, but do not cite it as though it were binding on your client.
Closer to AI is the FDA’s January 2025 draft guidance on using AI to support regulatory decision-making for drugs and biological products. It proposes a risk-based assessment of model credibility, tied to a context of use (COU).
Risk is derived from model influence combined with decision consequence. AI that makes the final decision with no human intervention is treated as higher risk. The document is still a draft, and its recommendations are non-binding.
A worked example: an agent that drafts deviation reports
Take a hypothetical use case: an agent reads batch records and deviation notes, then drafts the “event description” section for the investigator. The first task is to write a narrow COU.
The agent only reads records and only writes to a draft area. The investigator edits the draft and signs it with the meaning of authorship. The agent does not classify severity and does not close the record.
Next comes the question of GxP impact. The FDA draft excludes AI used solely for operational efficiency that does not affect patient safety, drug quality or the reliability of study results.
Deviation reports bear directly on product quality, so this use case has GxP impact. State that plainly; do not try to dodge it.
Then score risk on two axes. Model influence is low, because a human rewrites and decides. Decision consequence is significant. That combination shows why keeping a human in the loop lowers risk, and why QA may accept a moderate level of testing rather than the maximum.
Finally, map each clause to a design and to evidence. This is the document to bring to your first meeting with QA:
| Clause | What QA will ask | Design | Evidence submitted |
|---|---|---|---|
| 11.10(a) | Does it run consistently and catch altered records? | Pinned model and prompt versions, fixed eval on closed records | Test report tied to each version |
| 11.10(d) | Who and what has access? | Service account reads records only, writes to the draft area only | Approved permission list |
| 11.10(e) | Who created, modified or deleted what, and when? | Each draft stores the model version, the editor and a timestamp | Sample audit trail extract |
| 11.50 | Who is responsible for the content? | Investigator signs with the meaning of authorship | Signed record showing name, time and meaning |
If the client manufactures for the European market, check Annex 22 as well. The draft EU GMP Annex 22 on AI says that dynamic, adaptive and probabilistic models such as GenAI or LLMs should not be used in critical GMP applications.
The EMA is still weighing consultation comments and no final text exists. A narrow, draft-only COU with a human signer will be a stronger argument when the final version arrives.
The mistakes that get a project blocked
The most common mistake is an FDE deciding on their own that a use case is “not GxP” in order to move faster. The FDA draft excludes only AI used for operational efficiency, and whether a use case falls into that group is a matter for careful judgment.
The safe course is to put the classification in writing and get QA’s agreement before building; decide it alone and sooner or later you will be starting over.
The second mistake is reusing an existing admin account for the agent, which gives it access far beyond the scope of the COU. The third is letting the agent write straight into official records without its own audit trail. The fourth is a user interface that says “AI approved”, when Part 11 needs a named person standing behind the meaning of the signature.
There is one more mistake, of tone. When arguing about the level of testing, reason from patient safety and product quality, as GAMP 5 Second Edition frames it, and avoid saying “this is enough testing to pass the audit”. QA trusts people who understand why a rule exists more than people who have merely memorized it.
How this skill shows up on a CV
When reading FDE job postings in pharma or life sciences, look for the terms GxP, CSV, GAMP 5 and Part 11. They tell you the team will work with QA every day.
On a CV, instead of “deployed LLMs for pharma clients”, write that you drafted the COU, mapped Part 11 to the design and agreed a risk-based level of testing with QA. The second version shows a hiring manager that you have taken a system through approval.
Models will change many times over, but the question of who signs stays the same. The FDE who answers it in the first design document is the one QA asks back for the next project.
Was this article useful?
Thanks for the feedback!
8 sources
- 21 CFR § 11.1 - Scope (Cornell LII)
- 21 CFR § 11.10 - Controls for closed systems (Cornell LII)
- 21 CFR § 11.50 - Signature manifestations (Cornell LII)
- What You Need to Know About GAMP® 5 Guide, 2nd Edition (Pharmaceutical Engineering, Jan-Feb 2023) · 2023-01
- Computer Software Assurance for Production and Quality Management System Software (FDA) · 2026-02-03
- Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products (FDA) · 2025-01-06
- FDA releases draft guidance on use of AI (DLA Piper) · 2025-01-23
- GMP multistakeholder workshop: expert contributions to AI guidance development (Annex 22) (EMA)