@rasensio/aidlc-content 2.27.0 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/templates.d.ts +7 -0
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +9 -0
- package/dist/templates.js.map +1 -1
- package/docs/cost-tracking.md +25 -3
- package/docs/hygiene-and-compliance.md +30 -3
- package/docs/index.yaml +6 -0
- package/docs/knowledge-graph.md +2 -2
- package/docs/lifecycle.md +14 -0
- package/docs/reviews-and-guidance.md +4 -2
- package/docs/roadmap.md +55 -14
- package/docs/skills-and-platforms.md +29 -11
- package/guidance/index.yaml +5 -0
- package/guidance/mermaid-diagrams.md +219 -0
- package/howto/make-a-custom-template.md +78 -0
- package/package.json +1 -1
- package/packs/gxp/controls.yaml +479 -0
- package/packs/gxp/guidance/gxp-constraints.md +159 -0
- package/packs/gxp/pack.yaml +35 -0
- package/packs/sox/controls.yaml +2 -1
- package/packs/sox/guidance/sox-constraints.md +2 -1
- package/resources/rules/decision-register.md +3 -3
- package/resources/rules/departures.md +3 -1
- package/resources/rules/fresh-main.md +25 -0
- package/resources/rules/unattended.md +1 -1
- package/skills/00-overview.md +3 -4
- package/skills/03-entry-point.md +1 -0
- package/skills/20-requirements.md +1 -0
- package/skills/30-design.md +16 -3
- package/skills/50-testing.md +15 -0
- package/skills/60-deployment.md +38 -4
- package/skills/81-continue.md +2 -1
- package/skills/84-autopilot.md +1 -1
- package/skills/90-retrospective.md +1 -1
- package/templates/quick-feature.yaml +3 -0
- package/templates/system.md +39 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
# GxP: FDA 21 CFR Part 11 (Subparts B and C), EU GMP Annex 11 (2011 version) and
|
|
2
|
+
# GAMP 5 Second Edition — the validation evidence one change to a regulated system
|
|
3
|
+
# leaves in the AIDLC trail.
|
|
4
|
+
#
|
|
5
|
+
# Ids (part-11-gxp-pack/AC-6, AC-7):
|
|
6
|
+
#
|
|
7
|
+
# P<s>.<n> the n-th lettered paragraph of Part 11 section 11.<s>:
|
|
8
|
+
# `P10.5` is 11.10(e), `P300.4` is 11.300(d). 11.50(a) and (b) are
|
|
9
|
+
# `P50.1` and `P50.2`.
|
|
10
|
+
# P<s> a Part 11 section with no lettered paragraphs: `P30` is 11.30,
|
|
11
|
+
# `P70` is 11.70.
|
|
12
|
+
# AX<c> Annex 11 clause c: `AX9` is clause 9, audit trails.
|
|
13
|
+
# AX<c>.<n> Annex 11 clause c.n: `AX4.4` is clause 4.4, user requirements.
|
|
14
|
+
# Clause 14's points (a) to (c) are written `AX14.1` to `AX14.3`.
|
|
15
|
+
#
|
|
16
|
+
# The validator rejects `11.10(e)`, so the paragraph letter becomes its position.
|
|
17
|
+
# No other pack uses `AX`, and SOC 2's privacy ids stop at `P8.1`, so no id here meets
|
|
18
|
+
# another pack's: `aidlc compliance check` keys agent outcomes by control id across
|
|
19
|
+
# every installed pack.
|
|
20
|
+
#
|
|
21
|
+
# GAMP 5 has no clause numbers, so it gets no ids. The constraint layer maps its
|
|
22
|
+
# deliverables to the trail's artifacts instead.
|
|
23
|
+
#
|
|
24
|
+
# The text below paraphrases the regulations in this pack's own words and cites
|
|
25
|
+
# section and clause numbers only. No GAMP 5 text is reproduced; the guide is ISPE's
|
|
26
|
+
# and is obtained from ISPE.
|
|
27
|
+
#
|
|
28
|
+
# `kind` says what the AIDLC artifact trail can establish:
|
|
29
|
+
#
|
|
30
|
+
# evidenced the trail genuinely demonstrates it, for the one change
|
|
31
|
+
# checked-only not used. Every Part 11 or Annex 11 point that concerns the running
|
|
32
|
+
# system is excluded below with a note instead, because a
|
|
33
|
+
# checked-only control would ask an agent to confirm a running-system
|
|
34
|
+
# behaviour from a code diff, which reads as coverage the trail lacks.
|
|
35
|
+
#
|
|
36
|
+
# Every control is `major`, none `critical`: with `compliance.enforce` on, a critical
|
|
37
|
+
# finding blocks a transition, and an unreviewed reading of the regulations should not
|
|
38
|
+
# block anyone's work.
|
|
39
|
+
#
|
|
40
|
+
# Of the 59 ids (25 Part 11, 34 Annex 11), 7 are controls and 52 are excluded, each
|
|
41
|
+
# with a note saying what the trail cannot show.
|
|
42
|
+
|
|
43
|
+
controls:
|
|
44
|
+
# -------------------------------------------------------------------------
|
|
45
|
+
# Requirements — Annex 11 clause 4.4.
|
|
46
|
+
# -------------------------------------------------------------------------
|
|
47
|
+
- id: AX4.4
|
|
48
|
+
kind: evidenced
|
|
49
|
+
check_kind: agent
|
|
50
|
+
severity: major
|
|
51
|
+
phases:
|
|
52
|
+
- requirements
|
|
53
|
+
requires: >-
|
|
54
|
+
The user requirements for the change are written down, each one stated so that
|
|
55
|
+
it can be verified, and they say which GxP function or record of the system
|
|
56
|
+
they touch.
|
|
57
|
+
look_at: >-
|
|
58
|
+
requirements.md for its numbered acceptance criteria (AC-n), each a statement a
|
|
59
|
+
test could pass or fail, and for a statement of the GxP functions or records
|
|
60
|
+
the change touches.
|
|
61
|
+
fails_when: >-
|
|
62
|
+
requirements.md is absent, or states no numbered acceptance criteria (AC-n), or
|
|
63
|
+
says nothing about which GxP function or record the change touches.
|
|
64
|
+
evidence_artifact: requirements.md
|
|
65
|
+
|
|
66
|
+
# -------------------------------------------------------------------------
|
|
67
|
+
# Design — Annex 11 clause 1.
|
|
68
|
+
# -------------------------------------------------------------------------
|
|
69
|
+
- id: AX1
|
|
70
|
+
kind: evidenced
|
|
71
|
+
check_kind: agent
|
|
72
|
+
severity: major
|
|
73
|
+
phases:
|
|
74
|
+
- design
|
|
75
|
+
requires: >-
|
|
76
|
+
Risk management is applied to the change: a GxP risk assessment says whether the
|
|
77
|
+
change touches a GxP function or record and, if it does, what its impact is on
|
|
78
|
+
patient safety, product quality and data integrity, and how deeply it is tested
|
|
79
|
+
because of that impact.
|
|
80
|
+
look_at: >-
|
|
81
|
+
design.md for a section headed GxP risk assessment, with the three parts the
|
|
82
|
+
constraint layer asks for.
|
|
83
|
+
fails_when: >-
|
|
84
|
+
design.md has no GxP risk assessment: it does not say whether the change touches
|
|
85
|
+
a GxP function or record, or, where it does, it names no impact on patient
|
|
86
|
+
safety, product quality and data integrity, or chooses no depth of testing from
|
|
87
|
+
that impact.
|
|
88
|
+
evidence_artifact: design.md
|
|
89
|
+
|
|
90
|
+
# -------------------------------------------------------------------------
|
|
91
|
+
# Testing — Annex 11 clauses 4.7 and 4.2, Part 11 11.10(a).
|
|
92
|
+
# -------------------------------------------------------------------------
|
|
93
|
+
- id: AX4.7
|
|
94
|
+
kind: evidenced
|
|
95
|
+
check_kind: agent
|
|
96
|
+
severity: major
|
|
97
|
+
phases:
|
|
98
|
+
- testing
|
|
99
|
+
requires: >-
|
|
100
|
+
Evidence of the tests run on the change is recorded: what was tested, how, and
|
|
101
|
+
the outcome, with every acceptance criterion tested.
|
|
102
|
+
look_at: >-
|
|
103
|
+
test-results.md, and the criterion-to-test check the testing gate runs
|
|
104
|
+
(packages/cli/src/traceability/matrix.ts in the AIDLC framework), which fails
|
|
105
|
+
on an active criterion that no test references.
|
|
106
|
+
fails_when: >-
|
|
107
|
+
test-results.md is absent, or records a failing test, or leaves an active
|
|
108
|
+
acceptance criterion with no referencing test.
|
|
109
|
+
evidence_artifact: test-results.md
|
|
110
|
+
|
|
111
|
+
- id: AX4.2
|
|
112
|
+
kind: evidenced
|
|
113
|
+
check_kind: agent
|
|
114
|
+
severity: major
|
|
115
|
+
phases:
|
|
116
|
+
- testing
|
|
117
|
+
requires: >-
|
|
118
|
+
Every deviation seen while the change was tested — a failing test, a deferred
|
|
119
|
+
criterion or a deferred task — is recorded with its explanation and how it was
|
|
120
|
+
resolved.
|
|
121
|
+
look_at: >-
|
|
122
|
+
test-results.md for each failure or deferral it mentions, and tasks.md for
|
|
123
|
+
tasks deferred in place with a dated reason.
|
|
124
|
+
fails_when: >-
|
|
125
|
+
test-results.md or tasks.md shows a failure or a deferral with no explanation or
|
|
126
|
+
no resolution recorded beside it.
|
|
127
|
+
evidence_artifact: test-results.md
|
|
128
|
+
|
|
129
|
+
- id: P10.1
|
|
130
|
+
kind: evidenced
|
|
131
|
+
check_kind: agent
|
|
132
|
+
severity: major
|
|
133
|
+
phases:
|
|
134
|
+
- testing
|
|
135
|
+
requires: >-
|
|
136
|
+
The change is tested to the depth its GxP risk assessment chose. This covers the
|
|
137
|
+
change's share of Part 11 11.10(a) only; validating the system the change is
|
|
138
|
+
made to is the organization's own work and is not covered.
|
|
139
|
+
look_at: >-
|
|
140
|
+
test-results.md for the testing done, read against the depth of testing chosen
|
|
141
|
+
in the GxP risk assessment in design.md.
|
|
142
|
+
fails_when: >-
|
|
143
|
+
test-results.md does not record testing at the depth the GxP risk assessment in
|
|
144
|
+
design.md chose, or design.md chose no depth.
|
|
145
|
+
evidence_artifact: test-results.md
|
|
146
|
+
|
|
147
|
+
# -------------------------------------------------------------------------
|
|
148
|
+
# Deployment — Annex 11 clauses 10 and 4.1.
|
|
149
|
+
# -------------------------------------------------------------------------
|
|
150
|
+
- id: AX10
|
|
151
|
+
kind: evidenced
|
|
152
|
+
check_kind: agent
|
|
153
|
+
severity: major
|
|
154
|
+
phases:
|
|
155
|
+
- deployment
|
|
156
|
+
requires: >-
|
|
157
|
+
The change is made in a controlled manner and recorded as such: what changed,
|
|
158
|
+
the version released, and how it is rolled back.
|
|
159
|
+
look_at: >-
|
|
160
|
+
deployment-record.md for what the release contains, the version it carries,
|
|
161
|
+
and its rollback plan.
|
|
162
|
+
fails_when: >-
|
|
163
|
+
deployment-record.md is absent, or names no version released, or gives no way
|
|
164
|
+
to roll the change back.
|
|
165
|
+
evidence_artifact: deployment-record.md
|
|
166
|
+
|
|
167
|
+
- id: AX4.1
|
|
168
|
+
kind: evidenced
|
|
169
|
+
check_kind: agent
|
|
170
|
+
severity: major
|
|
171
|
+
phases:
|
|
172
|
+
- deployment
|
|
173
|
+
requires: >-
|
|
174
|
+
The change's record shows each life-cycle step it went through, so the
|
|
175
|
+
validation documentation covers the relevant steps of the life cycle.
|
|
176
|
+
look_at: >-
|
|
177
|
+
transitions.log for each phase the change entered and left, and each phase
|
|
178
|
+
file for a skip reason where a phase was skipped.
|
|
179
|
+
fails_when: >-
|
|
180
|
+
transitions.log is absent, or shows a phase skipped with no reason recorded in
|
|
181
|
+
that phase's file.
|
|
182
|
+
evidence_artifact: transitions.log
|
|
183
|
+
|
|
184
|
+
excluded:
|
|
185
|
+
# -------------------------------------------------------------------------
|
|
186
|
+
# Electronic signatures (part-11-gxp-pack/AC-11). Each note says what an AIDLC
|
|
187
|
+
# approval records and what it lacks. The constraint layer answers the question
|
|
188
|
+
# rule by rule: an AIDLC approval is not a Part 11 electronic signature.
|
|
189
|
+
# -------------------------------------------------------------------------
|
|
190
|
+
- id: P50.1
|
|
191
|
+
reason: not-yet-built
|
|
192
|
+
note: >-
|
|
193
|
+
An AIDLC approval records the date and time and a session id or user name in
|
|
194
|
+
transitions.log and the phase file. It records no printed name of the signer and
|
|
195
|
+
no meaning of the signature (review, approval, authorship).
|
|
196
|
+
- id: P50.2
|
|
197
|
+
reason: not-yet-built
|
|
198
|
+
note: >-
|
|
199
|
+
An AIDLC approval records no printed name and no meaning, so there is nothing to
|
|
200
|
+
hold under the same controls as the record or to show in its human-readable
|
|
201
|
+
form.
|
|
202
|
+
- id: P70
|
|
203
|
+
reason: not-yet-built
|
|
204
|
+
note: >-
|
|
205
|
+
An AIDLC approval records a line in transitions.log, which is plain text that can
|
|
206
|
+
be edited or copied into another instance without trace. It has no binding to
|
|
207
|
+
the record it approves.
|
|
208
|
+
- id: P100.1
|
|
209
|
+
reason: organizational
|
|
210
|
+
note: >-
|
|
211
|
+
An AIDLC approval records a session id or user name as the environment gives it.
|
|
212
|
+
The trail does not issue signatures unique to one person, and does not stop one
|
|
213
|
+
being reused or reassigned.
|
|
214
|
+
- id: P100.2
|
|
215
|
+
reason: organizational
|
|
216
|
+
note: >-
|
|
217
|
+
An AIDLC approval records a session id or user name, recorded and not
|
|
218
|
+
authenticated. The trail does not verify anyone's identity before an approval.
|
|
219
|
+
- id: P100.3
|
|
220
|
+
reason: organizational
|
|
221
|
+
note: >-
|
|
222
|
+
An AIDLC approval records no signature to certify. Certifying electronic
|
|
223
|
+
signatures to the agency is the organization's act, outside the trail.
|
|
224
|
+
- id: P200.1
|
|
225
|
+
reason: organizational
|
|
226
|
+
note: >-
|
|
227
|
+
An AIDLC approval records who was at a terminal only as a session id or user
|
|
228
|
+
name. It checks no identification code and no password.
|
|
229
|
+
- id: P200.2
|
|
230
|
+
reason: organizational
|
|
231
|
+
note: >-
|
|
232
|
+
An AIDLC approval records a session id or user name and checks no biometric, so
|
|
233
|
+
it does not show that only the genuine owner could have given it.
|
|
234
|
+
- id: P300.1
|
|
235
|
+
reason: organizational
|
|
236
|
+
note: >-
|
|
237
|
+
An AIDLC approval records a session id or user name. The trail issues no
|
|
238
|
+
identification codes or passwords, so it cannot keep their pairs unique.
|
|
239
|
+
- id: P300.2
|
|
240
|
+
reason: organizational
|
|
241
|
+
note: >-
|
|
242
|
+
An AIDLC approval records a session id or user name. The trail issues no
|
|
243
|
+
identification codes or passwords, so it cannot check, recall or revise them.
|
|
244
|
+
- id: P300.3
|
|
245
|
+
reason: organizational
|
|
246
|
+
note: >-
|
|
247
|
+
An AIDLC approval records a session id or user name. The trail issues no codes,
|
|
248
|
+
passwords, cards or tokens, so it has no loss management to show.
|
|
249
|
+
- id: P300.4
|
|
250
|
+
reason: organizational
|
|
251
|
+
note: >-
|
|
252
|
+
An AIDLC approval records a session id or user name. The trail checks no
|
|
253
|
+
password, so it cannot detect or report an attempt at unauthorized use.
|
|
254
|
+
- id: P300.5
|
|
255
|
+
reason: organizational
|
|
256
|
+
note: >-
|
|
257
|
+
An AIDLC approval records a session id or user name. The trail uses no cards or
|
|
258
|
+
tokens bearing identification codes, so it has no device testing to show.
|
|
259
|
+
- id: AX14.1
|
|
260
|
+
reason: organizational
|
|
261
|
+
note: >-
|
|
262
|
+
An AIDLC approval records the date and time and a session id or user name. It is
|
|
263
|
+
not an electronic signature with the impact of a handwritten one; that impact is
|
|
264
|
+
set by the organization, outside the trail.
|
|
265
|
+
- id: AX14.2
|
|
266
|
+
reason: not-yet-built
|
|
267
|
+
note: >-
|
|
268
|
+
An AIDLC approval records a line in transitions.log, which is plain text that can
|
|
269
|
+
be edited or copied into another instance. It is not permanently linked to the
|
|
270
|
+
record it approves.
|
|
271
|
+
- id: AX14.3
|
|
272
|
+
reason: not-yet-built
|
|
273
|
+
note: >-
|
|
274
|
+
An AIDLC approval records the date and time from the machine clock, but no
|
|
275
|
+
printed name, no meaning and no link to the record, so there is no electronic
|
|
276
|
+
signature for that time to belong to.
|
|
277
|
+
|
|
278
|
+
# -------------------------------------------------------------------------
|
|
279
|
+
# Inside the regulated system (part-11-gxp-pack/AC-12): audit trails, access
|
|
280
|
+
# control, record retention and protection. These run in the system the change is
|
|
281
|
+
# made to, so the change's trail cannot show them.
|
|
282
|
+
# -------------------------------------------------------------------------
|
|
283
|
+
- id: P10.5
|
|
284
|
+
reason: organizational
|
|
285
|
+
note: >-
|
|
286
|
+
Audit trails of who created, modified or deleted the regulated system's records
|
|
287
|
+
run inside that system. The change's trail cannot show them: it records the
|
|
288
|
+
change, not the system's records.
|
|
289
|
+
- id: AX9
|
|
290
|
+
reason: organizational
|
|
291
|
+
note: >-
|
|
292
|
+
Audit trails of GMP-relevant changes to data run inside the regulated system.
|
|
293
|
+
The change's trail cannot show them.
|
|
294
|
+
- id: AX12.4
|
|
295
|
+
reason: organizational
|
|
296
|
+
note: >-
|
|
297
|
+
Recording who entered, changed, confirmed or deleted data, and when, happens in
|
|
298
|
+
the regulated system's data management. The change's trail cannot show it.
|
|
299
|
+
- id: P10.4
|
|
300
|
+
reason: organizational
|
|
301
|
+
note: >-
|
|
302
|
+
Limiting access to the regulated system to authorized people is a control of
|
|
303
|
+
that system. The change's trail cannot show who may log in to it.
|
|
304
|
+
- id: P10.7
|
|
305
|
+
reason: organizational
|
|
306
|
+
note: >-
|
|
307
|
+
Authority checks on who may use the system, sign, alter a record or run an
|
|
308
|
+
operation run inside the regulated system. The change's trail cannot show them.
|
|
309
|
+
- id: AX12.1
|
|
310
|
+
reason: organizational
|
|
311
|
+
note: >-
|
|
312
|
+
Physical and logical controls restricting access to the system are the
|
|
313
|
+
organization's and the system's. The change's trail cannot show them.
|
|
314
|
+
- id: AX12.2
|
|
315
|
+
reason: organizational
|
|
316
|
+
note: >-
|
|
317
|
+
The extent of security controls for the system, set by its criticality, is the
|
|
318
|
+
organization's decision. The change's trail cannot show it.
|
|
319
|
+
- id: AX12.3
|
|
320
|
+
reason: organizational
|
|
321
|
+
note: >-
|
|
322
|
+
Recording the creation, change and cancellation of access authorizations
|
|
323
|
+
happens in the system's own administration. The change's trail cannot show it.
|
|
324
|
+
- id: P10.3
|
|
325
|
+
reason: organizational
|
|
326
|
+
note: >-
|
|
327
|
+
Protecting records for accurate retrieval through their retention period is a
|
|
328
|
+
function of the regulated system and its storage. The change's trail cannot
|
|
329
|
+
show it.
|
|
330
|
+
- id: AX7.1
|
|
331
|
+
reason: organizational
|
|
332
|
+
note: >-
|
|
333
|
+
Securing stored data against damage and checking it stays accessible, readable
|
|
334
|
+
and accurate happen in the regulated system. The change's trail cannot show it.
|
|
335
|
+
- id: AX7.2
|
|
336
|
+
reason: organizational
|
|
337
|
+
note: >-
|
|
338
|
+
Regular back-ups of the system's data, and checks that they restore, are run
|
|
339
|
+
outside the change. The change's trail cannot show them.
|
|
340
|
+
- id: AX17
|
|
341
|
+
reason: organizational
|
|
342
|
+
note: >-
|
|
343
|
+
Archiving the system's data and checking it stays accessible and readable is the
|
|
344
|
+
organization's work. The change's trail cannot show it.
|
|
345
|
+
|
|
346
|
+
# -------------------------------------------------------------------------
|
|
347
|
+
# Other functions of the running system.
|
|
348
|
+
# -------------------------------------------------------------------------
|
|
349
|
+
- id: P10.2
|
|
350
|
+
reason: organizational
|
|
351
|
+
note: >-
|
|
352
|
+
Producing accurate and complete copies of records for inspection is a function
|
|
353
|
+
of the regulated system. The change's trail cannot show it.
|
|
354
|
+
- id: P10.6
|
|
355
|
+
reason: organizational
|
|
356
|
+
note: >-
|
|
357
|
+
Operational checks that enforce the permitted order of steps run inside the
|
|
358
|
+
regulated system. The change's trail cannot show them.
|
|
359
|
+
- id: P10.8
|
|
360
|
+
reason: organizational
|
|
361
|
+
note: >-
|
|
362
|
+
Device checks on where data input or instructions come from run inside the
|
|
363
|
+
regulated system. The change's trail cannot show them.
|
|
364
|
+
- id: P30
|
|
365
|
+
reason: organizational
|
|
366
|
+
note: >-
|
|
367
|
+
Controls for open systems, such as encryption and digital signature standards,
|
|
368
|
+
are functions of the regulated system. The change's trail cannot show them.
|
|
369
|
+
- id: AX5
|
|
370
|
+
reason: organizational
|
|
371
|
+
note: >-
|
|
372
|
+
Built-in checks on data exchanged electronically with other systems run inside
|
|
373
|
+
the regulated system. The change's trail cannot show them.
|
|
374
|
+
- id: AX6
|
|
375
|
+
reason: organizational
|
|
376
|
+
note: >-
|
|
377
|
+
Additional checks on critical data entered by hand run inside the regulated
|
|
378
|
+
system. The change's trail cannot show them.
|
|
379
|
+
- id: AX8.1
|
|
380
|
+
reason: organizational
|
|
381
|
+
note: >-
|
|
382
|
+
Producing clear printed copies of stored data is a function of the regulated
|
|
383
|
+
system. The change's trail cannot show it.
|
|
384
|
+
- id: AX8.2
|
|
385
|
+
reason: organizational
|
|
386
|
+
note: >-
|
|
387
|
+
Printouts that show whether batch release data changed since entry are a
|
|
388
|
+
function of the regulated system. The change's trail cannot show them.
|
|
389
|
+
- id: AX15
|
|
390
|
+
reason: organizational
|
|
391
|
+
note: >-
|
|
392
|
+
Batch certification and release by a Qualified Person happen in the regulated
|
|
393
|
+
system and the organization. The change's trail cannot show them.
|
|
394
|
+
|
|
395
|
+
# -------------------------------------------------------------------------
|
|
396
|
+
# The organization's own procedures, outside one change.
|
|
397
|
+
# -------------------------------------------------------------------------
|
|
398
|
+
- id: P10.9
|
|
399
|
+
reason: organizational
|
|
400
|
+
note: >-
|
|
401
|
+
The education, training and experience of the people who build, maintain or use
|
|
402
|
+
the system are the organization's records, outside the change's trail.
|
|
403
|
+
- id: P10.10
|
|
404
|
+
reason: organizational
|
|
405
|
+
note: >-
|
|
406
|
+
Written policies holding people accountable for actions under their electronic
|
|
407
|
+
signatures are the organization's, outside the change's trail.
|
|
408
|
+
- id: P10.11
|
|
409
|
+
reason: organizational
|
|
410
|
+
note: >-
|
|
411
|
+
The trail is a time-sequenced record of one change, but it is editable plain
|
|
412
|
+
text, so it is not an audit trail of systems documentation, and it does not
|
|
413
|
+
control who may read or use that documentation.
|
|
414
|
+
- id: AX2
|
|
415
|
+
reason: organizational
|
|
416
|
+
note: >-
|
|
417
|
+
Cooperation between process owner, system owner, Qualified Person and IT, and
|
|
418
|
+
their qualifications, are the organization's, outside the change's trail.
|
|
419
|
+
- id: AX3.1
|
|
420
|
+
reason: organizational
|
|
421
|
+
note: >-
|
|
422
|
+
Formal agreements with suppliers and service providers are the organization's
|
|
423
|
+
contracts, outside the change's trail.
|
|
424
|
+
- id: AX3.2
|
|
425
|
+
reason: organizational
|
|
426
|
+
note: >-
|
|
427
|
+
Assessing a supplier's competence and reliability, by audit or otherwise, is the
|
|
428
|
+
organization's work, outside the change's trail.
|
|
429
|
+
- id: AX3.3
|
|
430
|
+
reason: organizational
|
|
431
|
+
note: >-
|
|
432
|
+
Reviewing the documentation delivered with commercial off-the-shelf products is
|
|
433
|
+
the organization's work, outside the change's trail.
|
|
434
|
+
- id: AX3.4
|
|
435
|
+
reason: organizational
|
|
436
|
+
note: >-
|
|
437
|
+
Making supplier quality and audit information available to inspectors is the
|
|
438
|
+
organization's work, outside the change's trail.
|
|
439
|
+
- id: AX4.3
|
|
440
|
+
reason: organizational
|
|
441
|
+
note: >-
|
|
442
|
+
An up-to-date inventory of the organization's systems and their GMP functions is
|
|
443
|
+
kept by the organization, outside the change's trail.
|
|
444
|
+
- id: AX4.5
|
|
445
|
+
reason: organizational
|
|
446
|
+
note: >-
|
|
447
|
+
Whether the system was developed under a suitable quality management system,
|
|
448
|
+
and the supplier's assessment, are the organization's, outside the change's
|
|
449
|
+
trail.
|
|
450
|
+
- id: AX11
|
|
451
|
+
reason: organizational
|
|
452
|
+
note: >-
|
|
453
|
+
Periodic evaluation of whether the system stays validated runs across changes,
|
|
454
|
+
outside one change's trail.
|
|
455
|
+
- id: AX13
|
|
456
|
+
reason: organizational
|
|
457
|
+
note: >-
|
|
458
|
+
Reporting and assessing incidents in the running system is the organization's
|
|
459
|
+
incident management, outside the change's trail.
|
|
460
|
+
- id: AX16
|
|
461
|
+
reason: organizational
|
|
462
|
+
note: >-
|
|
463
|
+
Business continuity arrangements for when the system breaks down are the
|
|
464
|
+
organization's, outside the change's trail.
|
|
465
|
+
|
|
466
|
+
# -------------------------------------------------------------------------
|
|
467
|
+
# Input the trail holds, not mapped by this pack.
|
|
468
|
+
# -------------------------------------------------------------------------
|
|
469
|
+
- id: AX4.6
|
|
470
|
+
reason: not-yet-built
|
|
471
|
+
note: >-
|
|
472
|
+
The trail records each life-cycle stage of a change, but no quality and
|
|
473
|
+
performance measures for a customised system, so their formal assessment is not
|
|
474
|
+
shown.
|
|
475
|
+
- id: AX4.8
|
|
476
|
+
reason: not-yet-built
|
|
477
|
+
note: >-
|
|
478
|
+
The trail has no record of a data transfer or migration, or of the check that
|
|
479
|
+
the data kept its value and meaning, so this is not shown.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gxp-constraints
|
|
3
|
+
description: The validation evidence a change to a GxP system needs, read from 21 CFR Part 11, EU GMP Annex 11 and GAMP 5
|
|
4
|
+
---
|
|
5
|
+
# GxP Constraints
|
|
6
|
+
|
|
7
|
+
**This pack's control text has not been reviewed by a compliance practitioner.**
|
|
8
|
+
It was written by an engineer reading the regulations and the guide. Treat it as a working
|
|
9
|
+
draft: useful for building the validation evidence a quality team asks for while you change
|
|
10
|
+
a regulated system, not as an opinion on how an inspector would read your validation.
|
|
11
|
+
Nothing here makes a project, a system or AIDLC Part 11, Annex 11, GAMP 5 or GxP compliant,
|
|
12
|
+
and nothing here validates any of them.
|
|
13
|
+
|
|
14
|
+
## The texts it reads
|
|
15
|
+
|
|
16
|
+
- **21 CFR Part 11**, Subparts B and C: electronic records and electronic signatures. Subpart
|
|
17
|
+
A (scope and definitions) sets no control.
|
|
18
|
+
- **EU GMP Annex 11** in its 2011 version. The draft revision the European Commission
|
|
19
|
+
published for consultation in 2025 is not covered.
|
|
20
|
+
- **GAMP 5 Second Edition**, ISPE's guide to a risk-based approach to computerized systems.
|
|
21
|
+
|
|
22
|
+
The pack paraphrases all three in its own words and cites section and clause numbers only.
|
|
23
|
+
It quotes no GAMP 5 text: the guide is ISPE's, and it is obtained from ISPE.
|
|
24
|
+
|
|
25
|
+
## How ids are written
|
|
26
|
+
|
|
27
|
+
The pack validator accepts letters followed by numbers, so a paragraph letter becomes its
|
|
28
|
+
position:
|
|
29
|
+
|
|
30
|
+
- `P<s>.<n>` is the n-th lettered paragraph of Part 11 section 11.<s>: `P10.5` is 11.10(e),
|
|
31
|
+
`P50.1` is 11.50(a).
|
|
32
|
+
- `P<s>` is a Part 11 section with no lettered paragraphs: `P70` is 11.70, `P30` is 11.30.
|
|
33
|
+
- `AX<c>` or `AX<c>.<n>` is Annex 11 clause c or c.n: `AX1` is clause 1, `AX4.4` is clause
|
|
34
|
+
4.4. Clause 14's points (a) to (c) are written `AX14.1` to `AX14.3`.
|
|
35
|
+
|
|
36
|
+
GAMP 5 has no clause numbers, so the pack gives it no ids. It maps the guide's deliverables
|
|
37
|
+
to the trail's artifacts instead (below).
|
|
38
|
+
|
|
39
|
+
## What the pack gives, and what it does not
|
|
40
|
+
|
|
41
|
+
It gives **validation evidence per change**: the user requirements, the risk assessment, the
|
|
42
|
+
tests, the deviations and the change record that one change to a regulated system leaves.
|
|
43
|
+
|
|
44
|
+
It does **not** validate the system the change is made to. That is the organization's own
|
|
45
|
+
validation plan and report, which this evidence feeds. Validating AIDLC itself as a GxP tool
|
|
46
|
+
is not covered either: whether a team may rely on AIDLC's records is its own assessment to
|
|
47
|
+
make.
|
|
48
|
+
|
|
49
|
+
Of the 59 Part 11 and Annex 11 points the pack reads, 7 are controls. The other 52 are
|
|
50
|
+
listed in the pack's `controls.yaml` under `excluded:`, each with a note saying what the
|
|
51
|
+
trail cannot show and a reason: `organizational` where the point is the running system's or
|
|
52
|
+
the organization's, `not-yet-built` where the trail holds part of it and could hold the
|
|
53
|
+
rest. `aidlc compliance report` prints every one.
|
|
54
|
+
|
|
55
|
+
## GAMP 5 deliverables, mapped to the trail
|
|
56
|
+
|
|
57
|
+
| What GAMP 5 asks a change to leave | Where the trail keeps it |
|
|
58
|
+
|---|---|
|
|
59
|
+
| User requirements | `requirements.md`, its numbered acceptance criteria |
|
|
60
|
+
| Risk assessment and design specification | `design.md`, with its GxP risk assessment |
|
|
61
|
+
| Testing, and the trace from requirements to tests | `test-results.md`, and the testing gate's criterion-to-test check |
|
|
62
|
+
| Change record and release | `deployment-record.md` |
|
|
63
|
+
|
|
64
|
+
## The GxP risk assessment at design
|
|
65
|
+
|
|
66
|
+
Annex 11 clause 1 asks for risk management through the life cycle, and `AX1` looks for it in
|
|
67
|
+
`design.md` under a heading **GxP risk assessment**. It says three things:
|
|
68
|
+
|
|
69
|
+
1. Whether the change touches a GxP function or record — one that bears on patient safety,
|
|
70
|
+
product quality or data integrity. If it touches none, say so and why, and stop here.
|
|
71
|
+
2. If it does, its impact on patient safety, product quality and data integrity.
|
|
72
|
+
3. The depth of testing chosen from that impact: which functions are tested, how, and why
|
|
73
|
+
that depth is enough.
|
|
74
|
+
|
|
75
|
+
`P10.1` then checks, at testing, that the change was tested to that depth.
|
|
76
|
+
|
|
77
|
+
## Electronic signatures: an AIDLC approval is not one
|
|
78
|
+
|
|
79
|
+
An AIDLC approval is not a Part 11 electronic signature. Rule by rule, reading the records an
|
|
80
|
+
approval leaves:
|
|
81
|
+
|
|
82
|
+
- **11.50(a)(1), printed name — not met.** `transitions.log` `by` and the phase file's
|
|
83
|
+
`completed_by` hold a session id or a user name, not the signer's printed name.
|
|
84
|
+
- **11.50(a)(2), date and time — met** by a phase transition: `transitions.log` `at` and the
|
|
85
|
+
phase file's `completed_at` hold an ISO 8601 UTC time from the machine clock.
|
|
86
|
+
- **11.50(a)(3), meaning — not met.** No record says whether an approval is a review, an
|
|
87
|
+
approval or authorship.
|
|
88
|
+
- **11.50(b), name and meaning held under the record's controls — not met.** With no name
|
|
89
|
+
and no meaning recorded, `transitions.log` and the phase file have none to carry.
|
|
90
|
+
- **11.70, signature linked to its record — not met.** `transitions.log` and the phase files
|
|
91
|
+
are plain text that can be edited, or copied into another instance, without trace.
|
|
92
|
+
- **11.100, unique, identity verified, certified — not met.** `transitions.log` `by` is
|
|
93
|
+
recorded, not authenticated, and nothing issues or certifies a signature.
|
|
94
|
+
- **11.200, signature components — not met.** No record shows an identification code and
|
|
95
|
+
password or a biometric checked at the approval.
|
|
96
|
+
- **11.300, codes and passwords — not met.** No record in the trail shows an identification
|
|
97
|
+
code, password, card or token issued or controlled: the trail issues none.
|
|
98
|
+
- **Annex 11 clause 14 — not met.** A transition records the date and time, as for 11.50(a)(2),
|
|
99
|
+
but an approval does not have the impact of a handwritten signature and is not permanently
|
|
100
|
+
linked to its record.
|
|
101
|
+
|
|
102
|
+
What an approval records, and how far each record goes:
|
|
103
|
+
|
|
104
|
+
- A **phase transition** appends a line to `transitions.log` with `at` and `by`, and writes
|
|
105
|
+
`completed_at` and `completed_by` into the phase file.
|
|
106
|
+
- `by` is a session id, or a user name, **as recorded, not authenticated**: it is whatever
|
|
107
|
+
the environment says. Nothing checks a password, a second factor or who is at the
|
|
108
|
+
keyboard. The commands that need a person refuse without a terminal, which proves a
|
|
109
|
+
terminal was attached, not who sat at it.
|
|
110
|
+
- An **autopilot approval at a terminal** records no person and no time.
|
|
111
|
+
- A **merge on the code host** is authenticated by the host, but it is the host's record,
|
|
112
|
+
outside the trail.
|
|
113
|
+
|
|
114
|
+
The signatures a validated change needs are applied in the organization's own validated
|
|
115
|
+
signature system, or on paper.
|
|
116
|
+
|
|
117
|
+
## Which controls apply, and when
|
|
118
|
+
|
|
119
|
+
| Phase | Controls to have in mind |
|
|
120
|
+
|---|---|
|
|
121
|
+
| Requirements | AX4.4 |
|
|
122
|
+
| Design | AX1 |
|
|
123
|
+
| Testing | AX4.2, AX4.7, P10.1 |
|
|
124
|
+
| Deployment | AX4.1, AX10 |
|
|
125
|
+
|
|
126
|
+
Run `aidlc compliance check` for each control's exact fail condition. Apply the fail
|
|
127
|
+
condition as written rather than your reading of the clause — that is what makes two
|
|
128
|
+
reviews of the same change agree.
|
|
129
|
+
|
|
130
|
+
## What each control asks of you while you build
|
|
131
|
+
|
|
132
|
+
Every control is evidenced: the record is the evidence, so make sure each leaves one.
|
|
133
|
+
|
|
134
|
+
- **AX4.4, user requirements.** `requirements.md` states numbered acceptance criteria,
|
|
135
|
+
`AC-1` onwards, and says which GxP function or record the change touches.
|
|
136
|
+
- **AX1, risk management.** `design.md` has a GxP risk assessment, as described above.
|
|
137
|
+
- **AX4.7, test evidence.** `test-results.md` records the tests and their outcome, with no
|
|
138
|
+
failing test and no active criterion left without a referencing test.
|
|
139
|
+
- **AX4.2, deviations.** Every failure or deferral seen while testing is recorded with its
|
|
140
|
+
explanation and its resolution.
|
|
141
|
+
- **P10.1, tested to the depth the risk calls for.** `test-results.md` shows testing at the
|
|
142
|
+
depth the GxP risk assessment chose. This is the change's share of 11.10(a) only.
|
|
143
|
+
- **AX10, change management.** `deployment-record.md` names what changed, the version
|
|
144
|
+
released, and how the change is rolled back.
|
|
145
|
+
- **AX4.1, the life cycle documented.** `transitions.log` shows each phase the change went
|
|
146
|
+
through; a skipped phase has its reason in its phase file.
|
|
147
|
+
|
|
148
|
+
## What the pack does not cover
|
|
149
|
+
|
|
150
|
+
- **Inside the regulated system.** Audit trails (`P10.5`, `AX9`, `AX12.4`), access control
|
|
151
|
+
(`P10.4`, `P10.7`, `AX12.1` to `AX12.3`) and record retention and protection (`P10.3`,
|
|
152
|
+
`AX7.1`, `AX7.2`, `AX17`) run in the system the change is made to. The change's trail
|
|
153
|
+
cannot show them.
|
|
154
|
+
- **Edits after a phase closed.** The trail is editable plain text. A requirement changed
|
|
155
|
+
after its phase closed is recorded when it goes through `aidlc amend`; an artifact or log
|
|
156
|
+
edited directly, without `aidlc amend`, is **not** detected, and every gate still passes.
|
|
157
|
+
- **What the files say.** The report counts an evidenced control when its named file exists
|
|
158
|
+
in the instance's state directory. It does not read the file's contents; the fail
|
|
159
|
+
condition, applied by a review, does.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
id: gxp
|
|
2
|
+
# The report prints this string as its section heading. It names all three texts the
|
|
3
|
+
# pack reads, because a quality reviewer looks for the one their procedure cites
|
|
4
|
+
# (part-11-gxp-pack/AC-2, AC-24).
|
|
5
|
+
regime: GxP (Part 11, Annex 11, GAMP 5)
|
|
6
|
+
version: 0.1.0
|
|
7
|
+
|
|
8
|
+
# Industry-scoped, like aspice. Part 11 and Annex 11 are asked for by pharma and
|
|
9
|
+
# life-science quality teams; offering them to every project would be noise. Naming
|
|
10
|
+
# `pharma` adds it to the init wizard's industry question (part-11-gxp-pack/AC-25).
|
|
11
|
+
industries:
|
|
12
|
+
- pharma
|
|
13
|
+
|
|
14
|
+
entitlement: unrestricted
|
|
15
|
+
|
|
16
|
+
# Null on purpose. The control text in this pack was written by an engineer reading
|
|
17
|
+
# the regulations and the guide, not by a compliance practitioner. Nulling this field
|
|
18
|
+
# obliges the constraint layer to say so, obliges every report to say so, and makes a
|
|
19
|
+
# doctor check watch for someone editing the statement out.
|
|
20
|
+
reviewed_by: null
|
|
21
|
+
|
|
22
|
+
# The names a project asks for this pack by, printed by `aidlc compliance list`
|
|
23
|
+
# (part-11-gxp-pack/AC-3, AC-21).
|
|
24
|
+
asked_for_as:
|
|
25
|
+
- 21 CFR Part 11
|
|
26
|
+
- EU GMP Annex 11
|
|
27
|
+
- GAMP 5
|
|
28
|
+
|
|
29
|
+
layers:
|
|
30
|
+
- name: gxp-constraints
|
|
31
|
+
file: gxp-constraints.md
|
|
32
|
+
# Pack layers are delivered as a read-instruction whatever their size. A small
|
|
33
|
+
# layer that got inlined would put pack text inside an emitted skill, which is
|
|
34
|
+
# forbidden outright.
|
|
35
|
+
always_pointer: true
|
package/packs/sox/controls.yaml
CHANGED
|
@@ -118,7 +118,8 @@ controls:
|
|
|
118
118
|
Segregation of duties: the person or agent who wrote a change is not the one
|
|
119
119
|
who approved it for production.
|
|
120
120
|
look_at: >-
|
|
121
|
-
|
|
121
|
+
`aidlc cost <instance>` and the instance's sessions.ndjson under
|
|
122
|
+
<git-common-dir>/aidlc/records/ for the sessions that claimed it; transitions.log
|
|
122
123
|
for the `by` on each transition; the `completed_by` field of each phase file;
|
|
123
124
|
the autopilot approval record; and refusals.ndjson in the git common
|
|
124
125
|
directory, which logs every person-only command an agent was refused.
|