Architectural principles
Tenant-scoped data
Organizations are the tenant boundary. Domain records and authorization decisions carry organization context.
Async by default for heavy work
AI generation, ingestion, email, analytics, and subscription maintenance run through Redis-backed jobs or streams.
Provider adapters
Model, embedding, and email integrations sit behind factories or adapters so deployments can choose providers.
Open-core entitlements
The gateway and console evaluate plan policy; licensed worker behavior starts only when enterprise mode is enabled.
Communication matrix
See request flow for the runtime sequence and the individual service pages for code layout and scaling characteristics.
