SystemManufacturing & Quality

Deviation & CAPA Management

Deviation and CAPA management with the evidence for and against every root cause

See one case, screen by screen ↓
Watch with transcript →

Built forQuality assurance leadsInvestigatorsCorrective action ownersMicrobiologistsHeads of quality

The Problem Today

Investigators chase records across systems, so causes default to human error and fixes default to retraining.

15-20%
of deviations recur published

Pulled by hand from each system

  • Batch data
  • Equipment
  • Maintenance
  • Room logs
  • Batches wait on holdProduct held until the investigation closes
  • Fixes stop at one lineThe same equipment on other lines is left out

The Solution

  1. Evidence gathered at onceBatch, equipment, maintenance and room logs for the event window
  2. The fishbone fills itselfMethod, machine, material, people, measurement and environment, each checked
  3. Weighed for and againstEach candidate cause with a confidence and the evidence both ways
  4. QA signs the action planEach action tied to the cause, on every line with the same equipment

Built-in controls

  • Read-only on manufacturing records
  • A deadline no agent can extend
  • Who opened, edited and signed, recorded with the time

What You Get

Investigations close on time more often, and a fix reaches the other lines before the same failure does.

  • Causes tested on the recordsOther causes ruled out with evidence first
  • Past cases checkedEarlier deviations and fixes for the same failure found
  • The report drafted and citedWritten up in the plant's own template
In short

What is Deviation & CAPA Management?

It is software that takes a GMP deviation from the moment it is reported to a root cause and a CAPA plan that QA approves. The plan has owners, due dates and effectiveness checks. Deviation & CAPA Management adds five agents. They gather the records, fill the fishbone, weigh each cause for and against and draft the report. QA reviews and signs.

How to choose AI solutions for life sciences →

Updated

The problem

Deviation investigations spend most of their 30 days collecting records by hand

A drug plant has to follow GMP, the rules for making medicines safely. Anything that departs from the approved process is a deviation. For example, a filter fails its integrity test, a fill weight drifts or a cold room warms up. QA, the quality team, then has to investigate. They find the root cause, judge the effect on the product and raise CAPAs, the corrective and preventive actions. The usual target is 30 days. Most of that time goes on collecting evidence. The evidence includes the batch record, equipment run logs, maintenance work orders and plans, room and utility data and past deviations. Each sits in its own system. The investigator pulls them by hand while the batch waits on hold.

Under that pressure, the investigation settles on the first cause that looks right. The root cause is often put down to human error, and the fix to retraining. The CAPA also covers only the line that failed, so the same equipment on other lines is left out. As a result, the same failure comes back. McKinsey reports that 15 to 20 % of deviations recur. A US rule for drug makers, 21 CFR 211.192, asks for more. Any unexplained discrepancy must get a thorough investigation, and it must extend to other batches that may be affected.

typical15-20%of deviations recur
typical40%shorter deviation closure reported in published gen-AI programs
Where an investigation's days goestimated
By hand19 days
With the solution5 days
  • Reporting, classifying and starting the clock1 → 0.1 d
  • Pulling batch record, equipment, maintenance and room logs6 → 0.5 d
  • Searching past deviations and earlier CAPAs2 → 0.4 d
  • Root-cause analysis with a fishbone and 5-Why5 → 2 d
  • Writing the investigation report and CAPA plan3 → 1 d
  • QA review and signature2 → 1 d

Our estimated split for a typical Minor or Major deviation, in calendar days, by hand and with the solution.

How it works

A reported deviation through five agents to one QA signature

What comes in
Deviation openedRecords and logs · for the event's time window
Agents at work
Evidence gathererrecords and logs
Similarity finderpast cases
Then
Root-cause analystfishbone · for and against
Then
Report writerreport · CAPA plan
A person decides
QA approverapproves root cause and CAPA
What comes out
Investigation report
CAPA plan
Tracked to the 30-day target
One case, step by step

One filling nozzle on Line 1 starts putting too little in each vial

Plant 3 fills 20 mg vials of a sterile product on Line 1, an aseptic filling line. At the morning in-process check, nozzle 4 starts filling light, putting too little product in each vial. This is what happens next, screen by screen, in the working solution.

