Skip to main content

EU AI Act compliance checker for AI agent projects — scans for AIR Blackbox components and reports coverage gaps

Project description

air-compliance

EU AI Act compliance checker for AI agent projects. Scans your codebase for AIR Blackbox components and reports which EU AI Act articles you're covered on — and which have gaps.

$ air-compliance /path/to/my-agent-project

============================================================
  AIR Blackbox — EU AI Act Compliance Report
============================================================

  Project: /path/to/my-agent-project
  Frameworks: LangChain

  Overall: PASS  |  Coverage: 100%  |  22 pass / 0 warn / 0 fail

  Article 9 — Risk Management System  [PASS]

    ● Tool calls classified by risk level
    ● Risk levels configurable per tool
    ● Risk-based blocking policy enforced at runtime
    ● Risk decisions logged to audit trail

  Article 10 — Data and Data Governance  [PASS]
  ...

  Article 12 — Record-Keeping  [PASS]

    ● Events automatically recorded over system lifetime
    ● Consent decisions logged with tool name, risk level, allow/deny
    ● Injection detection results logged with pattern and match
    ● HMAC-SHA256 chained logs — mathematically verifiable integrity

  EU AI Act high-risk enforcement: August 2, 2026

Install

pip install air-compliance

Usage

# Scan current directory
air-compliance

# Scan a specific project
air-compliance /path/to/project

# Verbose output (shows requirements and evidence)
air-compliance --verbose

# JSON output (for CI pipelines)
air-compliance --json

# Strict mode (exit code 1 on any failure — use in CI)
air-compliance --strict

What It Checks

The checker scans your project for AIR Blackbox components and maps them to 6 EU AI Act articles:

Article Requirement What It Looks For
Art. 9 Risk Management ConsentGate, risk levels, blocking policies, audit trail
Art. 10 Data Governance DataVault, PII patterns, prompt logging
Art. 11 Technical Documentation AuditLedger, call graph capture, HMAC integrity
Art. 12 Record-Keeping Auto recording, consent logging, injection logging, tamper-evident chain
Art. 14 Human Oversight Audit trail, consent gate, intervention capability, interpretable output
Art. 15 Robustness & Security InjectionDetector, blocking, defense-in-depth layers, configurable security

CI Integration

Add to your CI pipeline to block deploys that aren't compliant:

# .github/workflows/compliance.yml
name: EU AI Act Compliance
on: [push, pull_request]

jobs:
  compliance:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: pip install air-compliance
      - run: air-compliance --strict

JSON Output

air-compliance --json | jq '.articles[] | {article, status}'
{"article": "Article 9", "status": "pass"}
{"article": "Article 10", "status": "pass"}
{"article": "Article 11", "status": "warn"}
{"article": "Article 12", "status": "fail"}
{"article": "Article 14", "status": "pass"}
{"article": "Article 15", "status": "pass"}

AIR Blackbox Ecosystem

Package Framework Install
air-langchain-trust LangChain / LangGraph pip install air-langchain-trust
air-crewai-trust CrewAI pip install air-crewai-trust
openclaw-air-trust TypeScript / Node.js npm install openclaw-air-trust
Gateway Any HTTP agent docker pull ghcr.io/airblackbox/gateway:main
air-compliance Compliance checker pip install air-compliance

License

Apache-2.0

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

air_compliance-0.2.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

air_compliance-0.2.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file air_compliance-0.2.1.tar.gz.

File metadata

  • Download URL: air_compliance-0.2.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for air_compliance-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7a172505c5630b1e6be5a5e25900e9f3c645a93ebb210cca5d339c33677d642c
MD5 c8bce9c7aa7a89b67b5e7ed3ddef58ec
BLAKE2b-256 de7722fb37dd789da803aea4f1b9b9e0a382e9d285f7b735b0a3618031d5fb98

See more details on using hashes here.

File details

Details for the file air_compliance-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: air_compliance-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for air_compliance-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39ff9a3eb22d3aa31d8a7a1264cf1a1e5e60894b118dbbc82aa7b6b2ba6ad878
MD5 603d2ed42896ce5a5742c6a3285a8e59
BLAKE2b-256 34a5cfccf36d718eed0dbde03c2666daed8d179ab6f838b346b7bd0349a2cc79

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