@aigis-ai/cli 2.0.2 → 2.1.1

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 (33) hide show
  1. package/README.md +94 -45
  2. package/bin/aigis.js +139 -8
  3. package/content/resolvers/triggers.json +363 -41
  4. package/content/skills/areas/audit-logging.md +33 -0
  5. package/content/skills/areas/bias-monitoring.md +34 -0
  6. package/content/skills/areas/confidence-scoring.md +23 -0
  7. package/content/skills/areas/data-integrity.md +25 -0
  8. package/content/skills/areas/eu-ai-act-art-13-deployer-transparency.md +133 -0
  9. package/content/skills/areas/eu-ai-act-art-50-transparency-disclosure.md +134 -0
  10. package/content/skills/areas/eu-ai-act-art-73-incident-reporting.md +149 -0
  11. package/content/skills/areas/eu-ai-act-art-9-risk-management.md +141 -0
  12. package/content/skills/areas/fallback-patterns.md +28 -0
  13. package/content/skills/areas/human-oversight.md +38 -0
  14. package/content/skills/areas/input-validation.md +27 -0
  15. package/content/skills/areas/monitoring.md +29 -0
  16. package/content/skills/areas/prompt-security.md +29 -0
  17. package/content/templates/eu-ai-act-annex-iv.md +193 -0
  18. package/docs/frontmatter-schema.md +75 -0
  19. package/docs/screenshots/README.md +17 -0
  20. package/docs/screenshots/agent-flow.png +0 -0
  21. package/docs/screenshots/setup.png +0 -0
  22. package/docs/screenshots/verify.png +0 -0
  23. package/lib/auto-verify.js +70 -1
  24. package/lib/build.js +101 -12
  25. package/lib/classify.js +8 -2
  26. package/lib/init.js +269 -5
  27. package/lib/jurisdiction.js +137 -0
  28. package/lib/report.js +331 -0
  29. package/package.json +1 -1
  30. package/scripts/area-controls-baseline.json +188 -0
  31. package/scripts/area-frontmatter.schema.json +61 -0
  32. package/scripts/validate-area-frontmatter.js +228 -0
  33. package/aigis-ai-cli-2.0.1.tgz +0 -0