A worked example on sample data. Names, IDs and figures on the screens and in this section come from the demo.

  1. 01Morning

    The board opens on a fishbone

    QA lead

    The QA lead approves root causes and CAPAs for Plant 3. The board shows 10 open investigations on their 30-day clocks. One of the four awaiting approval is open on screen, a filter integrity test failure on Line 2. It is laid out as a fishbone, a diagram that sorts possible causes into six groups, or bones. Each bone carries what the agents found. A why chain, asking why at each step, runs down to the system cause. That cause is an earlier CAPA that changed only the Line 1 batch record.

    Proposed root cause: “Filter tested while still warm from the hot water flush” · Method, 82 % · QA decides

  2. 02The in-process check

    Nozzle 4 is filling light, reported from the board

    Investigator

    At the in-process weight check, 4 of 5 vials from filling nozzle 4 weigh 1.95 to 1.98 g. The limit is 2.00 to 2.10 g, and the other seven nozzles are in range. Minutes later the line stops, and the production supervisor reports it in one sentence, with the area and the time.

    Clock keeper: “Minor: each light vial rejected by 100 % weighing” · clock started, due in 30 days.

  3. 03The agents start

    Each bone checked, the machine bone last

    Evidence gatherer

    The agents read the records for the event window, bone by bone. Method is clear, because the recipe audit trail shows the fill recipe verified that morning at 2.02 mL on all 8 pumps. The check-weigher passed its daily check, so Measurement is clear. Environment shows bulk solution at 20.6 to 20.9 °C and no alarms. Material and People are clear too. The machine bone fills last, from the maintenance records.

    “Evidence gatherer · Filler manual · section 9.2: seal change due at 1,500 h”

  4. 04Root cause proposed

    A worn tip seal, with what argues against it

    Root-cause analyst

    A work order shows the nozzle set has run 1,840 operating hours. The filler manual (§9.2.3) says to replace the tip seals every 1,500 hours. On top of that, the last nozzle inspection was postponed. The analyst proposes a worn tip seal on nozzle 4, at 76 % confidence. It also lists the evidence against. No drip-back has been seen yet, and engineering inspects that afternoon. Pump 4 could also give the same signal.

    Why chain: “Why not changed? The plan counts months instead of hours, and the last inspection was deferred.”

  5. 05The CAPA

    The CAPA aims at the cause, on each line

    Root-cause analyst

    The first action replaces all 8 tip seals on Line 1, because every seal has the same 1,840 hours. Lines 1, 2 and 4 will change tip seals by operating hours, as Line 3 already does. Postponing a nozzle inspection will need QA review. The check-weigher will alert when one nozzle drifts 1 % from the others. Raising the nozzle 4 dose by 0.06 mL is shown struck out, with the reason.

    Not proposed: “Moves the number back but leaves the worn seal in place. The drift would return, and the other seven seals have the same hours.”

  6. 06The evidence

    Twelve sources, each fact with its passage

    Evidence gatherer and similarity finder

    Each finding is a card with its source and a tag: key finding, contributing, pattern, ruled out or argues against pump. The check-weigher data shows only nozzle 4 drifting, from 2.05 g to 1.99 g, with 1,212 vials rejected low. The similarity finder flags an earlier deviation. On Line 3 the same seal wore out at 1,710 hours, and its CAPA changed the Line 3 plan only.

    “This is a repeat. Lines 1, 2 and 4 use the same nozzle set.”

  7. 07Ranked causes

    Four causes, weighed for and against

    Root-cause analyst

    The analyst ranks four causes. A worn tip seal on nozzle 4 comes first, at 76 %. Piston wear on dosing pump 4 is next, at 17 %. Against it are a recent weight check that passed at 2.021 mL and a piston replaced earlier in the year. A recipe dose not reloaded is at 5 %, because a recipe error would move all nozzles together. Last, a check-weigher reading low is at 2 %, and is ruled out.

    Against a recipe error: “A recipe error would move all nozzles at once.”

  8. 08The report

    The investigation report, drafted and cited

    Report writer

    The report writer drafts the investigation report in the plant template, with a citation on each claim. It covers the summary, the event and immediate actions, data reviewed, root cause, product impact and the CAPA plan. On product impact, no light vial reached the batch. The check-weigher weighs each vial, and it rejected all 1,212 below 2.00 g.

    “Draft v1 · written by the report writer · each claim cited”

  9. 09Review and approve

    The QA lead signs, with the meaning of the signature

    QA lead

    The QA lead reviews the root cause, the product impact and the CAPA plan on one screen. That plan has 5 actions and an effectiveness check. Then the QA lead signs with user ID and password. The signature states its meaning, “I approve the root cause and the CAPA plan”.

    Agents propose. Only named people move a deviation to CAPA or Closed.

  10. 10Signed · day 0 of 30

    Four CAPAs open, each with an owner and a date

    CAPA owner

    The deviation moves to CAPA, and four actions open. The CAPA owner takes the seal changes, and the microbiology lead takes the QA review of postponed inspections. A third owner has the drift alert. The effectiveness check is set. It expects no single-nozzle drift above 1 % on Lines 1 to 4 in the next 90 days.

    “Signed. Deviation moved to CAPA · 4 actions opened”

