Lattice System Architecture
Crash-proof governed runtime for AI agents. This documentation describes the architecture of every component in the Lattice ecosystem, derived from actual source code analysis — package names, line counts, and real API endpoints.
brew install latticehq/lattice/lattice && lattice serverEcosystem Diagram
How all components connect. Click any node to inspect.
Components
Each component has 4 detailed sub-pages: Architecture, Deployment, Security, and Lifecycle.
Enforcement Gates
Every agent action passes through five sequential gates. Policy violations are structurally impossible.
OAuth 2.0, OIDC, SAML, mTLS, API keys. Cloud IAM (AWS, Azure, GCP).
Rego policies compiled to SQL. RBAC + ABAC. 744KB of policy code, 44K+ test lines.
Per-agent budget caps. PII filtering. Model restriction. Tool whitelisting.
Embedded Temporal v1.30.1. Durable workflows. Crash recovery. Continue-As-New.
SHA-256 hash chain. Tamper-evident. Diff capture. SOC2/HIPAA/FedRAMP.
Technical Specifications
All values from source code. No aspirational claims.
Runtime Core
Authentication
Policy Engine
Networking
Observability
Deployment
How Things Connect
Real integration points from the codebase. No aspirational architecture.