AI in biotech

How do you validate a non-deterministic agent under GxP?

What does it take to qualify an agent whose output changes between runs, when that output feeds a regulated decision?

You qualify it the way you qualify an analytical method or a manufacturing process, not the way you validate software. That means five controls: a narrowly bounded context of use, acceptance criteria set on a distribution rather than on a single output, a pinned and change-controlled model version, continued verification after go-live, and a named qualified human reviewer. The reframe matters because on the evidence available today, the failures in regulated settings have been oversight failures rather than stochasticity failures.

By PharosBioPublished on 12 min read

Key takeaways

  • Every documented AI failure in a regulated setting traces to a missing control, not to model stochasticity.
  • FDA's first AI warning letter cited 21 CFR 211.22(c), the quality unit clause, not a computerised-systems rule.
  • ICH Q2(R2) validates precision as degree of scatter inside a pre-set interval, never as identical output.
  • FDA process validation has required continued verification of a drifting process since January 2011.
  • SR 26-2 superseded SR 11-7 in April 2026 and put generative and agentic AI out of scope.
  • The EU's draft Annex 22 excluded generative AI from critical GMP; EMA is now reconsidering that line.
  • Two problems genuinely lack precedent: an unbounded input space, and a model artifact you do not host.

The five controls, in one place

Qualify it as a method or a process rather than as software, whenever the output feeds a regulated decision. Concretely, that means five things.

  1. 1Define the context of use narrowly, and enforce it.Not an agent for regulatory writing, but drafts section 3.2.P.5.1 from these three source document types. A method has a range. Give the agent one.
  2. 2Set acceptance criteria on the distribution, not the instance.Accuracy and precision across a fixed evaluation set, with thresholds fixed before testing, exactly as you would for an assay. The same answer twice is not the bar, and never was for a bioassay either.
  3. 3Pin the model version and put it under change control.This is the control CSV genuinely lacks. A vendor-hosted model that updates silently is an unqualified change to a validated system. Two ways to close it: host the weights yourself, so the artifact is yours and cannot move without your change request; or contract for it, requiring the vendor to serve a named, dated model version through a pinned API endpoint, with notice periods and a deprecation window written into the agreement. Either way the version becomes a controlled item with a number you can put in a deviation report.
  4. 4Run continued verification, not one-time qualification.Sample live outputs on a schedule, trend them against your criteria, and set the drift threshold that triggers requalification before you need it.
  5. 5Name a qualified human reviewer, and document the qualification.Not a human checks it, but a named, trained, accountable person. This is what the first FDA warning letter on the subject was actually about.

Not every agent needs all five

Applying the full set to every deployment is how validation budgets get spent on things that do not matter. The regulatory direction of travel is the opposite: FDA finalised Computer Software Assurance for Production and Quality System Software on 24 September 2025, updated February 2026, which replaces uniform validation with assurance effort scaled to what the software actually decides. Three questions size it: how severe the potential harm is, how likely the failure is, and whether you would detect it if it happened.

One capability lands in three different places depending on the decision it feeds. An agent summarising literature for an internal team meeting is low risk and needs little more than a record of what it did. The same agent informing which programme to pursue is medium risk and needs a review checkpoint with a named reviewer. The same agent again, drafting text that enters a regulatory submission, is high risk and needs all five controls, because the output now reaches a decision about patients. Nothing changed about the model. The only variable is what happens downstream of its output.

Four things hold at every level, and they are cheap: keep a record of what the agent did, be able to show the data behind it was not altered, be able to reproduce a result when asked, and manage updates deliberately rather than incidentally. Two existing documents give you a vocabulary an auditor already accepts: the NIST AI Risk Management Framework (AI 100-1, January 2023) for the risk language, and the MHRA GxP data integrity guidance (March 2018) for ALCOA+, which your quality unit has been applying to records for years and which applies unchanged to records an agent produced.

Industry comment on agents in GxP environments