@@ -1,226 +1,548 @@
1
1
  {
2
2
  "version": "1.0",
3
3
  "tier_rule": "High-confidence: phrase implies the listed traits in essentially every realistic project where it appears (no plausible counterexample). Low-confidence: phrase implies the traits only some of the time (a realistic counter-project exists). Decision rule: if you can describe a project where the phrase appears but the trait does not apply, the entry is low-confidence. When in doubt, low-confidence.",
4
-
5
4
  "high_confidence": {
5
+ "agentic code review": {
6
+ "traits": [
7
+ "uses-llm",
8
+ "is-agentic",
9
+ "generates-code"
10
+ ],
11
+ "confidence": "high",
12
+ "notes": "Agentic code review — LLM driving the review loop, suggesting + applying changes."
13
+ },
6
14
  "Anthropic": {
7
- "traits": ["uses-llm", "uses-thirdparty-api"],
15
+ "traits": [
16
+ "uses-llm",
17
+ "uses-thirdparty-api"
18
+ ],
8
19
  "confidence": "high",
9
20
  "notes": "Mentioning the provider implies third-party + LLM."
10
21
  },
22
+ "biometric identification": {
23
+ "traits": [
24
+ "is-eu-high-risk",
25
+ "processes-pii"
26
+ ],
27
+ "confidence": "high",
28
+ "notes": "EU AI Act Annex III(1) — biometric ID + categorisation of natural persons is high-risk."
29
+ },
30
+ "border control": {
31
+ "traits": [
32
+ "is-eu-high-risk"
33
+ ],
34
+ "confidence": "high",
35
+ "notes": "EU AI Act Annex III(7) — migration, asylum, border control management is high-risk."
36
+ },
11
37
  "chatbot": {
12
- "traits": ["uses-llm", "accepts-user-input"],
38
+ "traits": [
39
+ "uses-llm",
40
+ "accepts-user-input"
41
+ ],
13
42
  "confidence": "high",
14
43
  "notes": "Any LLM-backed conversational interface."
15
44
  },
16
45
  "Claude": {
17
- "traits": ["uses-llm", "uses-thirdparty-api"],
46
+ "traits": [
47
+ "uses-llm",
48
+ "uses-thirdparty-api"
49
+ ],
18
50
  "confidence": "high",
19
51
  "notes": "Specific model name implies the provider."
20
52
  },
21
53
  "code assistant": {
22
- "traits": ["uses-llm", "generates-code"],
54
+ "traits": [
55
+ "uses-llm",
56
+ "generates-code"
57
+ ],
23
58
  "confidence": "high",
24
59
  "notes": "Code completion or code-explanation tooling."
25
60
  },
26
61
  "coding agent": {
27
- "traits": ["uses-llm", "generates-code", "is-agentic"],
62
+ "traits": [
63
+ "uses-llm",
64
+ "generates-code",
65
+ "is-agentic"
66
+ ],
28
67
  "confidence": "high",
29
68
  "notes": "Agent that reads and writes code (Cursor-style)."
30
69
  },
70
+ "credit scoring": {
71
+ "traits": [
72
+ "is-eu-high-risk",
73
+ "handles-financial",
74
+ "influences-decisions"
75
+ ],
76
+ "confidence": "high",
77
+ "notes": "EU AI Act Annex III(5)(b) — creditworthiness evaluation is high-risk (excluding fraud detection)."
78
+ },
79
+ "critical infrastructure": {
80
+ "traits": [
81
+ "is-eu-high-risk",
82
+ "is-external"
83
+ ],
84
+ "confidence": "high",
85
+ "notes": "EU AI Act Annex III(2) — critical infra management/operation is high-risk."
86
+ },
87
+ "document Q&A": {
88
+ "traits": [
89
+ "uses-llm",
90
+ "uses-rag"
91
+ ],
92
+ "confidence": "high",
93
+ "notes": "Q&A over a document corpus — implies retrieval-augmented LLM."
94
+ },
95
+ "email assistant": {
96
+ "traits": [
97
+ "uses-llm",
98
+ "accepts-user-input",
99
+ "processes-pii"
100
+ ],
101
+ "confidence": "high",
102
+ "notes": "Email drafting/triage assistant — emails contain PII by default."
103
+ },
104
+ "enterprise search": {
105
+ "traits": [
106
+ "uses-llm",
107
+ "uses-rag",
108
+ "is-internal"
109
+ ],
110
+ "confidence": "high",
111
+ "notes": "AI-powered search over internal documents — implies RAG over org corpus."
112
+ },
113
+ "EU AI Act": {
114
+ "traits": [
115
+ "jurisdiction-eu"
116
+ ],
117
+ "confidence": "high",
118
+ "notes": "Explicit EU AI Act mention — system is in EU regulatory scope."
119
+ },
120
+ "European Union": {
121
+ "traits": [
122
+ "jurisdiction-eu"
123
+ ],
124
+ "confidence": "high",
125
+ "notes": "Explicit EU jurisdiction mention."
126
+ },
127
+ "FedRAMP": {
128
+ "traits": [
129
+ "jurisdiction-us-regulated"
130
+ ],
131
+ "confidence": "high",
132
+ "notes": "US federal cloud authorization — implies US regulated jurisdiction."
133
+ },
31
134
  "fine-tune": {
32
- "traits": ["uses-finetuned"],
135
+ "traits": [
136
+ "uses-finetuned"
137
+ ],
33
138
  "confidence": "high",
34
139
  "notes": "Matches 'fine-tune', 'fine-tuned', 'fine-tuning'."
35
140
  },
36
141
  "function calling": {
37
- "traits": ["is-agentic", "uses-llm"],
142
+ "traits": [
143
+ "is-agentic",
144
+ "uses-llm"
145
+ ],
38
146
  "confidence": "high",
39
147
  "notes": "OpenAI/Anthropic function/tool calling — by definition agentic."
40
148
  },
41
149
  "GDPR": {
42
- "traits": ["jurisdiction-eu"],
150
+ "traits": [
151
+ "jurisdiction-eu"
152
+ ],
43
153
  "confidence": "high",
44
154
  "notes": "EU regulatory scope."
45
155
  },
46
156
  "GPT-4": {
47
- "traits": ["uses-llm", "uses-thirdparty-api"],
157
+ "traits": [
158
+ "uses-llm",
159
+ "uses-thirdparty-api"
160
+ ],
48
161
  "confidence": "high",
49
162
  "notes": "Matches 'GPT-4', 'GPT-4o', 'GPT-4 Turbo' via substring."
50
163
  },
51
164
  "HIPAA": {
52
- "traits": ["handles-health", "jurisdiction-us-regulated"],
165
+ "traits": [
166
+ "handles-health",
167
+ "jurisdiction-us-regulated"
168
+ ],
53
169
  "confidence": "high",
54
170
  "notes": "Mentioning HIPAA implies health data + US regulated."
55
171
  },
172
+ "hiring": {
173
+ "traits": [
174
+ "is-eu-high-risk",
175
+ "influences-decisions",
176
+ "processes-pii"
177
+ ],
178
+ "confidence": "high",
179
+ "notes": "EU AI Act Annex III(4)(a) — recruitment/selection AI is high-risk."
180
+ },
181
+ "image generation": {
182
+ "traits": [
183
+ "uses-llm",
184
+ "generates-content",
185
+ "is-multimodal"
186
+ ],
187
+ "confidence": "high",
188
+ "notes": "AI image generation — multimodal output, content-generation surface."
189
+ },
190
+ "internal coding assistant": {
191
+ "traits": [
192
+ "uses-llm",
193
+ "generates-code",
194
+ "is-internal"
195
+ ],
196
+ "confidence": "high",
197
+ "notes": "Coding assistant for internal engineering — code-gen + internal scope."
198
+ },
199
+ "judicial decision": {
200
+ "traits": [
201
+ "is-eu-high-risk",
202
+ "influences-decisions"
203
+ ],
204
+ "confidence": "high",
205
+ "notes": "EU AI Act Annex III(8) — administration of justice AI is high-risk."
206
+ },
207
+ "law enforcement": {
208
+ "traits": [
209
+ "is-eu-high-risk"
210
+ ],
211
+ "confidence": "high",
212
+ "notes": "EU AI Act Annex III(6) — law enforcement AI is high-risk (predictive policing, profiling)."
213
+ },
56
214
  "OpenAI": {
57
- "traits": ["uses-llm", "uses-thirdparty-api"],
215
+ "traits": [
216
+ "uses-llm",
217
+ "uses-thirdparty-api"
218
+ ],
58
219
  "confidence": "high",
59
220
  "notes": "Same pattern as Anthropic."
60
221
  },
222
+ "PCI DSS": {
223
+ "traits": [
224
+ "handles-financial",
225
+ "jurisdiction-us-regulated"
226
+ ],
227
+ "confidence": "high",
228
+ "notes": "Payment Card Industry Data Security Standard — implies financial data + US regulated."
229
+ },
61
230
  "RAG": {
62
- "traits": ["uses-rag", "uses-llm"],
231
+ "traits": [
232
+ "uses-rag",
233
+ "uses-llm"
234
+ ],
63
235
  "confidence": "high",
64
236
  "notes": "Retrieval-augmented generation. Spelled out in next entry."
65
237
  },
238
+ "resume screening": {
239
+ "traits": [
240
+ "is-eu-high-risk",
241
+ "influences-decisions",
242
+ "processes-pii"
243
+ ],
244
+ "confidence": "high",
245
+ "notes": "EU AI Act Annex III(4)(a) — application analysis/filtering AI is high-risk."
246
+ },
66
247
  "retrieval-augmented generation": {
67
- "traits": ["uses-rag", "uses-llm"],
248
+ "traits": [
249
+ "uses-rag",
250
+ "uses-llm"
251
+ ],
68
252
  "confidence": "high",
69
253
  "notes": "Spelled-out form of RAG."
70
254
  },
255
+ "SOC 2": {
256
+ "traits": [
257
+ "jurisdiction-us-regulated"
258
+ ],
259
+ "confidence": "high",
260
+ "notes": "US service-org compliance framework — implies US regulated context."
261
+ },
262
+ "SQL assistant": {
263
+ "traits": [
264
+ "uses-llm",
265
+ "generates-code"
266
+ ],
267
+ "confidence": "high",
268
+ "notes": "NL-to-SQL or SQL assistant — generates SQL code from natural language."
269
+ },
270
+ "support ticket triage": {
271
+ "traits": [
272
+ "uses-llm",
273
+ "accepts-user-input",
274
+ "influences-decisions"
275
+ ],
276
+ "confidence": "high",
277
+ "notes": "Triage AI for support tickets — routes/prioritizes user-submitted issues."
278
+ },
71
279
  "tool calling": {
72
- "traits": ["is-agentic", "uses-llm"],
280
+ "traits": [
281
+ "is-agentic",
282
+ "uses-llm"
283
+ ],
73
284
  "confidence": "high",
74
285
  "notes": "Same concept as function calling."
75
286
  },
76
287
  "vector database": {
77
- "traits": ["uses-rag"],
288
+ "traits": [
289
+ "uses-rag"
290
+ ],
78
291
  "confidence": "high",
79
292
  "notes": "Pinecone/Weaviate/Chroma/pgvector — any of these implies RAG."
80
293
  }
81
294
  },
82
-
83
295
  "low_confidence": {
84
296
  "AI agent": {
85
- "traits": ["is-agentic"],
297
+ "traits": [
298
+ "is-agentic"
299
+ ],
86
300
  "confidence": "low",
87
301
  "confirmation_prompt": "You mentioned an AI agent. Does an LLM choose the next action at each step (decides which tool to call, when to stop), or is the flow scripted by your code with the LLM only doing per-step generation? (yes / no / unsure)",
88
302
  "notes": "'Agent' is overloaded marketing language. True agentic systems delegate the action loop to the LLM."
89
303
  },
90
304
  "analytics": {
91
- "traits": ["processes-pii"],
305
+ "traits": [
306
+ "processes-pii"
307
+ ],
92
308
  "confidence": "low",
93
309
  "confirmation_prompt": "You mentioned analytics. Are individual users identifiable in the data, or is it aggregated (counts, percentages, no per-user records)? (yes / no / unsure)",
94
310
  "notes": "Aggregate analytics avoids PII."
95
311
  },
96
312
  "checkout": {
97
- "traits": ["handles-financial"],
313
+ "traits": [
314
+ "handles-financial"
315
+ ],
98
316
  "confidence": "low",
99
317
  "confirmation_prompt": "You mentioned checkout. Does this code touch payment processing, transaction records, or money flow? (yes / no / unsure)",
100
318
  "notes": "Checkout UI vs payment backend are different things."
101
319
  },
102
320
  "content moderation": {
103
- "traits": ["influences-decisions", "accepts-user-input"],
321
+ "traits": [
322
+ "influences-decisions",
323
+ "accepts-user-input"
324
+ ],
104
325
  "confidence": "low",
105
326
  "confirmation_prompt": "You mentioned content moderation. Does the AI's classification act on content directly (delete/hide), or does a human reviewer make the final call? (yes / no / unsure)",
106
327
  "notes": "Same as 'moderation' but explicit two-trait suggestion."
107
328
  },
108
329
  "customer support": {
109
- "traits": ["accepts-user-input", "is-external"],
330
+ "traits": [
331
+ "accepts-user-input",
332
+ "is-external"
333
+ ],
110
334
  "confidence": "low",
111
335
  "confirmation_prompt": "You mentioned customer support. Is this exposed directly to customers (external) or only used by your support team (internal)? (yes / no / unsure)",
112
336
  "notes": "Some support tools are agent-only."
113
337
  },
338
+ "customers in Europe": {
339
+ "traits": [
340
+ "jurisdiction-eu"
341
+ ],
342
+ "confidence": "low",
343
+ "confirmation_prompt": "You mentioned customers in Europe. Will the system serve users in EU member states (triggering EU AI Act scope), or is \"Europe\" being used loosely (e.g. UK, Switzerland, non-EU European countries)? (yes / no / unsure)",
344
+ "notes": "Europe ≠ EU. UK + Switzerland + Norway + Iceland are in Europe but not in EU AI Act scope."
345
+ },
114
346
  "dashboard": {
115
- "traits": ["processes-pii"],
347
+ "traits": [
348
+ "processes-pii"
349
+ ],
116
350
  "confidence": "low",
117
351
  "confirmation_prompt": "You mentioned a dashboard. Does it display per-user data, or aggregate metrics only? (yes / no / unsure)",
118
352
  "notes": "Aggregate dashboards skip PII."
119
353
  },
120
354
  "education": {
121
- "traits": ["handles-minors"],
355
+ "traits": [
356
+ "handles-minors"
357
+ ],
122
358
  "confidence": "low",
123
359
  "confirmation_prompt": "You mentioned education. Is this product used by anyone under 13 (or under 16 in the EU)? (yes / no / unsure)",
124
360
  "notes": "Adult education products don't trigger COPPA/minors."
125
361
  },
362
+ "education AI": {
363
+ "traits": [
364
+ "is-eu-high-risk",
365
+ "handles-minors"
366
+ ],
367
+ "confidence": "low",
368
+ "confirmation_prompt": "You mentioned education AI. Does the system make consequential decisions about students (admission, grading, exam proctoring), or does it just provide tutoring/study assistance? Annex III(3) of the EU AI Act covers the consequential-decision case as high-risk. (yes / no / unsure)",
369
+ "notes": "Tutoring/study aids are not high-risk; admission/grading systems are."
370
+ },
126
371
  "email automation": {
127
- "traits": ["generates-content", "processes-pii"],
372
+ "traits": [
373
+ "generates-content",
374
+ "processes-pii"
375
+ ],
128
376
  "confidence": "low",
129
377
  "confirmation_prompt": "You mentioned email automation. Are the emails generated per-recipient (uses customer data) or templated/broadcast (no per-user PII in the generation)? (yes / no / unsure)",
130
378
  "notes": "Drip campaigns differ from per-recipient generation."
131
379
  },
380
+ "employment AI": {
381
+ "traits": [
382
+ "is-eu-high-risk",
383
+ "influences-decisions"
384
+ ],
385
+ "confidence": "low",
386
+ "confirmation_prompt": "You mentioned employment AI. Does the system make decisions affecting hiring, promotion, termination, task allocation, or performance evaluation? Annex III(4) of the EU AI Act covers these as high-risk. (yes / no / unsure)",
387
+ "notes": "Internal HR analytics dashboards may not be high-risk; decision-making AI is."
388
+ },
389
+ "EU customers": {
390
+ "traits": [
391
+ "jurisdiction-eu"
392
+ ],
393
+ "confidence": "low",
394
+ "confirmation_prompt": "You mentioned EU customers. Will the system actually be deployed in the EU or accessible to users in the EU (triggering EU AI Act + GDPR scope), or is \"EU\" used in a different sense in your project? (yes / no / unsure)",
395
+ "notes": "Phrase appears in non-EU contexts (e.g. data analysis about EU as a market without serving EU users)."
396
+ },
132
397
  "extract from documents": {
133
- "traits": ["uses-rag"],
398
+ "traits": [
399
+ "uses-rag"
400
+ ],
134
401
  "confidence": "low",
135
402
  "confirmation_prompt": "You mentioned document extraction. Does the system index and search documents semantically (RAG), or is this single-document OCR/extraction without retrieval? (yes / no / unsure)",
136
403
  "notes": "OCR pipelines aren't RAG."
137
404
  },
138
405
  "form processing": {
139
- "traits": ["accepts-user-input", "processes-pii"],
406
+ "traits": [
407
+ "accepts-user-input",
408
+ "processes-pii"
409
+ ],
140
410
  "confidence": "low",
141
411
  "confirmation_prompt": "You mentioned form processing. Do the forms collect personally identifiable information (name, email, phone, etc.)? (yes / no / unsure)",
142
412
  "notes": "Anonymous feedback forms don't have PII."
143
413
  },
144
414
  "high traffic": {
145
- "traits": ["is-high-volume"],
415
+ "traits": [
416
+ "is-high-volume"
417
+ ],
146
418
  "confidence": "low",
147
419
  "confirmation_prompt": "You mentioned high traffic. Are you actually expecting >1000 LLM requests/day, or describing aspirational scale? (yes / no / unsure)",
148
420
  "notes": "Aspirational scale != current reality."
149
421
  },
150
422
  "image upload": {
151
- "traits": ["is-multimodal"],
423
+ "traits": [
424
+ "is-multimodal"
425
+ ],
152
426
  "confidence": "low",
153
427
  "confirmation_prompt": "You mentioned image upload. Are the images analyzed by a vision model (multimodal LLM), or just stored/displayed without AI processing? (yes / no / unsure)",
154
428
  "notes": "Image hosting != multimodal AI."
155
429
  },
156
430
  "internal tool": {
157
- "traits": ["is-internal"],
431
+ "traits": [
432
+ "is-internal"
433
+ ],
158
434
  "confidence": "low",
159
435
  "confirmation_prompt": "You mentioned an internal tool. Is access restricted to employees only (no external users), or is 'internal' a marketing term? (yes / no / unsure)",
160
436
  "notes": "Some 'internal' tools have customer-facing surfaces."
161
437
  },
162
438
  "marketplace": {
163
- "traits": ["handles-financial", "is-external"],
439
+ "traits": [
440
+ "handles-financial",
441
+ "is-external"
442
+ ],
164
443
  "confidence": "low",
165
444
  "confirmation_prompt": "You mentioned a marketplace. Does it process payments directly, or just facilitate connections (no money flow through your service)? (yes / no / unsure)",
166
445
  "notes": "Lead-gen marketplaces don't always touch money."
167
446
  },
447
+ "meeting summary": {
448
+ "traits": [
449
+ "uses-llm",
450
+ "processes-pii"
451
+ ],
452
+ "confidence": "low",
453
+ "confirmation_prompt": "You mentioned meeting summary. Will the system process internal business meetings (likely containing PII like names, emails, customer info), or only public/lecture-style content where PII risk is lower? (yes / no / unsure)",
454
+ "notes": "Public lecture summarizers may not handle PII; business meeting summarizers do."
455
+ },
168
456
  "moderation": {
169
- "traits": ["influences-decisions"],
457
+ "traits": [
458
+ "influences-decisions"
459
+ ],
170
460
  "confidence": "low",
171
461
  "confirmation_prompt": "You mentioned moderation. Does the AI act directly on user content (delete, hide, suspend) without a human reviewer in the loop? (yes / no / unsure)",
172
462
  "notes": "Human-in-the-loop moderation is advisory, not deciding."
173
463
  },
174
464
  "notifications": {
175
- "traits": ["processes-pii"],
465
+ "traits": [
466
+ "processes-pii"
467
+ ],
176
468
  "confidence": "low",
177
469
  "confirmation_prompt": "You mentioned notifications. Are notifications addressed to individual users (their email/phone/device token)? (yes / no / unsure)",
178
470
  "notes": "Broadcast notifications without targeting don't need PII."
179
471
  },
180
472
  "personalization": {
181
- "traits": ["processes-pii"],
473
+ "traits": [
474
+ "processes-pii"
475
+ ],
182
476
  "confidence": "low",
183
477
  "confirmation_prompt": "You mentioned personalization. Does this system use information that identifies an individual user (account, profile, history) to personalize output? Anonymous session-only personalization does not count. (yes / no / unsure)",
184
478
  "notes": "Anonymous session-based personalization doesn't trigger PII."
185
479
  },
186
480
  "recommendations": {
187
- "traits": ["influences-decisions"],
481
+ "traits": [
482
+ "influences-decisions"
483
+ ],
188
484
  "confidence": "low",
189
485
  "confirmation_prompt": "You mentioned recommendations. Do they directly affect a user's outcomes (price, eligibility, hiring) or are they advisory only? (yes / no / unsure)",
190
486
  "notes": "Product recommendations are usually advisory; loan recommendations are not."
191
487
  },
192
488
  "search through documents": {
193
- "traits": ["uses-rag"],
489
+ "traits": [
490
+ "uses-rag"
491
+ ],
194
492
  "confidence": "low",
195
493
  "confirmation_prompt": "You mentioned searching through documents. Are the documents embedded into a vector store, or is this keyword search (Postgres FTS, Elasticsearch BM25, grep)? (yes / no / unsure)",
196
494
  "notes": "Keyword search != RAG."
197
495
  },
198
496
  "summarize": {
199
- "traits": ["uses-llm", "generates-content"],
497
+ "traits": [
498
+ "uses-llm",
499
+ "generates-content"
500
+ ],
200
501
  "confidence": "low",
201
502
  "confirmation_prompt": "You mentioned summarization. Is this an LLM summary, or extractive (pulling sentences out without an LLM)? (yes / no / unsure)",
202
503
  "notes": "Extractive summarization predates LLMs."
203
504
  },
505
+ "transcription": {
506
+ "traits": [
507
+ "uses-llm",
508
+ "is-multimodal",
509
+ "processes-pii"
510
+ ],
511
+ "confidence": "low",
512
+ "confirmation_prompt": "You mentioned transcription. Is the audio user-generated content that may contain PII (names, addresses, conversations), or is it processed audio without PII concerns (e.g. published podcasts, public speeches)? (yes / no / unsure)",
513
+ "notes": "User-generated transcription handles PII; published-content transcription typically does not."
514
+ },
204
515
  "translation": {
205
- "traits": ["uses-llm"],
516
+ "traits": [
517
+ "uses-llm"
518
+ ],
206
519
  "confidence": "low",
207
520
  "confirmation_prompt": "You mentioned translation. Is this LLM-based, or using a dedicated translation API (Google Translate, DeepL) without an LLM? (yes / no / unsure)",
208
521
  "notes": "Translation APIs != LLMs."
209
522
  },
210
523
  "user profile": {
211
- "traits": ["processes-pii"],
524
+ "traits": [
525
+ "processes-pii"
526
+ ],
212
527
  "confidence": "low",
213
528
  "confirmation_prompt": "You mentioned user profiles. Do these profiles include personally identifiable information (name, email, address, etc.)? (yes / no / unsure)",
214
529
  "notes": "Pseudonymous profiles can avoid PII traits."
215
530
  },
216
531
  "voice assistant": {
217
- "traits": ["is-multimodal", "accepts-user-input", "uses-llm"],
532
+ "traits": [
533
+ "is-multimodal",
534
+ "accepts-user-input",
535
+ "uses-llm"
536
+ ],
218
537
  "confidence": "low",
219
538
  "confirmation_prompt": "You mentioned voice. Is voice the input/output modality (multimodal LLM), or is voice transcribed to text first by a separate service before reaching your LLM? (yes / no / unsure)",
220
539
  "notes": "STT-then-LLM is text-only at the LLM layer."
221
540
  },
222
541
  "writing assistant": {
223
- "traits": ["uses-llm", "generates-content"],
542
+ "traits": [
543
+ "uses-llm",
544
+ "generates-content"
545
+ ],
224
546
  "confidence": "low",
225
547
  "confirmation_prompt": "You mentioned a writing assistant. Does it generate text on its own (uses-llm + generates-content), or only check spelling/grammar against rules? (yes / no / unsure)",
226
548
  "notes": "Grammarly-style rule-based tools don't need LLM traits."
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: []
6
6
  nist: [MEASURE-2.8, MANAGE-4.1, MANAGE-4.3]
7
7
  iso42001: [Clause-9.1, Annex-A.6]
8
+ eu_ai_act: [Art-12, Art-12(1), Art-12(2)]
8
9
  min_risk_tier: all
9
10
  system_traits: [uses-llm]
10
11
  ---
@@ -170,6 +171,38 @@ function logDecision(decision, context) {
170
171
  - **Log retention and compliance.** Different regulations require different retention periods. Configure per data type.
171
172
  - **Cross-system correlation.** If the AI system calls external services, propagate trace IDs via headers.
172
173
 
174
+ ## EU AI Act extensions
175
+
176
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 12 mandates automatic event recording over the AI system's lifetime for high-risk systems, with specific obligations on log content, format, and retention.
177
+
178
+ ### Article 12 — Record-keeping obligations
179
+
180
+ - **Art 12(1) — Automatic event recording.** Logging must be automatic; manual log entries are not acceptable for compliance demonstration. The procedure above already satisfies this if structured logging is wired into the LLM call path.
181
+ - **Art 12(2) — Traceability of system functioning.** Logs must enable the deployer (or auditors) to trace the system's functioning across:
182
+ - Period of use (each session start / end timestamps)
183
+ - The data input that produced each output (input → output linkage via trace ID)
184
+ - The reference data used (for RAG: which retrieved chunks; for inference: which model version)
185
+ - Identification of natural persons involved in oversight (Article 14 cross-reference — operator id on every override)
186
+ - **Art 12(3) — For Annex III(1)(a) biometric ID systems** (additional requirements):
187
+ - Period of each use (start/end)
188
+ - The reference database against which input data was checked
189
+ - The input data for which the search led to a match
190
+ - Identity of the natural persons involved in verifying results (Art 14(5) dual control)
191
+ - **Article 19 retention** — high-risk system logs must be retained for at least **6 months**, longer if required by sector-specific Union or national law (e.g. financial services often requires 5+ years).
192
+
193
+ ### Verification checkpoint (EU jurisdiction)
194
+
195
+ - Log retention is configured ≥ 6 months in the storage backend.
196
+ - Each LLM call has a trace ID linking input → output → operator (if oversight engaged).
197
+ - For systems doing biometric identification: logs include reference-database identifier + dual-confirmation operator identities per Article 14(5).
198
+ - Log access is audited (who queried what, when) — auditors will check for unauthorized access to the regulated logs themselves.
199
+
200
+ ### Cross-reference
201
+
202
+ - `aigis get human-oversight` Article 14(5) — operator identity that gets logged here.
203
+ - `aigis get eu-ai-act-art-9-risk-management` — logs are the evidence base for quarterly risk re-evaluation.
204
+ - `aigis get eu-ai-act-art-73-incident-reporting` — logs are the evidence base for incident causal analysis (15-day window).
205
+
173
206
  ## Related infrastructure
174
207
 
175
208
  - `aigis infra logging` — `structlog` JSON-to-stdout setup with a concrete `REDACT_KEYS` list, plus integration patterns for Datadog/New Relic/Honeycomb, CloudWatch, Sentry (with the `max_request_body_size='never'` warning), and OpenTelemetry/OTLP.