Skip to content

Releases: JerryWhites/annex4-cli

annex4-cli v0.1.0 — initial release

27 Apr 17:04

Choose a tag to compare

annex4-cli v0.1.0

EU AI Act (Regulation (EU) 2024/1689) Annex IV technical documentation generator.

⚠️ Informational tool — not legal advice. See LEGAL.md.

What's included

  • annex4 classify — interactive risk classifier with --i-acknowledge-uncertainty flag; returns structured RiskProfile (path, articles, conformity route, notified body required)
  • annex4 validate — five-tier gap analysis (ERROR / LEGAL_GAP / INCONSISTENCY / WARNING / INFO) against all 9 Annex IV sections; codes E001–E023
  • annex4 render — generates PDF / HTML / Markdown Annex IV document with mandatory disclaimer, provenance table, and regulation version stamp
  • annex4 diff — Change Impact Report grouped by Annex IV section; Article 43(4) substantiality checklist (F1–F7); exit codes 0/1/2/3 for CI integration
  • annex4 ingest — pulls metadata from MLflow, HuggingFace Hub, Giskard scan results; every value carries full provenance
  • annex4 bundle create/verify — SHA-256 tamper-evident evidence bundle

Legal firewall

The schema enforces a hard distinction between SystemMetadata (machine fact + provenance) and ComplianceClaim (human attestation). The tool never signs for you.

Quality gate

  • 316 tests, all green
  • Coverage 90% (gate ≥80%)
  • ruff 0 errors · mypy 0 issues

Install

pip install annex4-cli
annex4 --help

Reference dossiers

Three clean-validating examples in examples/: HR screening, credit scoring, medical triage (MDR Class IIa).


Full changelog: CHANGELOG.md