Skip to content

System Overview

Document ID: ARCH-001 Version: 1.0.1 Status: Draft — Day-1 target-state architecture, unrevised since project inception; not reconciled with ADR-0010 (Path A, 2026-07-06: GA ships as a single-node appliance). Corrected 2026-07-07 — what actually ships today: one Rust binary (wovyr-server) containing every domain in §6 (Agent Runtime, Workflow Engine, Memory Engine, LLM Gateway, Tool Runtime, Plugin Framework, Platform Services) as in-process crates, not independently deployable/scalable services; a REST/JSON + SSE API (no gRPC, no WebSocket transport); an Angular SPA talking to it directly (no NestJS Gateway/BFF layer — dashboard overview); no message broker (no NATS — wovyr-events is a custom in-process event system); and file-based storage under ~/.wovyr by default, with PostgreSQL/ Redis/Qdrant as optional, feature-gated backends rather than the “primary storage” §10 implies. See the README’s architecture section for the kept-current architecture. Technologies named below with no implementation and no tracked future work are now tracked — see prd.md §25. Positioning note (2026-07-15): this overview also predates ADR-0011’s repositioning (the product is now the Generative UI Trust Runtime, PRD-005, with the platform as its engine) and the since-shipped generative-UI runtime (wovyr-ui/wovyr-ui-guard, the server’s ui activity + frame routes) and MCP connection layer (PRD-006), which don’t appear in its domain map. Owner: Architecture Team Last Updated: 2026-07-15


This document provides a high-level overview of the Wovyr AI Platform architecture.

It defines the major architectural domains, runtime layers, system boundaries, deployment model, and interactions between the platform’s core components.

This document serves as the entry point for all architecture documentation.


This document covers:

  • Overall platform architecture
  • Major subsystems
  • Architectural principles
  • Runtime layers
  • Deployment overview
  • Data flow
  • Component relationships

Detailed design specifications are maintained in companion architecture documents.


The Wovyr AI Platform is designed as a modular, cloud-native, AI-first platform that enables developers to build intelligent autonomous systems using reusable infrastructure components.

The architecture emphasizes:

  • Modularity
  • Extensibility
  • Provider independence
  • Cloud portability
  • Enterprise readiness
  • Operational simplicity

The platform is built upon the following principles.

Every major capability is implemented as an independent module with clearly defined interfaces.


Business capabilities are organized into bounded contexts.

Examples include:

  • Workflow
  • Runtime
  • Memory
  • Identity
  • Projects
  • Plugins

All platform functionality is exposed through stable APIs.

Supported protocols:

  • REST
  • gRPC
  • WebSocket
  • CLI

Core functionality remains intentionally small.

Additional capabilities are implemented through plugins and extensions.


Every component should support:

  • Containers
  • Kubernetes
  • Horizontal scaling
  • Health probes
  • Metrics
  • Distributed deployments

The platform is organized into six logical layers.

┌──────────────────────────────────────────┐
│ User Layer │
│ Dashboard • CLI • SDK • API Clients │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│ Gateway Layer │
│ REST • gRPC • WebSocket • Auth │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│ Runtime Layer │
│ Agent Runtime • Workflow Engine │
│ Memory Engine • Tool Runtime │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│ Platform Layer │
│ Identity • Projects • Plugins │
│ Scheduler • Event Bus │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│ Storage Layer │
│ PostgreSQL • Redis • Qdrant • Object │
│ Storage │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│ Infrastructure Layer │
│ Docker • Kubernetes • Observability │
│ Secrets • Networking │
└──────────────────────────────────────────┘

The platform consists of the following bounded contexts.

Responsibilities:

  • Planning
  • Reasoning
  • Reflection
  • Context management
  • Tool invocation
  • Goal execution

Responsibilities:

  • DAG execution
  • Scheduling
  • State management
  • Checkpointing
  • Retries
  • Compensation
  • Human tasks

Responsibilities:

  • Semantic memory
  • Episodic memory
  • Embeddings
  • Retrieval
  • Context compression

Responsibilities:

  • Provider abstraction
  • Routing
  • Streaming
  • Failover
  • Token accounting

