@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,561 @@
1
+ # Automotive SPICE PAM 4.0 — software engineering processes SWE.1 to SWE.6 only.
2
+ #
3
+ # Ids are written SWE<p>.<o>: `SWE1.3` is outcome 3 of process SWE.1. The pack
4
+ # validator accepts that shape and rejects `SWE.1.3`. Excluded processes are written
5
+ # without the dot (`MAN3` for MAN.3, `SUP10` for SUP.10) and process attributes as
6
+ # `PA1.1`. None of these shapes meets the SOC 2 pack's CC ids or the ISO pack's A
7
+ # ids, which matters because `aidlc compliance check` keys agent outcomes by control
8
+ # id across all installed packs (automotive-spice-pack/AC-6, AC-21).
9
+ #
10
+ # The text below paraphrases the process assessment model in this pack's own words
11
+ # and cites process and outcome numbers only. The model is the VDA's text; obtain it
12
+ # from the VDA.
13
+ #
14
+ # `kind` says what the AIDLC artifact trail can establish:
15
+ #
16
+ # evidenced the trail genuinely demonstrates the outcome
17
+ # checked-only the outcome concerns a running system, so no document evidences
18
+ # it. No SWE outcome is one: each is about a work product — a
19
+ # specification, a design, recorded results, a trace — that the
20
+ # trail holds.
21
+ #
22
+ # Every control is `major`, none `critical`: with `compliance.enforce` on a critical
23
+ # finding blocks a transition, and an unreviewed reading of the model should not
24
+ # block anyone's work.
25
+ #
26
+ # Of the 33 outcomes of SWE.1 to SWE.6, 16 are controls and 17 are excluded below,
27
+ # each with a note saying what the trail cannot show. The 26 other processes of the
28
+ # process reference model and the nine process attributes are excluded too.
29
+
30
+ controls:
31
+ # -------------------------------------------------------------------------
32
+ # SWE.1 Software requirements analysis — evidenced by requirements.md.
33
+ # -------------------------------------------------------------------------
34
+ - id: SWE1.1
35
+ kind: evidenced
36
+ check_kind: agent
37
+ severity: major
38
+ phases:
39
+ - requirements
40
+ requires: >-
41
+ The software requirements for the change are written down, each one stated
42
+ so that it can be verified.
43
+ look_at: >-
44
+ requirements.md for its numbered acceptance criteria (AC-n), each a statement
45
+ a test could pass or fail.
46
+ fails_when: >-
47
+ requirements.md is absent, or states no numbered acceptance criteria (AC-n).
48
+ evidence_artifact: requirements.md
49
+
50
+ - id: SWE1.3
51
+ kind: evidenced
52
+ check_kind: agent
53
+ severity: major
54
+ phases:
55
+ - requirements
56
+ requires: >-
57
+ The software requirements are analysed for correctness and technical
58
+ feasibility against the system they change, before design starts.
59
+ look_at: >-
60
+ requirements.md for what was read from the existing system — the code or
61
+ interfaces the criteria depend on — and for its open questions, each resolved
62
+ or stated as none.
63
+ fails_when: >-
64
+ requirements.md records no analysis of the criteria against the existing
65
+ system: it names no part of the system it read, and neither resolves its open
66
+ questions nor states that there are none.
67
+ evidence_artifact: requirements.md
68
+
69
+ - id: SWE1.4
70
+ kind: evidenced
71
+ check_kind: agent
72
+ severity: major
73
+ phases:
74
+ - requirements
75
+ requires: >-
76
+ The effect of the software requirements on the environment the software runs
77
+ in is analysed: resources, compatibility, and the other parts it interacts
78
+ with.
79
+ look_at: >-
80
+ requirements.md for its non-functional section — compatibility, resources,
81
+ bounds, security — or an explicit statement that the change has no such
82
+ effect.
83
+ fails_when: >-
84
+ requirements.md names no effect of the change on the environment it runs in
85
+ (no non-functional section, no compatibility or resource statement) and does
86
+ not say that it has none.
87
+ evidence_artifact: requirements.md
88
+
89
+ - id: SWE1.5
90
+ kind: evidenced
91
+ check_kind: agent
92
+ severity: major
93
+ phases:
94
+ - requirements
95
+ requires: >-
96
+ Each software requirement traces back to the requirement above it, and that
97
+ source traces forward to it, so a link can be followed in both directions.
98
+ look_at: >-
99
+ requirements.md for the source it derives from — the roadmap item it names,
100
+ which records the instance it was promoted to, or the system or customer
101
+ requirement ids it cites — and for each criterion's place under that source.
102
+ fails_when: >-
103
+ requirements.md names no upstream source its criteria derive from (no roadmap
104
+ item, no system requirement ids, no customer requirement), or a criterion
105
+ traces to none of the sources it names.
106
+ evidence_artifact: requirements.md
107
+
108
+ # -------------------------------------------------------------------------
109
+ # SWE.2 Software architectural design — evidenced by design.md.
110
+ # -------------------------------------------------------------------------
111
+ - id: SWE2.1
112
+ kind: evidenced
113
+ check_kind: agent
114
+ severity: major
115
+ phases:
116
+ - design
117
+ requires: >-
118
+ A software architecture is designed for the change: its components with their
119
+ responsibilities, and how they interact — the static structure and the
120
+ dynamic behaviour.
121
+ look_at: >-
122
+ design.md for its components, what each is responsible for, and the
123
+ interactions or data flow between them.
124
+ fails_when: >-
125
+ design.md is absent, or describes no components with their responsibilities
126
+ and no interactions or data flow between them.
127
+ evidence_artifact: design.md
128
+
129
+ - id: SWE2.2
130
+ kind: evidenced
131
+ check_kind: agent
132
+ severity: major
133
+ phases:
134
+ - design
135
+ requires: >-
136
+ The architecture is analysed against stated criteria, so the choices it makes
137
+ are reasoned rather than incidental.
138
+ look_at: >-
139
+ design.md for its design decisions, each with the reason it was taken and the
140
+ alternative it rejected.
141
+ fails_when: >-
142
+ design.md records no design decision with its rationale and the alternative it
143
+ rejected.
144
+ evidence_artifact: design.md
145
+
146
+ - id: SWE2.3
147
+ kind: evidenced
148
+ check_kind: agent
149
+ severity: major
150
+ phases:
151
+ - design
152
+ requires: >-
153
+ The architecture traces both ways to the software requirements: every part of
154
+ the design names the requirements it serves, and every requirement is served
155
+ by some part.
156
+ look_at: >-
157
+ design.md for the acceptance criteria (AC-n) each section addresses, read
158
+ against the active criteria in requirements.md.
159
+ fails_when: >-
160
+ A section of design.md names no AC-n it addresses, or an active criterion in
161
+ requirements.md is addressed by no section of design.md.
162
+ evidence_artifact: design.md
163
+
164
+ # -------------------------------------------------------------------------
165
+ # SWE.3 Detailed design and unit construction — design.md and tasks.md.
166
+ # -------------------------------------------------------------------------
167
+ - id: SWE3.1
168
+ kind: evidenced
169
+ check_kind: agent
170
+ severity: major
171
+ phases:
172
+ - design
173
+ requires: >-
174
+ The detailed design of each software component the change touches is
175
+ specified: its interfaces and the shape of the data it handles.
176
+ look_at: >-
177
+ design.md for the interfaces of the components it changes — function
178
+ signatures, data shapes or file formats.
179
+ fails_when: >-
180
+ design.md specifies no interfaces (signatures, data shapes or file formats)
181
+ for the components the change adds or alters.
182
+ evidence_artifact: design.md
183
+
184
+ - id: SWE3.2
185
+ kind: evidenced
186
+ check_kind: agent
187
+ severity: major
188
+ phases:
189
+ - implementation
190
+ requires: >-
191
+ The software units are produced as the detailed design defines them, and the
192
+ record shows each planned unit of work was done.
193
+ look_at: >-
194
+ tasks.md for the task breakdown the design calls for, each task ticked as done
195
+ or deferred in place with a dated reason.
196
+ fails_when: >-
197
+ tasks.md is absent, or a task the design calls for is neither marked done nor
198
+ deferred with a reason.
199
+ evidence_artifact: tasks.md
200
+
201
+ - id: SWE3.3
202
+ kind: evidenced
203
+ check_kind: agent
204
+ severity: major
205
+ phases:
206
+ - design
207
+ - implementation
208
+ requires: >-
209
+ The detailed design and the units built from it trace both ways to the
210
+ requirements: each piece of work names the requirements it serves, and every
211
+ requirement is served by some piece of work.
212
+ look_at: >-
213
+ tasks.md for the acceptance criteria (AC-n) each task cites, read against the
214
+ active criteria in requirements.md, and the commits that carry each task's
215
+ trailer.
216
+ fails_when: >-
217
+ An active criterion in requirements.md is claimed by no task in tasks.md, or a
218
+ task neither cites a criterion nor is stated as a chore.
219
+ evidence_artifact: tasks.md
220
+
221
+ # -------------------------------------------------------------------------
222
+ # SWE.4 Software unit verification — evidenced by test-results.md.
223
+ # -------------------------------------------------------------------------
224
+ - id: SWE4.1
225
+ kind: evidenced
226
+ check_kind: agent
227
+ severity: major
228
+ phases:
229
+ - implementation
230
+ - testing
231
+ requires: >-
232
+ Verification measures are specified for the software units: what tests or
233
+ other checks will show each unit works as designed.
234
+ look_at: >-
235
+ test-results.md for the tests written or run for the units the change adds or
236
+ alters, and the test files the change adds.
237
+ fails_when: >-
238
+ test-results.md names no tests written or run for the units the change adds or
239
+ alters.
240
+ evidence_artifact: test-results.md
241
+
242
+ - id: SWE4.3
243
+ kind: evidenced
244
+ check_kind: agent
245
+ severity: major
246
+ phases:
247
+ - testing
248
+ requires: >-
249
+ The software units are verified with those measures and the results are
250
+ recorded.
251
+ look_at: >-
252
+ test-results.md for the outcome of the unit-level tests — passed, failed, or
253
+ skipped, with counts or names.
254
+ fails_when: >-
255
+ test-results.md is absent, or records no outcome for the unit-level tests.
256
+ evidence_artifact: test-results.md
257
+
258
+ # -------------------------------------------------------------------------
259
+ # SWE.5 Component and integration verification — test-results.md.
260
+ # -------------------------------------------------------------------------
261
+ - id: SWE5.6
262
+ kind: evidenced
263
+ check_kind: agent
264
+ severity: major
265
+ phases:
266
+ - testing
267
+ requires: >-
268
+ The integrated software is verified as a whole and the results are recorded,
269
+ not only the units on their own.
270
+ look_at: >-
271
+ test-results.md for a run of the whole test suite on the integrated change —
272
+ the command, the build it ran on, and its outcome.
273
+ fails_when: >-
274
+ test-results.md records no run of the whole suite on the integrated change, or
275
+ records one with no outcome.
276
+ evidence_artifact: test-results.md
277
+
278
+ # -------------------------------------------------------------------------
279
+ # SWE.6 Software verification — evidenced by test-results.md.
280
+ # -------------------------------------------------------------------------
281
+ - id: SWE6.1
282
+ kind: evidenced
283
+ check_kind: agent
284
+ severity: major
285
+ phases:
286
+ - testing
287
+ requires: >-
288
+ Verification measures are specified from the software requirements, so that
289
+ every requirement has a test that checks it.
290
+ look_at: >-
291
+ test-results.md and the test files it names, for a test naming each active
292
+ acceptance criterion in requirements.md.
293
+ fails_when: >-
294
+ An active criterion in requirements.md has no test that names it.
295
+ evidence_artifact: test-results.md
296
+
297
+ - id: SWE6.3
298
+ kind: evidenced
299
+ check_kind: agent
300
+ severity: major
301
+ phases:
302
+ - testing
303
+ requires: >-
304
+ The integrated software is verified against its requirements and the result
305
+ for each requirement is recorded.
306
+ look_at: >-
307
+ test-results.md for a result per acceptance criterion, and for the
308
+ explanation of any failure.
309
+ fails_when: >-
310
+ test-results.md records no result per criterion, or records a failing result
311
+ with no explanation.
312
+ evidence_artifact: test-results.md
313
+
314
+ - id: SWE6.4
315
+ kind: evidenced
316
+ check_kind: agent
317
+ severity: major
318
+ phases:
319
+ - testing
320
+ requires: >-
321
+ The verification measures trace both ways to the software requirements, and
322
+ each result traces to the measure that produced it.
323
+ look_at: >-
324
+ The criterion-to-test traceability matrix the testing gate builds
325
+ (packages/cli/src/traceability/matrix.ts in the AIDLC framework) and its record
326
+ in test-results.md.
327
+ fails_when: >-
328
+ test-results.md records no criterion-to-test traceability, or the record shows
329
+ a criterion with no test, or a test that cites no criterion.
330
+ evidence_artifact: test-results.md
331
+
332
+ excluded:
333
+ # -------------------------------------------------------------------------
334
+ # SWE outcomes the trail cannot show (automotive-spice-pack/AC-10).
335
+ # -------------------------------------------------------------------------
336
+ - id: SWE1.2
337
+ reason: not-yet-built
338
+ note: >-
339
+ Requirements are grouped under headings in requirements.md, but carry no
340
+ priority, so the trail does not show them prioritised.
341
+ - id: SWE1.6
342
+ reason: organizational
343
+ note: >-
344
+ The system architecture is a system-level work product kept outside the
345
+ per-change trail, so no link from software requirements to it is recorded.
346
+ - id: SWE1.7
347
+ reason: organizational
348
+ note: >-
349
+ The trail records a person's review at a phase boundary, not that the
350
+ requirements were agreed with and communicated to all affected parties.
351
+ - id: SWE2.4
352
+ reason: organizational
353
+ note: >-
354
+ The trail records a person's review at a phase boundary, not that the
355
+ architecture was agreed with and communicated to all affected parties.
356
+ - id: SWE3.4
357
+ reason: organizational
358
+ note: >-
359
+ The trail records a person's review at a phase boundary, not that the detailed
360
+ design and code were communicated to all affected parties.
361
+ - id: SWE4.2
362
+ reason: not-yet-built
363
+ note: >-
364
+ The trail records which tests ran, not the criteria that selected them for a
365
+ release, and no regression strategy.
366
+ - id: SWE4.4
367
+ reason: not-yet-built
368
+ note: >-
369
+ The traceability matrix links acceptance criteria to tests, not software units
370
+ to tests, so unit-level traceability is not shown.
371
+ - id: SWE4.5
372
+ reason: organizational
373
+ note: >-
374
+ test-results.md summarises the results, but the trail cannot show that they
375
+ reached all affected parties.
376
+ - id: SWE5.1
377
+ reason: not-yet-built
378
+ note: >-
379
+ Tests are not specified per element of the software architecture, so
380
+ integration verification measures are not shown.
381
+ - id: SWE5.2
382
+ reason: not-yet-built
383
+ note: >-
384
+ Tests are not specified per software component, so component verification
385
+ measures are not shown.
386
+ - id: SWE5.3
387
+ reason: not-yet-built
388
+ note: >-
389
+ The trail records the build the tests ran on, not a sequence in which software
390
+ elements were integrated.
391
+ - id: SWE5.4
392
+ reason: not-yet-built
393
+ note: >-
394
+ The trail records which tests ran, not the criteria that selected them for a
395
+ release.
396
+ - id: SWE5.5
397
+ reason: not-yet-built
398
+ note: >-
399
+ Component tests are not told apart from other tests in test-results.md, so
400
+ component verification results are not shown on their own.
401
+ - id: SWE5.7
402
+ reason: not-yet-built
403
+ note: >-
404
+ No link from tests to architecture elements is recorded, so this traceability
405
+ is not shown.
406
+ - id: SWE5.8
407
+ reason: organizational
408
+ note: >-
409
+ test-results.md summarises the results, but the trail cannot show that they
410
+ reached all affected parties.
411
+ - id: SWE6.2
412
+ reason: not-yet-built
413
+ note: >-
414
+ The trail records which tests ran, not the criteria that selected them for a
415
+ release, and no regression strategy.
416
+ - id: SWE6.5
417
+ reason: organizational
418
+ note: >-
419
+ test-results.md summarises the results, but the trail cannot show that they
420
+ reached all affected parties.
421
+
422
+ # -------------------------------------------------------------------------
423
+ # Every other process of the PAM 4.0 process reference model
424
+ # (automotive-spice-pack/AC-12). Written without the dot.
425
+ # -------------------------------------------------------------------------
426
+ # Acquisition and supply.
427
+ - id: ACQ4
428
+ reason: organizational
429
+ note: >-
430
+ Supplier monitoring is run by the organisation buying the software, outside a
431
+ software change.
432
+ - id: SPL2
433
+ reason: not-yet-built
434
+ note: >-
435
+ deployment-record.md records what shipped and how to roll it back, which is
436
+ input to product release, but this pack does not map it.
437
+ # System engineering.
438
+ - id: SYS1
439
+ reason: organizational
440
+ note: Requirements elicitation is done at system level, outside a software change.
441
+ - id: SYS2
442
+ reason: organizational
443
+ note: System requirements analysis is done at system level, outside a software change.
444
+ - id: SYS3
445
+ reason: organizational
446
+ note: System architectural design is done at system level, outside a software change.
447
+ - id: SYS4
448
+ reason: organizational
449
+ note: System integration is done at system level, outside a software change.
450
+ - id: SYS5
451
+ reason: organizational
452
+ note: System verification is done at system level, outside a software change.
453
+ # Validation.
454
+ - id: VAL1
455
+ reason: organizational
456
+ note: Validation is done on the vehicle or end product, outside a software change.
457
+ # Machine learning engineering.
458
+ - id: MLE1
459
+ reason: not-yet-built
460
+ note: The trail has no machine-learning artifacts, so ML requirements are not shown.
461
+ - id: MLE2
462
+ reason: not-yet-built
463
+ note: The trail has no machine-learning artifacts, so ML architecture is not shown.
464
+ - id: MLE3
465
+ reason: not-yet-built
466
+ note: The trail has no machine-learning artifacts, so ML training is not shown.
467
+ - id: MLE4
468
+ reason: not-yet-built
469
+ note: The trail has no machine-learning artifacts, so ML model testing is not shown.
470
+ # Hardware engineering.
471
+ - id: HWE1
472
+ reason: organizational
473
+ note: Hardware requirements are outside a software change.
474
+ - id: HWE2
475
+ reason: organizational
476
+ note: Hardware design is outside a software change.
477
+ - id: HWE3
478
+ reason: organizational
479
+ note: Hardware design verification is outside a software change.
480
+ - id: HWE4
481
+ reason: organizational
482
+ note: Hardware verification is outside a software change.
483
+ # Supporting processes.
484
+ - id: SUP1
485
+ reason: not-yet-built
486
+ note: >-
487
+ Phase gates and adversarial review are input to quality assurance, but this
488
+ pack does not map them.
489
+ - id: SUP8
490
+ reason: not-yet-built
491
+ note: >-
492
+ A branch and commits per change are input to configuration management, but
493
+ this pack does not map them.
494
+ - id: SUP9
495
+ reason: not-yet-built
496
+ note: >-
497
+ Bugfix instances and their caused_by link are input to problem resolution
498
+ management, but this pack does not map them.
499
+ - id: SUP10
500
+ reason: not-yet-built
501
+ note: >-
502
+ Roadmap items and requirement amendments are input to change request
503
+ management, but this pack does not map them.
504
+ - id: SUP11
505
+ reason: not-yet-built
506
+ note: The trail has no machine-learning artifacts, so ML data management is not shown.
507
+ # Management, process improvement and reuse.
508
+ - id: MAN3
509
+ reason: organizational
510
+ note: Project management is run by the organisation across changes.
511
+ - id: MAN5
512
+ reason: organizational
513
+ note: Risk management is run by the organisation across changes.
514
+ - id: MAN6
515
+ reason: organizational
516
+ note: >-
517
+ Measurement is run by the organisation; aidlc metrics is input to it, but this
518
+ pack does not map it.
519
+ - id: PIM3
520
+ reason: organizational
521
+ note: >-
522
+ Process improvement is run by the organisation; retrospectives are input to
523
+ it, but this pack does not map them.
524
+ - id: REU2
525
+ reason: organizational
526
+ note: Reuse program management is run by the organisation across products.
527
+
528
+ # -------------------------------------------------------------------------
529
+ # Process attributes (automotive-spice-pack/AC-13). An assessor rates these;
530
+ # this pack rates none. PA1.1's note is the statement the report prints.
531
+ # -------------------------------------------------------------------------
532
+ - id: PA1.1
533
+ reason: organizational
534
+ note: >-
535
+ Capability levels are rated by an assessor, from process attributes such as
536
+ this one, across an organisation's projects. This pack gives process evidence
537
+ per change and rates no capability level.
538
+ - id: PA2.1
539
+ reason: organizational
540
+ note: Process attribute for capability level 2; rated by an assessor, not by this pack.
541
+ - id: PA2.2
542
+ reason: organizational
543
+ note: Process attribute for capability level 2; rated by an assessor, not by this pack.
544
+ - id: PA3.1
545
+ reason: organizational
546
+ note: Process attribute for capability level 3; rated by an assessor, not by this pack.
547
+ - id: PA3.2
548
+ reason: organizational
549
+ note: Process attribute for capability level 3; rated by an assessor, not by this pack.
550
+ - id: PA4.1
551
+ reason: organizational
552
+ note: Process attribute for capability level 4; rated by an assessor, not by this pack.
553
+ - id: PA4.2
554
+ reason: organizational
555
+ note: Process attribute for capability level 4; rated by an assessor, not by this pack.
556
+ - id: PA5.1
557
+ reason: organizational
558
+ note: Process attribute for capability level 5; rated by an assessor, not by this pack.
559
+ - id: PA5.2
560
+ reason: organizational
561
+ note: Process attribute for capability level 5; rated by an assessor, not by this pack.
@@ -0,0 +1,109 @@
1
+ ---
2
+ name: aspice-constraints
3
+ description: Automotive SPICE 4.0 software engineering outcomes that apply while code is being written
4
+ ---
5
+ # Automotive SPICE 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 process assessment model. Treat it as a working
9
+ draft: useful for building the evidence an assessor asks for while you write code, not as
10
+ an opinion on how an assessment would rate your processes. Nothing here makes a project
11
+ ASPICE compliant, certified, or assessed at any level.
12
+
13
+ The control text paraphrases the process assessment model in this pack's own words and
14
+ cites process and outcome numbers only. It quotes nothing: the model is the VDA's text,
15
+ and the model itself is obtained from the VDA.
16
+
17
+ ## Edition and numbering
18
+
19
+ This pack targets **Automotive SPICE PAM 4.0**. Control ids are written `SWE<p>.<o>`:
20
+ `SWE1.3` means outcome 3 of process SWE.1. Excluded processes are written without the
21
+ dot — `MAN3` is MAN.3, `SUP10` is SUP.10 — and process attributes as `PA1.1`.
22
+
23
+ Reading from 3.1: 3.1's "software qualification test" is 4.0's **SWE.6 "software
24
+ verification"**, and 4.0's SWE.5 covers both component verification and integration
25
+ verification.
26
+
27
+ ## What an assessment rates, and what this pack gives
28
+
29
+ Automotive SPICE rates an **organisation's processes across its projects**. An assessor
30
+ looks at many projects and rates process attributes into a capability level. A per-change
31
+ artifact trail is **input to that rating, not the rating**. No output of this pack states
32
+ or implies a capability level, and none should be presented as one. The report lists the
33
+ nine process attributes as not covered, and says why.
34
+
35
+ ## What this pack covers, and what it does not
36
+
37
+ It covers the **software engineering processes SWE.1 to SWE.6 only**. These processes are
38
+ not covered: system engineering (SYS), hardware engineering (HWE), machine learning
39
+ engineering (MLE and SUP.11), validation (VAL), management (MAN), the other support
40
+ processes (SUP), supply (SPL), acquisition (ACQ), reuse (REU) and process improvement
41
+ (PIM). Each is listed in the pack's `controls.yaml` under `excluded:` with a reason:
42
+ `organizational` where nothing in a software change can speak to it, `not-yet-built` where
43
+ the trail holds input to it and this pack does not yet map it.
44
+
45
+ Of the 33 outcomes of SWE.1 to SWE.6, 16 are controls. The other 17 are excluded, each
46
+ with a note saying what the trail cannot show — among them every "agreed and communicated
47
+ to all affected parties" outcome, since the trail records a person's review, not who was
48
+ told.
49
+
50
+ ## Which controls apply, and when
51
+
52
+ | Phase | Controls to have in mind |
53
+ |---|---|
54
+ | Requirements | SWE1.1, SWE1.3, SWE1.4, SWE1.5 |
55
+ | Design | SWE2.1, SWE2.2, SWE2.3, SWE3.1, SWE3.3 |
56
+ | Implementation | SWE3.2, SWE3.3, SWE4.1 |
57
+ | Testing | SWE4.1, SWE4.3, SWE5.6, SWE6.1, SWE6.3, SWE6.4 |
58
+
59
+ Run `aidlc compliance check` for each control's exact fail condition. Apply the fail
60
+ condition as written rather than your reading of the outcome — that is what makes two
61
+ reviews of the same change agree.
62
+
63
+ ## What each control asks of you while you build
64
+
65
+ Every control is evidenced: the record is the evidence, so make sure each leaves one.
66
+
67
+ - **SWE1.1, requirements specified.** `requirements.md` states numbered acceptance
68
+ criteria, `AC-1` onwards.
69
+ - **SWE1.3, requirements analysed.** `requirements.md` names what you read of the existing
70
+ system, and resolves its open questions or says there are none.
71
+ - **SWE1.4, effect on the environment.** `requirements.md` has a non-functional section —
72
+ compatibility, resources, bounds — or says the change has no such effect.
73
+ - **SWE1.5, traced to the source.** `requirements.md` names where its criteria come from:
74
+ the roadmap item, or a customer requirement. Where system requirements live in another
75
+ tool, cite their ids in `requirements.md`; that is the only link the trail can keep.
76
+ - **SWE2.1, architecture designed.** `design.md` names its components, their
77
+ responsibilities, and how they interact.
78
+ - **SWE2.2, architecture analysed.** `design.md` records each design decision with its
79
+ reason and the alternative it rejected.
80
+ - **SWE2.3, design traced to requirements.** Every `design.md` section names the `AC-n` it
81
+ addresses, and every active criterion is addressed somewhere.
82
+ - **SWE3.1, detailed design.** `design.md` gives the interfaces — signatures, data shapes,
83
+ file formats — of the components the change touches.
84
+ - **SWE3.2, units built as designed.** Every task in `tasks.md` is ticked done or deferred
85
+ in place with a dated reason.
86
+ - **SWE3.3, work traced to requirements.** Every task in `tasks.md` cites the criteria it
87
+ serves, or says it is a chore; every active criterion is claimed by a task.
88
+ - **SWE4.1 and SWE4.3, unit verification.** `test-results.md` names the tests for the
89
+ units the change adds or alters, and records their outcome.
90
+ - **SWE5.6, integrated software verified.** `test-results.md` records a run of the whole
91
+ suite on the integrated change, and its outcome.
92
+ - **SWE6.1 and SWE6.3, verified against requirements.** Every active criterion has a test
93
+ that names it, and `test-results.md` records a result per criterion, explaining any
94
+ failure.
95
+ - **SWE6.4, tests traced to requirements.** `test-results.md` records the criterion-to-test
96
+ matrix the testing gate builds: no criterion without a test, no test citing no criterion.
97
+
98
+ ## What the trail does not establish
99
+
100
+ The trail shows a change passed through requirements, design, implementation and testing,
101
+ and a requirement changed after its phase closed is recorded when it goes through
102
+ `aidlc amend`. An artifact edited directly after its phase closed — without
103
+ `aidlc amend` — is **not** detected: every gate still passes. So the trail does **not**
104
+ establish that `requirements.md`, `design.md` and the shipped code still agree. Do not
105
+ represent this pack's traceability controls as evidence of that agreement.
106
+
107
+ The report counts an evidenced control as evidenced when its named file exists in the
108
+ instance's state directory. It does not read the file's contents; the fail condition,
109
+ applied by a review, does.