@aigis-ai/cli 2.0.1 → 2.1.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 (111) hide show
  1. package/README.md +97 -178
  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/cli-python/LICENSE +0 -21
  34. package/cli-python/README.md +0 -32
  35. package/cli-python/aigis_cli/SKILL.md +0 -70
  36. package/cli-python/aigis_cli/__init__.py +0 -3
  37. package/cli-python/aigis_cli/__pycache__/__init__.cpython-313.pyc +0 -0
  38. package/cli-python/aigis_cli/__pycache__/annotate.cpython-313.pyc +0 -0
  39. package/cli-python/aigis_cli/__pycache__/build.cpython-313.pyc +0 -0
  40. package/cli-python/aigis_cli/__pycache__/checksum.cpython-313.pyc +0 -0
  41. package/cli-python/aigis_cli/__pycache__/classify.cpython-313.pyc +0 -0
  42. package/cli-python/aigis_cli/__pycache__/cli.cpython-313.pyc +0 -0
  43. package/cli-python/aigis_cli/__pycache__/fetch.cpython-313.pyc +0 -0
  44. package/cli-python/aigis_cli/__pycache__/init_ide.cpython-313.pyc +0 -0
  45. package/cli-python/aigis_cli/__pycache__/keywords.cpython-313.pyc +0 -0
  46. package/cli-python/aigis_cli/__pycache__/search.cpython-313.pyc +0 -0
  47. package/cli-python/aigis_cli/annotate.py +0 -45
  48. package/cli-python/aigis_cli/auto_verify.py +0 -518
  49. package/cli-python/aigis_cli/build.py +0 -470
  50. package/cli-python/aigis_cli/checksum.py +0 -22
  51. package/cli-python/aigis_cli/classify.py +0 -192
  52. package/cli-python/aigis_cli/cli.py +0 -618
  53. package/cli-python/aigis_cli/content/index/audit-scan.md +0 -217
  54. package/cli-python/aigis_cli/content/index/auto-verify-rules.json +0 -439
  55. package/cli-python/aigis_cli/content/index/context-rules.json +0 -90
  56. package/cli-python/aigis_cli/content/index/frameworks.md +0 -82
  57. package/cli-python/aigis_cli/content/index/guardrails.json +0 -23
  58. package/cli-python/aigis_cli/content/index/taxonomy.md +0 -81
  59. package/cli-python/aigis_cli/content/resolvers/triggers.json +0 -229
  60. package/cli-python/aigis_cli/content/skills/areas/audit-logging.md +0 -176
  61. package/cli-python/aigis_cli/content/skills/areas/bias-monitoring.md +0 -172
  62. package/cli-python/aigis_cli/content/skills/areas/confidence-scoring.md +0 -180
  63. package/cli-python/aigis_cli/content/skills/areas/data-integrity.md +0 -257
  64. package/cli-python/aigis_cli/content/skills/areas/explainability.md +0 -174
  65. package/cli-python/aigis_cli/content/skills/areas/fallback-patterns.md +0 -200
  66. package/cli-python/aigis_cli/content/skills/areas/human-oversight.md +0 -220
  67. package/cli-python/aigis_cli/content/skills/areas/input-validation.md +0 -380
  68. package/cli-python/aigis_cli/content/skills/areas/monitoring.md +0 -207
  69. package/cli-python/aigis_cli/content/skills/areas/output-sanitization.md +0 -183
  70. package/cli-python/aigis_cli/content/skills/areas/pii-handling.md +0 -189
  71. package/cli-python/aigis_cli/content/skills/areas/prompt-security.md +0 -153
  72. package/cli-python/aigis_cli/content/skills/areas/rag-security.md +0 -230
  73. package/cli-python/aigis_cli/content/skills/areas/rate-limiting.md +0 -246
  74. package/cli-python/aigis_cli/content/skills/areas/supply-chain.md +0 -193
  75. package/cli-python/aigis_cli/content/skills/core.md +0 -62
  76. package/cli-python/aigis_cli/content/skills/infrastructure/logging.md +0 -202
  77. package/cli-python/aigis_cli/content/skills/infrastructure/rate-limiting.md +0 -169
  78. package/cli-python/aigis_cli/content/skills/infrastructure/secrets.md +0 -167
  79. package/cli-python/aigis_cli/content/skills/workflows/fastapi-llm.md +0 -86
  80. package/cli-python/aigis_cli/content/templates/ai-impact-assessment.md +0 -54
  81. package/cli-python/aigis_cli/content/templates/intended-purpose-doc.md +0 -39
  82. package/cli-python/aigis_cli/content/templates/risk-characterization.md +0 -34
  83. package/cli-python/aigis_cli/content/templates/third-party-assessment.md +0 -41
  84. package/cli-python/aigis_cli/content/verify/checklist-audit-logging.md +0 -13
  85. package/cli-python/aigis_cli/content/verify/checklist-bias-monitoring.md +0 -13
  86. package/cli-python/aigis_cli/content/verify/checklist-confidence-scoring.md +0 -13
  87. package/cli-python/aigis_cli/content/verify/checklist-data-integrity.md +0 -12
  88. package/cli-python/aigis_cli/content/verify/checklist-explainability.md +0 -13
  89. package/cli-python/aigis_cli/content/verify/checklist-fallback-patterns.md +0 -13
  90. package/cli-python/aigis_cli/content/verify/checklist-human-oversight.md +0 -14
  91. package/cli-python/aigis_cli/content/verify/checklist-input-validation.md +0 -16
  92. package/cli-python/aigis_cli/content/verify/checklist-monitoring.md +0 -13
  93. package/cli-python/aigis_cli/content/verify/checklist-output-sanitization.md +0 -14
  94. package/cli-python/aigis_cli/content/verify/checklist-pii-handling.md +0 -14
  95. package/cli-python/aigis_cli/content/verify/checklist-prompt-security.md +0 -13
  96. package/cli-python/aigis_cli/content/verify/checklist-rag-security.md +0 -12
  97. package/cli-python/aigis_cli/content/verify/checklist-rate-limiting.md +0 -13
  98. package/cli-python/aigis_cli/content/verify/checklist-supply-chain.md +0 -13
  99. package/cli-python/aigis_cli/fetch.py +0 -232
  100. package/cli-python/aigis_cli/init_ide.py +0 -159
  101. package/cli-python/aigis_cli/keywords.py +0 -73
  102. package/cli-python/aigis_cli/search.py +0 -69
  103. package/cli-python/aigis_cli.egg-info/PKG-INFO +0 -59
  104. package/cli-python/aigis_cli.egg-info/SOURCES.txt +0 -56
  105. package/cli-python/aigis_cli.egg-info/dependency_links.txt +0 -1
  106. package/cli-python/aigis_cli.egg-info/entry_points.txt +0 -2
  107. package/cli-python/aigis_cli.egg-info/requires.txt +0 -6
  108. package/cli-python/aigis_cli.egg-info/top_level.txt +0 -1
  109. package/cli-python/dist/aigis_cli-1.0.3-py3-none-any.whl +0 -0
  110. package/cli-python/dist/aigis_cli-1.0.3.tar.gz +0 -0
  111. package/cli-python/pyproject.toml +0 -49
