@rasensio/aidlc-content 2.26.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.
Files changed (47) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/templates.d.ts +7 -0
  6. package/dist/templates.d.ts.map +1 -1
  7. package/dist/templates.js +9 -0
  8. package/dist/templates.js.map +1 -1
  9. package/docs/cost-tracking.md +25 -3
  10. package/docs/hygiene-and-compliance.md +48 -5
  11. package/docs/index.yaml +6 -0
  12. package/docs/knowledge-graph.md +2 -2
  13. package/docs/lifecycle.md +22 -0
  14. package/docs/reviews-and-guidance.md +4 -2
  15. package/docs/roadmap.md +61 -15
  16. package/docs/skills-and-platforms.md +29 -11
  17. package/guidance/index.yaml +5 -0
  18. package/guidance/mermaid-diagrams.md +219 -0
  19. package/howto/make-a-custom-template.md +78 -0
  20. package/package.json +1 -1
  21. package/packs/aspice/controls.yaml +561 -0
  22. package/packs/aspice/guidance/aspice-constraints.md +109 -0
  23. package/packs/aspice/pack.yaml +30 -0
  24. package/packs/gdpr/controls.yaml +287 -0
  25. package/packs/gdpr/guidance/gdpr-constraints.md +141 -0
  26. package/packs/gdpr/pack.yaml +24 -0
  27. package/packs/gxp/controls.yaml +479 -0
  28. package/packs/gxp/guidance/gxp-constraints.md +159 -0
  29. package/packs/gxp/pack.yaml +35 -0
  30. package/packs/sox/controls.yaml +229 -0
  31. package/packs/sox/guidance/sox-constraints.md +100 -0
  32. package/packs/sox/pack.yaml +30 -0
  33. package/resources/rules/decision-register.md +3 -3
  34. package/resources/rules/departures.md +3 -1
  35. package/resources/rules/fresh-main.md +25 -0
  36. package/resources/rules/unattended.md +1 -1
  37. package/skills/00-overview.md +3 -4
  38. package/skills/03-entry-point.md +1 -0
  39. package/skills/20-requirements.md +4 -2
  40. package/skills/30-design.md +16 -3
  41. package/skills/50-testing.md +15 -0
  42. package/skills/60-deployment.md +38 -4
  43. package/skills/81-continue.md +2 -1
  44. package/skills/84-autopilot.md +1 -1
  45. package/skills/90-retrospective.md +1 -1
  46. package/templates/quick-feature.yaml +3 -0
  47. package/templates/system.md +39 -0