This reframe is not new. Toni Manzano, chief science officer and co-founder of Aizon, argued in BioPharm Internationalin January 2022 that AI algorithms fall into the same bucket of regulation as multivariate tools, as an analytical math system, and pointed at FDA’s 2011 process validation guidance as the template. Brian Drapeau, founder of GxPFrame, made a closely related argument in Pharmaceutical Technology on 2 September 2026: that the qualification gap is the human operator, not the model.

Is the problem really stochasticity?

The premise deserves testing before it is accepted, so here is the record.

The first FDA warning letter to name an AI agent

It went to Purolea Cosmetics Lab on 2 April 2026, warning letter 320-26-58, and it contains a dedicated section headed Inappropriate Use of Artificial Intelligence in Pharmaceutical Manufacturing. The firm used AI agents to create drug product specifications, procedures, and master production and control records. FDA’s finding: “If you use AI as an aid in document creation, you must review the AI generated documents to ensure they were accurate and actually compliant with CGMP. Your failure to do so is a violation of 21 CFR 211.22(c).” The corrective expectation is explicit: any output or recommendation from an AI agent must be reviewed and cleared by an authorised human representative of the firm’s quality unit.

Read the citation again. 21 CFR 211.22(c) is the quality unit regulation, not a computerised-systems clause. The violation was that nobody reviewed the output. Whether the model was deterministic never entered into it.

There is a detail in that letter worth sitting with. The firm had not performed process validation, and explained that it was unaware of the requirement because the AI agent it used had not told it. That is the whole argument in one sentence: not a machine behaving unpredictably, but a company treating a tool as an accountable party. The firm has since committed to cease production and distribution of drugs at the facility.

Knight Capital, and entirely deterministic software

Unsupervised automation is not a pharmaceutical problem, and the clearest evidence for that sits outside the industry. Finance automated earlier, at higher speed and with tighter feedback loops, so its failures arrived first and were investigated in public. Two of them are worth borrowing, because neither involved a model that behaved unpredictably.

Knight Capital lost more than $460 million in 45 minutes on 1 August 2012. Dormant code from 2005 was reactivated when a technician copied a new deployment to seven of eight servers; the router “rapidly sent more than 4 million orders into the market when attempting to fill just 212 customer orders”. The SEC charged it as a market access rule violation and the firm paid $12 million. Deterministic software throughout. A change-control failure, and a second-reviewer failure.

Zillow Offers, and the verification that never ran

Zillow wound the business down on 2 November 2021 with a $304 million inventory write-down and roughly a quarter of the workforce cut. CEO Rich Barton’s explanation was that “the unpredictability in forecasting home prices far exceeds what we anticipated”. A model whose real-world error was never continuously verified against outcomes.

Three failures, three different technologies, one shared shape: nobody was watching the output against a standard. That is a control failure. It is not a property of probability.

Research can handle stochasticity

Here is what makes the panic strange. Pharma has validated non-reproducible things for decades. It simply does not file that activity under computer system validation.

Method validation already validates scatter

ICH Q2(R2), adopted 1 November 2023, defines precision as the closeness of agreement, the degree of scatter, between a series of measurements obtained from multiple sampling of the same homogeneous sample under prescribed conditions. Its acceptance test is that the observed interval should be compatible with the corresponding accuracy acceptance criteria unless otherwise justified. Nothing in that guideline demands identical output. It demands that variability sit inside a pre-declared interval, which is precisely the test an agent needs.

Process validation already handles drift

FDA’s process validation guidance of January 2011 defines three stages ending in Continued Process Verification, whose goal is “continual assurance that the process remains in a state of control (the validated state) during commercial manufacture”. Pharma has had a legal answer to “it changes after you validate it” for fifteen years.

Regulators already accept probabilistic evidence

FDA’s guidance on Bayesian statistics in medical device trials, final February 2010, accepts that a hypothesis has been demonstrated with reasonable assurance if its posterior probability is large enough. The adaptive designs guidance, final November 2019, permits the design itself to change mid-trial provided the details are completely specified before the trial begins. Pre-specification, not determinism, is the control.

FDA already solved a version of this, for devices

While GMP and banking were writing generative AI out of scope, a different part of FDA had been building a framework for models that change, and had been at it since 2019. It sits in device regulation, which is why it rarely enters the GMP conversation even though the problem is recognisably the same one.

