Open source · Apache 2.0 · Self-hosted
Know which AI rules apply. Prove you follow them.
AI Governance Console keeps an inventory of your AI systems, works out which regimes apply and why, classifies risk under each one, checks every system against policy-as-code in Open Policy Agent, and generates audit-ready evidence on demand.

The problem
Four regimes, one spreadsheet, always out of date
The EU AI Act, California's automated-decision rules, China's generative AI measures and India's DPDP Act each have their own triggers, risk tiers and obligations, and many of them reach systems that are never deployed in that country. Most teams track this by hand. The spreadsheet goes stale the moment a model, a market or a data flow changes, and nobody can say why a system was rated the way it was.
The approach
Treat compliance as software
- Inventory with full version history, so every rating is tied to the metadata it was computed from.
- Explained detection: each regime that applies comes with plain-language reasons and machine-readable signals.
- Policy as code: Rego rules with article citations, severity and a concrete fix for every finding.
- Evidence on demand: a PDF report and a checksummed JSON manifest, backed by an append-only audit trail.
Regulation coverage
Four regimes, plus your own baseline
Every system is checked for applicability and risk tier under each regime, and evaluated rule by rule against the bundled Rego policies. Counts are read from policies/ at build time: 36 rules backed by 42 Rego tests.
European Union
EU AI Act — Regulation (EU) 2024/1689
- Applies when
- Deployed, offered or with data subjects in the EU/EEA · Automated consequential decisions about EU residents
- Risk tiers
- Prohibited (Art. 5) · High-risk (Annex III) · Limited (Art. 50) · Minimal
- Strictness
- 100 / 100
China
Generative AI Interim Measures · PIPL · algorithm filing
- Applies when
- Service reachable from China · Generated content viewable in China · Data stored or processed in China
- Risk tiers
- Prohibited service · Public-opinion attributes · Filing-only · Minimal
- Strictness
- 90 / 100
California
CCPA/CPRA ADMT regulations · AI Transparency Act
- Applies when
- Deployed or offered in California · Automated decisions on employment, credit, housing, insurance, education
- Risk tiers
- Significant-decision ADMT · Disclosure-required · Minimal
- Strictness
- 70 / 100
India
Digital Personal Data Protection Act 2023
- Applies when
- Users, data subjects or deployment in India · Children's data escalates the tier
- Risk tiers
- Significant data fiduciary workload · Standard workload · Minimal
- Strictness
- 60 / 100
Plus a global baseline (3 rules) that applies to every system: generative-AI content labelling, notice for automated decisions, and vendor diligence for third-party models. Add your own packages under policies/ to extend any regime.
How it works
From system metadata to cited findings
- 1
Register
Describe the system: purpose, use case, autonomy, data categories, and where it is deployed, offered and reachable.
- 2
Detect
A pure rules engine decides which regimes apply and explains why, strictest first.
- 3
Classify
A global baseline risk score, re-mapped through each regime. Overlays only escalate, never downgrade.
- 4
Evaluate
Rego policies run in Open Policy Agent. Each finding cites the article it comes from and says how to fix it.
- 5
Prove
One call produces a PDF report and a SHA-256-checksummed JSON manifest, stored in S3.
The rule, in Rego
policies/eu/eu_high_risk.rego (excerpt)
violations contains v if {
in_scope
not base.flag("human_oversight_documented")
v := base.violation(
"eu.high_risk.art_14.human_oversight_missing",
"Art. 14",
"critical",
"No human oversight measures are documented. ...",
"Assign named oversight roles, document how reviewers
interpret output and when they must intervene, ...",
)
}The finding, in the API
POST /api/v1/systems/{id}/check-policies (abridged)
{
"policy_key": "eu_ai_act_high_risk",
"jurisdiction_code": "EU",
"result": "fail",
"severity": "critical",
"violations": [{
"rule_id": "eu.high_risk.art_14.human_oversight_missing",
"article": "Art. 14",
"severity": "critical",
"msg": "No human oversight measures are documented. ...",
"remediation": "Assign named oversight roles, ..."
}]
}
Rules are plain files with unit tests (opa test policies/). A shared library handles laws that are not in force yet: obligation() reports a low-severity readiness finding until the effective date, then a real one, without a code change on the day.
Architecture
Boring, well-understood parts
A FastAPI service and a Celery worker over PostgreSQL, Redis, OPA and any S3-compatible store. One docker compose file runs all of it. There is no proprietary runtime and nothing phones home.
- Immutable classifications, policy checks and audit rows, enforced by database triggers
- Request IDs through API, logs, audit trail and worker tasks
- Prometheus metrics, liveness and readiness probes, structured JSON logs
- If OPA is unreachable, checks fall back to declarative rules and record which engine ran
Quickstart
Three commands, then open localhost:3000
You need Docker with Compose v2. On first boot the API migrates the database, seeds four jurisdictions, the policy packs and four example AI systems, and loads the policies into OPA.
Sign in as admin@aigov.example.com with password ChangeMe123!. These are public development credentials, and the server refuses to start in staging or production while they are still in place.
git clone https://github.com/OneLab-X/ai-gov.git && cd ai-gov
cp .env.example .env
docker compose up --build| Console | http://localhost:3000 |
| API docs | http://localhost:8000/docs |
| Readiness | http://localhost:8000/ready |
Comparison
Where it fits
This is not a replacement for a full GRC suite. It is the AI-specific layer: detection, classification and evidence, expressed as code your engineers can review.
| Spreadsheets | Commercial GRC suites | AI Governance Console | |
|---|---|---|---|
| Cost | Free | Per-seat licence | Free, Apache 2.0 |
| Runs on your infrastructure | ✓ | Usually SaaS | ✓ |
| Detects which AI regimes apply, with reasons | — | Varies | ✓ |
| Rules as versioned, tested code | — | Vendor-defined | ✓ |
| Findings cite the article and give a fix | Manual | Varies | ✓ |
| Tamper-resistant audit trail | — | ✓ | ✓ |
| Evidence package on demand | Manual | ✓ | ✓ |
| Add your own jurisdiction or rule | ✓ | Feature request | ✓ |
| Broad enterprise GRC beyond AI | — | ✓ | — |
Contribute
Regulatory knowledge counts as much as code
If you know a regime well, you can tell us what a rule gets wrong, or add a jurisdiction yourself. That means a detection rule, a risk taxonomy, a Rego pack and tests, with a step-by-step guide in CONTRIBUTING.md.
Wanted right now
- Policy packs for California ADMT, China generative AI and India DPDP
- New jurisdictions: Brazil (LGPD), Colorado AI Act, South Korea, UK
- Review of finding wording by compliance practitioners
- Region aliases that users actually type