Who it’s for

Five seats on one investigation, from the floor to the head of quality

The same deviation, seen by the five people who own it. Here is their month before, and their month now.

QA lead
Approves root causes and CAPAs
Before
Reviews 6 to 10 investigations a week. Most are built from records pulled by hand and settle on the first cause that looks right.
Now
Opens the fishbone with each cause's records, for and against, and the CAPA tied to it, then signs.
Investigator
Opens and runs investigations
Before
Opens deviations on the floor as a production supervisor and owns most investigations on two lines. Loses two days just pulling the logs.
Now
Reports a deviation in one sentence. The agents read the batch record, maintenance and room logs and cite each fact.
CAPA owner
Owns equipment CAPAs
Before
Owns maintenance plans, work orders and equipment CAPAs. Needs to hear about a fix scoped to one line before another line breaks.
Now
Gets CAPAs scoped to each line with the same equipment, each with its owner, due date and effectiveness check.
Microbiology and aseptic lead
Rates CAPA effectiveness
Before
Runs investigations on three lines and the effectiveness checks behind them. Does not accept retraining as a root cause.
Now
Rates each CAPA effective or not effective from a list that shows where it came from and when its check is due.
Head of Quality
Approves Critical deviations and extensions
Before
Approves Critical deviations and clock extensions. Expects each one closed in thirty days, or given a written reason.
Now
Gets an extension request drafted with the reason, the work left and a new date. Sees on-time closure and repeats by month and area.
The agents

The fishbone, the 5-Why and the report, filled by five agents

The fishbone fills from the records, each cause is weighed for and against, and every CAPA is tied to its cause. QA approves and signs.

Evidence gatherer

Reads the deviation report and pulls the records for 24 hours around the event. These are the batch record steps, equipment run logs, utility logs and environmental data. Each fact is quoted with its source passage.

  • Reads only the plant, batch and equipment named in the deviation
  • Each fact carries a source passage
  • Read-only access to GMP records, and never changes one
Similarity finder

Searches 36 months of deviations and CAPAs for the same failure mode, equipment class and product. It scores how similar each one is, and checks whether earlier CAPAs covered this line.

  • Shows the similarity score and the reason
  • Never merges or closes records
Root-cause analyst

Fills the six bones: Method, Machine, Material, People, Measurement and Environment. It ranks candidate causes, each with a confidence and the evidence for and against. It builds the 5-Why, asking why at each step down to a system cause.

  • Proposes, and a named QA person approves
  • Shows evidence against as well as for
  • Human error only with the process reason behind it
Report writer

Drafts the investigation report in the plant template: summary, event, immediate actions, data reviewed, root cause with 5-Why, product impact, CAPA plan and effectiveness check.

  • No claim without a citation
  • Marks the draft as draft until QA signs
Clock keeper

Proposes the class from the plant's rules at intake and starts the 30-day clock. Each morning it counts the days of each open deviation. It warns the owner at day 20 and drafts an extension request at day 25.

  • Cannot extend a clock, and only drafts the request
QA approver

Approves root cause and CAPA.

Ask in plain words

A root cause, a late CAPA or a new rule, asked about any deviation

