Knowledge Portal · engineering documentation

Skip to content

Federated from workspace · PL-003 · zaixos-ai-platform/docs/PLATFORM_ARCHITECTURE.md Do not edit canonical truth here — update the source repo, then re-run npm run docs:sync.


PL-003 Platform Architecture

Platform: ZAIXOS AI Platform (PL-003)
Repository: zaixos-ai-platform
Packages: zaixos/ai-contracts @ 0.2.0 · zaixos/ai-platform @ 0.7.0
Status: Operational — Consumer #1 pinned

Purpose

PL-003 is the shared AI intelligence infrastructure platform for the ZAIXOS workspace. It extracts reusable runtime machinery from product AI modules while preserving product ownership of business truth.

Boundary summary

Authoritative detail: ARCHITECTURE_BOUNDARY.md.

Owns (PL-003)Does not own
Provider abstractionBusiness truth
Prompt engine (schema + renderer)Patients, orders, CRM
Conversation runtime APIERP / domain logic
Job orchestrationProduct workflows
Agent runtime framework (base)Tenant authoritative records
Tool execution frameworkDomain AI worker platforms
Memory, knowledge, context runtimesEngineering methodology (ZEP)
AI configuration schemaAI UI shells (PL-002)
Policies (PII, HITL defaults)Knowledge graph ontology
Evaluation schema + hooksProduction secrets
Observability (AI jobs)ZIP orchestration (PL-004)

Package architecture

packages/contracts/     → zaixos/ai-contracts   (Layer 1)
packages/laravel/       → zaixos/ai-platform    (Layer 2)
prompts/ agents/ evals/                         (Layer 3)

See LAYER_MODEL.md.

Dependency direction

CO-001 → RP-002 → PL-001 (cite-only) → PL-003 (this) → PR-001 → future products

PL-002 (Design System) — orthogonal; no dependency on PL-003
PL-004 (ZIP) — future; consumes PL-003 contracts; not implemented in this repo

No reverse dependencies. Products consume via Composer pin only.

Runtime modules (0.7.0)

ModuleResponsibility
ProvidersGateway, factory, health, streaming, embeddings, fallback
JobsOrchestration, processing, lifecycle, cost estimation
PromptsEngine, renderer, versioning, validation, inheritance
ConversationsEngine, lifecycle, history, context builder
AgentsRegistry, permissions, capabilities, invocation pipeline
ToolsRegistry, execution orchestrator
MemoryWorking, conversation, long-term managers
KnowledgeRetrieval pipeline, ranking, filtering, compression
ContextAssembly, budget, prioritization, window management

Consumer model

Consumer #1 (PRD-001) pins zaixos/ai-platform ^0.7.0 and delegates through compatibility adapters. See CONSUMER_INTEGRATION.md.

Extraction method

Adapter delegation from PRD-001 app/Modules/AI/ — frozen product paths unchanged. See EXTRACTION_BOUNDARY.md and AI_PLATFORM_EXTRACTION_DISCOVERY.md.

Validation

SuiteLocationCount
Architecturetests/Architecture/55 tests
Runtime unitpackages/laravel/tests/46 tests
bash
composer test
DocumentRole
ARCHITECTURE_BOUNDARY.mdOwns / does-not-own
RATIFICATION.mdStatus and evidence
VERSIONING.mdSemver policy
WAVES.mdM-18 wave index

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin