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 console dashboard: compliance status by jurisdiction, risk-tier distribution and recent policy failures.

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.

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. 1

    Register

    Describe the system: purpose, use case, autonomy, data categories, and where it is deployed, offered and reachable.

  2. 2

    Detect

    A pure rules engine decides which regimes apply and explains why, strictest first.

  3. 3

    Classify

    A global baseline risk score, re-mapped through each regime. Overlays only escalate, never downgrade.

  4. 4

    Evaluate

    Rego policies run in Open Policy Agent. Each finding cites the article it comes from and says how to fix it.

  5. 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, ..."
  }]
}
A system's policy checks in the console: a failed EU AI Act transparency check citing Art. 53, with a How to fix box.
Findings as a risk officer sees them in the console: article, severity, rule ID and the fix.

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.

Full quickstart → · Self-hosting →

git clone https://github.com/OneLab-X/ai-gov.git && cd ai-gov
cp .env.example .env
docker compose up --build
Consolehttp://localhost:3000
API docshttp://localhost:8000/docs
Readinesshttp://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.

SpreadsheetsCommercial GRC suitesAI Governance Console
CostFreePer-seat licenceFree, 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 fixManualVaries✓
Tamper-resistant audit trail—✓✓
Evidence package on demandManual✓✓
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