Building Accountable AI Agents.
The architecture that escapes Pilot Purgatory.
The 4-layer AI OS architecture. 7 Platform Services. The Platform Protocol: ~15 API calls that govern any agent, regardless of the framework underneath. The system a CISO will actually approve.
Your agents work.
Nobody knows how.
The agent works. It does the thing. Stakeholders are impressed. Then compliance asks: "Can you show me the decision trail for this output?" Silence. "Can you show me which version of the prompt produced this result?" Silence. "Can you show me what data the agent accessed?" Silence.
The agent works. But nobody can prove how. Nobody can audit what it did. Nobody can reproduce the decision. Nobody can explain why it chose option A over option B on Tuesday at 3 PM.
That is not an engineering problem. That is a governance problem. And governance cannot be bolted on after the fact. It has to be the architecture.
~15 API calls. Every agent calls through them.
Layer 3 is the Trust & Governance Middleware. It sits between your agents and everything else. Every cross-boundary interaction passes through these seven services. Vendor-neutral. Framework-agnostic.
26 lessons. 6 modules.
One Trust & Governance Middleware.
Each module builds one layer of the architecture. By the end, you have a full Layer 3 middleware with all 7 services running and a governed agent calling through it.
The Architecture
The agent fantasy vs the 4-layer architecture. The 7 design principles (Accountability over Autonomy, Governance First, Vendor-Neutral). Pilot Purgatory: why 90%+ of AI pilots never reach production. Build vs buy: what exists and what you must build.
Auth & Permissions
Agents as non-human enterprise identities. User permissions ≠ agent permissions (agent permissions are always a strict subset). Role-based plus agent-level plus per-action tiering. agent-auth: SSO with OIDC, JWT issuance, agent profiles.
Guardrails & Action Control
Declarative YAML policy engine that compliance teams can read. Input and output guardrails: PII detection, injection scanning, hallucination flags before responses ship. Action lifecycle state machine. Risk classification: read, write internal, write external, irreversible. 3-tier approval routing. Kill switch engineering.
Lab: Guardrails Engine + Action Service with 3-tier approval routingContext Routing & LLM Gateway
Context routing as a governance function. Intent parsing, source resolution, permission filtering, relevance ranking, token budget truncation. LiteLLM integration for vendor-neutral LLM access. The Gateway: DLP scanning, server-side cost metering, budget enforcement, model routing.
Monitor, Audit & HITL
Behavioral observability: accuracy, hallucination rate, policy violations, cost per task, drift. agent-monitor as the open-source observability layer. Immutable, append-only audit log. Human-in-the-loop engineering: approval queues, escalation paths. The Platform Protocol implemented end-to-end.
The Trust & Governance Middleware
Assemble all 7 services into the complete Layer 3 middleware. Connect a local agent through the AIOS Connector. Run "Sarah's Tuesday Morning": authenticate, request context, draft email, submit action, Tier 2 approval, execute, audit trail. Deploy with Docker Compose (PostgreSQL, Redis, Gitea, FastAPI).
One project. Six courses. Six layers.
In E3 your E1+E2 capstone gets the full governance middleware. The same project carries forward through E4 to E6 into a deployed Enterprise AI Operating System.
What you need. What you'll use.
Prerequisites
E1 and E2 completed (or equivalent experience building production AI services with trust measurement). Comfortable with API design and basic web architecture. Python, FastAPI familiarity assumed.
Tech stack
Python 3.12, FastAPI, PostgreSQL 16, Redis 7, Docker Compose, Gitea, LiteLLM, Authlib. Open-source repos (Apache 2.0): agent-auth, guardrails, context-router, agent-monitor, trustgate.
This is for you if:
Don't take this if:
One price. Lifetime access.
- 26 lessons across 6 modules (video, written, runnable code)
- 4-layer architecture reference implementation
- 7 Platform Services with full production code
- The Platform Protocol with OpenAPI spec and FastAPI endpoints
- "Sarah's Tuesday Morning" capstone and full code repo (
Apache 2.0)
Want all six courses?
See the Engineering Series bundle →- Framework-specific (LangGraph, CrewAI, etc.) or framework-agnostic?
- Framework-agnostic. The course teaches the Platform Protocol — ~15 API calls that every agent calls through regardless of the framework underneath (LangGraph, CrewAI, OpenAI Agents SDK, custom). Your existing framework choice doesn't matter.
- What's the Platform Protocol?
- The middleware contract that sits between any agent and the platform services (auth, guardrails, context, observability, audit, HITL). Modules 2–5 build it. The capstone is the full Trust & Governance Middleware you can drop into any agent project.
- Will my CISO actually approve this architecture?
- That's the design goal. The course is explicitly about the architecture a security-conscious org will sign off on: auth at the entry, guardrails on every action, full audit trail, HITL on consequential decisions. We don't promise a specific CISO approval — but we show the pattern they ask for.
- Do I need E1 and E2 first?
- E1 yes, E2 strongly recommended. The Platform Protocol assumes you're comfortable with evaluation-first development (E1) and you understand trust gating (E2). If you skip them, plan extra hours or take the Engineering Series bundle.
- Stack / infra requirements?
- Python, Docker, an LLM API. Optional: a vector DB for the context module (Qdrant or pgvector). The capstone runs locally with docker compose.
- Time commitment?
- 25–35 hours across 6 modules. Module 4 (Context Routing & LLM Gateway) is the heaviest — it's where most of the real-world complexity lives.
- Can my company pay for this?
- Yes. Invoices issued. Email [email protected] subject 'Reimbursement.'
- What's the refund policy?
- €197 courses are non-refundable once you open the course. Unopened, they are refundable in full within 14 days of purchase. The Engineering Series bundle (€797) offers a 14-day conditional refund.
Governance is not a feature.
Governance is the platform.
The 4-layer architecture. 7 Platform Services. ~15 API calls. Full audit trail. The system that escapes Pilot Purgatory. €197.
Get on the waitlist