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.1.0.tar.gz (17.9 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.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: air_compliance-0.1.0.tar.gz
  • Upload date:
  • Size: 17.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7906aa71b768dfb4c85962b9efedf1dbcfb92a3d15dac08b13faa4218a23cb3d
MD5 22ecc9f47238a3668112d430d6e945a4
BLAKE2b-256 86fd1acbdbeb6ae9c2a01f701e4e563fe0ee11a0c53ef8316a1b5a828bbf3ddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: air_compliance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4edc8a2db97124110a5bdc6650f834299cf55cb7b1b4ed6530f6bdb6b47b091
MD5 b498c2d64e65b35be3be169e9b262c40
BLAKE2b-256 00bd287f6a15f1b4dd6750c86617d7b275b71cb135fc86cfa9fa220598acec1c

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