eu-ai-act-classifier 0.2.0__tar.gz
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.
- eu_ai_act_classifier-0.2.0/.github/workflows/ci.yml +29 -0
- eu_ai_act_classifier-0.2.0/.gitignore +23 -0
- eu_ai_act_classifier-0.2.0/AGENTS.md +8 -0
- eu_ai_act_classifier-0.2.0/CASE_STUDY.md +26 -0
- eu_ai_act_classifier-0.2.0/CLAUDE.md +1 -0
- eu_ai_act_classifier-0.2.0/CONTRIBUTING.md +23 -0
- eu_ai_act_classifier-0.2.0/DEPLOYMENT.md +53 -0
- eu_ai_act_classifier-0.2.0/LICENSE +21 -0
- eu_ai_act_classifier-0.2.0/PKG-INFO +192 -0
- eu_ai_act_classifier-0.2.0/PRIVACY.md +21 -0
- eu_ai_act_classifier-0.2.0/README.md +163 -0
- eu_ai_act_classifier-0.2.0/SECURITY.md +21 -0
- eu_ai_act_classifier-0.2.0/contracts/eu-ai-act-classifier.proof.v1.json +27 -0
- eu_ai_act_classifier-0.2.0/docs/.nojekyll +0 -0
- eu_ai_act_classifier-0.2.0/docs/API.md +41 -0
- eu_ai_act_classifier-0.2.0/docs/COLLABORATION_PROGRAMME.md +7 -0
- eu_ai_act_classifier-0.2.0/docs/DESIGN.md +92 -0
- eu_ai_act_classifier-0.2.0/docs/FEATURES.md +66 -0
- eu_ai_act_classifier-0.2.0/docs/REGULATORY_CLAIM_LEDGER.md +12 -0
- eu_ai_act_classifier-0.2.0/docs/SETUP.md +42 -0
- eu_ai_act_classifier-0.2.0/docs/TESTING.md +42 -0
- eu_ai_act_classifier-0.2.0/docs/classification.svg +42 -0
- eu_ai_act_classifier-0.2.0/docs/cockpit.png +0 -0
- eu_ai_act_classifier-0.2.0/docs/demo.png +0 -0
- eu_ai_act_classifier-0.2.0/docs/deterministic-classification-vs-legal-advice.md +40 -0
- eu_ai_act_classifier-0.2.0/docs/index.html +13 -0
- eu_ai_act_classifier-0.2.0/docs/integrations/README.md +5 -0
- eu_ai_act_classifier-0.2.0/docs/integrations/eu-ai-act-classifier.adapter.v1.json +19 -0
- eu_ai_act_classifier-0.2.0/docs/launch-readiness.md +90 -0
- eu_ai_act_classifier-0.2.0/docs/mcp-configuration-guide.md +59 -0
- eu_ai_act_classifier-0.2.0/docs/methodology.md +120 -0
- eu_ai_act_classifier-0.2.0/docs/playground/app.mjs +459 -0
- eu_ai_act_classifier-0.2.0/docs/playground/classify.py +23 -0
- eu_ai_act_classifier-0.2.0/docs/playground/eu_ai_act_classifier-0.2.0-py3-none-any.whl +0 -0
- eu_ai_act_classifier-0.2.0/docs/playground/fields.json +420 -0
- eu_ai_act_classifier-0.2.0/docs/playground/index.html +85 -0
- eu_ai_act_classifier-0.2.0/docs/playground/model.mjs +113 -0
- eu_ai_act_classifier-0.2.0/docs/playground/og.png +0 -0
- eu_ai_act_classifier-0.2.0/docs/playground/runtime.mjs +41 -0
- eu_ai_act_classifier-0.2.0/docs/playground/samples.json +286 -0
- eu_ai_act_classifier-0.2.0/docs/playground/styles.css +177 -0
- eu_ai_act_classifier-0.2.0/docs/playground.png +0 -0
- eu_ai_act_classifier-0.2.0/docs/reviewer-notes.md +60 -0
- eu_ai_act_classifier-0.2.0/docs/sample-output.md +90 -0
- eu_ai_act_classifier-0.2.0/docs/sample-review-dossier.md +295 -0
- eu_ai_act_classifier-0.2.0/docs/source-status-model.md +29 -0
- eu_ai_act_classifier-0.2.0/examples/README.md +71 -0
- eu_ai_act_classifier-0.2.0/examples/ambiguous_use_case.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/classification-packet.json +492 -0
- eu_ai_act_classifier-0.2.0/examples/classification-packet.md +76 -0
- eu_ai_act_classifier-0.2.0/examples/credit_scoring.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/credit_scoring_deployer.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/cv_screening.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/deepfake_generator.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/emotion_hiring.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/employment_derogation.json +9 -0
- eu_ai_act_classifier-0.2.0/examples/foundation_model_systemic.json +9 -0
- eu_ai_act_classifier-0.2.0/examples/foundation_model_unknown_compute.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/gpai_non_systemic.json +9 -0
- eu_ai_act_classifier-0.2.0/examples/gpai_systemic_by_flops.json +9 -0
- eu_ai_act_classifier-0.2.0/examples/gpai_systemic_designated.json +10 -0
- eu_ai_act_classifier-0.2.0/examples/guidance/commission_guidance_examples.json +62 -0
- eu_ai_act_classifier-0.2.0/examples/guidance/compliance_checker_comparison.json +32 -0
- eu_ai_act_classifier-0.2.0/examples/law_enforcement.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/proctoring_education.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/social_scoring.json +8 -0
- eu_ai_act_classifier-0.2.0/examples/spam_filter.json +7 -0
- eu_ai_act_classifier-0.2.0/examples/support_chatbot.json +8 -0
- eu_ai_act_classifier-0.2.0/pyproject.toml +59 -0
- eu_ai_act_classifier-0.2.0/scripts/build_playground.py +240 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/__init__.py +45 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/advisory.py +103 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/artifacts.py +227 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/catalog.py +454 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/citations.py +228 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/cli.py +157 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/collaboration_workspace.py +475 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/dossier.py +187 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/engine.py +171 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/guidance_eval.py +70 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/inventory.py +991 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/local_api.py +161 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/mcp_server.py +61 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/models.py +349 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/obligation_graph.py +443 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/portfolio_workspace.py +237 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/report.py +131 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/__init__.py +1 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/base.py +23 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/gpai.py +61 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/high_risk.py +119 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/prohibited.py +35 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/scope.py +139 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/rules/transparency.py +40 -0
- eu_ai_act_classifier-0.2.0/src/eu_ai_act_classifier/verify_sources.py +128 -0
- eu_ai_act_classifier-0.2.0/tests/goldens/credit_scoring.cli-golden.json +32 -0
- eu_ai_act_classifier-0.2.0/tests/playground/model.test.mjs +78 -0
- eu_ai_act_classifier-0.2.0/tests/test_advisory.py +15 -0
- eu_ai_act_classifier-0.2.0/tests/test_collaboration_workspace.py +127 -0
- eu_ai_act_classifier-0.2.0/tests/test_docs.py +82 -0
- eu_ai_act_classifier-0.2.0/tests/test_engine.py +38 -0
- eu_ai_act_classifier-0.2.0/tests/test_examples.py +76 -0
- eu_ai_act_classifier-0.2.0/tests/test_golden_json.py +33 -0
- eu_ai_act_classifier-0.2.0/tests/test_gpai.py +41 -0
- eu_ai_act_classifier-0.2.0/tests/test_guidance_eval.py +21 -0
- eu_ai_act_classifier-0.2.0/tests/test_high_risk.py +107 -0
- eu_ai_act_classifier-0.2.0/tests/test_local_api.py +71 -0
- eu_ai_act_classifier-0.2.0/tests/test_obligations_and_artifacts.py +99 -0
- eu_ai_act_classifier-0.2.0/tests/test_playground.py +95 -0
- eu_ai_act_classifier-0.2.0/tests/test_portfolio_workspace.py +28 -0
- eu_ai_act_classifier-0.2.0/tests/test_prohibited.py +27 -0
- eu_ai_act_classifier-0.2.0/tests/test_required_dispositions.py +46 -0
- eu_ai_act_classifier-0.2.0/tests/test_review_dossier.py +66 -0
- eu_ai_act_classifier-0.2.0/tests/test_scope.py +50 -0
- eu_ai_act_classifier-0.2.0/tests/test_system_inventory.py +175 -0
- eu_ai_act_classifier-0.2.0/tests/test_transparency.py +20 -0
- eu_ai_act_classifier-0.2.0/web/.env.example +4 -0
- eu_ai_act_classifier-0.2.0/web/app/api/artifacts/route.ts +13 -0
- eu_ai_act_classifier-0.2.0/web/app/api/classify/route.ts +13 -0
- eu_ai_act_classifier-0.2.0/web/app/api/collaboration/route.test.ts +55 -0
- eu_ai_act_classifier-0.2.0/web/app/api/collaboration/route.ts +24 -0
- eu_ai_act_classifier-0.2.0/web/app/api/dossier/route.ts +13 -0
- eu_ai_act_classifier-0.2.0/web/app/api/health/route.ts +9 -0
- eu_ai_act_classifier-0.2.0/web/app/api/inventory/route.ts +12 -0
- eu_ai_act_classifier-0.2.0/web/app/api/schema/route.ts +12 -0
- eu_ai_act_classifier-0.2.0/web/app/api/sources/route.ts +12 -0
- eu_ai_act_classifier-0.2.0/web/app/api/workspace/route.ts +12 -0
- eu_ai_act_classifier-0.2.0/web/app/globals.css +627 -0
- eu_ai_act_classifier-0.2.0/web/app/icon.svg +5 -0
- eu_ai_act_classifier-0.2.0/web/app/layout.tsx +19 -0
- eu_ai_act_classifier-0.2.0/web/app/page.tsx +5 -0
- eu_ai_act_classifier-0.2.0/web/app/self-assessment/page.tsx +23 -0
- eu_ai_act_classifier-0.2.0/web/app/self-assessment/workspace-client.tsx +133 -0
- eu_ai_act_classifier-0.2.0/web/app/workspace/page.tsx +73 -0
- eu_ai_act_classifier-0.2.0/web/components/cockpit.tsx +1216 -0
- eu_ai_act_classifier-0.2.0/web/lib/python.ts +56 -0
- eu_ai_act_classifier-0.2.0/web/lib/samples.ts +107 -0
- eu_ai_act_classifier-0.2.0/web/lib/types.ts +371 -0
- eu_ai_act_classifier-0.2.0/web/next-env.d.ts +6 -0
- eu_ai_act_classifier-0.2.0/web/next.config.ts +9 -0
- eu_ai_act_classifier-0.2.0/web/package-lock.json +2232 -0
- eu_ai_act_classifier-0.2.0/web/package.json +27 -0
- eu_ai_act_classifier-0.2.0/web/tsconfig.json +36 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v7
|
|
13
|
+
- uses: astral-sh/setup-uv@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.13"
|
|
16
|
+
- run: uv sync --extra dev
|
|
17
|
+
- name: Lint
|
|
18
|
+
run: uv run ruff check .
|
|
19
|
+
- name: Format check
|
|
20
|
+
run: uv run ruff format --check .
|
|
21
|
+
- name: Tests
|
|
22
|
+
run: uv run pytest
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: "22"
|
|
26
|
+
- name: Browser playground checks
|
|
27
|
+
run: |
|
|
28
|
+
for file in docs/playground/*.mjs; do node --check "$file"; done
|
|
29
|
+
node --test tests/playground/*.test.mjs
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
.venv/
|
|
4
|
+
.data/
|
|
5
|
+
runtime-data/
|
|
6
|
+
venv/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.DS_Store
|
|
14
|
+
uv.lock
|
|
15
|
+
web/.next/
|
|
16
|
+
web/node_modules/
|
|
17
|
+
web/out/
|
|
18
|
+
web/.vercel/
|
|
19
|
+
|
|
20
|
+
# Environment files. Real values stay local; only example files are tracked.
|
|
21
|
+
.env
|
|
22
|
+
.env.*
|
|
23
|
+
!.env.example
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Agent Guide: EU AI Act Classifier
|
|
2
|
+
|
|
3
|
+
Welcome, AI Agent!
|
|
4
|
+
|
|
5
|
+
## Git and Branching Rules
|
|
6
|
+
Do not merge feature branches into `main`, `master` or `develop`, and do not push to those remote branches, unless the user approved it in the current session or the change goes up as a pull request for review. These branches deploy; an unreviewed merge cannot be recalled.
|
|
7
|
+
|
|
8
|
+
Before proposing a merge or push, run the local validation checks on the feature branch: schema parity, the test suite, and database migration validation.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Case study — eu-ai-act-classifier
|
|
2
|
+
|
|
3
|
+
> EU AI Act classification should be cited and reviewable, with the judgment calls flagged — not a confident one-word answer. Synthetic data only; not legal advice.
|
|
4
|
+
|
|
5
|
+
## Problem
|
|
6
|
+
"Is our AI system high-risk under the EU AI Act?" is asked constantly and answered badly — either with hand-waving or with an over-confident label that hides the parts that actually carry exposure (is the human oversight real? is a fundamental-rights assessment owed?). Teams need a structured first pass that is honest about what needs a lawyer.
|
|
7
|
+
|
|
8
|
+
## Users
|
|
9
|
+
A GC, AI governance lead, or product counsel doing a first-pass classification of an AI system before deeper legal review.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
1. A structured description of the system is provided (purpose, deployment, users, autonomy, biometric/emotion features).
|
|
13
|
+
2. The classifier runs a prohibited-practice screen (Art. 5) and a risk-tier assessment (Annex III).
|
|
14
|
+
3. It outputs the **risk tier**, the **obligations triggered** (each cited to an Article), an indicative **timeline**, and an explicit **review status**.
|
|
15
|
+
|
|
16
|
+
## Controls
|
|
17
|
+
Every tier and obligation is cited to a specific Article or Annex point. The output marks itself **NEEDS LEGAL REVIEW** and flags the genuine judgment calls (e.g. whether the human reviewer's "final decision" is real Art. 14 oversight or a rubber stamp) rather than asserting a clean answer.
|
|
18
|
+
|
|
19
|
+
## Evaluation
|
|
20
|
+
The bundled run (`examples/classification-packet.md`) classifies a synthetic CV-screening system as **HIGH-RISK** under Annex III 4(a), lists the Art. 9–15, 26, 27, 49 obligations, and flags two open questions for a lawyer.
|
|
21
|
+
|
|
22
|
+
## Limitations
|
|
23
|
+
A first-pass classifier over a structured description; it does not read product documentation, does not resolve the flagged judgment calls, and the Annex/Article mapping is illustrative and must be confirmed against the current text and guidance.
|
|
24
|
+
|
|
25
|
+
## Next steps
|
|
26
|
+
Add a conformity-assessment checklist for confirmed high-risk systems; link obligations to evidence/templates; track the system through to a documented governance decision.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
This is a personal, public-safe prototype. Issues and corrections are welcome.
|
|
4
|
+
|
|
5
|
+
## Ground rules
|
|
6
|
+
|
|
7
|
+
1. **Synthetic data only.** Never add real client data, privileged material, negotiation history, or personal data.
|
|
8
|
+
2. **Deterministic by default.** Same input, same output. No network or model calls in the core checks/evaluation.
|
|
9
|
+
3. **Cited / grounded findings.** Every regulatory finding carries a specific, verifiable citation.
|
|
10
|
+
4. **Not legal advice.** Keep the framing as a review / evaluation artifact.
|
|
11
|
+
|
|
12
|
+
## Working on it
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
uv sync --extra dev
|
|
16
|
+
uv run ruff check . && uv run ruff format --check .
|
|
17
|
+
uv run pytest # must pass before any PR
|
|
18
|
+
uv run python scripts/build_playground.py # after any rule change, then commit the result
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Reporting an issue
|
|
22
|
+
|
|
23
|
+
Be specific: the rule or step, what you expected, and — for regulatory checks — the corrected citation. Citation fixes are the most valuable contribution.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# EU AI Act Classifier Deployment
|
|
2
|
+
|
|
3
|
+
The classifier has three surfaces:
|
|
4
|
+
|
|
5
|
+
- the Python CLI and local API bridge, which are the source of truth for legal-rule evaluation;
|
|
6
|
+
- the static browser playground in `docs/playground/`, which runs the same package client-side;
|
|
7
|
+
- the optional `web/` cockpit, which is a Next.js fixture demo that runs locally.
|
|
8
|
+
|
|
9
|
+
Hosted surface: the browser playground at https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/, served by GitHub Pages from `docs/` on `main`. It needs no server: the page loads Pyodide and Pydantic from the Pyodide CDN and installs the classifier wheel committed next to it. Profiles never leave the browser.
|
|
10
|
+
|
|
11
|
+
The cockpit is not hosted. Its API routes spawn the Python classifier, which a static or serverless host cannot execute, so the earlier Vercel build never returned a result. Run the cockpit locally.
|
|
12
|
+
|
|
13
|
+
## Playground
|
|
14
|
+
|
|
15
|
+
Rebuild after any change under `src/`, `examples/` or the `SystemProfile` fields:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
uv run python scripts/build_playground.py
|
|
19
|
+
uv run pytest tests/test_playground.py
|
|
20
|
+
node --test tests/playground/*.test.mjs
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The script regenerates `samples.json` and `fields.json` and replaces the wheel. `tests/test_playground.py` fails while any of them is stale. GitHub Pages publishes the result on the next push to `main`.
|
|
24
|
+
|
|
25
|
+
## Local Web Run
|
|
26
|
+
|
|
27
|
+
From the repository root:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uv sync
|
|
31
|
+
cd web
|
|
32
|
+
npm install
|
|
33
|
+
cp .env.example .env.local
|
|
34
|
+
npm run dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The web app shells out to the Python bridge through `uv`. Keep `CLASSIFIER_REPO_ROOT` pointed at the repository root if the web app runs from another working directory.
|
|
38
|
+
|
|
39
|
+
## Hosting the Cockpit
|
|
40
|
+
|
|
41
|
+
Do not deploy the cockpit to a host that cannot run the Python bridge. If you host it on one that can, keep it fixture-only. Before deploying:
|
|
42
|
+
|
|
43
|
+
1. Run `uv run pytest`.
|
|
44
|
+
2. Run `cd web && npm run build`.
|
|
45
|
+
3. Confirm the demo does not persist client, matter, candidate, account, or privileged data.
|
|
46
|
+
4. Confirm no external model API key is required.
|
|
47
|
+
5. Keep generated artifacts labelled as draft review material.
|
|
48
|
+
|
|
49
|
+
## Environment
|
|
50
|
+
|
|
51
|
+
See `web/.env.example`.
|
|
52
|
+
|
|
53
|
+
No secret is required for the default fixture cockpit. Do not add API keys or confidential data to hosting environment variables for a public demo.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sebastian Förste
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: eu-ai-act-classifier
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Deterministic EU AI Act (Reg (EU) 2024/1689) risk-tier and obligation classifier with pinpoint citations and a lawyer review gate.
|
|
5
|
+
Project-URL: Homepage, https://github.com/sebastianfoerste/eu-ai-act-classifier
|
|
6
|
+
Project-URL: Source, https://github.com/sebastianfoerste/eu-ai-act-classifier
|
|
7
|
+
Project-URL: Issues, https://github.com/sebastianfoerste/eu-ai-act-classifier/issues
|
|
8
|
+
Author: Sebastian Förste
|
|
9
|
+
Maintainer: Sebastian Förste
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: ai-governance,compliance,eu-ai-act,legal-engineering,mcp,regtech
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Legal Industry
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Office/Business
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Requires-Python: >=3.13
|
|
22
|
+
Requires-Dist: pydantic>=2.6
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
25
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
26
|
+
Provides-Extra: mcp
|
|
27
|
+
Requires-Dist: mcp>=1.2; extra == 'mcp'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# eu-ai-act-classifier
|
|
31
|
+
|
|
32
|
+
[](https://github.com/sebastianfoerste/eu-ai-act-classifier/actions/workflows/ci.yml)
|
|
33
|
+
|
|
34
|
+
Deterministic EU AI Act first-pass classifier: works out which risk tier an AI system falls into and lists the obligations that follow, each with its article, application date and review status. Runs as a CLI, as MCP-style tools or in the browser; a lawyer confirms the result. Not legal advice; data is synthetic.
|
|
35
|
+
|
|
36
|
+
**[Try it in your browser](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/)**: no install, and nothing you paste leaves the page. The playground runs the same engine as the CLI.
|
|
37
|
+
|
|
38
|
+
[](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/)
|
|
39
|
+
|
|
40
|
+
> **If you don't code:** open the [playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) and pick one of the 17 synthetic examples, or scroll to [What the demo produces](#what-the-demo-produces). The point isn't the code; it's whether the legal work is structured, cited, reviewable, and testable.
|
|
41
|
+
|
|
42
|
+
See [CASE_STUDY.md](CASE_STUDY.md) for the problem, controls, and limitations. Launch readiness is tracked in [docs/launch-readiness.md](docs/launch-readiness.md).
|
|
43
|
+
|
|
44
|
+
## Run it
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
git clone https://github.com/sebastianfoerste/eu-ai-act-classifier
|
|
48
|
+
cd eu-ai-act-classifier
|
|
49
|
+
uv sync
|
|
50
|
+
uv run python -m src.eu_ai_act_classifier.cli examples/credit_scoring.json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Runs end to end, offline and deterministically.
|
|
54
|
+
|
|
55
|
+
## Browser playground
|
|
56
|
+
|
|
57
|
+
The [playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) runs the classifier client-side with Pyodide. Pick a synthetic example or paste a `SystemProfile`, classify it, then export the JSON or text report. A field guide lists every input field and its allowed values.
|
|
58
|
+
|
|
59
|
+
The page installs a wheel of this package, so it applies the same rules as the CLI. `tests/test_playground.py` fails if the wheel, the bundled examples or the field guide drift from the source. Rebuild after a rule change:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
uv run python scripts/build_playground.py
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## What the demo produces
|
|
66
|
+
|
|
67
|
+
The classifier runs a gates-based review over a system profile and outputs a report detailing the risk tier, binding timeline, regulatory sources, applicable obligations and review status. You can read the committed sample output in [`examples/classification-packet.md`](examples/classification-packet.md) and [`examples/classification-packet.json`](examples/classification-packet.json).
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
EU AI Act classification: CreditSightScore
|
|
71
|
+
Risk tier: HIGH-RISK (Art. 6 AIA)
|
|
72
|
+
Disposition: DETERMINED
|
|
73
|
+
Scope status: in_scope
|
|
74
|
+
Roles: provider
|
|
75
|
+
|
|
76
|
+
Obligations:
|
|
77
|
+
- Art. 9 AIA: Risk management system.
|
|
78
|
+
- Art. 10 AIA: Data and data governance.
|
|
79
|
+
- Art. 11 AIA: Technical documentation.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
In the sample run, every tier and obligation is cited to an Article and carries an explicit review status.
|
|
83
|
+
|
|
84
|
+

|
|
85
|
+
|
|
86
|
+
## What it checks / does
|
|
87
|
+
|
|
88
|
+
| Gates / Steps | Focus | Verification Method |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| Scope and Intake | Alignment | Checks AI-system status, EU nexus, and transitional dates |
|
|
91
|
+
| Prohibited Practices | Art. 5 verification | Flags prohibited use cases |
|
|
92
|
+
| High-Risk & GPAI | Art. 6 / Annex III / GPAI | Classifies obligations based on deployment areas and compute scale |
|
|
93
|
+
|
|
94
|
+
## Local Verification
|
|
95
|
+
|
|
96
|
+
Use the CLI first. It is the authoritative product surface and does not require web dependencies:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
uv run pytest
|
|
100
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --strict
|
|
101
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --sources
|
|
102
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --artifact all --artifacts-dir /tmp/eu-ai-act-draft-pack
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Then inspect `/tmp/eu-ai-act-draft-pack`. The generated files are draft review artifacts, not legal opinions, conformity assessments or filing documents.
|
|
106
|
+
|
|
107
|
+
## Source Statuses
|
|
108
|
+
|
|
109
|
+
Reports and draft artifacts use a versioned source manifest. The current binding layer includes Regulation (EU) 2024/1689 as consolidated on 27 July 2026 and Regulation (EU) 2026/1744. Any future provisional material and nonbinding guidance remain separately labelled. Guidance overlays are advisory notes and do not override the binding classification logic.
|
|
110
|
+
|
|
111
|
+
## MCP And Local API
|
|
112
|
+
|
|
113
|
+
The MCP server remains available:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
uv pip install -e ".[mcp]"
|
|
117
|
+
python -m eu_ai_act_classifier.mcp_server
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The local JSON bridge is used by the optional web cockpit:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
eu-ai-act-local-api schema
|
|
124
|
+
eu-ai-act-local-api inventory
|
|
125
|
+
echo '{"profile":{"name":"x"}}' | eu-ai-act-local-api classify
|
|
126
|
+
echo '{"profile":{"name":"x"}}' | eu-ai-act-local-api dossier
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The bridge exposes schema, inventory, classify, sources, workspace, artifacts and dossier commands. It keeps the Python classifier as the legal source of truth.
|
|
130
|
+
|
|
131
|
+
`eu-ai-act-local-api workspace` and `/workspace` expose the same deterministic portfolio workspace: an AI-system vault, guided assessment workflows and a fleet command center. All deployment and external-use decisions remain review-gated.
|
|
132
|
+
|
|
133
|
+
The inventory payload includes a system review table with classifier-backed rows,
|
|
134
|
+
source status, open facts, obligations, draft artifacts and review state.
|
|
135
|
+
External action is blocked and all deployment, regulator, customer and
|
|
136
|
+
public-facing use remains review-gated.
|
|
137
|
+
|
|
138
|
+
## Optional Web Cockpit
|
|
139
|
+
|
|
140
|
+

|
|
141
|
+
|
|
142
|
+
The `web/` folder contains a local Next.js App Router cockpit with system inventory, guided questionnaire, risk map, open legal questions, reviewer notes, source provenance, obligation tracker and export pack preview.
|
|
143
|
+
|
|
144
|
+
The cockpit runs locally: `cd web && npm install && npm run dev`. Its API routes spawn the Python classifier from the repository root, so it is not hosted. The [browser playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) is the hosted surface, and the CLI remains the authoritative legal-rule surface.
|
|
145
|
+
|
|
146
|
+
Run it locally:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
cd web
|
|
150
|
+
npm install
|
|
151
|
+
npm run dev
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
The web app uses in-memory state for v1. It does not persist client, matter, candidate, account or privileged data.
|
|
155
|
+
|
|
156
|
+
Deployment notes for the playground and the cockpit are in [DEPLOYMENT.md](DEPLOYMENT.md).
|
|
157
|
+
|
|
158
|
+
## Eval Set
|
|
159
|
+
|
|
160
|
+
`examples/` holds synthetic systems spanning prohibited, high-risk, limited risk, minimal risk, GPAI and review-required cases. The expected results are asserted in `tests/test_examples.py`.
|
|
161
|
+
|
|
162
|
+
## Known Legal Limits
|
|
163
|
+
|
|
164
|
+
- Guidance changes.
|
|
165
|
+
- National implementation and supervisory practice may vary by Member State.
|
|
166
|
+
- The engine applies rules to characterised facts and does not decide disputed intended purpose, operator role or factual deployment scope.
|
|
167
|
+
- `requires_review`, draft artifacts and advisory overlays must be reviewed before reliance.
|
|
168
|
+
|
|
169
|
+
## Stack
|
|
170
|
+
|
|
171
|
+
Python 3.13+, Pydantic v2, pytest, ruff and uv for the classifier. Pyodide and plain JavaScript for the browser playground. Next.js App Router and React for the optional local cockpit.
|
|
172
|
+
|
|
173
|
+
## Collaborative assessment workspace
|
|
174
|
+
|
|
175
|
+
The local `collaboration` bridge command and `/self-assessment` route add stable inventory review cells, optimistic locks, versioned classification and policy workflows, and a synthetic self-assessment portal. Mutable state exports as `review.collaboration.v1`; deterministic classifier results remain separate from reviewer overrides and blocked classifications remain deployment-blocking.
|
|
176
|
+
|
|
177
|
+
## Safety
|
|
178
|
+
|
|
179
|
+
This is a screening tool for supervised legal review. It does not produce legal advice, a conformity assessment or a binding regulatory conclusion. Generated work products require human legal review before use.
|
|
180
|
+
|
|
181
|
+
## Human-authored legal judgment
|
|
182
|
+
|
|
183
|
+
AI tools assisted the implementation, but the parts that carry the value are human-authored: the Annex/Article mappings, the obligation set, and the prohibited-practice and review-status logic. The point of this repository is not code volume; it is showing how legal judgment can be made structured, testable, and reviewable.
|
|
184
|
+
|
|
185
|
+
## Related
|
|
186
|
+
|
|
187
|
+
Part of a portfolio of deterministic, review-gated EU-regulation tools:
|
|
188
|
+
|
|
189
|
+
- [micar-whitepaper-linter](https://github.com/sebastianfoerste/micar-whitepaper-linter): MiCAR whitepaper linter with pinpoint citations, a browser playground and a CI action.
|
|
190
|
+
- [dpa-and-data-transfer-review](https://github.com/sebastianfoerste/dpa-and-data-transfer-review): GDPR Art. 28 and Chapter V transfer checks with a visible review state.
|
|
191
|
+
|
|
192
|
+
Curated index of EU financial-regulation primary sources and tools: [awesome-eu-fintech-regulation](https://github.com/sebastianfoerste/awesome-eu-fintech-regulation).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Privacy Notes
|
|
2
|
+
|
|
3
|
+
## Data Processed
|
|
4
|
+
|
|
5
|
+
The classifier may process AI-system names, intended purpose, actor roles, deployment context, public-authority use, GPAI facts, risk triggers, source metadata and draft artifact content.
|
|
6
|
+
|
|
7
|
+
## Demo Boundary
|
|
8
|
+
|
|
9
|
+
The examples are synthetic system profiles. Use them for public demos. Do not paste client AI inventories, candidate-screening details, procurement records or confidential product roadmaps into the CLI or cockpit for screenshots.
|
|
10
|
+
|
|
11
|
+
## Local Cockpit
|
|
12
|
+
|
|
13
|
+
The cockpit uses local state and a Python bridge. It does not need to persist client, matter, candidate or account data for the portfolio demo.
|
|
14
|
+
|
|
15
|
+
## Artifacts
|
|
16
|
+
|
|
17
|
+
Generated artifacts are draft review materials. They are not legal advice, conformity assessments, filing documents or regulatory approvals.
|
|
18
|
+
|
|
19
|
+
## Source Currency
|
|
20
|
+
|
|
21
|
+
The source manifest separates binding, provisional and advisory sources. Legal status and dates should be rechecked against primary sources before any real matter use.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# eu-ai-act-classifier
|
|
2
|
+
|
|
3
|
+
[](https://github.com/sebastianfoerste/eu-ai-act-classifier/actions/workflows/ci.yml)
|
|
4
|
+
|
|
5
|
+
Deterministic EU AI Act first-pass classifier: works out which risk tier an AI system falls into and lists the obligations that follow, each with its article, application date and review status. Runs as a CLI, as MCP-style tools or in the browser; a lawyer confirms the result. Not legal advice; data is synthetic.
|
|
6
|
+
|
|
7
|
+
**[Try it in your browser](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/)**: no install, and nothing you paste leaves the page. The playground runs the same engine as the CLI.
|
|
8
|
+
|
|
9
|
+
[](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/)
|
|
10
|
+
|
|
11
|
+
> **If you don't code:** open the [playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) and pick one of the 17 synthetic examples, or scroll to [What the demo produces](#what-the-demo-produces). The point isn't the code; it's whether the legal work is structured, cited, reviewable, and testable.
|
|
12
|
+
|
|
13
|
+
See [CASE_STUDY.md](CASE_STUDY.md) for the problem, controls, and limitations. Launch readiness is tracked in [docs/launch-readiness.md](docs/launch-readiness.md).
|
|
14
|
+
|
|
15
|
+
## Run it
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://github.com/sebastianfoerste/eu-ai-act-classifier
|
|
19
|
+
cd eu-ai-act-classifier
|
|
20
|
+
uv sync
|
|
21
|
+
uv run python -m src.eu_ai_act_classifier.cli examples/credit_scoring.json
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Runs end to end, offline and deterministically.
|
|
25
|
+
|
|
26
|
+
## Browser playground
|
|
27
|
+
|
|
28
|
+
The [playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) runs the classifier client-side with Pyodide. Pick a synthetic example or paste a `SystemProfile`, classify it, then export the JSON or text report. A field guide lists every input field and its allowed values.
|
|
29
|
+
|
|
30
|
+
The page installs a wheel of this package, so it applies the same rules as the CLI. `tests/test_playground.py` fails if the wheel, the bundled examples or the field guide drift from the source. Rebuild after a rule change:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
uv run python scripts/build_playground.py
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## What the demo produces
|
|
37
|
+
|
|
38
|
+
The classifier runs a gates-based review over a system profile and outputs a report detailing the risk tier, binding timeline, regulatory sources, applicable obligations and review status. You can read the committed sample output in [`examples/classification-packet.md`](examples/classification-packet.md) and [`examples/classification-packet.json`](examples/classification-packet.json).
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
EU AI Act classification: CreditSightScore
|
|
42
|
+
Risk tier: HIGH-RISK (Art. 6 AIA)
|
|
43
|
+
Disposition: DETERMINED
|
|
44
|
+
Scope status: in_scope
|
|
45
|
+
Roles: provider
|
|
46
|
+
|
|
47
|
+
Obligations:
|
|
48
|
+
- Art. 9 AIA: Risk management system.
|
|
49
|
+
- Art. 10 AIA: Data and data governance.
|
|
50
|
+
- Art. 11 AIA: Technical documentation.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
In the sample run, every tier and obligation is cited to an Article and carries an explicit review status.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
## What it checks / does
|
|
58
|
+
|
|
59
|
+
| Gates / Steps | Focus | Verification Method |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| Scope and Intake | Alignment | Checks AI-system status, EU nexus, and transitional dates |
|
|
62
|
+
| Prohibited Practices | Art. 5 verification | Flags prohibited use cases |
|
|
63
|
+
| High-Risk & GPAI | Art. 6 / Annex III / GPAI | Classifies obligations based on deployment areas and compute scale |
|
|
64
|
+
|
|
65
|
+
## Local Verification
|
|
66
|
+
|
|
67
|
+
Use the CLI first. It is the authoritative product surface and does not require web dependencies:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
uv run pytest
|
|
71
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --strict
|
|
72
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --sources
|
|
73
|
+
uv run eu-ai-act-classify examples/credit_scoring.json --artifact all --artifacts-dir /tmp/eu-ai-act-draft-pack
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Then inspect `/tmp/eu-ai-act-draft-pack`. The generated files are draft review artifacts, not legal opinions, conformity assessments or filing documents.
|
|
77
|
+
|
|
78
|
+
## Source Statuses
|
|
79
|
+
|
|
80
|
+
Reports and draft artifacts use a versioned source manifest. The current binding layer includes Regulation (EU) 2024/1689 as consolidated on 27 July 2026 and Regulation (EU) 2026/1744. Any future provisional material and nonbinding guidance remain separately labelled. Guidance overlays are advisory notes and do not override the binding classification logic.
|
|
81
|
+
|
|
82
|
+
## MCP And Local API
|
|
83
|
+
|
|
84
|
+
The MCP server remains available:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
uv pip install -e ".[mcp]"
|
|
88
|
+
python -m eu_ai_act_classifier.mcp_server
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The local JSON bridge is used by the optional web cockpit:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
eu-ai-act-local-api schema
|
|
95
|
+
eu-ai-act-local-api inventory
|
|
96
|
+
echo '{"profile":{"name":"x"}}' | eu-ai-act-local-api classify
|
|
97
|
+
echo '{"profile":{"name":"x"}}' | eu-ai-act-local-api dossier
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The bridge exposes schema, inventory, classify, sources, workspace, artifacts and dossier commands. It keeps the Python classifier as the legal source of truth.
|
|
101
|
+
|
|
102
|
+
`eu-ai-act-local-api workspace` and `/workspace` expose the same deterministic portfolio workspace: an AI-system vault, guided assessment workflows and a fleet command center. All deployment and external-use decisions remain review-gated.
|
|
103
|
+
|
|
104
|
+
The inventory payload includes a system review table with classifier-backed rows,
|
|
105
|
+
source status, open facts, obligations, draft artifacts and review state.
|
|
106
|
+
External action is blocked and all deployment, regulator, customer and
|
|
107
|
+
public-facing use remains review-gated.
|
|
108
|
+
|
|
109
|
+
## Optional Web Cockpit
|
|
110
|
+
|
|
111
|
+

|
|
112
|
+
|
|
113
|
+
The `web/` folder contains a local Next.js App Router cockpit with system inventory, guided questionnaire, risk map, open legal questions, reviewer notes, source provenance, obligation tracker and export pack preview.
|
|
114
|
+
|
|
115
|
+
The cockpit runs locally: `cd web && npm install && npm run dev`. Its API routes spawn the Python classifier from the repository root, so it is not hosted. The [browser playground](https://sebastianfoerste.github.io/eu-ai-act-classifier/playground/) is the hosted surface, and the CLI remains the authoritative legal-rule surface.
|
|
116
|
+
|
|
117
|
+
Run it locally:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
cd web
|
|
121
|
+
npm install
|
|
122
|
+
npm run dev
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The web app uses in-memory state for v1. It does not persist client, matter, candidate, account or privileged data.
|
|
126
|
+
|
|
127
|
+
Deployment notes for the playground and the cockpit are in [DEPLOYMENT.md](DEPLOYMENT.md).
|
|
128
|
+
|
|
129
|
+
## Eval Set
|
|
130
|
+
|
|
131
|
+
`examples/` holds synthetic systems spanning prohibited, high-risk, limited risk, minimal risk, GPAI and review-required cases. The expected results are asserted in `tests/test_examples.py`.
|
|
132
|
+
|
|
133
|
+
## Known Legal Limits
|
|
134
|
+
|
|
135
|
+
- Guidance changes.
|
|
136
|
+
- National implementation and supervisory practice may vary by Member State.
|
|
137
|
+
- The engine applies rules to characterised facts and does not decide disputed intended purpose, operator role or factual deployment scope.
|
|
138
|
+
- `requires_review`, draft artifacts and advisory overlays must be reviewed before reliance.
|
|
139
|
+
|
|
140
|
+
## Stack
|
|
141
|
+
|
|
142
|
+
Python 3.13+, Pydantic v2, pytest, ruff and uv for the classifier. Pyodide and plain JavaScript for the browser playground. Next.js App Router and React for the optional local cockpit.
|
|
143
|
+
|
|
144
|
+
## Collaborative assessment workspace
|
|
145
|
+
|
|
146
|
+
The local `collaboration` bridge command and `/self-assessment` route add stable inventory review cells, optimistic locks, versioned classification and policy workflows, and a synthetic self-assessment portal. Mutable state exports as `review.collaboration.v1`; deterministic classifier results remain separate from reviewer overrides and blocked classifications remain deployment-blocking.
|
|
147
|
+
|
|
148
|
+
## Safety
|
|
149
|
+
|
|
150
|
+
This is a screening tool for supervised legal review. It does not produce legal advice, a conformity assessment or a binding regulatory conclusion. Generated work products require human legal review before use.
|
|
151
|
+
|
|
152
|
+
## Human-authored legal judgment
|
|
153
|
+
|
|
154
|
+
AI tools assisted the implementation, but the parts that carry the value are human-authored: the Annex/Article mappings, the obligation set, and the prohibited-practice and review-status logic. The point of this repository is not code volume; it is showing how legal judgment can be made structured, testable, and reviewable.
|
|
155
|
+
|
|
156
|
+
## Related
|
|
157
|
+
|
|
158
|
+
Part of a portfolio of deterministic, review-gated EU-regulation tools:
|
|
159
|
+
|
|
160
|
+
- [micar-whitepaper-linter](https://github.com/sebastianfoerste/micar-whitepaper-linter): MiCAR whitepaper linter with pinpoint citations, a browser playground and a CI action.
|
|
161
|
+
- [dpa-and-data-transfer-review](https://github.com/sebastianfoerste/dpa-and-data-transfer-review): GDPR Art. 28 and Chapter V transfer checks with a visible review state.
|
|
162
|
+
|
|
163
|
+
Curated index of EU financial-regulation primary sources and tools: [awesome-eu-fintech-regulation](https://github.com/sebastianfoerste/awesome-eu-fintech-regulation).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
This repository is a deterministic EU AI Act triage engine with a local CLI, MCP surface and optional local cockpit. Public demos should use synthetic AI-system profiles only.
|
|
6
|
+
|
|
7
|
+
## Sensitive Data Surfaces
|
|
8
|
+
|
|
9
|
+
The tool can process system descriptions, intended-purpose facts, actor roles, deployment context, generated draft artifacts, source manifests and local reviewer notes.
|
|
10
|
+
|
|
11
|
+
## Required Controls
|
|
12
|
+
|
|
13
|
+
1. Do not commit client system inventories, confidential product descriptions or privileged assessments.
|
|
14
|
+
2. Use synthetic examples for public demos and portfolio screenshots.
|
|
15
|
+
3. Keep generated artifacts out of public commits unless they are synthetic and clearly labelled.
|
|
16
|
+
4. Treat source manifests as legal-source metadata, not proof that all legal status labels remain current.
|
|
17
|
+
5. Do not add current-law claims without checking primary sources.
|
|
18
|
+
|
|
19
|
+
## Reporting
|
|
20
|
+
|
|
21
|
+
Report suspected vulnerabilities privately through the maintainer's GitHub profile contact details. Include the affected path, impact and reproduction steps. Do not open public issues for suspected confidential intake data or credential leaks.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "eu-ai-act-classifier.proof.v1",
|
|
3
|
+
"productId": "eu-ai-act-classifier",
|
|
4
|
+
"sourceCurrencyDate": "2026-08-26",
|
|
5
|
+
"bindingSources": [
|
|
6
|
+
{
|
|
7
|
+
"sourceId": "ai-act-2024-1689",
|
|
8
|
+
"url": "https://eur-lex.europa.eu/eli/reg/2024/1689/2026-07-27/eng",
|
|
9
|
+
"status": "binding_level_1"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"sourceId": "ai-act-amendment-2026-1744",
|
|
13
|
+
"url": "https://eur-lex.europa.eu/eli/reg/2026/1744/oj/eng",
|
|
14
|
+
"status": "binding_level_1"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputContract": "ClassificationReport",
|
|
18
|
+
"reviewBoundary": {
|
|
19
|
+
"humanReviewRequired": true,
|
|
20
|
+
"externalActionAllowed": false,
|
|
21
|
+
"legalAdviceStatus": "draft_for_human_review"
|
|
22
|
+
},
|
|
23
|
+
"verification": {
|
|
24
|
+
"command": ".venv/bin/python -m pytest -q",
|
|
25
|
+
"sourceTest": "tests/test_obligations_and_artifacts.py"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
File without changes
|