Responsibilities:

  • Tool registration
  • Tool execution
  • Permission enforcement
  • Sandboxing

Responsibilities:

  • Extension discovery
  • Lifecycle management
  • Version compatibility
  • Marketplace integration

Responsibilities:

  • Authentication
  • Authorization
  • Projects
  • Users
  • Organizations
  • Configuration
  • Licensing (optional)
  • Audit logging

Users
┌──────────────────┴──────────────────┐
│ Dashboard │ CLI │ SDK │ REST Clients│
└──────────────────┬──────────────────┘
API Gateway
┌──────────────────┴──────────────────┐
│ Auth │ Rate Limit │ Routing │ Events│
└──────────────────┬──────────────────┘
┌────────────────────┼────────────────────┐
│ │ │
Agent Runtime Workflow Engine Platform Services
│ │ │
├──────────────┬─────┴───────┬────────────┤
│ │ │ │
Memory Engine Tool Runtime Plugin SDK LLM Gateway
│ │ │ │
└──────────────┴─────────────┴────────────┘
Event Bus / Scheduler
PostgreSQL • Redis • Qdrant • Object Storage

Typical execution sequence:

  1. Client submits a request.
  2. API Gateway authenticates the request.
  3. Agent Runtime receives the task.
  4. Workflow Engine creates or resumes execution.
  5. Memory Engine retrieves relevant context.
  6. LLM Gateway invokes the configured AI provider.
  7. Tool Runtime executes required tools.
  8. Workflow Engine records state transitions.
  9. Results are persisted.
  10. Response is returned to the client.

Supported deployment topologies:

Single process with embedded services.


Multiple crates running in a single executable.


Independent services communicating through APIs and the event bus.


Highly available deployment with horizontal scaling.


Primary storage technologies:

PurposeTechnology
Relational DataPostgreSQL
CacheRedis
Vector SearchQdrant
Object StorageS3-compatible storage

Each storage implementation is accessed through abstraction layers to preserve portability.


The platform supports multiple communication styles:

  • Synchronous REST
  • gRPC
  • WebSocket
  • Event-driven messaging
  • Internal asynchronous task execution

The following concerns apply across all domains:

  • Authentication
  • Authorization
  • Configuration
  • Logging
  • Metrics
  • Distributed tracing
  • Audit logging
  • Error handling
  • Secrets management

These capabilities should be implemented consistently across the platform.


The architecture supports scaling by:

  • Stateless services
  • Horizontal replication
  • Event-driven processing
  • Distributed scheduling
  • Storage abstraction
  • Provider abstraction

Individual domains may scale independently based on workload characteristics.


Security principles include:

  • Zero Trust
  • Least privilege
  • Encrypted communication
  • Secret isolation
  • Signed plugins
  • Audit logging
  • Role-based access control (RBAC)

Detailed security requirements are documented separately.


Every service should expose:

  • Health endpoints
  • Metrics
  • Structured logs
  • Distributed traces

Operational dashboards should provide visibility into workflows, agents, plugins, and infrastructure.


Key architectural decisions include:

  • Rust for core runtime components
  • Modular crate-based design
  • Provider abstraction layers
  • Event-driven workflows
  • Plugin-first extensibility
  • API-first interfaces

Each decision is documented in an Architecture Decision Record (ADR).


This overview is supported by:

  • C4 Context Diagram
  • C4 Container Diagram
  • C4 Component Diagram
  • Domain-Driven Design
  • Clean Architecture
  • Event-Driven Architecture
  • Deployment Architecture
  • ADRs

These documents provide progressively deeper technical detail.


VersionDateDescription
1.0.22026-07-15Added a positioning note: predates ADR-0011’s repositioning and the shipped generative-UI runtime (v1.2) + MCP connection layer (v1.3), absent from the domain map; no content changed
1.0.12026-07-07Added a header divergence note: this doc’s six-layer, multi-service, NATS/gRPC/NestJS topology was never built and diverges from ADR-0010’s Path A decision. Found during a project-wide doc review; no content changed
1.0.02026-06-26Initial system overview