A deviation-triage agent prompt for regulated labs, with human sign-off

nlarusstone · x · 2026-11-11

Day 23 of an 'an agent a day' series: a Deviation Triage Agent that fires whenever a new deviation is registered. It pulls related notebook entries, samples, equipment and reagent lots, searches past deviations for similar events, summarizes their root causes and CAPAs and whether those CAPAs prevented recurrence, then drafts an investigation outline and proposes a severity with reasoning.

Guardrails: flag cases where 'human error' is proposed as root cause without supporting evidence; assign the draft to the QA owner; never change deviation status or close anything — a person signs off on every decision. The author argues regulated labs are overrun by paperwork and stand to benefit most from agents handling the administrative burden.

Original post →

More from coding & agent

coding & agent channel →