What SaMD is, and what it is not

Software as a Medical Device is defined by the International Medical Device Regulators Forum as software intended to be used for one or more medical purposes without being part of a hardware medical device. A diagnostic algorithm reading mammograms is SaMD. An agent drafting a CMC section, reconciling a batch record or summarising a deviation is not.

That distinction is worth stating plainly, because the two vocabularies are converging in conference talks and they are not the same regime. FDA’s own paper draws the line explicitly: non-device software functions are outside its scope, including software for administrative support of a health care facility, for maintaining or encouraging a healthy lifestyle, for electronic patient records, for transferring, storing, converting or displaying data, and for certain limited clinical decision support. Borrowing this framework for a manufacturing agent is an analogy, not a compliance route. It is a good analogy, and it is not a submission.

Risk is a property of the decision, not the technology

The framework categorises software on two axes: what the information is used for, and how serious the situation is. Those two questions produce four categories, from I at the lowest risk to IV at the highest. Notice that the model itself appears nowhere in the grid.

State of healthcare situationTreat or diagnoseDrive clinical managementInform clinical management
CriticalIVIIIII
SeriousIIIIII
Non-seriousIIII

This is the same logic as the risk-based sizing above, drawn as a grid. The identical algorithm sits in category IV or category I depending on whether it treats a critical condition or informs a decision about a non-serious one. Any organisation trying to tier its own agents can steal this table directly, substituting its own axes for the clinical ones.

FDA has a word for deterministic, and it is not the requirement

The paper defines a locked algorithm as one that provides the same result each time the same input is applied to it and does not change with use, and then spends the rest of its length on the algorithms that are not locked. It states the consequence without flinching: given the same inputs before and after an update, the output of an adaptive algorithm may differ. A regulator wrote down a category for output that changes between runs, described how it would oversee it, and published that in 2019.

FDA’s proposed total product lifecycle approach, redrawn from the 2019 discussion paper. The four numbered touchpoints are the regulatory surface; everything else is an ordinary build, deploy and monitor loop that any team running agents would recognise.

Pre-specify the envelope, then the method for moving inside it

The mechanism at touchpoint 3 is the part worth stealing. A manufacturer declares two things in advance. The pre-specifications are what the model is expected to become as it learns, drawing what the paper calls a region of potential changes around the original specification. The algorithm change protocol is the step-by-step method for getting there safely: the data, the procedures, and the evidence that the thing is still safe and effective afterwards. Declare the envelope, declare how you move inside it, and changes within that envelope stop being unqualified.

Two caveats keep this honest. The 2019 document says of itself that it is being issued for discussion purposes only and is not a draft guidance, so nothing in it binds anyone. And it took five years to become policy: the mechanism landed as FDA’s Predetermined Change Control Plan guidance in December 2024, which is the same idea with a submission attached. That is the pace at which a regulator turns a good idea into a rule, and it is worth remembering before waiting for one.

GMP and banking went the other way

Which makes what happened next harder to explain. In the space of ten months, the two regimes closest to the problem for a manufacturer, GMP and model risk management, both responded to generative AI by putting it outside the scope of the framework rather than extending the framework to cover it. The device track had already shown the extension was possible.

Ten months, two regimes, the same move. The orange markers are exclusions, the electric ones are the frameworks doing the work they were built for, and the June 2026 workshop is the first sign of a reversal.

Europe proposed a ban, and is now walking it back

The EU’s draft Annex 22 on Artificial Intelligence went out for consultation on 7 July 2025, closing 7 October 2025. Its scope section is blunt. Deterministic models, which given identical inputs provide identical outputs, are covered. Models with a probabilistic output are not covered and “should not be used in critical GMP applications”. The same sentence is applied to generative AI and large language models.

The draft contains the right instinct elsewhere: that the acceptance criteria of a model should be at least as high as the performance of the process it replaces, and that metrics should be defined for monitoring drift in input data. That benchmark is exactly right, and it is not a reproducibility test. It is a comparative performance test, which is the logic of method validation.

ISPE objected formally on 7 October 2025, arguing that restricting the annex to static models will restrict innovation and asking that advanced models be allowed in critical GMP applications when justified by science and quality risk management. That objection has landed. EMA convened a multistakeholder expert workshop on 30 June and 1 July 2026 to gather evidence on possible control and mitigation measures such as guardrails, and to shape a risk-based approach for manufacturers wanting to use these technologies in GMP applications. The 2025 consultation, EMA notes, suggested support for enabling generative AI and LLMs in medicines manufacturing.

US banking superseded SR 11-7, and carved agentic AI out

The comparison everyone reaches for is banking, and with reason. Supervisory letter SR 11-7, issued 4 April 2011, opens from the premise that “All models have some degree of uncertainty and inaccuracy because they are by definition imperfect representations of reality”. Its answer was three-part: disciplined development, effective challenge, defined as critical analysis by objective, informed parties that can identify model limitations and produce appropriate changes, and ongoing monitoring including outcomes analysis, which compares model outputs to corresponding actual outcomes. Fifteen years of governing models nobody expected to be reproducible.

On 17 April 2026 that guidance was replaced. SR 26-2, issued jointly by the Federal Reserve, OCC and FDIC as OCC Bulletin 2026-13, supersedes SR 11-7 outright. Its third footnote is the part pharma should read:

“Generative AI and agentic AI models are novel and rapidly evolving. As such, they are not within the scope of this guidance. Nonetheless, a banking organization’s risk management and governance practices should guide the determination of appropriate governance and controls for any tools, processes, or systems not covered in this document.”

So the most mature model risk framework in any industry was revised at exactly the moment it became relevant, and the revision leaves out the models everyone is asking about. It still covers traditional statistical models and non-generative AI. A request for information on banks’ use of AI is promised, with no date.

Read the second sentence of that footnote again, though, because it is the useful part. Firms are told to use their own governance practices to set controls for anything the guidance does not cover. That is a delegation, not a moratorium, and Europe is arriving at the same place from the opposite direction. Whichever way either consultation lands, the controls are yours to design.

Where each rule comes from

ControlThe evidence behind it
Name a qualified human reviewerPurolea, 2 April 2026, cited under 21 CFR 211.22(c), the quality unit clause, for not reviewing AI-generated records. Drapeau's argument that the operator is the unqualified element.
Acceptance criteria on the distributionICH Q2(R2) validates degree of scatter against a pre-set interval, not identical output. Manzano made this transfer in January 2022.
Continued verification after go-liveFDA process validation Stage 3, continual assurance that the process remains in a state of control. Zillow's $304 million write-down is what its absence costs.
Pin the version, change-control itKnight Capital: more than $460 million in 45 minutes from a deployment that reached seven of eight servers. FDA's Predetermined Change Control Plan is the pre-authorised envelope answer.
Bound the context of useThe genuine gap. An assay has a validated range, a text box does not. No regulator has solved this; Annex 22 avoided it by excluding the models.
Independent challenge, not self-certificationSR 11-7's effective challenge by parties independent of the developers, run in banking since 2011 and not carried into the 2026 revision for agentic models.

What to do while the rules are still being written

Two things are true at once, and most of the discourse picks one. The first is that stochasticity is controllable. A model version can be pinned, an evaluation set can be fixed, an acceptable interval can be declared in advance and then watched indefinitely to see whether performance stays inside it. That is not a novel proposal. It is what pharma already does to a bioassay and to a manufacturing process, neither of which gives the same answer twice. Nothing about a probability distribution puts a system beyond control. For what that looks like on one concrete workflow, the certificate of analysis handoff with a contract manufacturer, see can an AI agent take over CDMO paperwork.

The second is that this really is a new category of computation, which is why the legislation is lagging rather than merely slow. The clearest evidence is Europe’s own handling of it: an exclusion written into the Annex 22 draft in July 2025, and within a year a multistakeholder workshop convened to work out the guardrails that would let those models back in. That is not a regulator being cautious. It is a regulator drafting against a moving object, and the same hesitation shows in a US banking revision that declined to extend fifteen years of model risk practice to the models everyone is asking about.

So the honest position is that nobody has the definitive answer yet, this article included. What it offers instead is a transfer: controls that already work on systems that vary, taken from the qualification logic of an analytical method, the continued verification of a process, the version discipline of change control, and the independent challenge of model risk management, and applied to agents until something purpose-built replaces them. Treat it as a defensible estimate of how to control an agentic system in production, not as a standard.

And on the evidence, the thing that has actually caused enforcement, losses and shutdowns is not that the machine was uncertain. It is that nobody was accountable for reading what it said. That failure predates AI by a century, and pharma already knows its name.

Related reading: how to validate agentic AI in bioinformatics covers the technical failure taxonomy underneath these controls, and where to put the human checkpoint covers which review positions actually change outcomes.

Glossary

TermWhat it means here
GxPThe family of good practice regulations (GMP, GCP, GLP, GDP) governing regulated pharmaceutical activity
CSVComputer system validation: documented evidence that a computerised system does what it is specified to do, assuming a static binary and a bounded input space
Context of useThe narrow, written statement of what the agent is qualified to do and on what inputs; the equivalent of an analytical procedure's validated range
Continued Process VerificationStage 3 of FDA process validation: ongoing collection and statistical evaluation of production data to confirm the process stays in its validated state
Effective challengeSR 11-7's term for critical analysis by objective, informed parties able to identify model limitations and force changes; depends on incentives, competence and influence
Outcomes analysisComparing model outputs to corresponding actual outcomes, back-testing being one form; the control Zillow Offers lacked
PCCPPredetermined Change Control Plan: an FDA mechanism to pre-authorise a defined envelope of future model changes with acceptance criteria fixed in advance
21 CFR 211.22(c)The US regulation making the quality unit responsible for approving procedures and specifications; the clause cited in FDA's first AI warning letter
Annex 22The EU GMP annex on artificial intelligence, drafted July 2025, currently excluding probabilistic and generative models from critical GMP applications
SaMDSoftware as a Medical Device: software for a medical purpose that is not part of a hardware device. A GMP manufacturing agent is not SaMD
TPLCTotal product lifecycle: overseeing a model from premarket development through real-world performance rather than at a single gate
Locked algorithmFDA's term for one that gives the same result for the same input and does not change with use; the paper treats it as one end of a spectrum, not the requirement
SPS and ACPPre-specifications declare what the model may become; the algorithm change protocol declares the method for getting there safely. Together they became the PCCP
CSAComputer Software Assurance: FDA's risk-based successor to blanket validation, final September 2025, sizing effort by severity, probability and detectability
ALCOA+Data integrity principles requiring records to be attributable, legible, contemporaneous, original and accurate, plus complete, consistent, enduring and available
SR 26-2The April 2026 interagency revision of US model risk management guidance, superseding SR 11-7 and excluding generative and agentic AI from scope

Frequently asked questions

Can a non-deterministic AI agent be validated under GxP?

Yes, but not as software. Qualify it the way you qualify an analytical method: define a narrow context of use, set acceptance criteria on accuracy and precision across a fixed evaluation set, and verify performance continuously after go-live. Pharma has validated variable systems, including every bioassay, for decades.

Does EU Annex 22 ban generative AI in GMP?

The July 2025 draft excluded it, stating that probabilistic models and LLMs should not be used in critical GMP applications. That position is under active revision: EMA held a multistakeholder workshop on 30 June and 1 July 2026 to shape a risk-based approach with guardrails, after consultation showed support for enabling such models.

What did FDA's first AI warning letter actually cite?

21 CFR 211.22(c), the quality unit regulation, not any computerised-systems clause. The finding against Purolea Cosmetics Lab was that AI-generated specifications and master production records were never reviewed by a person. Determinism was never at issue; accountability for reading the output was.

Does SR 11-7 still cover AI models?

No. SR 26-2, issued 17 April 2026, supersedes and replaces SR 11-7. Its footnote 3 states that generative and agentic AI models are not within scope, while the principles continue to apply to traditional statistical models and non-generative AI. A request for information on AI is promised.

What acceptance criteria should an AI agent meet?