@@ -0,0 +1,30 @@
1
+ id: aspice
2
+ # The edition is part of the name on purpose. The report prints this string as its
3
+ # section heading, and the outcome numbers only mean something against PAM 4.0:
4
+ # 3.1 numbered its verification processes differently, and its "software
5
+ # qualification test" is 4.0's SWE.6 (automotive-spice-pack/AC-2, AC-4).
6
+ regime: Automotive SPICE 4.0
7
+ version: 0.1.0
8
+
9
+ # Industry-scoped, unlike soc2 and iso27001. Automotive SPICE is asked for by
10
+ # carmakers of their software suppliers; offering it to every project would be
11
+ # noise. Naming a real industry is also what turns on the init wizard's industry
12
+ # question (automotive-spice-pack/AC-23).
13
+ industries:
14
+ - automotive
15
+
16
+ entitlement: unrestricted
17
+
18
+ # Null on purpose. The control text in this pack was written by an engineer reading
19
+ # the process assessment model, not by a compliance practitioner. Nulling this field
20
+ # obliges the constraint layer to say so, obliges every report to say so, and makes
21
+ # a doctor check watch for someone editing the statement out.
22
+ reviewed_by: null
23
+
24
+ layers:
25
+ - name: aspice-constraints
26
+ file: aspice-constraints.md
27
+ # Pack layers are delivered as a read-instruction whatever their size. A small
28
+ # layer that got inlined would put pack text inside an emitted skill, which is
29
+ # forbidden outright.
30
+ always_pointer: true
@@ -0,0 +1,287 @@
1
+ # GDPR — Regulation (EU) 2016/679, the articles a change trail can speak to.
2
+ #
3
+ # Ids are written ART<n>: `ART25` is Article 25. Whole articles only, with no
4
+ # paragraph suffix. The pack validator accepts that shape and rejects `Art. 25`, and
5
+ # the ART prefix keeps every id distinct from the SOC 2 pack's CC ids and the ISO
6
+ # 27001 pack's A ids, which matters because `aidlc compliance check` keys agent
7
+ # outcomes by control id across all installed packs (gdpr-pack/AC-3, gdpr-pack/AC-20).
8
+ #
9
+ # The text below paraphrases the regulation in this pack's own words. It is not
10
+ # legal advice, and nothing here makes a project GDPR compliant.
11
+ #
12
+ # Chapters II to V (Articles 5 to 50) hold the duties of controllers and
13
+ # processors; every one of those articles is either a control or listed under
14
+ # `excluded`. Chapters I and VI to XI are not listed: they hold scope and
15
+ # definitions, supervisory authorities, cooperation between them, remedies and
16
+ # penalties, member-state rules for specific situations, and delegated acts and
17
+ # final provisions. None of them is a duty a change could show. The constraint layer
18
+ # says so.
19
+ #
20
+ # `kind` says what the AIDLC artifact trail can establish:
21
+ #
22
+ # evidenced the trail genuinely demonstrates the control
23
+ # checked-only the control operates over a running system or a document kept
24
+ # outside the repository, so no artifact here evidences it; the pack
25
+ # supplies a fail condition an agent applies, and the trail records
26
+ # only that the check happened
27
+ #
28
+ # Exactly one control is `evidenced`. Three are `checked-only`. Forty-two articles
29
+ # of Chapters II to V are not covered at all, each listed below with its reason.
30
+ #
31
+ # The three design controls share one opening clause in `fails_when`, "The change
32
+ # adds or changes personal data, and", so a change that touches none fails none of
33
+ # them on that ground (gdpr-pack/AC-10). After it, each names only the gap it owns.
34
+ #
35
+ # `references` on ART32 names the SOC 2 and ISO 27001 controls that already hold the
36
+ # security rules, as `<pack>#<control id>`, so a rule lives in one place
37
+ # (gdpr-pack/AC-11, gdpr-pack/AC-12). ART32 keeps its own narrow fail condition, about
38
+ # the personal data alone, so it can be applied when no other pack is installed
39
+ # (gdpr-pack/AC-13).
40
+
41
+ controls:
42
+ # -------------------------------------------------------------------------
43
+ # Evidenced: the lifecycle trail is real evidence for this control.
44
+ # -------------------------------------------------------------------------
45
+ - id: ART25
46
+ kind: evidenced
47
+ check_kind: agent
48
+ severity: critical
49
+ phases:
50
+ - design
51
+ requires: >-
52
+ Data protection by design and by default. When deciding how personal data will
53
+ be processed, and while processing it, the controller builds in measures that
54
+ fit the risk and put the data protection principles into effect, such as
55
+ pseudonymisation and collecting no more data than the purpose needs. By
56
+ default, only the personal data each purpose needs is processed, kept, and made
57
+ reachable.
58
+ look_at: >-
59
+ The `## Personal data` section of design.md, then the change itself for the
60
+ signs that it touches personal data: new or changed fields, tables or columns
61
+ about people; data written to logs, events, analytics or exports; and data sent
62
+ to a third party.
63
+ fails_when: >-
64
+ The change adds or changes personal data, and design.md has no personal data
65
+ statement, or the statement does not name which personal data the change
66
+ touches and about whom.
67
+ evidence_artifact: design.md
68
+
69
+ # -------------------------------------------------------------------------
70
+ # Checked-only: the record of processing and the risk assessment are documents
71
+ # the organisation keeps outside the repository, and security of processing
72
+ # operates over a running system. The pack asks the question; the trail records
73
+ # that it was asked, never that the document exists or the measures work.
74
+ # -------------------------------------------------------------------------
75
+ - id: ART30
76
+ kind: checked-only
77
+ check_kind: agent
78
+ severity: major
79
+ phases:
80
+ - design
81
+ requires: >-
82
+ The controller keeps a record of its processing activities: the purposes, the
83
+ categories of people and of personal data, the recipients, any transfers out of
84
+ the EU, the time limits for erasure, and a general description of the security
85
+ measures. A processor keeps a matching record of what it does for each
86
+ controller.
87
+ look_at: >-
88
+ The Record of processing line of the `## Personal data` section in design.md,
89
+ read against what the change does: a new purpose, a new category of data or of
90
+ people, a new recipient, a new transfer, or a changed retention period.
91
+ fails_when: >-
92
+ The change adds or changes personal data, and the personal data statement does
93
+ not say whether the record of processing activities under Article 30 needs an
94
+ update, or gives no reason for its answer.
95
+
96
+ - id: ART35
97
+ kind: checked-only
98
+ check_kind: agent
99
+ severity: major
100
+ phases:
101
+ - design
102
+ requires: >-
103
+ Before processing that is likely to put people's rights and freedoms at high
104
+ risk, especially with new technologies, the controller assesses the impact on
105
+ the protection of personal data. Profiling that leads to decisions with real
106
+ effects on people, large-scale use of special categories or criminal-offence
107
+ data, and large-scale monitoring of public places always need one.
108
+ look_at: >-
109
+ The Risk assessment line of the `## Personal data` section in design.md, read
110
+ against what the change does: profiling or automated decisions, special
111
+ categories of data, data at large scale, monitoring, or a new technology.
112
+ fails_when: >-
113
+ The change adds or changes personal data, and the personal data statement does
114
+ not say whether a risk assessment under Article 35 is needed, or gives no reason
115
+ for its answer.
116
+
117
+ - id: ART32
118
+ kind: checked-only
119
+ check_kind: agent
120
+ severity: critical
121
+ phases:
122
+ - implementation
123
+ - deployment
124
+ requires: >-
125
+ Measures that fit the risk to the personal data — such as pseudonymisation and
126
+ encryption, keeping the data confidential, intact and available, restoring
127
+ access to it after an incident, and testing regularly that the measures work.
128
+ look_at: >-
129
+ Code in the change that stores, sends, logs or reads the personal data that
130
+ the personal data statement in design.md names, and the Protection line of that
131
+ statement.
132
+ fails_when: >-
133
+ The change adds or changes personal data, and the code stores or sends that
134
+ data unencrypted, writes it to a log or an error message, or lets a code path
135
+ read it without checking who is asking.
136
+ # Access, transmission and logging in SOC 2; logging and cryptography in ISO
137
+ # 27001. Every one is a covered control of its pack, which the content test
138
+ # asserts, and no run of eight words from their fail conditions appears above.
139
+ references: soc2#CC6.1, soc2#CC6.7, soc2#CC7.2, iso27001#A8.15, iso27001#A8.24
140
+
141
+ # ---------------------------------------------------------------------------
142
+ # Not covered. Forty-two of the forty-six articles in Chapters II to V.
143
+ #
144
+ # organizational the duty is the organisation's: a legal decision, a contract, a
145
+ # process for answering people, or a dealing with an authority; a
146
+ # tool that reads code cannot speak to it
147
+ # not-yet-built a code lifecycle could say something here, and this pack does
148
+ # not yet
149
+ # ---------------------------------------------------------------------------
150
+ excluded:
151
+ # Chapter II — principles (Articles 5 to 11).
152
+ - id: ART5
153
+ reason: not-yet-built
154
+ note: >-
155
+ The principles. Data minimisation and storage limitation have a code angle:
156
+ the personal data statement names the data, but this pack does not check that
157
+ each field is needed or that it has a retention limit.
158
+ - id: ART6
159
+ reason: organizational
160
+ note: >-
161
+ Choosing a lawful basis for processing is a legal decision the organisation
162
+ makes and records; no change trail shows it.
163
+ - id: ART7
164
+ reason: organizational
165
+ note: >-
166
+ Consent is a legal condition the organisation must be able to prove. A consent
167
+ checkbox in the code is not the control.
168
+ - id: ART8
169
+ reason: organizational
170
+ note: Conditions for a child's consent are a legal decision, like Article 7.
171
+ - id: ART9
172
+ reason: organizational
173
+ note: >-
174
+ The legal ground for processing special categories of data is the
175
+ organisation's. The risk such data carries is asked about through ART35.
176
+ - id: ART10
177
+ reason: organizational
178
+ note: The legal ground for processing criminal-offence data is the organisation's.
179
+ - id: ART11
180
+ reason: organizational
181
+
182
+ # Chapter III — the rights of the people the data is about (Articles 12 to 23).
183
+ # Answering a person's request is the organisation's process. An export or delete
184
+ # function in the code is not the control.
185
+ - id: ART12
186
+ reason: organizational
187
+ - id: ART13
188
+ reason: organizational
189
+ note: Telling people what is collected is a privacy notice, written and kept by the organisation.
190
+ - id: ART14
191
+ reason: organizational
192
+ - id: ART15
193
+ reason: organizational
194
+ note: >-
195
+ Answering a request for access is the organisation's process. An export
196
+ function in the code is not the control.
197
+ - id: ART16
198
+ reason: organizational
199
+ - id: ART17
200
+ reason: organizational
201
+ note: >-
202
+ Answering a request for erasure is the organisation's process. A delete
203
+ function in the code is not the control.
204
+ - id: ART18
205
+ reason: organizational
206
+ - id: ART19
207
+ reason: organizational
208
+ - id: ART20
209
+ reason: organizational
210
+ - id: ART21
211
+ reason: organizational
212
+ - id: ART22
213
+ reason: organizational
214
+ note: >-
215
+ Whether automated decisions about people are allowed is a legal question. The
216
+ risk they carry is asked about through ART35.
217
+ - id: ART23
218
+ reason: organizational
219
+ note: Restrictions of these rights are set by Union or member-state law.
220
+
221
+ # Chapter IV — controller and processor (Articles 24 to 43), less the three
222
+ # controls above.
223
+ - id: ART24
224
+ reason: organizational
225
+ - id: ART26
226
+ reason: organizational
227
+ note: An arrangement between joint controllers is a contract.
228
+ - id: ART27
229
+ reason: organizational
230
+ - id: ART28
231
+ reason: organizational
232
+ note: >-
233
+ Processor contracts are agreements between organisations. Calling a third
234
+ party's API in the code is not the control; naming that third party in the
235
+ personal data statement is what this pack asks.
236
+ - id: ART29
237
+ reason: organizational
238
+ - id: ART31
239
+ reason: organizational
240
+ note: Cooperating with a supervisory authority is the organisation's dealing.
241
+ - id: ART33
242
+ reason: organizational
243
+ note: >-
244
+ Notifying a supervisory authority of a breach is an incident-response process,
245
+ not a property of a change.
246
+ - id: ART34
247
+ reason: organizational
248
+ note: >-
249
+ Telling people about a breach is an incident-response process, not a property
250
+ of a change.
251
+ - id: ART36
252
+ reason: organizational
253
+ note: Consulting the supervisory authority after a high-risk assessment is the organisation's dealing.
254
+ - id: ART37
255
+ reason: organizational
256
+ note: Appointing a data protection officer is the organisation's decision.
257
+ - id: ART38
258
+ reason: organizational
259
+ - id: ART39
260
+ reason: organizational
261
+ - id: ART40
262
+ reason: organizational
263
+ - id: ART41
264
+ reason: organizational
265
+ - id: ART42
266
+ reason: organizational
267
+ note: Certification schemes are run by accredited bodies, not by a code tool.
268
+ - id: ART43
269
+ reason: organizational
270
+
271
+ # Chapter V — transfers out of the EU (Articles 44 to 50). The legal ground for a
272
+ # transfer is the organisation's; naming a new recipient outside the EU in the
273
+ # personal data statement is what this pack asks, through ART30.
274
+ - id: ART44
275
+ reason: organizational
276
+ - id: ART45
277
+ reason: organizational
278
+ - id: ART46
279
+ reason: organizational
280
+ - id: ART47
281
+ reason: organizational
282
+ - id: ART48
283
+ reason: organizational
284
+ - id: ART49
285
+ reason: organizational
286
+ - id: ART50
287
+ reason: organizational
@@ -0,0 +1,141 @@
1
+ ---
2
+ name: gdpr-constraints
3
+ description: GDPR constraints for changes that add or change personal data — the personal data statement at design, and security of processing while code is written
4
+ ---
5
+ # GDPR 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 regulation, and it paraphrases
9
+ Regulation (EU) 2016/679 in its own words. **It is not legal advice.** Treat it as a
10
+ working draft: useful for asking the right questions while you design and build a
11
+ change, not as an opinion on whether your processing is lawful. Nothing here makes a
12
+ project GDPR compliant.
13
+
14
+ ## Which controls apply, and when
15
+
16
+ | Phase | Controls to have in mind |
17
+ |---|---|
18
+ | Design | ART25, ART30, ART35 |
19
+ | Implementation | ART32 |
20
+ | Deployment | ART32 |
21
+
22
+ `ART25` is Article 25; every id is a whole article. Run `aidlc compliance check` for
23
+ each control's exact fail condition, and apply the fail condition as written rather
24
+ than your reading of the article — that is what makes two reviews of the same change
25
+ agree.
26
+
27
+ **ART25 is evidenced.** Privacy by design is a duty about how a change is designed,
28
+ and `design.md` is where this lifecycle records the design, so the trail shows it.
29
+
30
+ **ART30, ART32 and ART35 are checked only.** The record of processing and the risk
31
+ assessment are documents the organisation keeps outside the repository, and security
32
+ of processing operates over a running system. The pack gives you a question to
33
+ answer or a fail condition to apply, and the trail records that you did. Never
34
+ present a checked-only control as evidence.
35
+
36
+ ## The personal data statement
37
+
38
+ Every `design.md` carries a `## Personal data` section, whatever the change. It is
39
+ the one place the three design controls look.
40
+
41
+ When the change adds or changes no personal data, the section is one line, and that
42
+ line is the whole statement:
43
+
44
+ ```markdown
45
+ ## Personal data
46
+
47
+ This change adds or changes no personal data.
48
+ ```
49
+
50
+ Otherwise it has four labelled lines:
51
+
52
+ ```markdown
53
+ ## Personal data
54
+
55
+ - **Data:** <which personal data, about whom>
56
+ - **Risk assessment (Art. 35):** needed | not needed — <why>
57
+ - **Record of processing (Art. 30):** update needed | no update needed — <why>
58
+ - **Protection (Art. 32):** <how the code protects it in storage, in transit and in logs>
59
+ ```
60
+
61
+ Personal data is anything that identifies a person or can be tied to one: a name, an
62
+ email address, an account id, an IP address, a location, a device id, a record of
63
+ what someone did. A change touches it when it adds or changes a field, table or
64
+ column about people, writes such data to a log, an event, analytics or an export, or
65
+ sends it to a third party. When in doubt, say what the data is and answer the
66
+ questions; a statement that over-reports costs a line, and one that under-reports is
67
+ the gap this pack exists to catch.
68
+
69
+ Each design control owns one part of the statement:
70
+
71
+ - **ART25** fails when the change touches personal data and the statement is missing
72
+ or does not name the data and whom it is about.
73
+ - **ART35** fails when the statement does not say whether a risk assessment is
74
+ needed, or gives no reason.
75
+ - **ART30** fails when the statement does not say whether the record of processing
76
+ needs an update, or gives no reason.
77
+
78
+ A statement saying the change touches no personal data fails none of them on that
79
+ ground. Each fail condition begins "The change adds or changes personal data, and",
80
+ so a reviewer who finds personal data the statement missed still fails `ART25`.
81
+
82
+ The Protection line is guidance for `ART32` at implementation, not a fail condition
83
+ of the design controls.
84
+
85
+ ## What ART25's evidence does not show
86
+
87
+ The trail shows that a personal data statement was written for the change and that
88
+ it answered the questions. It does **not** show that the measures it describes are
89
+ appropriate, that the risk assessment it asks for was carried out, or that the record
90
+ of processing was updated. Those are judgements and documents the organisation owns.
91
+ Do not represent this pack's `ART25` output as evidence that a change's processing is
92
+ lawful or its protection adequate.
93
+
94
+ ## Security of processing lives in the other packs
95
+
96
+ This pack does not restate security rules. `ART32` names the SOC 2 and ISO 27001
97
+ controls that hold them — access, transmission and logging (`soc2#CC6.1`,
98
+ `soc2#CC6.7`, `soc2#CC7.2`), logging and cryptography (`iso27001#A8.15`,
99
+ `iso27001#A8.24`) — so there is one place to change when a rule changes. With either
100
+ pack installed, apply those controls to the personal data the statement names. With
101
+ neither installed, apply `ART32`'s own fail condition: it speaks only of that
102
+ personal data.
103
+
104
+ ## What this pack does not cover
105
+
106
+ Most of the GDPR is the organisation's, not the code's. This pack does not cover:
107
+
108
+ - **Lawful basis and consent** (Articles 6 to 10) — a legal decision the organisation
109
+ makes and records; a consent checkbox is not the control.
110
+ - **Processor contracts** (Article 28) and joint-controller arrangements — agreements
111
+ between organisations.
112
+ - **Data subject requests** (Articles 12 to 23) — answering a person's request for
113
+ access, erasure, correction or a copy of their data is the organisation's process.
114
+ An export or delete function in the code is not the control.
115
+ - **Breach notification** (Articles 33 and 34) — an incident-response process, not a
116
+ property of a change.
117
+ - **Transfers out of the EU** (Articles 44 to 50) — the legal ground for a transfer is
118
+ the organisation's. A new recipient belongs in the statement, which `ART30` asks
119
+ about.
120
+ - **The data protection officer** (Articles 37 to 39), codes of conduct and
121
+ certification schemes (Articles 40 to 43), and prior consultation with the
122
+ authority (Article 36).
123
+ - **The principles** (Article 5) — data minimisation and storage limitation have a
124
+ code angle, and this pack does not yet check that each field is needed or has a
125
+ retention limit.
126
+
127
+ Every article from 5 to 50 that is not a control is listed in `controls.yaml` with
128
+ its reason. The rest of the regulation is not listed, because none of it is a duty a
129
+ change could show:
130
+
131
+ - **Chapter I** holds the scope of the regulation and its definitions.
132
+ - **Chapter VI** sets up the supervisory authorities.
133
+ - **Chapter VII** covers cooperation between the authorities and the European Data
134
+ Protection Board.
135
+ - **Chapter VIII** holds remedies, liability and penalties.
136
+ - **Chapter IX** leaves rules for specific situations, such as journalism and
137
+ employment, to member states.
138
+ - **Chapters X and XI** hold delegated acts and final provisions.
139
+
140
+ The pack is also not the UK GDPR, any member state's national data protection law, or
141
+ the ePrivacy Directive.
@@ -0,0 +1,24 @@
1
+ id: gdpr
2
+ regime: GDPR
3
+ version: 0.1.0
4
+
5
+ # The GDPR binds anyone processing personal data of people in the EU, whatever
6
+ # their industry, so like SOC 2 and ISO 27001 it is not industry-scoped.
7
+ industries:
8
+ - any
9
+
10
+ entitlement: unrestricted
11
+
12
+ # Null on purpose. The control text in this pack was written by an engineer reading
13
+ # the regulation, not by a compliance practitioner or a lawyer. Nulling this field
14
+ # obliges the constraint layer to say so, obliges every report to say so, and makes
15
+ # a doctor check watch for someone editing the statement out.
16
+ reviewed_by: null
17
+
18
+ layers:
19
+ - name: gdpr-constraints
20
+ file: gdpr-constraints.md
21
+ # Pack layers are delivered as a read-instruction whatever their size. A small
22
+ # layer that got inlined would put pack text inside an emitted skill, which is
23
+ # forbidden outright.
24
+ always_pointer: true