{"slug": "aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate", "title": "AIGov Core – Try a local Docker demo of an audit ledger and release gate", "summary": "AIGovDev released AIGov Core, an open-source, ledger-authoritative audit runtime for AI governance that runs locally from a clean clone with only Rust and Python 3 and no hosted platform or external services. The aigov_audit service appends evidence to tenant-scoped ledgers via POST /evidence, enforces policy at ingest, derives VALID, INVALID or BLOCKED verdicts from ledger projection through GET /compliance-summary, exports aigov.audit_export.v1 bundles, and verifies hash chains via GET /verify. A bundled smoke-runtime.sh script posts a single discovery event, which typically yields a BLOCKED verdict that the project says is expected, and a verify-evidence-pack CLI checks signed export bundles against an Ed25519 trust file.", "body_md": "AIGov Core is the **open-source**, ledger-authoritative audit runtime for reconstructible AI governance. The `aigov_audit` service appends evidence to tenant-scoped ledgers, enforces policy at ingest, derives **VALID / INVALID / BLOCKED** from ledger projection (`GET /compliance-summary`), exports `aigov.audit_export.v1`, and verifies hash chains.\n\n**Quickstart:** [`docs/quickstart-runtime.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/quickstart-runtime.md) · **Architecture and data flow:** [`ARCHITECTURE.md`](https://github.com/AIGovDev/aigov-core/blob/main/ARCHITECTURE.md) · **Mounted API contract:** [`docs/runtime-api-contract.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/runtime-api-contract.md) · **Repository scope:** [`OPEN_SOURCE_SCOPE.md`](https://github.com/AIGovDev/aigov-core/blob/main/OPEN_SOURCE_SCOPE.md) · **Verification and release checks:** [`docs/releases/release-checklist.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/releases/release-checklist.md) · **Test scope and limits:** `docs/test-scope.md`\n\n| In scope (AIGov Core) | Out of scope (GovAI Platform — separate product) | \n|---|---|\n| Append-only evidence ingest ( `POST /evidence` ) | Hosted SaaS operations | \n| Ledger integrity and `GET /verify` | Stripe / billing / pricing | \n| Deterministic compliance summary | Dashboard access control | \n| Audit export and portable standards validators | Commercial onboarding flows | \n| Python CLI, runtime SDK, examples, GitHub Action patterns | Enterprise JWT `/api/*` control plane (not mounted on`aigov_audit` ) | \n\nLicense terms: [`LICENSE`](https://github.com/AIGovDev/aigov-core/blob/main/LICENSE). Contributor expectations: [`CONTRIBUTING.md`](https://github.com/AIGovDev/aigov-core/blob/main/CONTRIBUTING.md), [` GOVERNANCE.md`](https://github.com/AIGovDev/aigov-core/blob/main/GOVERNANCE.md), [` SECURITY.md`](https://github.com/AIGovDev/aigov-core/blob/main/SECURITY.md). External code contributions require a signed [CLA](https://github.com/AIGovDev/aigov-core/blob/main/docs/community/cla.md).\n\nFrom a clean clone with **Rust** and **Python 3** only — no hosted platform or external services.\n\n```\ncd python && python3 -m venv .venv && source .venv/bin/activate && pip install -e . && cd ..\n\nexport GOVAI_LEDGER_DIR=\"$(pwd)/.govai-ledger\"\nmkdir -p \"$GOVAI_LEDGER_DIR\"\nexport GOVAI_API_KEY=\"$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')\"\nexport GOVAI_API_KEYS=\"$GOVAI_API_KEY\"\nexport GOVAI_API_KEYS_JSON=\"{\\\"$GOVAI_API_KEY\\\":\\\"local-dev\\\"}\"\nexport AIGOV_ENVIRONMENT=dev\nexport AIGOV_POLICY_DIR=\"$(pwd)/rust\"\n```\n\nTerminal A:\n\n```\nmake run-audit\n```\n\nTerminal B:\n\n```\nexport GOVAI_AUDIT_BASE_URL=\"http://127.0.0.1:8088\"\nexport GOVAI_API_KEY=\"<same value as above>\"\nexport GOVAI_RUN_ID=\"local-$(date +%s)\"\n./examples/basic-runtime-client/smoke-runtime.sh\n```\n\nThe smoke script posts one discovery event, then reads compliance summary, audit export, and verify routes. A single discovery event typically yields verdict **BLOCKED** — that is expected.\n\nThe smoke script already calls `GET /api/export/:run_id`. To save the JSON:\n\n```\ncurl -sS -H \"Authorization: Bearer $GOVAI_API_KEY\" \\\n  \"$GOVAI_AUDIT_BASE_URL/api/export/$GOVAI_RUN_ID\" | jq . > \"/tmp/$GOVAI_RUN_ID-export.json\"\ncd rust && cargo build --bin verify_audit_export_bundle_once && cd ..\nexport AIGOV_POLICY_TRUST_ED25519_JSON=\"$(cat examples/signed-audit-export-bundle/trust-demo.json)\"\ngovai verify-evidence-pack \\\n  --bundle examples/signed-audit-export-bundle/demo.valid.zip \\\n  --json\n```\n\nRegenerate the demo fixture locally: `python3 scripts/generate_signed_audit_export_bundle_demo.py`\n\nVerifier reference: [`docs/signed-audit-export-verifier.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/signed-audit-export-verifier.md) · Full runtime walkthrough: `docs/quickstart-runtime.md`\n\nHistorical documentation under `docs/hosted/`, `docs/billing/`, `docs/pricing/`, and `dashboard/` describes the **GovAI Platform** and is retained for reference only — it is **not** part of the core runtime surface mounted by `aigov_audit`.\n\nGovAI is positioned at four complementary ideas:\n\n1. **Audit-backed governance engine** — hosted or self-hosted service that ingests evidence, enforces policy at write time, and exposes**`GET /compliance-summary`** with**VALID / INVALID / BLOCKED** semantics (**evidence-first** ,**fail-closed** where configured).\n2. **Portable AI governance standards layer** — machine-readable artefacts (capability policies, delegation graphs, trace verification plans, governance evidence packs) with**deterministic validators** and**canonical digests** under`python/aigov_py/standards/` and`docs/standards/` .\n3. **Standards interchange format** — partners can exchange JSON/YAML documents and digests**without** implying a hosted verdict; the same shapes can be validated offline and later bound to audit evidence when appropriate.\n4. **Offline validator toolkit** —`govai standards …` and`python -m aigov_py.standards.cli` validate files locally; the evaluation harness (`python/aigov_py/standards/evaluation.py` ) regression-checks all`examples/standards/*.valid.json` files.\n\n**Hosted vs portable:** the **hosted audit service** (or self-hosted equivalent) proves append-only ledger behaviour, tenant isolation, and artefact-bound CI paths. **Portable standards** prove **structural** conformance and digest stability on disk — they do **not** by themselves prove ledger history or billing state.\n\n**Non-goals:** standards validators do **not** certify legal compliance, do **not** replace hosted digest gates, and do **not** mutate ledgers or billing.\n\nGovAI publishes an **explicit, versioned registry** of portable governance JSON artefacts (`governance_evidence_pack`, `governance_policy_module`, `governance_decision_trace`, `delegation_graph`, `capability_policy`, `trace_verification_plan`) with matching **JSON Schema** files under `schemas/` and deterministic validators in `python/aigov_py/standards/`. External implementers should start with `docs/standards/interchange-specification.md`, `docs/standards/registry.md`, and `docs/standards/conformance.md`.\n\n**Conformance validation** (one JSON object on stdout with `--json`; fields include `ok`, `artifact_type`, `version`, `checks`, `failures`, `warnings`, `digest`):\n\n```\ngovai standards validate --json examples/standards/evidence-pack.valid.json\nmake standards-conformance\n```\n\n`make governance-standards-check` is a no-op placeholder in Core (platform-specific validation lives in GovAI Platform).\n\nThe repository ships **`registry/*.json`** catalogs and **` docs/registry/`** guides. Curated example packs are listed in **` marketplace/manifest.json`**. See **` docs/registry/overview.md`** and **` docs/standards/registry.md`**.\n\nRelease **versioning**, **cadence**, **compatibility**, and maintainer **runbooks** live under **`docs/releases/`**. The canonical history is **[CHANGELOG.md](https://github.com/AIGovDev/aigov-core/blob/main/CHANGELOG.md)**. Start with **[docs/releases/versioning-policy.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/releases/versioning-policy.md)** and **[docs/releases/release-checklist.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/releases/release-checklist.md)**.\n\nBefore tagging, from the repository root:\n\n```\nmake release-readiness-check\nmake generate-release-notes VERSION=0.2.1 OUT=release-notes.md   # optional draft\n```\n\nCI builds release artefacts (Python wheel/sdist, Rust crate package, Docker image) in **`.github/workflows/release-validation.yml`** without publishing to public registries unless explicitly configured elsewhere.\n\nMinimal deterministic local example using the **existing evidence-pack format**:\n\n- `docs/golden-path.md`\n- `docs/evidence-pack.md` (generate a minimal customer-ready evidence pack)\n\nAll targets are defined in the repository **`Makefile`**. Common checks:\n\n| Target | Purpose | \n|---|---|\n| `make gate` | Documentation/report gate ( `scripts/gate_reports.py` ) | \n| `make standards-conformance` | Registered interchange validators on example JSON | \n| `make enterprise-readiness-check` | Aggregate Core readiness checks (gate, SDK, Cursor plugin, runtime contracts, benchmark) | \n| `make validate-changelog` | Keep a Changelog structure and Rust/Python version alignment | \n| `make release-readiness-check` | Pre-tag gate: documentation gate, changelog validation, readiness report, `cargo metadata` | \n| `make generate-release-notes` | Draft notes from CHANGELOG ( `VERSION=` and optional`OUT=` ) | \n| `make cursor-plugin-check` | Validate + smoke the bundled Cursor plugin | \n| `make cursor-plugin-smoke` | MCP bridge smoke test only | \n| `make runtime-observability-check` | `/health` ,`/ready` ,`/status` ,`/metrics` contract | \n| `make core-runtime-examples-check` | Adoption examples must not reference platform-only routes | \n| `make reference-integrations-check` | Reference integration route drift | \n| `make reconstructible-demo-check` | Reconstructible demo contract | \n| `make runtime-packaging-check` | Runtime packaging contract | \n| `make lineage-governance-check` | Lineage governance graph contract | \n| `make public-sdk-packages-check` | Public Python SDK package layout | \n| `make oss-ecosystem-check` | Auditability benchmark + gate | \n\n**Local demo:** read-only probes against an **operator-provided** audit URL — see **`examples/local-demo/README.md`**. `make local-demo` exits with instructions when Platform scripts are absent (Core does not start a server).\n\n**Fail-closed BLOCKED demo:** after Compose + `python/.venv` + `GOVAI_*` are aligned, run **`bash examples/blocked_deployment.sh`** (checks **` GET /ready`**, posts minimal evidence, asserts **` govai check`** exit code **3**). See **` examples/local-demo/CONTRACT.md`**.\n\n**CI workflows:** `.github/workflows/govai-ci.yml` (portable Core CI), `.github/workflows/oss-developer-experience.yml` (`make cursor-plugin-check`, `make enterprise-readiness-check`), `.github/workflows/supply-chain-audit.yml` (`cargo audit`, `pip-audit`), `.github/workflows/security-scan.yml` (gitleaks, Trivy).\n\nContributor-oriented Makefile targets also include evidence-pack flows (`make bundle`, `make verify_cli`), demo drivers (` make demo`, `make flow`), and engineering helpers (` make env_check`, `make engineering_loc`). These require **` GOVAI_AUDIT_BASE_URL`** / **` RUN_ID`** where noted in the Makefile — Core does not background-manage a localhost audit server.\n\nGovAI ships a **repository-bundled Cursor plugin pack** under **`.cursor-plugin/`** (rules, Agent skills in **` skills/<name>/SKILL.md`**, Marketplace-oriented **` plugin.json`**, plugin-level **` mcp.json`**, and a local **stdio MCP** bridge to **` mcp/govai_mcp_server.py`**). It aligns local agent behaviour with the same scripts and gates used in CI; **hosted audit services, Rust enforcement, and database policy remain authoritative** for production compliance.\n\n- **Start here:**[`.cursor-plugin/quickstart.md`](https://github.com/AIGovDev/aigov-core/blob/main/.cursor-plugin/quickstart.md) — install steps, MCP wiring, first gate, troubleshooting.\n- **Reference:**[`.cursor-plugin/README.md`](https://github.com/AIGovDev/aigov-core/blob/main/.cursor-plugin/README.md) — tools, security model, and marketplace readiness notes.\n- **Tutorial:**[`docs/tutorials/cursor-plugin-walkthrough.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/tutorials/cursor-plugin-walkthrough.md) — guided walkthrough.\n\nValidate the bundle from the repository root (same check as CI):\n\n```\nmake cursor-plugin-check\n```\n\n**Workspace `.cursor/`:** this repository does **not** commit machine-local **`.cursor/`** trees (rules merge, skills paths, and **` mcp.json`** vary by developer). Use the checked-in **`.cursor/mcp.json.example`** as a starting point, merge **`.cursor-plugin/examples/local-config.json`**, or align with **`.cursor-plugin/mcp.json`** / `plugin.json`` mcpServers`; see the quickstart for copy commands. Do not commit secrets or user-specific absolute paths.\n\nThis path proves **incomplete evidence → `govai check` exits with code 3** (BLOCKED contract), using the same **`examples/blocked_deployment.sh`** script exercised in CI. The wrapper script exits **0** only after it confirms **`govai check`** returned exit code **3** (so your shell shows `0` from `bash` when the demo succeeded).\n\n**Prerequisites:** Docker Compose v2, Python **3.10+**, this repository cloned.\n\n**1. Start Postgres + audit service** (repository root):\n\n```\ndocker compose up -d --build\n```\n\n**2. Wait for readiness** (`GET /ready` is on the **unauthenticated** audit router; HTTP **200** means Postgres, migrations, and ledger checks passed):\n\n```\ncurl -fsS http://127.0.0.1:8088/ready\n```\n\nRoot **`docker-compose.yml`** sets **` GOVAI_API_KEYS`** to include the bearer secret **` test-key`**. Your CLI must use the **same** value.\n\n**3. Install the `govai` CLI** (venv inside `python/`, matches contributor docs):\n\n```\ncd python\npython3 -m venv .venv\nsource .venv/bin/activate\npython -m pip install -U pip\npython -m pip install -e \".[dev]\"\ncd ..\n```\n\n**4. Run the blocked deployment example** (repository root) **or** the Makefile wrapper (same behaviour):\n\n```\nexport GOVAI_AUDIT_BASE_URL=http://127.0.0.1:8088\nexport GOVAI_API_KEY=test-key\nbash examples/blocked_deployment.sh\n```\n\nEquivalent wrapper (same script; JSON summary on stdout, progress on stderr):\n\n```\nexport GOVAI_AUDIT_BASE_URL=http://127.0.0.1:8088\nexport GOVAI_API_KEY=test-key\nbash examples/blocked_deployment.sh\n```\n\n**Expected:**\n\n- **`govai check`** prints a**BLOCKED** outcome and exits with code**3** (the script checks this).\n- The **`bash examples/blocked_deployment.sh`** process exits**0** after verification (` blocked_deployment_example: OK ...` on stderr).\n\n**5. Cleanup:**\n\n```\ndocker compose down\n```\n\nMore context: **`examples/docker-compose-local-demo/README.md`**, canonical contributor setup **` docs/project/local_development.md`**, and read-only probes **` make local-demo`** (no evidence POST).\n\n- **Troubleshooting matrix (customers + operators)** :`docs/troubleshooting.md`\n- **Operator runbook (hosted/self-hosted)** :`docs/operator-runbook.md`\n- **Runtime governance (preview / `POST /v1/runtime/evaluate`)** : default**` GOVAI_RUNTIME_GOVERNANCE_ENFORCEMENT=off`** ; optional**` shadow`** or**` enforced`** — see` docs/governance/runtime_enforcement_gate.md` and`docs/governance/runtime_integration.md` . Tenant allowlist (**`GOVAI_RUNTIME_GOVERNANCE_ENFORCEMENT_TENANTS`** ) scopes hard blocking under**` enforced`** . Operational snapshot:**` GET /ready`** and**` GET /status`** include**` runtime_governance_enforcement`** (informational; not an infra readiness signal on its own).\n\nChoose one:\n\n- **Hosted (recommended)** : follow`docs/customer-onboarding-10min.md` (canonical hosted onboarding:`BLOCKED → VALID` , then export).\n- **Local (Docker, this repo)** : continue below (for local evaluation / contributor setup).\n\n1. Clone the repo\n\n```\ngit clone https://github.com/AIGovDev/aigov-core.git\ncd aigov-core\n```\n\n1. Run GovAI (Docker)\n\n```\ndocker compose up -d --build\n```\n\n1. Check health\n\n```\ncurl http://127.0.0.1:8088/health\n```\n\nExpected output:\nHTTP 200\n`{\"ok\":true}`\n\nThe audit service is **fail-fast at startup**: Postgres must be reachable and correctly configured **before** HTTP listens. **`GET /health`** does not hit the database, but it is **only available after** that startup succeeds — it is **liveness-only**, not proof that Postgres or the ledger are still healthy. Use **`GET /ready`** for operational readiness (Postgres + migrations + writable ledger); see **`docs/hosted-backend-deployment.md`** (“HTTP startup and operational probes”).\n\n1. What you just did\n\n- started the audit service\n- exposed the API on port `8088`\n- ready to receive evidence and run checks\n\nJoin the community:\n[https://discord.gg/sRBSafRtE](https://discord.gg/sRBSafRtE)\n\nIf you joined from Discord:\n\n- ask questions in `#govai-help`\n- share your use case in `#use-cases`\n\n**Protected branches:** merges that must imply artefact-bound hosted validation should require **`.github/workflows/compliance.yml`** (**` govai-compliance-gate`**) — not **` govai-smoke.yml`** (manual smoke only) or **` govai check` alone**. Details: **[docs/github-action.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/github-action.md)**.\n\nIt:\n\n- accepts evidence via POST /evidence\n- enforces policy constraints at write time\n- produces deterministic decisions via GET /compliance-summary\n- blocks CI or automation when verdict != VALID (when wired to a gate)\n- exports audit data via GET /api/export/:run_id\n- optionally enforces hosted Stripe subscription state for metered APIs (see docs/billing.md)\n\n**Multi-tenant ledger:** the ledger tenant is always derived from **API key mapping** (`GOVAI_API_KEYS_JSON` on the server). **`X-GovAI-Project` / `GOVAI_PROJECT` are metadata** (metering, labels, client hints) and **do not** determine which tenant ledger is used.\n\nGuarantees:\n\n- deterministic decision for given evidence + policy_version\n- append-only evidence log\n- hash chaining integrity\n\nNon-guarantees:\n\n- not a legal certification\n- not full compliance coverage\n- does not generate missing evidence\n\nGovAI is **policy-agnostic**: the engine enforces evidence completeness and deterministic decision semantics, not a specific legal framework.\nPolicy is a **configuration layer** that compiles into a flat `required_evidence` set (static mapping, no runtime logic).\nCustomers can replace the AI Act mapping with an internal policy module **without changing the core GovAI engine**.\nThe engine remains deterministic: evidence log + policy requirements → `GET /compliance-summary` → `VALID` / `BLOCKED` / `INVALID`.\nUse `govai policy compile --path <policy.yaml>` to inspect the flat `required_evidence` set for a policy module.\nSee `docs/customer-policy-modules.md` and `docs/policies/`.\n\nGovAI compiles “what is required” into a deterministic **flat set**:\n\n`discovery (context detection)` + `policy modules (static mapping)` → `required_evidence (flat set)` → existing GovAI engine → verdict (`VALID` / `INVALID` / `BLOCKED`)\n\nKey constraints:\n\n- discovery is heuristic-only and deterministic (no ML, no scoring)\n- policy modules are static mappings (no conditionals)\n- the core decision semantics and API contracts remain unchanged\n\nSee:\n\n- `docs/discovery-v2.md`\n- `docs/customer-policy-modules.md`\n\n- deploying ML models via CI/CD\n- enforcing approval workflows before release\n- requiring audit evidence for decisions\n\nCommercial hosting, billing, pricing, dashboard ACL, onboarding, and managed tenant provisioning belong to the **GovAI Platform** product (separate from this repository). Reference material may appear under `docs/pricing/`, `docs/billing/`, `docs/hosted/`, and `dashboard/` for historical context only.\n\nVALID:\n\nAll required evidence present. Deployment allowed.\n\nINVALID:\n\nServer verdict when **evaluation explicitly failed** (`evaluation_passed == false`). Deployment rejected.\n\nBLOCKED:\n\nNot eligible for promotion: **missing required evidence**, **missing risk/human approval**, **not yet promoted**, or other prerequisites (digest/export/trace) not satisfied. Deployment halted.\n\n`BLOCKED` can occur when required evidence is missing **or** when approval/promotion prerequisites are not satisfied (in that case `missing_evidence` can be `[]`; see `blocked_reasons`).\n\n**GovAI CLI (PyPI — official):**\n\n```\npython -m pip install --upgrade pip\npython -m pip install \"aigov-py==0.2.1\"\n```\n\n**Repository contributors** (editable install from a clone of this repo):\n\n```\ncd python\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -e \".[dev]\"\ncd ..\n```\n\nStart the audit service, emit evidence, and read the authoritative decision from `GET /compliance-summary`.\n\nQuickstarts:\n\n- `docs/customer-onboarding-10min.md` (hosted customer onboarding — canonical)\n- `docs/quickstart-5min.md` (local demo)\n- `docs/customer-quickstart.md` (legacy customer / CI quickstart)\n- `docs/pilot-onboarding.md` (private pilot onboarding)\n- `docs/billing.md` (minimal Stripe webhook + usage summary)\n- `docs/product/differentiation.md` (GovAI as**decision enforcement** vs supply-chain attestation)\n\nGovAI is **ready for GitHub Marketplace draft and hosted pilot onboarding**.\n\nIt is **not yet a full self-serve SaaS**.\n\nHosted backend and API key provisioning are still **operator managed**.\n\nRepeatable operator + customer steps (pilot runbook):\n\n- `docs/hosted-pilot-runbook.md`\n\nMinimum hosted-pilot path (what must exist before a new pilot user can reach `VALID`):\n\n- **How a pilot user gets `base_url`** : the operator provides a hosted HTTPS audit API base URL (the GovAI audit service), for example`https://audit.example.com` .\n- **Example** :`GOVAI_AUDIT_BASE_URL=https://audit.govbase.dev`\n- **How a pilot user gets an API key** : the operator provisions and distributes a bearer token (one per customer/team). This is manual or semi-automated in a pilot.\n- **How a pilot user creates/receives `run_id`** : the pilot user generates a UUID (or the operator provides one). The same`run_id` must be reused for evidence submission, the CI gate, and export.\n- **How evidence is submitted** : evidence events are appended to the hosted audit service via`POST /evidence` (either via`govai run demo-deterministic` for onboarding, or via your CI/app pipeline emitting evidence events).\n- **How the run reaches `VALID`** : the run transitions` BLOCKED → VALID` only after all required evidence is appended for the same`run_id` and policy rules pass; the authoritative source is`GET /compliance-summary` .\n- **How CI gate checks `VALID`** : the**published composite GitHub Action** (root` action.yml` ) runs**`govai submit-evidence-pack`** then**` govai verify-evidence-pack`** (digest continuity via hosted**` GET /bundle-hash`** , then**` GET /compliance-summary`** for a**` VALID`** verdict). By default it passes**`--require-export`** so**` GET /api/export/:run_id`** must cross-check unless callers set**` require_export: false`** . See**` docs/github-action.md`** .\n\nGovAI is designed around **one evidence run id** (`run_id`) and **one authoritative decision projection** exposed through `GET /compliance-summary`. Use CI gates when you also need artefact-bound digests.\n\nCanonical customer flow:\n\n1. **Discovery finds AI usage** (signals are recorded as evidence for a specific`run_id` ).\n2. **GovAI derives requirements** from the current policy and any discovery signals (required evidence can increase when discovery indicates AI usage).\n3. **The run is `BLOCKED` while it is not eligible for promotion** (the summary reports`verdict: BLOCKED` and explains why, via`missing_evidence` and/or`blocked_reasons` ).\n4. **The customer submits the missing evidence** for the same`run_id` (additional events are appended via`POST /evidence` ).\n5. **The run becomes `VALID`** once the required evidence is present and policy rules pass (the authoritative source is still`GET /compliance-summary` ).\n6. **The customer exports audit JSON** for archiving and review (`govai export-run` or`GET /api/export/<run_id>` ).\n7. **The CI gate passes only on `VALID`** for the artefact-bound path above (verify exit**` 0`** only when digest + export rules (if required) + verdict**` VALID`** ). For a**lighter** readout without digest/export binding,**`govai check`** still calls**` GET /compliance-summary`** and exits non-zero unless the verdict is**` VALID`** — that is not the same guarantee as**` verify-evidence-pack`** .\n\nIf you cannot prove why a specific model version was deployed, you do not have a deployment decision — you have a story.\n\nGovAI makes deployment decisions verifiable and reproducible by:\n\n- accepting lifecycle events as structured evidence (POST /evidence) into an append-only ledger\n- enforcing policy at write time (out-of-order or missing prerequisites are rejected)\n- projecting a single authoritative decision for a run: GET /compliance-summary → VALID / INVALID / BLOCKED\n\nDecision authority: the only authoritative decision source is GET /compliance-summary. The database, UI, workflow rows, and CLI are consumers of that decision; they do not derive it.\n\nThis example shows the decision path for an expense classification release candidate:\n\nevents → append-only evidence → GET /compliance-summary → decision\n\nKey identifiers:\n\n- ai_system_id: expense-ai\n- dataset_id: expense_dataset_v1\n- model_version_id: expense_model_v3\n- risk_id: risk_expense_model_v3\n\nMinimal event flow (in order):\n\n1. data_registered (dataset identity + fingerprint)\n2. model_trained (ties a model version to the run)\n3. evaluation_reported (metrics as evidence; policy decides pass/fail)\n4. risk_recorded + risk_reviewed (explicit risk linkage and review outcome)\n5. human_approved (named approval)\n6. model_promoted (release intent, only accepted when prerequisites are satisfied)\n\nThe result is never inferred locally. The decision is read from:\n\n```\ncurl -sS \"http://127.0.0.1:8088/compliance-summary?run_id=$GOVAI_RUN_ID\"\n```\n\nand interpreted only by its returned fields (verdict, current_state, and the policy metadata).\n\nResult:\n\nGET /compliance-summary → verdict: VALID\n\nBecause:\n\n- evaluation passed\n- risk reviewed\n- human approved\n- promotion event accepted\n\nNon-happy paths:\n\n- INVALID → evaluation explicitly failed\n- BLOCKED → not eligible for promotion (missing evidence and/or missing approval/promotion prerequisites)\n\nFor **production** merges, prefer the **artefact-bound** path: **`submit-evidence-pack`** + **` verify-evidence-pack`** (as in **` docs/github-action.md`** and this repo’s **` compliance.yml`**), including export cross-check when **` require_export`** is left at its default **` true`** on the composite action.\n\n**`govai check`** is a **convenience readout**: it does not bind CI artefacts to the ledger digest; it calls **`GET /compliance-summary`** and exits non-zero unless the server verdict is **` VALID`**. Use it for quick checks or smoke, not as a substitute for **`verify-evidence-pack`** when you need cryptographic continuity to CI outputs.\n\nUse **one** GovAI evidence run id (`GOVAI_RUN_ID`) for every evidence submission, the gate, and export.\n\nIf you are onboarding a new pilot customer, follow `docs/hosted-pilot-runbook.md` end-to-end first (hosted backend + key + deterministic demo + CI gate + export).\n\n1. Set repository configuration in **Settings → Secrets and variables → Actions** :\n\n- Variable `GOVAI_AUDIT_BASE_URL` :`https://<your GovAI audit API base URL>`\n- Variable `GOVAI_RUN_ID` :`<your evidence run id>` (not GitHub’s`github.run_id` )\n- Secret `GOVAI_API_KEY` :`<your API key>` (required; missing key fails CI immediately)\n\n1. Wire the **composite action** after you have a directory of CI evidence artefacts (`evidence_digest_manifest.json` and`<run_id>.json` ). Example step (paths depend on your artefact download layout):\n\n```\n      - name: GovAI artefact-bound gate (submit + verify digest + VALID)\n        uses: MonikaDvorackova/aigov-core@v1\n        with:\n          run_id: ${{ vars.GOVAI_RUN_ID }}\n          artifacts_path: ${{ github.workspace }}/downloaded-artifacts\n          base_url: ${{ vars.GOVAI_AUDIT_BASE_URL }}\n          api_key: ${{ secrets.GOVAI_API_KEY }}\n```\n\nIn **this** repo, **`.github/workflows/compliance.yml`** is the production artefact-bound gate; **`.github/workflows/govai-smoke.yml`** is an optional **manual synthetic smoke** workflow only.\n\nSee `docs/github-action.md` for inputs, exit codes, and hosted semantics.\n\nTo validate your setup before relying on the CI gate, run the hosted deterministic onboarding flow locally against your GovAI audit API:\n\n```\npython -m pip install --upgrade pip\npython -m pip install \"aigov-py==0.2.1\"\n\nexport GOVAI_AUDIT_BASE_URL=\"https://<your GovAI audit API base URL>\"\nexport GOVAI_API_KEY=\"YOUR_API_KEY\"\n\nexport GOVAI_RUN_ID=\"$(python3 - <<'PY'\nimport uuid\nprint(uuid.uuid4())\nPY\n)\"\n\nexport GOVAI_DEMO_RUN_ID=\"$GOVAI_RUN_ID\"\ngovai run demo-deterministic\ngovai check --run-id \"$GOVAI_RUN_ID\"\n```\n\nExpected behavior:\n\n- First, the run reports `verdict: BLOCKED` and explains why it is not eligible for promotion (missing evidence and/or`blocked_reasons` ).\n- After the demo appends the remaining evidence for the same `run_id` , the run becomes`verdict: VALID` .\n- The CI gate passes only when the server verdict is `VALID` .\n\nThis repo includes a minimal operator-hosted path to run the Rust audit service + Postgres locally via Docker Compose (intended as a **quickstart**, not production hardening).\n\n```\ndocker compose up -d --build\n```\n\nSmoke test:\n\n```\ncurl -sS http://127.0.0.1:8088/status\ncurl -sS http://127.0.0.1:8088/health\n```\n\nDetails and limitations: `docs/hosted-backend-deployment.md` → “Operator-hosted quickstart (Docker Compose)”.\n\nTo export a run into a **stable JSON** document that includes the **decision** fields and **hashes** (bundle SHA-256 + append-only chain hashes), use:\n\n```\ngovai export-run --run-id \"$GOVAI_RUN_ID\"\n```\n\nHTTP equivalent:\n\n```\ncurl -sS \"http://127.0.0.1:8088/api/export/$GOVAI_RUN_ID\"\n```\n\nNote: a run can be `BLOCKED` even when `missing_evidence: []` if approval/promotion prerequisites are not satisfied; the export explains this via `decision.blocked_reasons`. See `docs/examples/audit_export_v1.example.json`.\n\n- Core: the append-only audit log, policy enforcement at POST /evidence, and the single authoritative projection GET /compliance-summary (decision + state).\n- Non-Core: workflow tables/queues and helper tooling/CLI wrappers. They may display or transport evidence, but they do not decide.\n\nHosted platform plans expose usage limits via `GET /usage` (runs and events per billing period). Commercial packaging is a GovAI Platform concern (not documented in this Core repository); engineering limits follow your deployment configuration and order form.\n\n- append-only logs\n- hash chaining (prev_hash → record_hash)\n- deterministic decision (policy_version)\n- exportable audit JSON\n\nMinimal definitions and non-claims:\n\n- `docs/trust-model.md`\n- `docs/cvut-teaching.md` (teaching-friendly)\n\nGovAI is **ready for hosted pilots with manual or semi-automated onboarding** (for example: an admin provisions `GOVAI_AUDIT_BASE_URL` and an API key, and you run the canonical onboarding flow).\n\nIt is **not yet a full self-serve SaaS** (no productized signup, automated provisioning, or account lifecycle).\n\nHosted **Stripe billing** is supported for operator-managed pilots (checkout, webhooks, usage reporting); self-serve checkout and full SaaS lifecycle are not productized yet (see [docs/billing.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/billing.md)).\n\nPublication-ready **channel playbooks**, **FAQ**, and **positioning** live under `docs/launch/` (see [launch checklist](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/launch-checklist.md)). **Integration examples** and **reference hubs** explain practical adoption paths without duplicating the canonical GitHub Action spec.\n\n**Launch materials**\n\n- [Product Hunt](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/product-hunt.md) ·[Hacker News](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/hacker-news.md) ·[Reddit](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/reddit.md) ·[LinkedIn](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/linkedin.md)\n- [Community outreach](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/community-outreach.md) ·[Design partners](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/design-partners.md)\n- [FAQ](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/faq.md) ·[Competitive positioning](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/competitive-positioning.md) ·[Launch checklist](https://github.com/AIGovDev/aigov-core/blob/main/docs/launch/launch-checklist.md)\n\n**Reference examples**\n\n**Reference implementation kits (runnable / copy-paste)**\n\n- Index: [reference implementations](https://github.com/AIGovDev/aigov-core/blob/main/docs/adoption/reference-implementations.md) ·[quickstart matrix](https://github.com/AIGovDev/aigov-core/blob/main/docs/adoption/quickstart-matrix.md) ·[operator evaluation guide](https://github.com/AIGovDev/aigov-core/blob/main/docs/adoption/operator-evaluation-guide.md)\n- [`examples/adoption/github-actions-ci-gate/`](https://github.com/AIGovDev/aigov-core/blob/main/examples/adoption/github-actions-ci-gate) — workflow + sample JSON (default job needs**no secrets** )\n- [`examples/adoption/self-hosted-enterprise/`](https://github.com/AIGovDev/aigov-core/blob/main/examples/adoption/self-hosted-enterprise) — Compose +`.env.example`\n- [`examples/adoption/ai-act-evidence-workflow/`](https://github.com/AIGovDev/aigov-core/blob/main/examples/adoption/ai-act-evidence-workflow) — interchange JSON samples\n- [`examples/adoption/standards-conformance-kit/`](https://github.com/AIGovDev/aigov-core/blob/main/examples/adoption/standards-conformance-kit) — offline`run-conformance.sh`\n\n**Contributor growth**\n\n**Readiness checks**\n\n- `make enterprise-readiness-check` — aggregate Core readiness checks (see Makefile targets section above)\n- `make gate` — documentation/report gate\n\n**Repository cleanup audit:** [`docs/reports/repo-debt-audit-and-cleanup.md`](https://github.com/AIGovDev/aigov-core/blob/main/docs/reports/repo-debt-audit-and-cleanup.md) (launch + adoption kits)\n\n- **root action exists** :`action.yml` exists at the repository root.\n- **strict gate fails on missing config** : missing`run_id` ,`base_url` , or`api_key` fails fast.\n- **gate passes only on VALID** : the action exits 0 only when the backend verdict is`VALID` .\n- **BLOCKED output explains why promotion is blocked** :`BLOCKED` is surfaced as a compliance failure, not a silent skip (it may be missing evidence and/or missing approval/promotion prerequisites).\n- **hosted base URL and API key are required** : customers must configure`GOVAI_AUDIT_BASE_URL` and`GOVAI_API_KEY` .\n- **support contact is listed** : support contact for Marketplace users is`support@govbase.dev` .\n\nContributions to **AIGov Core** belong in this repository. See [`CONTRIBUTING.md`](https://github.com/AIGovDev/aigov-core/blob/main/CONTRIBUTING.md), [` GOVERNANCE.md`](https://github.com/AIGovDev/aigov-core/blob/main/GOVERNANCE.md), and [` CODE_OF_CONDUCT.md`](https://github.com/AIGovDev/aigov-core/blob/main/CODE_OF_CONDUCT.md). Do not weaken ledger-authoritative invariants documented there.\n\n- Contributor quickstart: `docs/project/contributor_quickstart.md`\n- Contributing guide: `CONTRIBUTING.md`\n- Code of conduct: `CODE_OF_CONDUCT.md`\n- Local env template (no secrets): `.env.example`\n- **Local development (clone, venv, Docker, gates, tests)** :`docs/project/local_development.md`\n- Security policy: `SECURITY.md`\n\nStructured **contributor funnel**, **issue triage**, maintainer cadence, label playbooks (`good first issue`, `help wanted`), adoption feedback, and project-board routines:\n\n- [docs/community/contributor-funnel.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/community/contributor-funnel.md)\n- [docs/community/issue-triage.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/community/issue-triage.md)\n- [docs/community/maintainer-operating-model.md](https://github.com/AIGovDev/aigov-core/blob/main/docs/community/maintainer-operating-model.md)\n\n- Roadmap: `docs/project/roadmap.md`\n- Label taxonomy: `docs/project/label_taxonomy.md`\n- Research and ecosystem governance: `docs/governance/research_and_ecosystem.md`\n- Ecosystem standards (schemas, CLI, examples): `docs/standards/README.md`\n\nWe welcome contributions in:\n\n- Rust services\n- Python SDKs\n- governance enforcement\n- CI/CD integrations\n- documentation\n- examples\n- deployment tooling\n- architecture diagrams\n\nNew contributors are encouraged to look for issues labeled:\n\n- `good first issue`\n- `help wanted`\n- `documentation`\n- `examples`", "url": "https://wpnews.pro/news/aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate", "canonical_source": "https://github.com/AIGovDev/aigov-core", "published_at": "2026-12-02 12:30:05+00:00", "updated_at": "2026-12-02 12:46:42.902545+00:00", "lang": "en", "topics": ["ai-safety", "ai-policy", "developer-tools", "ai-tools"], "entities": ["AIGovDev", "AIGov Core", "aigov_audit", "GovAI Platform", "GovAI"], "also_reported_by": [], "takeaway": "AIGov Core ships a local aigov_audit runtime that derives VALID/INVALID/BLOCKED from ledger projection at GET /compliance-summary and exports aigov.audit_export.v1 bundles verifiable with govai verify-evidence-pack against an Ed25519 trust file; a single discovery event typically returns BLOCKED by ", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate", "markdown": "https://wpnews.pro/news/aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate.md", "text": "https://wpnews.pro/news/aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate.txt", "jsonld": "https://wpnews.pro/news/aigov-core-try-a-local-docker-demo-of-an-audit-ledger-and-release-gate.jsonld"}}