Skip to main content

Static scanner and Annex IV drafter for EU AI Act compliance (prototype)

Project description

🇪🇺 AI Act Compliance Scanner (Sovereign Code)

Don't let a €35M fine stop you from shipping. The open-source CLI that maps your code to the EU AI Act (Annex IV) in seconds.

License Status Sovereign Code CI

⚡ The Problem

The EU AI Act is here. If your software uses ML libraries (e.g., torch, sklearn, tensorflow.js, gorgonia), you might be classified as "High Risk" under Article 6.

  • Lawyers cost: €500/hour.
  • Ignorance costs: Up to 7% of global turnover.
  • Manual compliance: Boring, error-prone, and slow.

🛡️ The Solution

ai-act-check is a "Compliance-as-Code" tool. It parses your repository's manifests and code, identifies regulated libraries, and uses an LLM Agent to draft your Annex IV Technical Documentation.

🚀 Quick Start

1. Install

pip install ai-act-check

2. The Smoke Test (No API Key needed)

Scan your repo for "High Risk" dependencies locally. It works for Python, Node.js, Go, Rust, Java, Ruby, and PHP.

ai-act-check scan ./my-project

Output: JSON file with detected libraries and risk triggers.

3. Manual Mode (Interactive)

If your language isn't supported yet, or you want to check specific libraries:

ai-act-check manual

Or via CLI flags:

ai-act-check scan --libs "tensorflow, face_recognition"

4. Generate the Legal Draft (Requires API Key)

Turn your code scan into a formal legal draft.

export OPENROUTER_API_KEY="sk-..."
ai-act-check draft scan_results.json

Output: ANNEX_IV_DRAFT.txt written in formal legal prose.

🌍 Supported Languages

We automatically scan the following manifest files for high-risk AI/ML libraries:

  • Python: requirements.txt, Pipfile, pyproject.toml (plus AST analysis)
  • Node.js: package.json
  • Go: go.mod
  • Rust: Cargo.toml
  • Java: pom.xml, build.gradle
  • Ruby: Gemfile
  • PHP: composer.json

📂 How it Works

  1. Manifest & Code Analysis: We parse your dependency files and source code to see what libraries are used.
  2. Risk Mapping: Deterministic mapping of libraries to Annex III use cases (Biometrics, Critical Infra, Employment).
  3. Agentic Drafting: An LLM agent (Compl-AI) acts as a Junior Associate to draft the text, strictly grounded in the scan evidence.

⚠️ Disclaimer

This tool is for technical documentation assistance only. It is not legal advice. You remain responsible for your compliance. For full conformity assessments and liability protection, visit Sovereign Code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_act_check-0.3.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_act_check-0.3.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_act_check-0.3.1.tar.gz.

File metadata

  • Download URL: ai_act_check-0.3.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ai_act_check-0.3.1.tar.gz
Algorithm Hash digest
SHA256 59ac4e4938feb6bc337e3b4e145c96dbe62d011060b1a852e1c4cac4bc115d62
MD5 941cc55b3b5e6405ed0e7c0049f5e01c
BLAKE2b-256 a0f6d769c9cd7818928abf60ade22f3741619ad1cbef710d3ae8b7db7e8c6b44

See more details on using hashes here.

File details

Details for the file ai_act_check-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ai_act_check-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ai_act_check-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be32a818970b98c5bb3cfd1d6c938d52e315892d482cf487ab0201d03904d73
MD5 28a7b79a2ed735b849bbae496b73eae0
BLAKE2b-256 38469acdef7176d9d6ea06b97a9b176d731d7e36420ec853689a20c3be6049b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page