Ask about any deviation, root cause or CAPA, or say what to change. Each answer points to its records. These answers use the sample data.

Why is nozzle 4 filling light?

Most likely a worn tip seal on nozzle 4 (76 %). The nozzle set has run 1,840 hours, and the supplier says to change the seals at 1,500. The last inspection was also postponed. Only nozzle 4 drifts, a little each day. Line 3 had the same cause in an earlier deviation, and its fix stayed on Line 3. The CAPA changes seals by hours on Lines 1, 2 and 4, and leaves the dose alone.

Which investigations could miss the 30-day target?

Two are at risk. Visual inspection rejects on Line 2 are at day 28 of 30, with an extension request drafted for the head of quality. Buffer pH in Suite 2 is at day 26, with one CAPA still in progress.

Why did the Line 2 filter test fail?

Most likely the filter was tested while still warm. It was flushed with water from the hot loop at 79.6 °C and tested 6 minutes later at 41.2 °C. The housing cooled 3.4 °C during the measurement, which reads as extra flow. The retest after a 30-minute cool-down passed at 9.8 mL/min. It is a repeat, because the earlier fix changed the Line 1 batch record only.

Make every sterile-filter test failure a Major deviation

Done. The new classification rule reads: “Any failed integrity test of a sterilizing filter → Major, batch on hold”. It applies to deviations opened from now on. You can change it in Settings.

The screens

The fishbone board, a worn nozzle seal and the signed CAPA plan

From the working solution, on its sample data. Pick one to see it large.

The root-cause boardOpen investigations on their 30-day clocks, the fishbone with each cause and its records, and the proposed root cause.
Report a deviationWhat happened, the area and the time, in one sentence. The clock keeper proposes the class and starts the 30-day clock.
Agents at workThe agents check each bone against the records for the event window. The bone with the root cause comes last.
The proposed root causeA worn tip seal on nozzle 4 at 76 %, with the evidence for and against, the record behind it and the why chain.
CAPA tied to the causeCorrective and preventive actions aimed at the cause on each line, and the symptom-only fix struck out with its reason.
The evidence boardMaintenance records and batch history, each fact tagged and linked to its source, beside the sources panel.
Ranked root causesFour candidate causes with their confidence and what supports and argues against each.
The investigation reportThe draft report in the plant template, each claim cited, ready for QA review.
Approve and signRoot cause, CAPA plan and product impact on one screen, signed with the meaning of the signature.
The CAPA planEach action with its type, owner, due date and status, the effectiveness check, and the lifecycle on the left.
CAPAsOpen CAPAs, due soon and overdue, effectiveness at first check, and each action traced to its deviation.
The dashboardMedian days to a root cause, closure within 30 days, root causes by category and repeat deviations by quarter.
SettingsThe investigation clock, the approvers and how the agents work.
Governance

Signed root causes and read-only evidence in deviation management

Each finding cites its recordEach fact on the evidence board and each claim in the investigation report links to the passage it came from. That might be the batch record step, the work order, the manual section or the check-weigher data.
QA decides and signsRoot cause and CAPA need a QA electronic signature, with the meaning of the signature recorded. Agents propose. Only named people move a deviation to CAPA or Closed.
Evidence against as well as forEach candidate cause shows what supports it and what argues against it, with a confidence. Human error is accepted only with the process reason behind it.
Read-only on GMP recordsThe agents read only the plant, batch and equipment named in the deviation. They do not change a GMP record. Plant data stays in the plant's own workspace.
A clock no agent can extendEach investigation runs on a 30-day clock. The clock keeper warns at day 20 and drafts an extension at day 25. Only the head of quality approves an extension.
Agent steps and human decisions on the activity trailEach agent step and each human decision is recorded with its time. That includes who opened the deviation, who edited the 5-Why, and who signed with what meaning.
Configuration

The 30-day clock and who approves each step

The clock, the approvers and how the agents work are settings the plant chooses.

