Rust accelerator for the Admina AI governance framework. Implements the performance-critical paths of the four governance domains in Rust, exposed to Python via PyO3:
- Injection firewall — regex set + heuristic scorer
- PII scanner — regex + checksum validators (EU national IDs)
- Loop breaker — TF-IDF cosine similarity over a sliding window
- Forensic hash chain — SHA-256 append-only log with chain integrity
pip install admina-coreThe Python framework auto-detects the Rust engine at runtime and falls
back to a pure-Python implementation if admina-core is not installed,
so admina-framework always works on its own.
Apache-2.0. See the main repository for full documentation, the model card, and the governance domain modules.