Design prototype · Built on Stockurai
Batch disposition triage for QA release review
Prepared for Jane Doe · Pharmaceutical manufacturing · December 3, 2026
Sample data for illustration.DecisionWhich batches are ready for QA release review, need a hold, or should be rejected
OptionsRelease-ready · Hold · Reject
Data sourcesLIMS results export, Batch record review system, Deviation and change control log
PolicyPrioritize and flag only; the QA unit signs every final release
STEP 01
Targets
Targets are what the system watches. Here, they are the batches awaiting disposition, with open record exceptions and deviations pulled from source systems.
| Target | Product | Open exceptions | Open deviations | Status |
|---|---|---|---|---|
| B-24117 | Tablets 500 mg | 0 | 0 | Active |
| B-24121 | Oral suspension | 2 | 1 | Watching |
| B-24124 | Tablets 500 mg | 7 | 0 | Watching |
| B-24109 | Sterile vial | 1 | 1 | Active |
STEP 02
Target detail
Where the feeds meet: the lab and plant (test results and environmental monitoring) and the quality records (exceptions, deviations, change controls). Every recommendation is weighed against both.
B-24117 release test results
| Test | Spec | Result | Status |
|---|---|---|---|
| Assay | 95.0–105.0% | 99.2% | Pass |
| Dissolution (Q) | ≥80% at 30 min | 91% | Pass |
| Content uniformity | AV ≤15.0 | 4.8 | Pass |
| Water content | ≤3.0% | 1.7% | Pass |
| Related substances | ≤0.5% total | 0.21% | Pass |
| Microbial limits | <100 CFU/g | <10 CFU/g | Pass |
Batch file status
Record exceptions0 open · 3 closed
DeviationsNone open
Change controlsCC-1102 closed 11/18
Environmental monitoringWithin action limits
In-process checksAll in limits
Feeds
LIMSIn-process, release and environmental monitoring results · Every 15 minutes
Batch recordsReview exceptions raised and closed per batch · Hourly
QMSOpen deviations and change controls by batch · Daily
STEP 03
Alerts: what the system watches for
Alerts are code-free. Pick a field, an operator and a value. Each alert watches one thing, such as an assay result against its spec or an open deviation, and fires when it happens.
Edit alert
Assay within specification
Assay result
Between
Spec range 95.0–105.0%
Each result
PreviewAssay result between spec range 95.0–105.0%
Configured alerts
All release tests in specLIMS
In-process results in limitsLIMS
EM within action limitsLIMS
Release test out of specLIMS
Record exceptions closedBatch records
No open deviation or changeQMS
STEP 04
Decision logic: alerts, conditions, plays and rules
Alerts evaluate data in real time. Conditions add triggered alerts up to a score, and plays organize the conditions. Rules turn a play’s score into a real-time recommendation on the live feed. The policy gate means no rule ever releases a batch; it only sets review priority, and the QA unit signs the final release. Rules drive the recommendations, not AI.
Play: Prioritize batches for QA release review
+30Tests in spec
- All release tests in spec
- In-process results in limits
+15Record clean
- Record exceptions closed
+15No open deviations
- No open deviation or change
+10Environment in limits
- EM within action limits
Rules
Score ≥ 60RELEASE-READY
Score 30–59HOLD
Confirmed out-of-spec resultREJECT
Policy gate
Final releaseSigned by the QA unit only
Rules doPrioritize and flag, never release
Reject needsQA investigation before disposition
ApprovalQA unit
STEP 05
Live feed
This is the screen the decision team watches. Each card is a recommendation on one batch, printed the moment its rule is met, with the score and time it fired.
Release-ready (1)
B-24117 Score 70 · All conditions met
Tests in spec, 0 open exceptions or deviations; first in QA queue
Tests in spec, 0 open exceptions or deviations; first in QA queue
Reject (1)
B-24109 Confirmed OOS · Sterility
Sterility failure confirmed, no lab error found; refer to QA investigation
Sterility failure confirmed, no lab error found; refer to QA investigation
Hold (2)
B-24121 Score 55 · Open deviation
DEV-0388 (mixing time) still open; tests and EM clear
DEV-0388 (mixing time) still open; tests and EM clear
B-24124 Score 55 · 7 record exceptions
Mostly missing signatures; resolve before review
Mostly missing signatures; resolve before review
STEP 06
Audit trail: one recommendation, start to finish
Every recommendation is logged and traceable. QA can see which results and records arrived, which conditions were met, who reviewed the recommendation and how much review time it saved.
B-24117 — Audit trail
Data received
LIMS feed6 of 6 release tests pass, finalized 11/19 13:40
Batch records feed0 open exceptions, 3 closed
QMS feedNo open deviations or change controls
Play evaluated → rule fired
✓ Tests in spec (+30)
✓ Record clean (+15)
✓ No open deviations (+15)
✓ Environment in limits (+10)
Score70 → RELEASE-READY
Policy gatePassed: priority only, QA unit signs final release
Decision
ActionQueued first for QA release review
Reviewed byQA unit, 14:22
Outcome
Full-record review baseline6.5 h, focused review 3.4 h
Result3.1 h review time saved on this decision
STEP 07
Daily flags
A short daily list of things worth a look, separate from the live feed. Confirmed out-of-spec results, deviations open too long, unusual exception counts and environmental trends.
LIMSB-24109 sterility failure confirmed
Lab investigation found no assignable cause; Reject rule armed
QMSDEV-0388 open 12 days on B-24121
Target is closure before batch review starts
Batch recordsB-24124 has 7 exceptions, usual is 2
Mostly missing signatures on the packaging record
LIMSGrade B particle counts rising 2 weeks
Still under action limit; watch trend
STEP 08
ROI scoring and baseline
The optimization engine scores every decision. Every recommendation is measured against full QA review of every batch record, and against the shortest review that still catches every batch that should be held. The gap is the ROI you can measure.
| Target | Decisions | Avg review time (h) | Baseline | Best possible | Captured | Result vs baseline |
|---|---|---|---|---|---|---|
| Tablets 500 mg | 62 | 3.4 | 6.5 | 2.4 | 76% | −3.1 h per batch |
| Oral suspension | 38 | 4.1 | 6.0 | 2.8 | 59% | −1.9 h per batch |
| Sterile vial | 24 | 7.2 | 9.5 | 4.6 | 47% | −2.3 h per batch |
Baseline: Full QA review of every batch record. Best possible: Shortest review with no missed hold. Sample figures; in a live installation, these come from the organization’s own decisions and data.
STEP 09
Fit and next steps
What we’d check first
Why
- A repeated per-batch decision with structured results, exceptions and deviations, and QA keeps final sign-off
To verify
- Whether LIMS, batch record and QMS data can be exported on a schedule
- Validation and data integrity requirements for this use
- How QA wants the score thresholds set and reviewed
Extend with AI
- Reading free-text exception and deviation comments to flag likely holds
Next step: a formal proposal
ScopeThe decision, targets and data feeds
RulesRules and policy gate, written out
ROIHow ROI is measured against the current process
TermsSetup estimate, timeline and license terms
Where it runsThe organization’s own AWS account
For IT and data teams: an AI data pipeline
Stockurai is licensed to researchers and institutions for real-time analysis of equity markets, with AI and machine learning built into the process. The same AI data pipeline can be built for this decision.
- It runs entirely in the organization’s own AWS account, and all data stays there.
- Every recommendation is stored with the full data behind it: labeled records data teams can use to train and test models.
- Built with AI in mind, making maintenance and extension simple for a single technical resource.
Design prototype prepared by Stockurai · Sample data for illustration only · stockurai.com