Skip to main content

AI Governance Platform (KAGP)

Konsonans AI Governance Platform is a policy-as-code control plane that governs AI agents for EU AI Act readiness. Every agent action passes a typed policy gate, lands in a tamper-evident audit chain, and can be held for human approval.

Repo: tabenius/BAZ.AI-Governance · policy dialect: glither.governance · readiness plan: EU AI Act Readiness Plan · buyer pilot: Konsonans buyer pilot · post-freeze backlog: KAGP Integration Backlog

Status legend

Each component below is tagged with its current state:

SymbolMeaning
🟢complete — implemented, tested, on main
planned — designed, not yet started

What

KAGP sits between AI agents and the tools/actions they invoke, and enforces governance on every call. It turns a high-level policy (the glither.governance dialect) into a runtime gate, records an immutable audit trail, and brings a human into the loop when the policy says so. The practical buyer deliverable is a runtime-enforced governance core + evidence pack — not a checklist, but a working control plane a deployer can map to its own risk classification, conformity route, and review obligations.

The decision flow:

agent → mcp-ingress → policy-gate → audit-chain → human-oversight → replica-signer

Current core state (17 July 2026)

  • 17/17 deadline controls complete.
  • Evidence freeze is shipped and assembles the JSON report, Markdown report, Declaration of Conformity, gap sign-off sheet, readiness statement, and SHA-256 manifest into one bundle.
  • Declaration export is complete but operator-supplied. Provider, signatory, place-of-issue, and standards fields are supplied at freeze time; the gate refuses to issue a Ready verdict with placeholders.
  • Legal posture remains scoped. The European Commission's current AI Act implementation page describes staged application dates, including broad applicability from 2 August 2026 with exceptions and later high-risk dates for some system categories. KAGP is presented as an evidence and oversight layer, not as a substitute for deployment-specific legal classification.

Why

The EU AI Act creates governance, transparency, high-risk, and evidence obligations that apply on a staged timeline. The European Commission's current implementation page says the Act entered into force on 1 August 2024, broad applicability starts on 2 August 2026 with exceptions, and high-risk timelines vary by category and support measures. KAGP's job is to be a control plane that helps providers or deployers produce runtime records for the articles that matter during operation:

  • Art 9 — risk management (risk-tiered policy enforcement)
  • Art 10 — data governance (PII minimisation)
  • Art 11 — technical documentation (exportable evidence)
  • Art 12 — logging & traceability (tamper-evident audit chain, ≥6-month retention)
  • Art 13 — transparency (queryable audit)
  • Art 14 — human oversight (hold-for-approval, safe-default timeouts)
  • Art 47 — declaration of conformity (Annex V template, freeze-gated until signed)
  • Art 72 — post-market monitoring

See the EU AI Act Readiness Plan for the engineering readiness plan, and the Konsonans buyer pilot for a narrow evidence-run handoff.

How — components & status

ComponentStatusWhat it doesArticle
glither.governance dialect🟢 completeRisk-tiered policy (fold first-match), HITL lifecycle (hold/approve/after), compiled to a WASM component.Art 9 / Art 14
Live policy gate🟢 completeSynchronous pre-evaluation: allow / hold / deny on every tool-call; fail closed on missing evidence.Art 9
Append-only audit chain🟢 completePostgreSQL event store + SHA-256 hash chain + verify-chain; mutation-rejection triggers.Art 12
MCP agent ingress🟢 completeStreamable HTTP and stdio ingress route every call through the policy gate before any upstream tool is touched.Art 9
Identity + RBAC🟢 completeRole-to-permission authz plus per-request OIDC JWT verification; static bearer-token auth remains available for bounded local deployments.
Audit egress and observability🟢 completeRFC 5424 syslog, Prometheus metrics, JSON logs, OTLP export, NATS fan-out, and alert webhooks.Art 12 / Art 72
Human oversight gateway + SLA-deny🟢 completeAuthenticated review endpoint: hold to approve/deny; expired holds are denied by monotonic deadline.Art 14 §4
PII runtime guard🟢 completeEmail and card scrubbing on the capture path; redactions are preserved in the audit record while the upstream request stays intact.Art 10
Transparency queries🟢 completePaginated, bounded, queryable audit-entry surface over the event store.Art 13
Retention WORM (MinIO / S3)🟢 completeImmutable >=184-day archive via S3 Object Lock (COMPLIANCE mode), with verification after upload.Art 12 §2
Post-market monitoring🟢 completeReplica-divergence monitor with replayable persisted incidents.Art 72
HITL approvals (Discord / email)🟢 completeDiscord webhook and SMTP approval notifications for held actions.Art 14
Manifest signing (Ed25519 / PKCS#11)🟢 completeSoftware signer plus PKCS#11/SoftHSM2-backed signing for tamper-evident replica manifests.Art 12
ComplianceReporter + DoC + freeze🟢 completeJSON and Markdown reports, Annex V declaration export, readiness statement, and a sha256sum-verifiable freeze bundle.Art 11 / Art 47
Unix-socket agent ingress⚪ plannedLocal co-resident agent transport without a TCP hop.
TLS termination / SSE proxy reference⚪ plannedDocumented production edge pattern for HTTPS and browser-facing streams.
Pharo-WASM bridge⚪ plannedDirect bridge from the Pharo orchestration layer to the Rust governance component.

Technologies used

  • Rust + WebAssembly Component Model — the governance core (governance-node, agent-proxy, replica-node) and WIT-typed contracts (audit, policy, oversight, replication).
  • Glither / roux — the typed policy-DSL family; glither.governance compiles to a WASM component and to platform policy.
  • PostgreSQL — append-only event store with hash chain and synchronous replication.
  • MCP (Model Context Protocol) — the agent-ingress surface.
  • Ed25519 / PKCS#11 (SoftHSM2) — manifest integrity signing.
  • OIDC / SAML, syslog (RFC 5424), OpenTelemetry, Discord/SMTP, Cloudflare R2 / MinIO (S3) — the integration surfaces.
  • Pharo/Smalltalk — a research/oversight console (optional; not on the customer-facing path — see implementation choices).

What continues after the deadline core

The next slices are operational rather than architectural: Unix-socket ingress for co-located agents, a documented TLS edge pattern, and the longer-term Pharo-WASM bridge. Those are tracked on the KAGP Integration Backlog.

Implementation choices

  • Policy-as-code, not config. Governance rules are a typed dialect compiled to a verifiable WASM component, so the policy that runs is the policy that was reviewed — and it is portable across hosts via WIT contracts.
  • Fail closed. The gate denies on missing audit evidence or unconfigured upstreams; HSM/signing errors yield no signature rather than a wrong one. Safety defaults to "no".
  • The WASM/WIT core is the moat; orchestration is a replaceable adapter. Because transports and policy are WIT contracts, the customer-facing surface can be a mainstream web stack while Pharo stays an optional research/teaching console — Pharo is not load-bearing.
  • Governance core + evidence pack before full conformity claims. Notified-body assessment, harmonised standards, and deployment-specific classification are separate tracks; the runtime-enforced Art 9/12/14 core plus Art 11-style export is the demonstrable engineering target.
  • Build heavy crates in tmpfs (/tmp), feature-gate HSM code. The default build stays light and green; cryptoki/SoftHSM is gated and validated separately.

This page tracks the public product status. See the readiness plan, the buyer pilot, the integration backlog, and the project repo for the current implementation detail.