Criteria on a distribution, not an instance. Fix an evaluation set, define accuracy and precision thresholds before testing, and require the observed interval to sit inside them, exactly as ICH Q2(R2) requires of an analytical procedure. Reproducing an identical answer twice is not the bar and never was for a bioassay.

Does FDA's SaMD framework apply to a GMP manufacturing agent?

No. Software as a Medical Device covers software with a medical purpose, and FDA's paper explicitly excludes non-device functions such as administrative support, record keeping and data display. An agent drafting a CMC section is not SaMD. Borrow the framework as a model for risk tiering and change control, but it is not a compliance route.

Is CSV enough for an AI agent?

No, for two specific reasons rather than a general one. Computer system validation assumes a bounded input space, which a text box does not have, and a static binary, which a vendor-hosted model is not. Everything else it asks for still applies.

Sources

  1. 1.Toni Manzano (Aizon): Qualifying AI Algorithms in Pharmaceutical Manufacturing, BioPharm International, Vol. 35 No. 1, January 2022
  2. 2.Brian Drapeau (founder, GxPFrame): Pharma’s AI ROI Problem Isn’t a Tech Problem but a Qualification Problem, Pharmaceutical Technology, 2 September 2026
  3. 3.US FDA: Warning Letter 320-26-58, Purolea Cosmetics Lab, 2 April 2026
  4. 4.US SEC: SEC Charges Knight Capital With Violations of Market Access Rule, 16 October 2013, on events of 1 August 2012. The seven-of-eight-servers detail is in the administrative order, Release No. 34-70694, rather than the press release. The widely repeated $440 million figure is wrong; the SEC states more than $460 million
  5. 5.Zillow Group: Third Quarter 2021 Financial Results and Plan to Wind Down Zillow Offers, 2 November 2021. Company-issued
  6. 6.ICH: Q2(R2) Validation of Analytical Procedures, adopted 1 November 2023
  7. 7.US FDA: Process Validation: General Principles and Practices, final guidance, January 2011
  8. 8.US FDA: Adaptive Designs for Clinical Trials of Drugs and Biologics, final guidance, November 2019, and the Bayesian statistics in medical device trials guidance, final 5 February 2010
  9. 9.Board of Governors of the Federal Reserve System: SR 11-7, Guidance on Model Risk Management, 4 April 2011 (OCC Bulletin 2011-12)
  10. 10.Federal Reserve, OCC and FDIC: SR 26-2, Revised Guidance on Model Risk Management, 17 April 2026, issued as OCC Bulletin 2026-13. Supersedes SR 11-7; footnote 3 excludes generative and agentic AI from scope
  11. 11.NIST: Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1, January 2023. Voluntary, non-sector specific
  12. 12.MHRA: GXP Data Integrity Guidance and Definitions, revision 1, March 2018. The ALCOA+ principles
  13. 13.US FDA: Proposed Regulatory Framework for Modifications to AI/ML-Based Software as a Medical Device (SaMD), discussion paper and request for feedback, 2 April 2019. Source of the risk grid, the locked-algorithm definition and the lifecycle figure. Issued for discussion only, explicitly not a draft guidance
  14. 14.US FDA: Computer Software Assurance for Production and Quality System Software, final guidance 24 September 2025, updated February 2026
  15. 15.US FDA: Marketing Submission Recommendations for a Predetermined Change Control Plan for AI-Enabled Device Software Functions, final guidance, 4 December 2024
  16. 16.European Commission: Draft Annex 22: Artificial Intelligence, consultation 7 July to 7 October 2025. Draft, not adopted
  17. 17.EMA: Multistakeholder workshop on expert contributions to AI guidance development (Annex 22), 30 June and 1 July 2026
  18. 18.ISPE: Comments on Draft Annex 22, Artificial Intelligence, 7 October 2025

Someone has to write the controls the regulators just deferred

Both frameworks now tell you the same thing: your own governance practices determine the controls for anything they do not cover. We work with companies on exactly that: where your data creates leverage, what to build first, and custom agents that run your science the way your team actually runs it, from proof-of-concept to production.