SettingDefaultChoose from
Target to close an investigation30 days30 days · 45 days · 60 days, in calendar days from opening
Warn the ownerAt day 20At day 15 · At day 20 · At day 25
Start the agents as soon as a deviation is openedOnOn · Off. When off, the investigator starts them from the workspace with one click
Root cause and CAPA plan approverQA leadQA lead · Head of Quality. Electronic signature with its meaning recorded
CAPA effectivenessMicrobiology leadMicrobiology lead · QA lead. Rates each CAPA effective or not effective
Look back for similar deviations36 months24 months · 36 months · 60 months
Call a cause “most likely” only above50 % confidence50 % · 60 % · 70 % confidence
Check every CAPA's scope across all linesOnOn · Off. Flags lines with the same equipment that an action does not cover
Connections

The deviation reports, batch records and maintenance logs a CAPA rests on

Deviation reportswhat happened, where and when, and the immediate actions
Batch recordselectronic batch record steps and in-process checks
Equipment and process datarun logs, check-weigher data, recipe audit trails, calibration checks
Maintenancework orders, preventive maintenance plans, supplier manuals
Environmental and utility logsroom, product and utility temperatures and alarms
Past deviations and CAPAsclosed investigations and actions, searched by failure mode
What it changes

Root-cause time and 30-day closure rates from deviation and CAPA management

Each figure carries its label: a target the solution is built to, an estimate, a typical published result, or a proven one.

target
5days
to a root cause, from the day it is opened
By hand19 days
With agents≈ 5 days
target
94%
of investigations closed within the 30-day target
up from about 60% before agents
typical
40%
shorter deviation closure in published gen-AI programs

“Demo” means seen in the working solution, on its sample plant data. “Target” means the design goal, measured in the live solution. “Estimated” means our estimate. “Typical” means published figures. McKinsey & Company's report, Generative AI: a game changer for biopharma operations, gives about 40 % shorter deviation closure. It also says 15 to 20 % of deviations recur. Regulatory context: 21 CFR 211.192 and ICH Q10 §3.2.2. Names on the screens are sample data.

Questions

Questions QA leads ask about deviation and CAPA management

What is deviation and CAPA management software?

It is software that takes a GMP deviation from the moment it is reported to a root cause and a CAPA plan that QA approves. The plan has owners, due dates and effectiveness checks. Deviation & CAPA Management adds five agents. They gather the records, fill the fishbone, weigh each cause for and against and draft the report. QA reviews and signs.

How does it find the root cause of a deviation?

The evidence gatherer reads the batch record and the equipment, maintenance, utility and room records for the event window. The root-cause analyst fills the six bones of the fishbone. It ranks the candidate causes, each with a confidence and the evidence for and against. Then it builds the 5-Why down to a system cause.

Does it stop root causes defaulting to human error?

It is built to prevent that. The root-cause analyst accepts human error only with the process reason behind it. It shows what argues against each cause as well as what supports it. Investigators and QA see the whole case before anyone signs.

How does it prevent repeat deviations?

The similarity finder searches past deviations and CAPAs for the same failure mode, equipment and product. It also checks how far each earlier CAPA reached across lines. In the sample case, an earlier fix for the same worn seal changed the Line 3 plan only. So the new CAPA covers Lines 1, 2 and 4.

How does it keep investigations inside the 30-day target?

At intake, the clock keeper proposes the class from the plant's rules and starts the clock. It warns the owner at day 20. At day 25 it drafts an extension request with the reason, the work left and a new date. The clock keeper cannot extend a clock. The Head of Quality decides.

Can an agent approve a root cause or close a deviation?

No. The agents have read-only access to GMP records. They propose and draft, and do not approve. Root cause and CAPA need a QA electronic signature with its meaning recorded. Only named people move a deviation to CAPA or Closed.

Can we set our own clock, approvers and classification rules?

Yes. The closure target and the warning and extension days are settings. So are the approvers for root cause, CAPA, Critical deviations, extensions and effectiveness. You can also set whether the agents start on their own and how far back to look for similar cases. The confidence threshold, the CAPA scope check and the classification rules are settings too.

What do we hand over for a first run?

The Agentic Solution Engine builds and deploys it from your requirements and documents. These are your deviation and CAPA procedures, your report template and a sample of past investigations. It goes live once each quality gate has passed. We will walk you through it on your own deviations first.

Run deviation and CAPA management
on your own closed investigations.

We'll run Deviation & CAPA Management on a sample of your own closed investigations.