Architecture Foundations¶
The foundations docs define the stable contracts that app authors and runtime contributors should share before reading implementation deep dives.
Reading Path¶
- Distribution And Workspace Model
- Framework Capability Classification
- Canonical App Structure
- App Manifest and Platform Targets
- App Bundle Declaratives
- Core, Product, and App Bundle Boundary
- Account, Admin, and Platform Services
- Workflow Architecture
- Workflow Authoring Contracts
- Declarative AG2 Mapping
- Event System
- Event Contracts
Contract Summary¶
- Mozaiks framework code lives in
mozaiksai/,chat-ui/, the repo-local web shell host, CLI, and the shared generation core. - Not all first-class framework code is universal app-runtime substrate: the runtime, platform host, and core shell primitives are universal, while Studio, CLI, and shared generation core are optional framework-owned capabilities.
factory_app/appis the first-party Studio app bundle in this repo, and generated/hosted app workspaces follow the same self-contained contract withapp/config,app/ui/pages,app/workflows,app/modules,app/ui, andapp/brand.- Deterministic app behavior is hosted by
mozaiksai/hosts/platform.pymodules or by an optional external/generated backend connected throughAppBackendPort. - Profile, settings, notifications, subscriptions, and admin are first-class deterministic platform services, not workflow-owned product surfaces.
- Workflows are declarative AI runs owned either by an app workspace or by the shared generation core.
- App UI pages are declarative page surfaces owned by the app workspace.
- Deterministic app behavior belongs behind explicit runtime/backend contracts, not inside workflow prompts.
- App events and workflow triggers connect ordinary app behavior to AI runs.
For the full repository-level architecture, see ARCHITECTURE.md.