When an AI agent works under a user's credentials, the audit trail records that person as the author of something they did not do. In a GxP system, that breaks the "attributable" principle. The practical fix is to give the agent its own identity and propose-only permissions, keep the decision signed by a named person, and validate those three things as part of the system.
The problem: the audit trail cannot tell the person from the agent
At Endpoints News' AI Day in October 2026, AI leaders from three large pharmaceutical companies named agent identity and permissions as one of their adoption problems: how to manage the user and agent pair, and how to keep a trail that can be audited.
The most common case is simple. A QA specialist opens the deviation system, launches an assistant, and asks it to prepare the investigation. The assistant reads the batch record, looks up previous deviations, fills in fields, and attaches documents. If all of that runs under the specialist's session, the audit trail will say she wrote every field, at the exact time the agent wrote it.
During an inspection, the question is direct: who wrote this root cause? If the honest answer is "the model wrote part of it and the person wrote the rest, but the system cannot tell which," the record is not attributable. The content does not have to be wrong for that to become a finding. It is enough that nobody can reconstruct who did what.
What the regulations ask for today
It helps to separate what is in force from what is still a draft.
In force. 21 CFR Part 11 requires secure, computer-generated, time-stamped audit trails that independently record operator entries and actions that create, modify, or delete electronic records (11.10(e)). It requires limiting system access to authorized individuals (11.10(d)), authority checks on who performs each operation (11.10(g)), and electronic signatures that are unique to one individual and never reassigned (11.100(a)). The current EudraLex Annex 11, from 2011, asks systems to record the identity of operators entering, changing, confirming, or deleting data, with date and time (section 12.4).
Neither text mentions agents. Both assume that an identified person stands behind every action. An agent acting under someone else's session quietly breaks that assumption.
In draft. The revised Annex 11 that the European Commission put out for consultation from July 7 to October 7, 2025, is more explicit. It requires unique, personal accounts and treats shared accounts with write access as a data integrity violation (11.1). It calls for segregation of duties and least privilege (11.10). And it asks the audit trail to capture unambiguously who made the change, including their role, what changed, with old and new values, and when (12.2).
The draft Annex 22, from the same consultation, leaves generative AI and large language models out of its scope and says they should not be used in critical GMP applications. In non-critical ones, a person with adequate qualification and training should always be responsible for making sure the output is suitable for the intended use, which the draft calls "human-in-the-loop." When a model provides input to a human decision, the intended use description should include the operator's responsibility (3.3), and records of that review should be kept (10.5).
Neither draft is final. As of today, the EudraLex page still lists the 2011 Annex 11 and no Annex 22, and the scope of Annex 22 may change in the final text. Even so, what they ask about identity and traceability is the strictest reading of principles already in force, and it is reasonable to design with them in mind.
An example: the agent that prepares a deviation investigation
Here is the same case designed so the trail holds up in an inspection.
Its own identity. The agent has its own account in the quality system, separate from any person's, with a name that identifies it and a named owner. It does not inherit the session of whoever launches it. The audit trail records two things for every action: which agent acted and at which user's request.
Propose-only permissions. The agent's account can read the batch record, previous deviations, and the procedures it needs. It can write to a draft area of the investigation. It cannot close the deviation, approve a CAPA, change the risk classification, or sign. The system enforces those limits at the moment of each action, not the instructions given to the model.
Every proposal, with its sources. When the agent proposes a root cause, the record keeps which documents it consulted, which model and configuration version was in use, and what text it proposed. If someone asks tomorrow why that cause was suggested, it can be reconstructed.
The decision, signed by a person. The specialist reviews the proposal and accepts, edits, or rejects it, and her electronic signature is linked to that decision with its meaning: review, approval, or responsibility. The trail shows what the agent proposed and what the person decided. If she rewrites the root cause, the change is recorded with the old and new values.
With this design, the answer to "who wrote this root cause?" is in the record itself: the agent proposed this text, with these sources and this version, and this person approved it with these changes.
What needs to be validated
An agent like this is not validated only on how well it writes. Three things have to work every time, and they are tested like any other system requirement.
- Permissions. Tests that try to make the agent close a deviation, approve a CAPA, or sign, and confirm that the system blocks it. Periodic review of each agent's permissions, the same way people's accounts are reviewed.
- The model and configuration version. The model, its instructions, and the sources it can reach under change control. If any of them changes, the impact is assessed before it is used in production.
- The record of the human decision. Tests that show the trail separates what the agent proposed from what the person decided, cannot be edited, and can be searched and reviewed.
On top of that comes what any AI model in a regulated process needs: a written intended use, a defined level of autonomy, test data, recorded oversight, and monitoring in production. At ComplAI we sum this up as the seven pieces of evidence that come with every model, documented alongside development, as we explain in our method.
What this means if you work in a regulated environment
If your company already uses assistants or agents connected to GxP systems, the first check is simple: look at the audit trail of a record an agent has touched. If you cannot tell what the agent did from what the person did, you have a data integrity problem, even if the content is correct.
Some questions for your next system review:
- Does the agent have its own account, or does it use the account of whoever launches it?
- Are its permissions limited by the system, or only by its instructions?
- Is the model and configuration version recorded for every action?
- Does a person always sign the final decision, and can you see what changed from the proposal?
- Do audit trail and access reviews include agents?
Some things are still unknown. Neither the revised Annex 11 nor Annex 22 has a final text, and no agency has published criteria specific to agents. The prudent approach is to design to the strictest reading of current principles (attributable, least privilege, personal signature) and revisit the design when the final texts come out. To review what the drafts ask for today, you can start with our Annex 22 guide and our compliance page.
An agent can prepare a lot of work. The decision still belongs to a person with a name and responsibility, and the trail has to be able to prove it. If you want to review how an agent fits into one of your processes, let's talk.
Sources
- Endpoints News, "Agents, AI slop and the biosecurity gap: Five takeaways from our third AI Day," October 21, 2026: https://endpoints.news/5-takeaways-from-endpoints-ai-day-agents-ai-slop-biosecurity
- 21 CFR Part 11, Electronic Records; Electronic Signatures (eCFR, current text): https://www.ecfr.gov/current/title-21/chapter-I/subchapter-A/part-11
- EudraLex Volume 4, Annex 11, Computerised Systems (January 2011 revision, in force): https://health.ec.europa.eu/medicinal-products/eudralex/eudralex-volume-4_en
- European Commission, consultation on Chapter 4, revised Annex 11, and new Annex 22 (drafts; consultation closed October 7, 2025): https://health.ec.europa.eu/consultations/stakeholders-consultation-eudralex-volume-4-good-manufacturing-practice-guidelines-chapter-4-annex_en