eu-ai-act-classifier
Answer "Is our AI system high-risk under the EU AI Act?" with a cited, reviewable first pass instead of a one-word label.
Find out which EU AI Act risk tier an AI system falls into, with every obligation cited to its article. Rules-based, offline, and built for a lawyer to confirm.
Encodes Regulation (EU) 2024/1689 as consolidated on 27 July 2026, plus Regulation (EU) 2026/1744 (Annex III high-risk dates shown as 2027-12-02, product-embedded high-risk as 2028-08-02). Not legal advice; the bundled example data is synthetic.
Who it's for
- General counsel, AI governance and compliance leads, and product counsel doing a first-pass classification of an AI system before deeper legal review.
- Lawyers who confirm the result and need to check the reasoning: each obligation cites its Article, open questions name the Article and the fact to confirm, and generated work products are marked draft only.
- Legal engineers who need the same rules as a
--strictgate in CI or an intake pipeline, as MCP tools or behind a local JSON API. - Developers asking "am I high-risk?" before engaging counsel.
Try it now
Open the live playground: no install, and nothing you paste leaves the page. The playground runs the same engine as the CLI.
Screenshot/GIF placeholder: to be added
If you don't code: open the playground and pick one of the 17 synthetic examples, or scroll to Example output. The point isn't the code; it's whether the legal work is structured, cited, reviewable, and testable.
Quick start
The package is on PyPI as eu-ai-act-classifier (Python 3.13+). With uv, uvx fetches it from PyPI and runs it without installing it. Save a profile and classify it:
cat > profile.json <<'JSON'
{
"name": "CitizenScore",
"description": "Scores individuals on social behaviour to gate access to services.",
"roles": ["provider"],
"purpose": "Social scoring",
"sector": "GovTech",
"prohibited_practices": ["5.1.c"]
}
JSON
uvx --from eu-ai-act-classifier eu-ai-act-classify profile.json
Or install it with pip:
pip install eu-ai-act-classifier
eu-ai-act-classify profile.json
To try changes on main that are not on PyPI yet, point uvx at the repository instead: uvx --from git+https://github.com/sebastianfoerste/eu-ai-act-classifier eu-ai-act-classify profile.json. To develop, work from a clone:
git clone https://github.com/sebastianfoerste/eu-ai-act-classifier
cd eu-ai-act-classifier
uv sync --extra dev
uv run eu-ai-act-classify examples/credit_scoring.json
Runs end to end, offline and deterministically. Example output shows the output, and Local verification has more commands, starting with the test suite.
Example output
Real output of uv run eu-ai-act-classify examples/social_scoring.json (excerpt, run on this repo):
EU AI Act classification: CitizenScore
Risk tier: PROHIBITED (Art. 5 AIA)
Disposition: DETERMINED
Scope status: in_scope
Roles: provider
Findings:
[blocker] Art. 5(1)(c) AIA: Social scoring leading to detrimental or unfavourable treatment
Prohibited practice under Art. 5 AIA. The system may not be placed on the market, put into service, or used.
Binding application timeline:
2025-02-02: Chapters I-II, incl. Art. 5 (prohibited practices)
2025-08-02: Chapter V (general-purpose AI models)
2026-08-02: General application for provisions without a later specific date
2027-12-02: Regulation (EU) 2026/1744: Annex III high-risk systems
2028-08-02: Regulation (EU) 2026/1744: product-embedded high-risk systems
Source manifest:
- Regulation (EU) 2024/1689: binding_level_1, retrieved 2026-08-26
- Regulation (EU) 2026/1744: binding_level_1, retrieved 2026-08-26
...
A high-risk case (examples/credit_scoring.json) returns Risk tier: HIGH-RISK (Art. 6 AIA), the finding Annex III(5)(b) AIA: Creditworthiness evaluation and credit scoring, and 14 cited obligations, for example:
- Art. 9 AIA: Risk management system. Establish, document and maintain a continuous risk management system.
- Art. 10 AIA: Data and data governance. Apply data governance to training, validation and testing data sets.
- Art. 11 AIA: Technical documentation. Draw up technical documentation (Annex IV) before placing on the market.
When a point is unsettled the disposition becomes REQUIRES_REVIEW (see examples/ambiguous_use_case.json) and the report says it needs lawyer review before reliance. The full committed sample is in examples/classification-packet.md and examples/classification-packet.json.
What it checks
| Gate | Decides | Example from the eval set |
|---|---|---|
| Scope and intake | AI-system status, EU nexus, transitional dates | examples/ambiguous_use_case.json |
| Prohibited practices (Art. 5) | Flags prohibited use cases | examples/social_scoring.json, examples/emotion_hiring.json |
| High-risk (Art. 6, Annex III) | Risk tier and provider/deployer obligations | examples/credit_scoring.json, examples/cv_screening.json |
| GPAI | Systemic-risk status and compute scale | examples/gpai_systemic_by_flops.json |
| Transparency | Limited-risk cases | examples/deepfake_generator.json, examples/support_chatbot.json |
Which example lands in which tier is asserted in tests/test_examples.py. See examples/README.md.
Surfaces
| Surface | Use it for | Details |
|---|---|---|
| Browser playground | Zero-install trial, nothing leaves the page | playground |
CLI (eu-ai-act-classify) |
Authoritative surface; --json, --strict, --sources, draft artifacts |
docs/surfaces.md |
| MCP server | Let an agent call the classifier | docs/mcp-configuration-guide.md |
| Local API and web cockpit | Local inventory, review and export workflow | docs/surfaces.md |
MCP quick start (tools: classify_ai_system, classify_ai_system_text). An MCP client starts the server with:
uvx --from "eu-ai-act-classifier[mcp]" --with "mcp<2" eu-ai-act-classifier-mcp
Keep mcp<2: the server is built on the 1.x mcp SDK, and mcp 2.x renamed the API the server imports. The [mcp] extra pins mcp<2 from 0.2.1; the 0.2.0 extra does not. Client configuration is in docs/mcp-configuration-guide.md.
Human-authored legal judgment
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. The rules are plain Python under src/eu_ai_act_classifier/, and the eval set is tested for drift.
Honest limits
- 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.
- Example data is synthetic.
- Guidance changes, and national implementation and supervisory practice may vary by Member State.
- The engine applies rules to characterised facts and does not decide disputed intended purpose, operator role or factual deployment scope.
requires_review, draft artifacts and advisory overlays must be reviewed before reliance.
Docs and links
- Playground (hosted demo)
- CASE_STUDY.md: problem, controls and limitations
- docs/surfaces.md: CLI verification, source statuses, MCP and local API, cockpit, collaboration workspace, eval set, stack
- docs/methodology.md, docs/DESIGN.md, docs/launch-readiness.md
- DEPLOYMENT.md, CONTRIBUTING.md, SECURITY.md, PRIVACY.md
Part of the EU regulation as code suite
Deterministic, review-gated tools for EU regulation, by sebastianfoerste:
- awesome-eu-fintech-regulation: curated index of EU financial-regulation primary sources and tools
- contract-review-eval-harness
- legal-function-operating-system
- eu-ai-act-classifier (this repo, PyPI)
- micar-whitepaper-linter: MiCAR whitepaper linter with pinpoint citations (PyPI)
- eu-reg-mcp (PyPI)
- micar-register-observatory
License
MIT, see LICENSE.
Metadata
Release files for eu-ai-act-classifier 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eu_ai_act_classifier-0.2.1.tar.gz | 1.7 MB | Without provenance | Details for eu_ai_act_classifier-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eu_ai_act_classifier-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for eu_ai_act_classifier-0.2.1-py3-none-any.whl |
Total release size: 1.7 MB
Release files / eu_ai_act_classifier-0.2.1.tar.gz
| Download URL | eu_ai_act_classifier-0.2.1.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db095b61ee0c1733067b47083684f679f1837553340bd1424b08a7250e500459
|
|
BLAKE2b-256 checksum How to use checksums |
4e7ef409caf4ee5a366bd2f30cba8e158d6868934ac7390afb15b8e00afbae50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / eu_ai_act_classifier-0.2.1-py3-none-any.whl
| Download URL | eu_ai_act_classifier-0.2.1-py3-none-any.whl |
|---|---|
| Size | 60.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
761719a3c596890a5a7f4c13f370005a5cefe227bbdf855f06dd74ab5d22c4e7
|
|
BLAKE2b-256 checksum How to use checksums |
646343a4783d81c7b927dab005ae4704e4ad9f5bc5341b793599e78f6e8ed22c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for eu-ai-act-classifier 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.