@@ -0,0 +1,141 @@
1
+ ---
2
+ id: eu-ai-act-art-9-risk-management
3
+ title: EU AI Act Article 9 — Risk management system (lifecycle)
4
+ controls:
5
+ owasp: []
6
+ nist: [GOVERN-1.1, GOVERN-1.2, MANAGE-1.1, MANAGE-2.1]
7
+ iso42001: [Clause-6.1, Clause-6.2, Clause-8.1]
8
+ eu_ai_act: [Art-9, Art-9(2), Art-9(5), Art-9(7)]
9
+ min_risk_tier: high
10
+ system_traits: [is-eu-high-risk]
11
+ jurisdiction: [eu]
12
+ ---
13
+
14
+ EU AI Act Article 9 requires high-risk AI systems to have a documented, iterative risk management system that runs across the **entire lifecycle** — not a one-time assessment at launch. This area is for the team responsible for that lifecycle. It also satisfies NIST AI RMF risk management functions (GOVERN-1.1, MANAGE-1.1) and ISO 42001 Clause 6.1 — implementing this once gives you cross-framework coverage.
15
+
16
+ ## Common incomplete implementations
17
+
18
+ 1. **One-shot launch risk assessment, never re-evaluated.** A risk assessment was done before launch, signed off, filed. Six months later the model was upgraded, new prompts added, new use cases enabled — the risk register was never touched. Article 9(2) explicitly requires the system to run "throughout the entire lifecycle of the high-risk AI system, requiring regular systematic review and updating."
19
+ 2. **Risk register exists but has no owners.** Risks are listed in a spreadsheet but no individual is accountable for the mitigation, the testing of the mitigation, or the timeline. Article 9 is a *system*, not a list — without owners + cadence, it's documentation, not management.
20
+ 3. **Risks identified, no mitigations defined.** "Bias in outputs" is named as a risk; the next column is empty. Article 9(5) requires "appropriate and targeted risk management measures designed to address the risks identified."
21
+ 4. **Mitigations defined, never tested.** A mitigation is documented (e.g. "PII redaction reduces leak risk") but no test confirms the mitigation actually works in deployed conditions. Article 9(7) requires testing of risk management measures throughout development and pre-deployment.
22
+ 5. **Foreseeable misuse not considered.** The risk register covers intended use only. Article 9(2)(b) explicitly requires considering "risks that may emerge when the high-risk AI system is used in accordance with its intended purpose or under conditions of reasonably foreseeable misuse." A coding assistant prompted to write malware is a foreseeable misuse.
23
+ 6. **No link between risks and post-deployment monitoring.** Risks are tracked in one document; monitoring metrics are tracked in another. When an incident happens, no one can trace the production signal back to which risk it materialized. Article 9(8) requires the risk management system to integrate with post-market monitoring (Article 72).
24
+
25
+ ## Implementation procedure
26
+
27
+ ### Step 1 — Establish the risk management lifecycle owner ⚠ CRITICAL
28
+
29
+ **What to do.** Name a single person (or role) accountable for the risk management system. They own the risk register, schedule re-evaluations, sign off on risk treatment decisions, and report to leadership. This person does NOT need to perform every assessment — they need to ensure the assessments happen, are documented, and drive action.
30
+
31
+ **Why this matters.** Article 9 requires a *system*, not a document. Systems require accountability. Without a named owner, the lifecycle review never happens because everyone assumes someone else is doing it. This is the single most common failure mode for Article 9 audits.
32
+
33
+ **Verification checkpoint.** A person's name (or specific role title) is documented in your team's governance docs as the "AI risk management owner." If the answer to "who owns this?" is a team or a process rather than a person, this checkpoint fails.
34
+
35
+ ### Step 2 — Build the initial risk register covering intended use AND foreseeable misuse
36
+
37
+ **What to do.** Create a structured risk register with at minimum these columns:
38
+ - **Risk ID** — stable identifier (R-001, R-002, ...)
39
+ - **Risk description** — what could happen
40
+ - **Affected stakeholders** — users, deployers, third parties, society
41
+ - **Use mode** — `intended` | `foreseeable misuse`
42
+ - **Likelihood** — high / medium / low (with brief rationale)
43
+ - **Impact** — high / medium / low (with brief rationale, including impact on fundamental rights)
44
+ - **Risk owner** — person accountable for treatment
45
+ - **Status** — open / treating / accepted / closed
46
+
47
+ Populate with risks from at minimum these categories:
48
+ 1. **Output risks** — incorrect output causing harm (medical misdiagnosis, financial mis-pricing)
49
+ 2. **Privacy risks** — PII leakage to model, to logs, to other users (cross-tenant)
50
+ 3. **Bias / discrimination risks** — output that disparately affects groups
51
+ 4. **Security risks** — prompt injection, model extraction, training data poisoning
52
+ 5. **Misuse risks** — prompts that get the system to do things outside intended use (jailbreaks, generating malware via coding assistant, generating CSAM via image gen)
53
+ 6. **Operational risks** — model availability, latency, third-party API failure
54
+ 7. **Fundamental-rights risks** — the EU AI Act explicitly calls out impact on dignity, non-discrimination, freedom of expression. List these even if they feel abstract.
55
+
56
+ **Why this matters.** Article 9(2)(a) requires identification of "known and reasonably foreseeable risks that the high-risk AI system can pose to health, safety or fundamental rights." Article 9(2)(b) extends this to foreseeable misuse. A risk register that omits fundamental-rights or misuse categories satisfies neither sub-clause.
57
+
58
+ **Verification checkpoint.** The register contains at least one risk from each of the seven categories above (or a documented written reason why a category does not apply to your system). The `Use mode` column has at least one entry of `foreseeable misuse` — if it has none, the misuse analysis was not done.
59
+
60
+ ### Step 3 — Define and document risk treatment for each open risk
61
+
62
+ **What to do.** For every risk where status is `open`, define a treatment:
63
+ - **Mitigation** — controls that reduce likelihood or impact (e.g. "input validation blocks prompt-injection patterns" reduces security risk likelihood)
64
+ - **Acceptance** — the team accepts the residual risk (must be approved at a defined level — typically requires sign-off above the risk owner)
65
+ - **Transfer** — risk is transferred to a third party (insurance, contract terms with a provider)
66
+ - **Avoidance** — change the design to remove the risk (e.g. don't use the LLM for legal advice generation)
67
+
68
+ Each treatment cites the specific Aigis area or external control implementing it. For example:
69
+ - R-007 "PII leakage to LLM" — Mitigation: implement `aigis get pii-handling` Steps 1–6
70
+ - R-013 "Prompt injection" — Mitigation: implement `aigis get input-validation` Steps 1–4 + `aigis get prompt-security`
71
+
72
+ **Why this matters.** Article 9(5) requires "appropriate and targeted risk management measures designed to address the risks identified." A risk treatment that says "training" or "awareness" without a specific control is not a risk management measure — it's a hope.
73
+
74
+ **Verification checkpoint.** Every risk with status `open` has a non-empty treatment column. Every mitigation cites either an Aigis area, a specific code module, or a specific external control. Vague treatments ("monitor closely", "be careful") fail this checkpoint.
75
+
76
+ ### Step 4 — Test each mitigation before considering the risk treated
77
+
78
+ **What to do.** For each mitigation, define a test that confirms the mitigation actually works. The test outcome (PASS / FAIL) and the evidence (test file:line, test run timestamp) is recorded against the risk.
79
+
80
+ Examples:
81
+ - Mitigation: "input validation blocks prompt-injection" → Test: run `aigis verify input-validation --auto .`. PASS evidence: scanner output captured.
82
+ - Mitigation: "PII redaction on LLM input path" → Test: unit test that asserts known PII patterns are replaced with `[REDACTED]` labels in the redactor's output.
83
+ - Mitigation: "rate limit prevents budget exhaustion" → Test: load test that confirms 429s are returned at the configured threshold.
84
+
85
+ **Why this matters.** Article 9(7) requires "testing of risk management measures... before that high-risk AI system is placed on the market or put into service" and Article 9(8) extends testing to "throughout the development process." Without test evidence, a mitigation is unverified — which means the risk is not actually treated.
86
+
87
+ **Verification checkpoint.** Every risk with status `treating` or `closed` has at least one test result attached. Risks without test evidence stay at `open` until tests are run.
88
+
89
+ ### Step 5 — Schedule periodic re-evaluation (at minimum quarterly + on every material change)
90
+
91
+ **What to do.** Calendar a recurring re-evaluation — at minimum every 90 days — where the risk owner walks the entire register: are any new risks emerging? Are existing mitigations still effective? Has model behavior changed? Have new use cases been enabled? Have there been incidents (Article 73 reports) that should feed back into risk identification?
92
+
93
+ In addition, trigger an out-of-cycle review on any of these material changes:
94
+ - Model upgrade (e.g. moving from one foundation model version to another)
95
+ - Training data refresh
96
+ - New tool added to an agent's available tool set
97
+ - New prompt template or system prompt revision
98
+ - New deployment region or new user population
99
+ - Any incident reported under Article 73
100
+
101
+ **Why this matters.** Article 9(2) requires the system to "be a continuous iterative process planned and run throughout the entire lifecycle." The most common audit finding is a risk register that hasn't been updated in months.
102
+
103
+ **Verification checkpoint.** A recurring calendar event exists with the risk owner as attendee. The most recent review is dated within the last 90 days. A change log on the risk register documents the most recent material-change-triggered review.
104
+
105
+ ### Step 6 — Wire risk register into post-market monitoring (Article 72) and incident reporting (Article 73)
106
+
107
+ **What to do.** When a post-market monitoring signal fires (drift detected, performance degradation, user complaint volume spike), the risk owner is notified and evaluates whether the signal corresponds to a known risk (re-evaluate mitigation effectiveness) or a new risk (add to register). When a serious incident is reported under Article 73, the corresponding risk is updated — likelihood/impact may need re-rating, mitigation may need strengthening.
108
+
109
+ **Why this matters.** Article 9(8) explicitly integrates risk management with post-market monitoring: "the risk management measures shall give due consideration to the effects and possible interaction resulting from the combined application of the requirements set out in this Section." Without the feedback loop, the risk register is a static document — not a management system.
110
+
111
+ **Verification checkpoint.** The risk owner is on the notification list for post-market monitoring alerts (`aigis get monitoring`'s alerting setup). When a serious incident is reported (`aigis get eu-ai-act-art-73-incident-reporting`), the incident report references the risk it materialized.
112
+
113
+ ## Cross-framework satisfaction
114
+
115
+ Implementing this procedure also satisfies:
116
+ - **NIST AI RMF GOVERN-1.1**: "Legal and regulatory requirements involving AI are understood, managed, and documented."
117
+ - **NIST AI RMF GOVERN-1.2**: "The characteristics of trustworthy AI are integrated into organizational policies, processes, procedures, and practices."
118
+ - **NIST AI RMF MANAGE-1.1**: "A determination is made as to whether the AI system achieves its intended purpose and stated objectives and whether its development or deployment should proceed."
119
+ - **NIST AI RMF MANAGE-2.1**: "Resources required to manage AI risks are taken into account."
120
+ - **ISO/IEC 42001 Clause 6.1**: Actions to address risks and opportunities for the AI management system.
121
+ - **ISO/IEC 42001 Clause 6.2**: AI objectives and planning to achieve them.
122
+ - **ISO/IEC 42001 Clause 8.1**: Operational planning and control.
123
+
124
+ A single risk management system satisfies all of these. Audit reports generated via `aigis report` will cite all four frameworks for each implemented step.
125
+
126
+ ## Related patterns
127
+
128
+ - `monitoring.md` — post-market monitoring signals feed Step 6's re-evaluation trigger.
129
+ - `audit-logging.md` — Article 12 record-keeping provides the evidence base for risk re-evaluation.
130
+ - `human-oversight.md` — Article 14 oversight role is one of the risk treatment options for many risks.
131
+ - `eu-ai-act-art-73-incident-reporting.md` — incidents feed back into risk re-evaluation.
132
+
133
+ ## Related infrastructure
134
+
135
+ - `aigis infra logging` — structured log retention is what the risk owner reviews quarterly.
136
+ - `aigis infra secrets` — credential rotation cadence is itself a risk treatment for several common risks.
137
+
138
+ ## Related templates
139
+
140
+ - `aigis template eu-ai-act-annex-iv` — the Annex IV technical documentation includes a section that summarizes the risk management system; its content comes from this register.
141
+ - `aigis template risk-characterization` — the broader risk-characterization template (NIST-flavored) feeds into the EU AI Act register; same source data, two output formats.
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: []
6
6
  nist: [MEASURE-2.6, MANAGE-2.3, MANAGE-2.4]
7
7
  iso42001: [Clause-8.2]
8
+ eu_ai_act: [Art-15(4)]
8
9
  min_risk_tier: all
9
10
  system_traits: [uses-llm, is-agentic, is-high-volume]
10
11
  ---
@@ -194,6 +195,33 @@ def _invoke_llm(text: str) -> dict[str, Any]:
194
195
  ...
195
196
  ```
196
197
 
198
+ ## EU AI Act extensions
199
+
200
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 15(4) addresses robustness — resilience to errors, faults, and inconsistencies. This area's procedure (kill switch, circuit breaker, fallback responses) is the operational implementation of Art 15(4).
201
+
202
+ ### Article 15(4) — Robustness obligations
203
+
204
+ - **Resilience to errors, faults, inconsistencies.** The kill switch + circuit breaker patterns above directly satisfy this — they handle failures gracefully without cascading. EU compliance additionally requires:
205
+ - **Documented backup mechanisms** — for systems where availability matters (critical infrastructure, essential services per Annex III), the fallback path is documented in the technical documentation (Annex IV Section 3.2).
206
+ - **Resilience tested before deployment** — Article 15(4) is not just "have a kill switch"; it requires demonstrating the kill switch works under realistic failure conditions. Quarterly chaos-test exercises that trigger the breaker and confirm safe degradation.
207
+ - **Lifecycle robustness** — Art 15(2) requires consistent performance throughout lifecycle. When robustness degrades (fallback frequency increases), this is a signal feeding the Art 9 risk register and the Art 72 monitoring plan.
208
+
209
+ ### Article 15(4) ↔ Annex III high-risk specifics
210
+
211
+ For high-risk systems in Annex III(2) (critical infrastructure), Annex III(5) (essential services), or Annex III(8) (justice administration), the robustness bar is higher: mean-time-to-recovery and graceful-degradation modes must be documented and tested. A "fail closed → 503" response may not be acceptable for an AI controlling traffic light timing or judicial scheduling.
212
+
213
+ ### Verification checkpoint (EU jurisdiction)
214
+
215
+ - Kill switch test executed within the last 90 days; result documented (PASS/FAIL + recovery time).
216
+ - Fallback responses for each failure mode documented in Annex IV Section 3.2.
217
+ - For Annex III high-risk categories with availability requirements: documented graceful-degradation mode (not just hard-fail).
218
+
219
+ ### Cross-reference
220
+
221
+ - `aigis get eu-ai-act-art-9-risk-management` — fallback frequency is a risk-register input.
222
+ - `aigis get monitoring` — Article 72 post-market monitoring tracks fallback rates.
223
+ - `aigis get human-oversight` — Article 14 oversight personnel operate the kill switch in production.
224
+
197
225
  ## Related patterns
198
226
 
199
227
  - `human-oversight.md` — low-confidence decisions routed to review.
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: [LLM06]
6
6
  nist: [MAP-3.5, MANAGE-1.3, MANAGE-4.1]
7
7
  iso42001: [Annex-A.9, Clause-8.4]
8
+ eu_ai_act: [Art-14, Art-14(4)]
8
9
  min_risk_tier: all
9
10
  system_traits: [is-agentic, influences-decisions, handles-minors, generates-code]
10
11
  ---
@@ -218,3 +219,40 @@ function buildResponse(assessment) {
218
219
  - **Chained actions.** An agent executing a sequence of individually-harmless actions that are collectively dangerous. Implement cumulative impact assessment.
219
220
  - **Approval fatigue.** If every action requires approval, humans rubber-stamp. Design tiered approval: auto-approve reads, flag writes, block deletes.
220
221
  - **Time-sensitive decisions.** Some contexts need fast responses. Define fallback behavior for when human review isn't available within the timeout.
222
+
223
+ ## EU AI Act extensions
224
+
225
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 14 mandates effective oversight by natural persons. The procedure above already covers approval gates, override mechanisms, and audit logs; the additions below are the EU-specific obligations on the *natural-person* role itself.
226
+
227
+ ### Article 14(4) — Five oversight capabilities
228
+
229
+ The natural persons assigned oversight must be enabled to:
230
+
231
+ - **(a) Understand capabilities and limitations** — they have read the deployer instructions (`aigis get eu-ai-act-art-13-deployer-transparency`); their training is documented.
232
+ - **(b) Remain aware of automation bias** — the operational design includes anti-automation-bias measures: cooling-off periods on high-volume confirms, randomized spot-check requirements, dashboards that surface override frequency.
233
+ - **(c) Correctly interpret output** — output presentation includes uncertainty indicators (cite `aigis get confidence-scoring`); operators know what each metric means and what action it triggers.
234
+ - **(d) Decide not to use, override, or reverse output** — interface enables single-action override AND single-action "do not use this output" (different — override implies replacement; do-not-use implies rejection without replacement).
235
+ - **(e) Intervene or interrupt** — the kill switch from `aigis get fallback-patterns` is operable by oversight personnel without engineering involvement, and tested quarterly.
236
+
237
+ ### Article 14(5) — Dual control for biometric ID systems
238
+
239
+ For high-risk biometric identification systems (Annex III(1)(a)), Article 14(5) requires that "no action or decision is taken by the deployer on the basis of the identification resulting from the system unless that identification has been separately verified and confirmed by at least two natural persons with the necessary competence, training and authority."
240
+
241
+ If your system performs biometric identification:
242
+ - Implement a two-person confirmation gate — a single override does NOT enact a decision; two separate operators must independently confirm
243
+ - Each confirmation is logged with operator identity (Art 12 audit log)
244
+ - The two operators must be operationally independent (cannot be the same person logged in twice)
245
+ - Exception: Article 14(5) second paragraph allows single-person operation for narrow law enforcement, border control, migration, or essential public services scenarios — document if this exception is invoked.
246
+
247
+ ### Verification checkpoint (EU jurisdiction)
248
+
249
+ - Each oversight role has documented training records covering Art 14(4)(a)–(e) capabilities.
250
+ - Override / do-not-use UI elements exist as separate actions, not a single confirmation flow.
251
+ - Kill switch test results within the last 90 days, performed by oversight personnel (not engineers).
252
+ - For biometric ID systems: dual-confirmation flow active in production, with both operator identities logged per decision.
253
+
254
+ ### Cross-reference
255
+
256
+ - `aigis get fallback-patterns` — the kill switch this procedure references.
257
+ - `aigis get confidence-scoring` — Article 14(4)(c) "correctly interpret output" requires confidence/uncertainty signals.
258
+ - `aigis get eu-ai-act-art-13-deployer-transparency` — Article 14(4)(a) "understand capabilities and limitations" requires the deployer instructions document.
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: [LLM01]
6
6
  nist: [MEASURE-2.7, MANAGE-1.3]
7
7
  iso42001: [Clause-8.2, Annex-A.6]
8
+ eu_ai_act: [Art-15(5)]
8
9
  min_risk_tier: all
9
10
  system_traits: [uses-llm, accepts-user-input]
10
11
  ---
@@ -373,6 +374,32 @@ async def assess_claim(body: AssessRequest) -> dict:
373
374
  return parsed.model_dump()
374
375
  ```
375
376
 
377
+ ## EU AI Act extensions
378
+
379
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 15(5) addresses cybersecurity resilience including against adversarial input. This area covers the **input adversarial** dimension; system-prompt confidentiality is in `aigis get prompt-security`.
380
+
381
+ ### Article 15(5) — Cybersecurity obligations (input subset)
382
+
383
+ - **Resilience against attempts to alter use, outputs, or performance by exploiting vulnerabilities.** Prompt injection is the canonical exploitation vector for LLM systems. The procedure above (length limits, character stripping, role separation, schema validation, **detection-and-block**) directly satisfies this.
384
+ - **Specific resilience areas Art 15(5) names**:
385
+ - Data poisoning (covered partially here for input poisoning; training-data poisoning is in `aigis get data-integrity`)
386
+ - Model evasion (adversarial inputs designed to elicit harmful output — caught by injection detection)
387
+ - Adversarial examples (input perturbations that flip model decisions — caught by anomaly detection on input distributions, see `aigis get monitoring`)
388
+ - Confidentiality attacks (model extraction, system prompt extraction — covered in `aigis get prompt-security`)
389
+
390
+ ### Verification checkpoint (EU jurisdiction)
391
+
392
+ - Prompt-injection detection-and-block (Step 2 of the procedure above) is active and the rejection rate is monitored.
393
+ - Input anomaly detection is wired into `aigis get monitoring`'s alerting.
394
+ - Adversarial-resilience red-team exercise is dated within the last 90 days; covered injection, evasion, and at least one model-extraction technique.
395
+
396
+ ### Cross-reference
397
+
398
+ - `aigis get prompt-security` — Art 15(5) system-prompt confidentiality dimension.
399
+ - `aigis get confidence-scoring` — Art 15(1)–(3) accuracy dimension.
400
+ - `aigis get fallback-patterns` — Art 15(4) robustness dimension.
401
+ - `aigis get data-integrity` — Art 15(5) training-data poisoning dimension.
402
+
376
403
  ## Related patterns
377
404
 
378
405
  - `pii-handling.md` — redact the sanitized input before it reaches the model.
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: []
6
6
  nist: [MEASURE-2.4, MEASURE-3.1, MANAGE-4.1, MANAGE-4.2]
7
7
  iso42001: [Clause-9.1, Clause-10]
8
+ eu_ai_act: [Art-72, Art-72(1), Art-72(2), Art-72(3), Art-72(4)]
8
9
  min_risk_tier: medium
9
10
  system_traits: [uses-llm, is-high-volume, multi-model-pipeline]
10
11
  ---
@@ -205,3 +206,31 @@ function logIncident(incidentType, details, severity) {
205
206
  - **Gradual degradation.** Performance may decline slowly. Use drift detection, not just threshold alerts.
206
207
  - **Seasonal patterns.** Some metrics vary by time of day/week/year. Build seasonality into baselines.
207
208
  - **Model provider changes.** When the third-party model is updated, reset baselines and monitor closely.
209
+
210
+ ## EU AI Act extensions
211
+
212
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 72 mandates a documented post-market monitoring system for high-risk AI systems. The Aigis monitoring procedure above provides the technical foundation; Art 72 adds documentation, governance, and integration obligations.
213
+
214
+ ### Article 72 — Post-market monitoring obligations
215
+
216
+ - **Art 72(1) — Documented monitoring system proportionate to nature and risk.** The monitoring you implement using this area's procedure must be DOCUMENTED in a "post-market monitoring plan" — a written artifact that describes what's monitored, how, by whom, with what cadence, and how findings are acted on.
217
+ - **Art 72(2) — Active collection and analysis throughout the lifetime.** "Active" means periodic review, not just dashboards that exist. The risk management owner (`aigis get eu-ai-act-art-9-risk-management` Step 1) reviews monitoring outputs at least quarterly.
218
+ - **Art 72(3) — Continuous compliance assessment with Articles 9–15.** The monitoring plan explicitly maps each monitored signal to which Article 9–15 obligation it informs. Drift in accuracy → Art 15(2) re-evaluation. Bias drift → Art 10(2)(f) re-examination. Override frequency → Art 14 oversight effectiveness.
219
+ - **Art 72(4) — Plan is part of technical documentation.** The post-market monitoring plan is referenced in (or appended to) the Annex IV technical documentation (`aigis template eu-ai-act-annex-iv` Section 9).
220
+
221
+ ### Article 72 ↔ Article 73 integration
222
+
223
+ Post-market monitoring (Art 72) is the detection mechanism that feeds incident reporting (Art 73). The signals from this area's procedure must be wired into the Article 73 incident workflow (`aigis get eu-ai-act-art-73-incident-reporting` Step 2).
224
+
225
+ ### Verification checkpoint (EU jurisdiction)
226
+
227
+ - A document titled "Post-Market Monitoring Plan" exists, dated within the last 12 months.
228
+ - The plan maps each monitored signal to the Article 9–15 obligation it informs.
229
+ - Quarterly review log exists; latest review is within 90 days.
230
+ - Annex IV technical documentation Section 9 references this plan.
231
+
232
+ ### Cross-reference
233
+
234
+ - `aigis get eu-ai-act-art-9-risk-management` — Step 6 of the risk-management area integrates monitoring findings into the risk register.
235
+ - `aigis get eu-ai-act-art-73-incident-reporting` — Step 2 of the incident-reporting area wires this monitoring into the incident workflow.
236
+ - `aigis template eu-ai-act-annex-iv` — Section 9 references the post-market monitoring plan documented here.
@@ -5,6 +5,7 @@ controls:
5
5
  owasp: [LLM07]
6
6
  nist: [MEASURE-2.7, MEASURE-2.8]
7
7
  iso42001: [Clause-8.2]
8
+ eu_ai_act: [Art-15(5)]
8
9
  min_risk_tier: all
9
10
  system_traits: [uses-llm, handles-proprietary]
10
11
  ---
@@ -151,3 +152,31 @@ function enforceOutputRules(llmOutput) {
151
152
  - **Multi-turn extraction.** Attackers spread extraction across many turns, each extracting a small fragment. Monitor cumulative similarity.
152
153
  - **Encoding tricks.** Requests to "encode in base64" or "translate to another language" can extract prompt content indirectly.
153
154
  - **Tool descriptions.** If using function calling, tool descriptions are part of the prompt and can leak implementation details.
155
+
156
+ ## EU AI Act extensions
157
+
158
+ > Renders only when `jurisdiction-eu` is in the user's trait set. Article 15(5) addresses cybersecurity resilience of high-risk AI systems. This area covers the **adversarial-prompt / prompt-extraction** dimension. Input adversarial inputs are in `aigis get input-validation`; accuracy and robustness are in their respective areas.
159
+
160
+ ### Article 15(5) — Cybersecurity obligations (system-prompt subset)
161
+
162
+ The procedure above already covers prompt extraction defense. The EU-specific obligations are:
163
+
164
+ - **Resilience to confidentiality attacks** — Art 15(5) explicitly names "model confidentiality" as a protected target. System prompts ARE part of the model's confidentiality boundary. Demonstrating resilience requires:
165
+ - Documented red-team exercise testing prompt extraction (frequency: quarterly minimum, after every prompt change)
166
+ - Documented detection of multi-turn extraction attempts (the Edge Cases section above)
167
+ - Documented response when extraction is detected (block, throttle, alert oversight role)
168
+ - **Resilience to data poisoning targeting prompts** — if your system supports prompt customization (e.g. tenant-level prompt overrides, retrieval-injected prompt content), document the validation gate that prevents adversarial prompts from being installed.
169
+ - **Cybersecurity measures proportionate to risks** — for high-risk systems, the cybersecurity controls must be commensurate. A simple chatbot has a lower bar than a credit-decisioning system. Document the proportionality assessment.
170
+
171
+ ### Verification checkpoint (EU jurisdiction)
172
+
173
+ - Most recent red-team exercise is dated within the last 90 days. The exercise included at least three prompt-extraction techniques and at least one multi-turn extraction attempt.
174
+ - Detection signals for extraction attempts are wired into the monitoring stack (`aigis get monitoring`).
175
+ - Prompt customization (if supported) has a validation gate that rejects known adversarial patterns before installation.
176
+
177
+ ### Cross-reference
178
+
179
+ - `aigis get input-validation` — Art 15(5) adversarial input dimension.
180
+ - `aigis get confidence-scoring` — Art 15(1)–(3) accuracy dimension.
181
+ - `aigis get fallback-patterns` — Art 15(4) robustness dimension.
182
+ - `aigis get monitoring` — where Art 15(5) detection signals fire.
@@ -0,0 +1,193 @@
1
+ ---
2
+ id: eu-ai-act-annex-iv
3
+ title: EU AI Act — Annex IV Technical Documentation Template
4
+ framework: EU AI Act Article 11 + Annex IV
5
+ required_when: jurisdiction=EU AND is-eu-high-risk=true
6
+ ---
7
+
8
+ # Technical documentation under EU AI Act Article 11 (Annex IV)
9
+
10
+ > Annex IV specifies the minimum content for the technical documentation that must accompany every high-risk AI system placed on the EU market. This document is provided to notified bodies (during conformity assessment) and to market surveillance authorities (on request). It is the SUPERSET of what's in deployer instructions (Article 13) — not the same document.
11
+ >
12
+ > Owner: the AI risk management owner from `aigis get eu-ai-act-art-9-risk-management`. The owner does not personally write every section but is accountable for the document's completeness, accuracy, and currency.
13
+ >
14
+ > Update cadence: at minimum annually, AND whenever a material change occurs (model upgrade, training data refresh, new use case, new deployment region).
15
+
16
+ ---
17
+
18
+ ## 1. General description of the AI system (Annex IV(1))
19
+
20
+ ### 1.1 Intended purpose
21
+ [Describe the precise intended purpose of the system. Be specific about what the system does and explicitly does NOT do. Example: "Triages incoming customer support tickets into 4 priority levels (P0–P3). It does not draft replies; it does not close tickets; it does not access customer accounts."]
22
+
23
+ ### 1.2 Provider identity and contact
24
+ - Provider legal name:
25
+ - Address:
26
+ - Authorised representative in EU (if provider is non-EU):
27
+ - Contact email for regulatory matters:
28
+ - Contact phone for incident reporting:
29
+
30
+ ### 1.3 System version and date
31
+ - Version:
32
+ - Release date:
33
+ - Last technical-doc revision date:
34
+
35
+ ### 1.4 Interaction with other systems
36
+ [Describe systems this AI interacts with — upstream data sources, downstream consumers, third-party APIs, hardware. Include a diagram if useful. Note especially any other AI systems in the pipeline.]
37
+
38
+ ### 1.5 Software versions and updates
39
+ [Describe the software baseline: foundation model + version, libraries + versions, custom components. Describe how updates are managed and what triggers a re-assessment.]
40
+
41
+ ### 1.6 Forms in which the AI system is placed on the market
42
+ [SaaS / on-prem / embedded in hardware / SDK. List each.]
43
+
44
+ ### 1.7 Description of hardware on which the AI system is intended to run
45
+ [GPU/CPU/RAM/storage requirements. If SaaS, what the deployer needs on their side.]
46
+
47
+ ### 1.8 Photographs or illustrations (if applicable)
48
+ [For systems with physical/visual components — embedded AI in hardware, robotics. Skip if pure software.]
49
+
50
+ ### 1.9 User interface description
51
+ [How users interact with the system. Screenshots or mockups.]
52
+
53
+ ### 1.10 Instructions for use for the deployer
54
+ [Reference / link to the Article 13 deployer instructions document. The deployer doc IS the Article 13 surface; this section either includes it or links to the canonical version.]
55
+
56
+ ### 1.11 Instructions for installation, where applicable
57
+ [For deployable systems, the install procedure.]
58
+
59
+ ---
60
+
61
+ ## 2. Detailed description of the elements of the AI system and the development process (Annex IV(2))
62
+
63
+ ### 2.1 Methods and steps performed for development
64
+ [Describe the development methodology. Include: requirements gathering, design choices, prototyping iterations, evaluation methodology, deployment process. Reference your engineering standards or development handbook.]
65
+
66
+ ### 2.2 Use of pre-trained systems or tools provided by third parties
67
+ [List foundation models, embedding models, third-party APIs used. For each:]
68
+ - Name + version
69
+ - Provider
70
+ - License
71
+ - Whether it was modified (fine-tuned, etc.)
72
+ - Documentation reference
73
+
74
+ ### 2.3 Design specifications
75
+ [The system's logic, algorithm, key design choices. Describe at the level a notified body's technical reviewer can audit. Include:]
76
+ - Model architecture
77
+ - Decision logic / business rules layered on top
78
+ - Confidence thresholds and how they were chosen
79
+ - Pre/post-processing steps
80
+
81
+ ### 2.4 System architecture
82
+ [Diagrams + prose. Components, data flows, decision points.]
83
+
84
+ ### 2.5 Data requirements (per Article 10)
85
+ [For each data set used in training, validation, testing:]
86
+
87
+ | Data set | Purpose | Source | Size | Time period | Demographic distribution | Known biases | Quality assurance |
88
+ |---|---|---|---|---|---|---|---|
89
+ | [name] | training/validation/testing | [where it came from] | [N rows / hours / images] | [date range] | [groups represented; gaps] | [known biases identified] | [QA process applied] |
90
+
91
+ Reference: `aigis get data-integrity` and `aigis get bias-monitoring` for the procedures that produced this content.
92
+
93
+ ### 2.6 Validation and testing procedures used
94
+ [How the system was validated against requirements. Include test data sets, metrics, results, documented limitations.]
95
+
96
+ ### 2.7 Cybersecurity measures
97
+ [Reference: `aigis get input-validation`, `aigis get prompt-security`. Summarize the cybersecurity measures implemented. Article 15 cross-reference.]
98
+
99
+ ---
100
+
101
+ ## 3. Detailed information about the monitoring, functioning and control of the AI system (Annex IV(3))
102
+
103
+ ### 3.1 Capabilities and limitations in performance
104
+ [For each major capability claim, the methodology + metric + known limitation. Reference: `aigis get eu-ai-act-art-13-deployer-transparency` Step 2 — the deployer-doc performance section is a SUMMARY of this.]
105
+
106
+ ### 3.2 Foreseeable unintended outcomes
107
+ [List all foreseeable unintended outcomes from the Article 9 risk register. Reference: `aigis get eu-ai-act-art-9-risk-management`.]
108
+
109
+ ### 3.3 Sources of risks to health, safety, or fundamental rights
110
+ [From the Article 9 risk register, surface those risks where the impact category includes health, safety, or fundamental rights. For each: description, mitigation, residual risk.]
111
+
112
+ ### 3.4 Human oversight measures (Article 14)
113
+ [Describe the operational human oversight in place. Reference: `aigis get human-oversight` for the procedure. Include:]
114
+ - Roles and competence requirements
115
+ - Interface(s) for oversight
116
+ - Override / interrupt mechanisms
117
+ - Audit log of oversight events
118
+
119
+ ### 3.5 Specifications on input data
120
+ [What input the system accepts, validation rules, format requirements. Reference: `aigis get input-validation`.]
121
+
122
+ ---
123
+
124
+ ## 4. Description of the appropriateness of the performance metrics for the specific AI system (Annex IV(4))
125
+
126
+ [Justify why the chosen metrics are appropriate. Examples:]
127
+ - Why F1 vs accuracy for a classification system
128
+ - Why precision matters more than recall (or vice versa) for this use case
129
+ - Why latency p99 matters for user-facing systems
130
+ - How metrics map to user-experienced quality
131
+
132
+ This section addresses why your KPIs reflect what the system is actually for, not just what's easy to measure.
133
+
134
+ ---
135
+
136
+ ## 5. Detailed description of the risk management system (Annex IV(5))
137
+
138
+ [Reference: `aigis get eu-ai-act-art-9-risk-management`. Summarize:]
139
+ - Who owns the risk management system
140
+ - Re-evaluation cadence
141
+ - Risk register summary (high-level — full register stays in the operational document)
142
+ - Integration with post-market monitoring (Article 72) and incident reporting (Article 73)
143
+
144
+ ---
145
+
146
+ ## 6. Description of relevant changes made by the provider through the lifecycle (Annex IV(6))
147
+
148
+ [A change log of material changes since the system was first placed on the market. Each entry:]
149
+
150
+ | Date | Change description | Why | Risk re-evaluation triggered? | Annex IV section(s) updated |
151
+ |---|---|---|---|---|
152
+ | [date] | [description] | [reason] | yes/no + reference | [sections] |
153
+
154
+ This is the audit trail of the lifecycle obligation in Article 9(2) and Article 11.
155
+
156
+ ---
157
+
158
+ ## 7. List of harmonised standards applied (Annex IV(7))
159
+
160
+ [List each harmonised standard the system claims conformity with. EU AI Act references will appear here as standards are published — at v2.1 of this template, the harmonised standards are still being developed by CEN/CENELEC. Examples that may be relevant:]
161
+ - ISO/IEC 42001:2023 — AI Management System
162
+ - ISO/IEC 23053 — Framework for AI systems using ML
163
+ - ISO/IEC TR 24028 — Trustworthiness in AI
164
+
165
+ [For each standard listed: which clauses are claimed, evidence of conformity.]
166
+
167
+ ---
168
+
169
+ ## 8. Copy of the EU declaration of conformity (Annex IV(8))
170
+
171
+ [Reference: the separate EU Declaration of Conformity document. Include here as appendix or by reference.]
172
+
173
+ ---
174
+
175
+ ## 9. Detailed description of the system in place to evaluate the AI system performance in the post-market phase (Annex IV(9))
176
+
177
+ [Reference: `aigis get monitoring` and `aigis get eu-ai-act-art-73-incident-reporting`. Summarize:]
178
+ - Post-market monitoring plan (Article 72) — what's monitored, how often, by whom
179
+ - Incident detection and reporting workflow (Article 73)
180
+ - Feedback loop into the risk register (Article 9)
181
+ - Update mechanism for this technical documentation
182
+
183
+ ---
184
+
185
+ ## Appendices (recommended)
186
+
187
+ - A. Full Article 9 risk register (snapshot at this revision)
188
+ - B. Article 13 deployer instructions document
189
+ - C. Validation and testing reports
190
+ - D. Data-set documentation (data sheets per Article 10)
191
+ - E. Software bill of materials (SBOM)
192
+ - F. Architecture diagrams
193
+ - G. Change log (full detail for Section 6)
@@ -0,0 +1,75 @@
1
+ # Area frontmatter schema
2
+
3
+ This document is the contract for YAML frontmatter on area files in `content/skills/areas/`. It is enforced by `scripts/validate-area-frontmatter.js` and tested in `test/frontmatter-schema.test.js`.
4
+
5
+ > **Scope.** This schema applies to `content/skills/areas/*.md` only. Workflows (`content/skills/workflows/`), infrastructure (`content/skills/infrastructure/`), templates (`content/templates/`), and the core skill (`content/skills/core.md`) have their own shapes and are not validated by this script.
6
+
7
+ ## Shape
8
+
9
+ ```yaml
10
+ ---
11
+ id: <area-id> # REQUIRED — must match the filename without .md
12
+ title: <descriptive title> # REQUIRED — single-line human-readable
13
+ controls: # REQUIRED — at least three framework keys present
14
+ owasp: [LLM02, ...] # REQUIRED key, array (may be empty)
15
+ nist: [MAP-2.1, ...] # REQUIRED key, array (may be empty)
16
+ iso42001: [Annex-A.7, ...] # REQUIRED key, array (may be empty)
17
+ eu_ai_act: [Art-50, Art-13(1)(b)] # OPTIONAL — list of EU AI Act article references
18
+ min_risk_tier: all # REQUIRED — one of: low | medium | high | all
19
+ system_traits: [processes-pii, ...] # REQUIRED — non-empty array of trait identifiers
20
+ jurisdiction: [eu] # OPTIONAL — list of jurisdictions where this area applies
21
+ # absence = applies in all jurisdictions
22
+ ---
23
+ ```
24
+
25
+ ## Field semantics
26
+
27
+ ### `id` (required)
28
+
29
+ The area identifier. **Must equal the filename without the `.md` extension.** Used by `aigis get <id>`, `aigis verify <id>`, and frontmatter cross-references in briefs and IDE rules.
30
+
31
+ ### `title` (required)
32
+
33
+ Human-readable single-line title. Surfaced in `aigis search --list`, brief headers, and compact-mode area pointers.
34
+
35
+ ### `controls` (required)
36
+
37
+ Maps the area's verification checkpoints to external framework controls. Used by `aigis verify` to cite the regulatory provenance of each PASS/FAIL.
38
+
39
+ | Key | Required | Format | Examples |
40
+ |---|---|---|---|
41
+ | `owasp` | yes (may be empty) | `LLM##` | `LLM02`, `LLM10` |
42
+ | `nist` | yes (may be empty) | `<FUNCTION>-N.N` | `MAP-2.1`, `MEASURE-2.10`, `GOVERN-6.1` |
43
+ | `iso42001` | yes (may be empty) | `Clause-N` or `Annex-X[.N]` | `Clause-9.1`, `Annex-A.7`, `Annex-C` |
44
+ | `eu_ai_act` | no | `Art-N[(N)(letter)]` or `Annex-X[(N)]` | `Art-9`, `Art-10(2)(g)`, `Art-14(4)(c)`, `Annex-IV` |
45
+
46
+ The `eu_ai_act` field is the v2.1 addition. It is optional on existing areas; new EU-specific areas declare it.
47
+
48
+ ### `min_risk_tier` (required)
49
+
50
+ The minimum risk tier at which this area should be recommended. Values:
51
+ - `low` — recommended for low/medium/high risk systems
52
+ - `medium` — recommended for medium/high risk systems
53
+ - `high` — recommended for high-risk systems only
54
+ - `all` — equivalent to `low` (recommended for all tiers)
55
+
56
+ ### `system_traits` (required, non-empty)
57
+
58
+ The trait identifiers that, when present in the user's resolved trait set, cause this area to be recommended. Logical OR — any single matching trait pulls the area in. Trait identifiers must be valid (defined in `lib/classify.js`'s `ALL_TRAITS` set).
59
+
60
+ ### `jurisdiction` (optional — v2.1 addition)
61
+
62
+ Gates which framework controls render in the brief, **not** which areas appear (that's still trait-driven via `system_traits`).
63
+
64
+ | Value | Meaning |
65
+ |---|---|
66
+ | absent | Area's controls render under all jurisdictions |
67
+ | `[eu]` | Area's controls render only when `jurisdiction-eu` is in the user's trait set |
68
+ | `[us-regulated]` | Area's controls render only when `jurisdiction-us-regulated` is in the user's trait set |
69
+ | `[eu, us-regulated]` | Renders under either |
70
+
71
+ **Why this distinction matters.** `system_traits` decides whether an area appears in the brief at all. `jurisdiction` decides whether its EU-specific controls (and any other jurisdiction-bound content) get included. An area can apply universally as a procedure (e.g. `human-oversight`) while also having EU-specific extensions that only render for EU-jurisdictioned projects.
72
+
73
+ ## Backward compatibility
74
+
75
+ All v2.0 area files satisfy this schema unchanged — `eu_ai_act` and `jurisdiction` are pure additions. The validator runs against the full `content/skills/areas/` directory in CI; any existing file that fails is a regression.
@@ -0,0 +1,17 @@
1
+ # README screenshots
2
+
3
+ The README references three images at the paths below. Save the screenshots
4
+ you captured (the three you pasted into the v2.1 release session) into this
5
+ directory with the exact filenames listed.
6
+
7
+ | Filename | What it shows |
8
+ |---|---|
9
+ | `setup.png` | Terminal: `aigis init cursor` + the success message |
10
+ | `agent-flow.png` | Cursor chat panel: agent reading .cursorrules, identifying triggers, invoking aigis as tool calls |
11
+ | `verify.png` | Terminal: `aigis verify input-validation --auto . --jurisdiction eu` output with PASS marks + cross-framework citations |
12
+
13
+ If a filename mismatches, the README image embed will render as a broken
14
+ image link — fix by renaming the file to match.
15
+
16
+ The screenshots are referenced from `README.md` (root) using relative
17
+ paths: `docs/screenshots/<name>.png`.