Automated email notification system for EU AI Act Article 13 compliance, featuring codebase change summarization and documentation distribution.
Automate the provision of information (Article 13) to downstream deployers when an AI system is updated.
Trigger when:
Downstream Notification Progress:
- [ ] Step 1: Detect changes (Git Diff or SQLite Snapshot)
- [ ] Step 2: Generate AI summary using Gemini (Article 13.3.c focus)
- [ ] Step 3: Identify recipients from examples/ directory
- [ ] Step 4: Generate compliance packages (JSON Manifest + Excel + PDF)
- [ ] Step 5: Log transaction
git diff detection for repositories.examples/notices.db) for tracking changes in local directories without git.Place master templates in the templates/ folder:
templates/Article_13_Compliance_Template.xlsxtemplates/Annex_XII_Provider_Template.xlsxAdd provider-specific info as *_Provider.xlsx files in the examples/ directory.
Run the notifier against your codebase:
# Against a git repo
python scripts/notifier.py --repo "path/to/repo"
# Against a non-git directory (SQLite diffing)
python scripts/notifier.py --repo "path/to/folder"
Each run creates a batch in Output/Batch_[TIMESTAMP]/:
Notice_[ID].json: SMTP-ready manifest with To, Subject, and Attachment paths.Article_13_[ID].xlsx: Populated compliance template.Summary_[ID].pdf: AI-generated summary PDF.Unit tests are in examples/tests/. Run them with:
python -m pytest examples/tests/test_notifier.py