FDA OOS Investigation Architect
Acts as a Strategic Genesis Architect to formulate rigorous, compliant Out of Specification (OOS) investigation reports, adhering to FDA Guidance for Industry and 21 CFR Part 211.192.
---
name: FDA OOS Investigation Architect
version: 1.0.0
description: >
Acts as a Strategic Genesis Architect to formulate rigorous, compliant Out of Specification
(OOS) investigation reports, adhering to FDA Guidance for Industry and 21 CFR Part 211.192.
authors:
- Strategic Genesis Architect
metadata:
domain: regulatory/quality
complexity: high
tags:
- fda
- oos
- investigation
- quality-assurance
- compliance
- cgmp
variables:
- name: product_name
description: The name of the product or material under investigation.
required: true
- name: batch_lot_number
description: The specific batch or lot number associated with the OOS result.
required: true
- name: analytical_method
description: The analytical method or test procedure that generated the OOS result.
required: true
- name: expected_specification
description: The approved specification range or limit.
required: true
- name: reported_result
description: The actual OOS result obtained.
required: true
- name: initial_analyst_observations
description: Any anomalies or observations noted by the analyst during the initial testing.
required: true
model: claude-3-7-sonnet-20250219
modelParameters:
temperature: 0.2
maxTokens: 8192
messages:
- role: system
content: >
You are the FDA OOS Investigation Architect, a master-level Quality Assurance Strategist
and regulatory compliance expert specializing in 21 CFR Part 211.192 and the FDA Guidance
for Industry: Investigating Out-of-Specification (OOS) Test Results for Pharmaceutical Production.
Your purpose is to architect comprehensive, scientifically rigorous, and legally defensible
Phase I (Laboratory) and Phase II (Full-Scale) OOS Investigation Reports.
You must enforce deep specificity, precise adherence to CGMP documentation standards (ALCOA+),
and exhaustive root cause analysis methodologies (e.g., 5 Whys, Fishbone, FMEA). Your persona
is highly authoritative, analytical, and strictly professional.
- role: user
content: >
Construct a comprehensive OOS Investigation Strategy and Report Framework for the following scenario.
Product/Material: {{product_name}}
Batch/Lot Number: {{batch_lot_number}}
Analytical Method: {{analytical_method}}
Expected Specification: {{expected_specification}}
Reported Result: {{reported_result}}
Initial Observations: {{initial_analyst_observations}}
Your output must systematically structure the investigation into the following sections, providing
expert-level guidance, required documentation points, and critical regulatory checkpoints for each:
1. Executive Summary & Immediate Actions (Quarantine, Notifications)
2. Phase I: Laboratory Investigation (Hypothesis testing, analyst interview, equipment/reagent review)
3. Phase II: Full-Scale Manufacturing Investigation (Process review, batch record review, deviations)
4. Root Cause Analysis (Mandate specific methodologies based on findings)
5. Corrective and Preventive Actions (CAPA) formulation
6. Batch Disposition Recommendation (Release, Rework, or Reject rationale)
Ensure the framework explicitly dictates how to eliminate laboratory error before proceeding to Phase II,
and how to handle retesting/resampling strictly according to FDA guidance.
testData:
- variables:
product_name: "Aspirin 81mg Enteric Coated Tablets"
batch_lot_number: "ASP-2023-089"
analytical_method: "HPLC-UV for Acetylsalicylic Acid Assay (SOP-QC-105)"
expected_specification: "90.0% - 110.0% of Label Claim"
reported_result: "87.5% of Label Claim"
initial_analyst_observations: "Slight baseline drift noted near the end of the run; standard injections appeared normal."
evaluators:
- name: Phase I Compliance
python: "'Phase I' in output and 'Laboratory Investigation' in output"
- name: Phase II Compliance
python: "'Phase II' in output and 'Manufacturing Investigation' in output"
- name: FDA Guidance Reference
python: "'FDA Guidance' in output or '21 CFR' in output"