Architecture Quick Reference¶
This is a contributor quick reference, not another north-star document.
The authoritative OSS software-design document is Mozaiks OSS Software Design.
The implementation policy for deterministic generated contracts is Canonical Schema Generation Policy.
Core Rules¶
- AG2 owns the agent runtime.
- Mozaiks owns canonical applications.
- Dynamic reasoning crosses structured boundaries.
- Canonical generated schemas optimize for reliability and composability before maximum expressiveness.
- Prefer small finite taxonomies, shallow typed contracts, and explicit canonical references over free-form or deeply nested schema shapes.
- One runtime concept gets one canonical name. Unknown runtime-affecting taxonomy values or unresolved references fail before promotion.
- YAML/structured outputs declare architecture and contracts; bounded Python/JS/React escape hatches implement customization behind those contracts.
- This project is pre-1.0: replace obsolete schema shapes instead of preserving aliases, shims, dual-read paths, or retired contract behavior unless an explicit current external contract requires them.
build_contextprojects reusable knowledge, contracts, catalogs, and assets into reasoning and deterministic materialization.CapabilityPackis the reusable generation-time unit.- A Community Component extends
CapabilityPackwith versioned distribution, provenance, dependencies, trust/integrity, installability, and upgrade metadata. - Events and reactions provide canonical loose coupling across modules, workflows, notifications, and app-owned adapters.
- Schema-native UI is preferred for reusable/community UI.
- Semantic-token React is conditionally portable.
- Custom React remains a supported escape hatch.
AppBuildPlanis the post-reasoning deterministic materialization boundary.- Validation remains deterministic.
- Evaluation complements validation; it does not replace validation.
- Refinement is part of the core application lifecycle.
- Operator intelligence enters through public OSS seams.
- Do not duplicate canonical owners.
Ownership¶
| Area | Canonical Owner |
|---|---|
| Agent execution, agents, networks, tools, middleware, KnowledgeStore | AG2 |
| App manifests, modules, pages, workflows, events, reactions, data contracts | Mozaiks OSS |
| Deterministic materialization, validation, functional acceptance | Mozaiks OSS |
| One-app App Intelligence and brownfield adoption | Mozaiks OSS |
| Cross-app Build Intelligence, learned routing, operator evidence | Operator/private by default |
Required Pre-Edit Architecture Check¶
Before editing Mozaiks OSS:
- read this quick reference;
- for generator/schema/taxonomy work, read Canonical Schema Generation Policy;
- if the task changes, extends, replaces, or challenges architecture, read Mozaiks OSS Software Design;
- treat current source as final authority;
- if current source contradicts the frozen north star, stop and report the contradiction.
Agent Development Rule¶
Before introducing a subsystem:
- identify the current owner;
- inspect whether AG2 already owns the primitive;
- inspect whether Mozaiks already has the canonical implementation;
- extend or connect existing architecture first;
- do not introduce a parallel subsystem without an ADR.
Before changing a generated contract:
- find the canonical structured-output model and runtime consumer;
- simplify rather than add aliases where practical;
- update generator, materializer, validator, runtime, docs, and tests together;
- remove obsolete pre-1.0 shapes instead of preserving compatibility branches;
- prove runtime-affecting references close before promotion and remain covered by functional acceptance.