A reference architecture. What each layer owns, what it depends on, what fails if you skip it.
"AI governance" as a phrase is a category, not an artefact. It can mean a board-level policy document, a procurement checklist, a runtime guard, an audit log, a correlation feed, an incident playbook, or all of those together. Without a layer model the conversation between the CISO, the platform engineer, and the compliance lead descends into category confusion within a quarter.
The 15-layer model below is the reference architecture AiEGIS uses to keep that conversation tractable. Each layer has one owner, one input from the layer below, one output to the layer above, and a single failure mode that determines what breaks if the layer is absent.
If your deployment claims EU AI Act Article 26 alignment, layers 1–6 are not optional. Each maps directly to a paragraph or pair of paragraphs in the Regulation.
| L# | Layer | Owns | Fails if absent |
|---|---|---|---|
| 1 | Agent identity | Per-agent cryptographic identifier (did:key + Ed25519). | You cannot answer "which agent did this" to a regulator. |
| 2 | Signing & verification | Per-request signature; offline verifier path. | Audit log is a claim, not evidence. |
| 3 | Transport & auth | mTLS or signed JWT at the wire; rate limiting. | Standard web-tier compromises remain unmitigated. |
| 4 | Audit ledger | Append-only event store with storage-layer enforcement. | Article 26§6 fails on first adversarial review. |
| 5 | Policy engine | Per-request decision: allow / deny / require-step-up. | "Human oversight" is a policy document, not a runtime gate. |
| 6 | Evidence packaging | Signed bundle per period, fetchable on request. | Article 26§11 cooperation has nothing to hand over. |
The single most common deployment pattern that fails an audit walkthrough is skipping layer 4 in favour of "we have logs in Datadog". Datadog is a telemetry layer, not an audit layer. The retention model, the tamper model, and the chain-of-custody model are different.
| L# | Layer | Owns | Fails if absent |
|---|---|---|---|
| 7 | Identity rotation & revocation | Per-agent key lifecycle, revocation list, cascade. | A compromised agent stays trusted indefinitely. |
| 8 | Capability assertion | Signed claim of what each agent is permitted to do. | An agent can advertise capabilities it cannot back. |
| 9 | Guard / preflight | Input-side checks (prompt-injection patterns, PII, jailbreak signatures). | Layer 5 (policy) operates blind to known attack surface. |
| 10 | Postflight / output review | Output-side checks (PII leakage, policy violation, hallucination signals). | Bad outputs reach the consumer; remediation is per-incident, not class-based. |
| 11 | Risk & vulnerability scoring | Per-agent AIVSS score; trend over time. | Risk decisions are gut-feel; insurance and procurement cannot price the deployment. |
| L# | Layer | Owns | Fails if absent |
|---|---|---|---|
| 12 | Telemetry & metrics | Latency, throughput, error-rate, per-tool counters. | Operability collapses; incidents take longer to detect. |
| 13 | Tracing & replay | Per-request trace tree; deterministic replay for forensic analysis. | Post-incident investigation is anecdotal. |
| 14 | Marketplace & settlement | Cross-organisation discovery, capability cards, atomic settlement. | Each peer connection is a bespoke integration. |
| 15 | Cross-tenant correlation | Pattern detection across deployments (shared attack signatures, regression clusters). | Each tenant relearns the same attacks individually. |
Three conflations show up regularly in deployments we review:
No greenfield team builds all 15 layers at once. The defensible incremental path:
The AiEGIS platform ships implementations for layers 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 14, and 15. Layers 3, 12, and 13 are intentionally outside scope — your existing web tier, observability platform, and tracing stack already cover those, and re-implementing them inside the governance layer produces duplication rather than value.
The full architecture breakdown is at /architecture. The harness implementation that ships layers 4–11 is documented at /harness.