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.0.tar.gz (19.0 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.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: air_compliance-0.2.0.tar.gz
  • Upload date:
  • Size: 19.0 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.0.tar.gz
Algorithm Hash digest
SHA256 846d9abc910efc5e4a207f48c1d176d4b874e48e975ac5c50db5fad751d72855
MD5 692939bb754cabfd755cd161b7246827
BLAKE2b-256 60e65d5537d51d3b09e65a94e9bcbd54a7ac5fb3d5359859d85cd7368feb17fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: air_compliance-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 321f05e67b19626a59f6ee1e2f56c349e5d7d0e1feeac95c7cd0c90b6ca30f8a
MD5 6084edbff73f6461ec4a307e287f8b27
BLAKE2b-256 ac4207782829bbc63a500fbfbb4429e5676a0718d8848d65e74a204c6ff72e79

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