1---2name: quality-agreement3description: Drafts Quality Agreements for pharmaceutical contract manufacturing. Assigns quality roles between product owners and CMOs under FDA cGMP (21 CFR 210/211), ICH Q7, and related guidance. Use when a user needs a quality agreement, CMO quality terms, or cGMP compliance agreement for contract manufacturing.4---5
6# Quality Agreement for Contract Manufacturing
7
8Drafts an enforceable Quality Agreement defining quality roles, responsibilities, and cGMP compliance obligations between a product owner and a contract manufacturing organization (CMO).
9
10## Prerequisites
11
121. **Manufacturing/supply agreement** — commercial terms, product scope, facility details
132. **Regulatory identifiers** — FDA Establishment IDs, DUNS, DEA registrations (if controlled), ISO certs
143. **Product details** — dosage form, API/finished product, classification (Rx, OTC, biologic)
154. **Existing quality documents** — prior quality agreements, SOPs, inspection history (483s, warning letters)
165. **Specifications** — approved specs, analytical methods, stability protocols
17
18Search user-uploaded documents for existing agreements, specs, and regulatory correspondence before drafting.
19
20## Output Structure
21
22| Section | Key Contents |
23|---------|-------------|
24| Parties & Scope | Legal names, regulatory IDs, product scope, exclusions, quality-over-commercial supremacy clause |
25| Definitions | Regulatory terms, party-specific roles |
26| Quality Unit Authority | Responsibility matrix (see below), independence provisions, escalation paths |
27| Manufacturing & Documentation | Batch records, retention per 21 CFR 211.180, Part 11 compliance |
28| Change Control | Categories, approval workflows, review timelines (see below) |
29| Audit & Inspection | Routine/for-cause/unannounced rights, 483 response coordination |
30| Quality Events & CAPA | Deviation reporting, investigation, CAPA approval, recall authority |
31| Specifications & Release | Method validation (ICH Q2), OOS investigations, stability programs |
32| Personnel & Training | Qualifications, training programs, key personnel change notice |
33| Term & Termination | Duration, termination rights, transition obligations, survival clauses |
34| Appendices | Change control forms, deviation templates, quality metrics, contacts |
35
36### Quality Unit Responsibility Matrix
37
38| Function | Product Owner | CMO |
39|----------|:---:|:---:|
40| Final batch disposition | ● | |
41| In-process controls execution | | ● |
42| Specification approval | ● | |
43| Deviation investigation | | ● |
44| Deviation report approval | ● | |
45| Regulatory submissions | ● | |
46| Environmental monitoring | | ● |
47| Equipment qualification | | ● |
48| Change control approval (major) | ● | |
49| Complaint handling (mfg-related) | | ● |
50| Recall decision authority | ● | |
51
52### Notification Timelines
53
54| Event | Deadline |
55|-------|----------|
56| Critical quality event (safety/regulatory) | 24 hours |
57| Significant quality event | 72 hours |
58| Routine quality event | 5 business days |
59| Unannounced regulatory inspection | 4 hours |
60| Announced regulatory inspection | 24 hours |
61| Key personnel change | 30 days advance |
62
63### Change Control Framework
64
65| Category | Examples | Approval | Review Period |
66|----------|----------|----------|---------------|
67| Minor | Admin SOP updates, like-for-like equipment | CMO QU (notify owner) | 15 business days |
68| Major | Critical process params, alt. suppliers, method revisions | Product owner QU written approval | 30 business days |
69| Emergency | Immediate safety/compliance | CMO implements → retrospective owner approval | Immediate |
70
71Change proposals must include: description, scientific justification, risk assessment (FMEA/ICH Q9), validation protocols if applicable, regulatory impact analysis, implementation timeline.
72
73### Audit Rights
74
75- **Pre-approval** — before manufacturing initiation
76- **Routine** — ≤24-month intervals, 30 days advance notice
77- **For-cause** — triggered by quality events or regulatory concerns
78- **Unannounced** — preserved right for serious quality/regulatory concerns
79- **Scope** — unrestricted access to batch records, validation reports, deviations, training records, personnel interviews, facility inspection
80- **Post-audit** — report within 30 days; CMO CAPA response within 15 business days
81
82### Batch Records & Documentation
83
84- Contemporaneous recording (indelible ink or validated electronic systems)
85- Complete material genealogy and traceability
86- CMO initial review: 5–10 business days post-batch completion
87- Product owner QU review: 10–15 additional business days before disposition
88- Retention: ≥1 year past expiry or 3 years post-distribution (whichever longer) per 21 CFR 211.180
89- Part 11 compliance: system validation, audit trails, data integrity controls
90
91### Termination & Transition
92
93- **Non-renewal notice**: ≥180 days before term expiry
94- **Material breach cure**: 60 days from written notice
95- **Convenience termination**: 180–360 days advance notice
96- **Post-termination**: CMO supports product through shelf life (stability, reserve samples, complaints, inspections)
97- **Document transfer**: Complete batch records and quality documentation within 90 days
98- **Survival**: Confidentiality (indefinite), record retention (regulatory periods), regulatory support (while product in distribution)
99
100## Guidelines
101
102- Use mandatory language ("shall," "must") — never aspirational ("should," "will")
103- Include explicit quality-over-commercial supremacy clause; quality decisions independent from commercial considerations
104- Align with FDA 2016 Guidance: Contract Manufacturing Arrangements for Drugs: Quality Agreements [VERIFY]
105- Address data integrity per FDA 2018 Data Integrity and Compliance with Drug CGMP guidance [VERIFY]
106- For international markets, incorporate ICH Q7, EU GMP Annex 11, WHO guidelines as applicable
107- Include cybersecurity provisions for manufacturing systems and confidential regulatory data
108- Quality agreement governs all quality matters; ensure no conflict with underlying supply agreement
109- If user provides 483s or warning letters, incorporate preventive measures addressing cited deficiencies