Atlas Feature-Driven Implementation Plan β
Consolidated File Structure β
Status Legend β
- β Complete - Implementation finished and tested
- π§ In Progress - Implementation actively being worked on
- π Planned (Short-term) - Next items in the implementation queue
- π² Planned (Long-term) - Designed but scheduled for later implementation
Feature Priority Legend β
- π΄ Primary Features - Core functionality that must be delivered first
- π Secondary Features - Important functionality built on primary features
- π’ Tertiary Features - Additional functionality that enhances the system
- π΅ Future Features - Planned for future releases
atlas/ # β οΈ DIRECTORY DOES NOT EXIST YET
βββ core/ # Core abstractions and primitives
β βββ schema/ # Schema definitions & validation π΄
β β βββ __init__.py # Package initialization π²
β β βββ base.py # Base schema classes π²
β β βββ version.py # Version tracking for schemas π²
β β βββ buffer.py # Buffer schemas π²
β β βββ event.py # Event schemas π²
β β βββ state.py # State schemas π²
β β βββ command.py # Command schemas π²
β β βββ provider.py # Provider schemas π²
β β βββ document.py # Document schemas π²
β β βββ agent.py # Agent schemas π²
β β βββ task.py # Task schemas π²
β β βββ registry.py # Schema registry for discovery π²
β β βββ factory.py # Schema factory utilities π²
β β βββ migration.py # Schema version migration tools π²
β β βββ validation.py # Cross-cutting validation rules π²
β β βββ fields.py # Custom schema fields π²
β β βββ serialization.py # Serialization helpers π²
β β βββ validators.py # Custom validators π²
β βββ primitives/ # Foundational protocols and types
β β βββ buffer/ # Stream buffering system π΄
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Buffer protocol definitions π²
β β β βββ state.py # Buffer state enumerations π²
β β β βββ types.py # Buffer-related type definitions π²
β β βββ commands/ # Command system π
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Command protocol definitions π²
β β β βββ types.py # Command-related type definitions π²
β β βββ events/ # Event system π΄
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Event protocol definitions π²
β β β βββ types.py # Event-related type definitions π²
β β β βββ filter.py # Event filtering capabilities π²
β β βββ perspective/ # Perspective-shifting system π
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Perspective protocol definitions π²
β β β βββ types.py # Perspective-related definitions π²
β β βββ registry/ # Registration system π
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Registry protocol definitions π²
β β β βββ types.py # Registry-related definitions π²
β β βββ resources/ # Resource management system π΄
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # Resource protocol definitions π²
β β β βββ types.py # Resource-related definitions π²
β β βββ state/ # State management system π΄
β β β βββ __init__.py # Package initialization π²
β β β βββ protocol.py # State protocol definitions π²
β β β βββ container.py # State container protocol π²
β β β βββ transition.py # State transition protocol π²
β β β βββ types.py # State-related type definitions π²
β β βββ transitions/ # Transition management system π΄
β β βββ __init__.py # Package initialization π²
β β βββ protocol.py # Transition protocol definitions π²
β β βββ types.py # Transition-related definitions π²
β βββ components/ # NERV architectural components
β β βββ __init__.py # Package initialization π²
β β βββ aspect_weaver.py # Aspect-oriented programming π²
β β βββ container.py # Dependency injection container π²
β β βββ diff_synchronizer.py # State diffing and synchronizationπ²
β β βββ effect_monad.py # Effect tracking and management π²
β β βββ event_bus.py # Reactive event communication π²
β β βββ perspective_aware.py # Context-specific views π²
β β βββ quantum_partitioner.py # Parallel execution system π²
β β βββ state_projector.py # Efficient state evolution π²
β β βββ temporal_store.py # Temporal state tracking π²
β βββ patterns/ # Design patterns implementation
β β βββ __init__.py # Package initialization π²
β β βββ command.py # Command pattern π²
β β βββ dependency_injection.py # Dependency injection pattern π²
β β βββ perspective.py # Perspective shifting pattern π²
β β βββ pub_sub.py # Publish-subscribe pattern π²
β β βββ reactive.py # Reactive programming pattern π²
β β βββ resource_management.py # Resource management pattern π²
β βββ composites/ # Composite architectural patterns
β βββ __init__.py # Package initialization π²
β βββ adaptive_state_management.py # Adaptive state management π²
β βββ event_driven.py # Event-driven architecture π²
β βββ parallel_workflow_engine.py # Dependency-based parallel exec π²
βββ providers/ # LLM provider implementations π΄
β βββ services/ # Provider service interfaces
β β βββ __init__.py # Package initialization π²
β β βββ base.py # Service-enabled provider base π²
β β βββ capability_registry.py # Provider capability registry π²
β β βββ selection.py # Provider selection strategies π²
β β βββ group.py # Provider group implementation π²
β β βββ streaming/ # Streaming capabilities
β β β βββ __init__.py # Package initialization π²
β β β βββ buffer.py # Provider streaming buffer π²
β β β βββ control.py # Streaming control interface π²
β β β βββ metrics.py # Streaming performance metrics π²
β β βββ types/ # Provider type definitions
β β βββ __init__.py # Package initialization π²
β β βββ streaming.py # Streaming response types π²
β β βββ options.py # Provider options types π²
β βββ implementations/ # Specific provider implementations
β βββ anthropic.py # Anthropic provider π²
β βββ openai.py # OpenAI provider π²
β βββ ollama.py # Ollama provider π²
βββ agents/ # Agent system implementation π΄
β βββ services/ # Agent service interfaces
β β βββ base.py # Service-enabled agent base π²
β β βββ controller.py # Agent controller implementation π²
β β βββ registry.py # Agent registry service π²
β βββ messaging/ # Agent messaging system
β β βββ message.py # Structured message implementationπ²
β β βββ routing.py # Message routing with EventBus π²
β βββ specialized/ # Specialized agent implementations
β βββ task_aware_agent.py # Task-aware agent implementation π²
β βββ tool_agent.py # Tool-enabled agent implementationπ²
βββ knowledge/ # Knowledge system implementation π΄
β βββ services/ # Knowledge service interfaces
β β βββ chunking.py # Document chunking system π²
β β βββ embedding.py # Embedding service π²
β β βββ retrieval.py # Retrieval service π²
β β βββ hybrid_search.py # Hybrid search implementation π²
β βββ persistence/ # Storage implementation
β βββ storage.py # Storage abstraction π²
β βββ chromadb.py # ChromaDB adapter π²
βββ orchestration/ # Workflow orchestration π
β βββ workflow/ # Workflow system
β β βββ engine.py # Workflow engine implementation π²
β β βββ task.py # Task implementation π²
β β βββ dependency.py # Dependency management π²
β βββ parallel/ # Parallel execution system
β βββ executor.py # Parallel executor implementation π²
β βββ scheduler.py # Task scheduler implementation π²
βββ cli/ # Command line interface π
β βββ __init__.py # Package initialization π²
β βββ config.py # Configuration utilities π²
β βββ parser.py # Command-line argument parsing π²
β βββ textual/ # Textual CLI components
β βββ __init__.py # Package initialization π²
β βββ app.py # Main application class π²
β βββ commands.py # Command execution system π²
β βββ schema.py # Command schema definitions π²
β βββ config.py # Configuration management π²
β βββ screens/ # Screen implementations
β β βββ __init__.py # Package initialization π²
β β βββ main.py # Main application screen π²
β β βββ provider.py # Provider selection screen π²
β β βββ ingest.py # Document ingestion screen π²
β β βββ tools.py # Tool management screen π²
β βββ widgets/ # Custom widget components
β βββ __init__.py # Package initialization π²
β βββ command_bar.py # Command input bar π²
β βββ conversation.py # Message display area π²
β βββ status.py # Status and metrics display π²
β βββ stream_controls.py # Streaming control widgets π²
βββ examples/ # Example implementations
βββ __init__.py # Package initialization π²
βββ 02_streaming_chat.py # Streaming chat example π²
βββ 04_multi_provider_routing.py # Multi-provider routing example π²
βββ 08_agent_delegation.py # Agent delegation example π²
βββ 12_knowledge_retrieval.py # Knowledge retrieval example π²
βββ 15_workflow_execution.py # Workflow execution example π²
βββ 20_command_cli.py # Command CLI example π²
CLEAN BREAK WITH VERTICAL FEATURE SLICES
This document outlines a revised implementation approach for Atlas that maintains the clean break architecture vision while focusing on delivering complete functional features through vertical slices. Rather than building the entire architecture layer by layer, we will implement the minimal necessary components of each layer needed to deliver specific features, allowing us to demonstrate functional value earlier and reduce implementation risk.
Current Status (May 23, 2025)
- β Moved existing implementation to atlas_legacy for clean break
- π΄ ACTUAL STATE: No new code has been implemented in atlas/ directory yet
- π Need to create initial atlas directory structure
- π Need to implement buffer protocol and types
- π Need to implement event system protocols
- π Need to implement state container protocols
- π² Planning to shift from horizontal layer implementation to vertical feature slices
- π² Will prioritize core services required for streaming chat functionality
- π² Will implement event system components for streaming support
- π² Will add schema validation with Marshmallow for critical data structures
Status Legend β
- β Complete - Implementation finished and tested
- π§ In Progress - Implementation actively being worked on
- π Planned (Short-term) - Next items in the implementation queue
- π² Planned (Long-term) - Designed but scheduled for later implementation
Feature Priority Legend β
- π΄ Primary Features - Core functionality that must be delivered first
- π Secondary Features - Important functionality built on primary features
- π’ Tertiary Features - Additional functionality that enhances the system
- π΅ Future Features - Planned for future releases
1. Feature-Driven Vertical Slices β
Rather than building complete horizontal layers of the architecture, we are reorganizing our implementation strategy around vertical feature slices that deliver functional value while maintaining architectural integrity.
Each feature slice:
- Implements the minimum necessary components from each architecture layer
- Delivers complete end-to-end functionality that users can test and validate
- Follows the clean break architecture principles within its scope
- Enables incremental adoption and testing of the architecture
- Includes schema validation (Marshmallow) for all critical data structures
- Leverages appropriate third-party libraries for its specific functionality
1.1 Feature Slice Diagram β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FEATURE SLICE ARCHITECTURE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
β β β β β β β β β β β β
β Streamingβ β Agent β βKnowledge β β Multi- β β Workflow β β Command β
β Chat β βDelegationβ βRetrieval β β Provider β βExecution β β CLI β
β β β β β β β Routing β β β β β
ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ
βββ βββ βββ βββ βββ βββ
ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ
βComponentsβ βComponentsβ βComponentsβ βComponentsβ βComponentsβ βComponentsβ
β β β β β β β β β β β β
ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ
βββ βββ βββ βββ βββ βββ
ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ
β Services β β Services β β Services β β Services β β Services β β Services β
β β β β β β β β β β β β
ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ
βββ βββ βββ βββ βββ βββ
ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ
β NERV β β NERV β β NERV β β NERV β β NERV β β NERV β
βComponentsβ βComponentsβ βComponentsβ βComponentsβ βComponentsβ βComponentsβ
ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ
βββ βββ βββ βββ βββ βββ
ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ ββββββ΄ββββββ
β Inner β β Inner β β Inner β β Inner β β Inner β β Inner β
β Universe β β Universe β β Universe β β Universe β β Universe β β Universe β
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
1.2 Schema Layer and Third-Party Integration β
The Schema Layer is a foundational component that runs throughout all feature slices, providing validation, serialization, and documentation through Marshmallow schemas. Each feature slice integrates specific third-party libraries to leverage battle-tested implementations:
Feature Slice | Marshmallow Schemas | Third-Party Libraries |
---|---|---|
Streaming Chat | StreamingResponseSchema: Validates streaming responses with detailed fields TokenSchema: Polymorphic schema hierarchy for different token types EventSchema: Validates event bus communications BufferSchema: Validates buffer configuration and states StateContainerSchema: Validates immutable state containers | Blinker: Event subscription and publication for reactive communication Pyrsistent: Immutable data structures for thread-safe state management Effect: Side effect tracking for testable streaming operations Marshmallow: Schema validation for data structures |
Agent Delegation | AgentSchema: Validates agent configuration and capabilities MessageSchema: Validates inter-agent message structure TaskSchema: Validates agent task definitions and state ControllerSchema: Validates controller state and routing | Eventsourcing: Temporal state tracking with event-sourcing pattern Blinker: Agent message publication and subscription Pyrsistent: Immutable agent state representation DiffSync: State synchronization between agent components |
Knowledge Retrieval | DocumentSchema: Validates document structure and metadata ChunkSchema: Validates document chunks with positional data EmbeddingSchema: Validates vector embeddings and models QuerySchema: Validates search queries and parameters | Marshmallow: Schema-based data transformations for perspectives AspectLib: Cross-cutting concerns management for retrieval pipeline Pyrsistent: Immutable document representation Dependency Injector: Component wiring for retrieval services |
Multi-Provider Routing | ProviderSchema: Validates provider configuration CapabilitySchema: Validates provider capabilities and features RoutingSchema: Validates routing strategies and rules ModelSchema: Validates model specifications and parameters | Dependency Injector: Container-based provider registration and resolution Effect: Controlled side effects for provider operations DiffSync: Provider state reconciliation Marshmallow: Schema-based provider capability validation |
Workflow Execution | WorkflowSchema: Validates workflow structure and stages TaskSchema: Validates workflow tasks with dependencies DependencySchema: Validates task dependencies and ordering ResourceSchema: Validates resource requirements and constraints | TaskMap: Dependency-based parallel execution of workflow tasks Blinker: Event-driven coordination between workflow tasks Effect: Side effect management in workflow execution Pyrsistent: Immutable workflow definitions and state |
Command CLI | CommandSchema: Validates command structure and parameters ParameterSchema: Validates command parameters and type definitions ResultSchema: Validates command results and formatting ViewSchema: Validates UI presentation rules | Marshmallow: Command parameter validation and serialization Dependency Injector: Command dependency resolution and lookup AspectLib: Cross-cutting command concerns like logging and authorization Effect: Command execution effect management |
The Schema Layer provides consistent patterns for:
- Validation: Input/output validation across all components
- Serialization: Consistent serialization for persistence and transport
- Documentation: Auto-generated API documentation from schema definitions
- Schema Evolution: Version-aware schema migration capabilities
- Cross-Feature Integration: Common schema patterns for interoperability
1.3 Key Feature Slices β
We have identified six key feature slices that will drive our implementation:
Streaming Chat π΄
- Real-time streaming conversation with LLM providers
- Includes provider interaction, streaming buffer, and response parsing
- Demonstrates event-driven architecture and buffer system
Agent Delegation π΄
- Task delegation between multiple specialized agents
- Includes agent messaging, state tracking, and task coordination
- Demonstrates event-driven communication and state management
Knowledge Retrieval π΄
- Document chunking, embedding, and semantic search
- Includes vector storage, hybrid search, and context integration
- Demonstrates persistence layer and state projection
Multi-Provider Routing π
- Intelligent routing between different LLM providers
- Includes capability matching, fallback strategies, and cost optimization
- Demonstrates registry pattern and effect tracking
Workflow Execution π
- Complex multi-step workflow orchestration
- Includes parallel execution, dependency management, and error handling
- Demonstrates quantum partitioning and reactive event mesh
Command CLI π
- Textual-based command-line interface
- Includes command parsing, execution, and response formatting
- Demonstrates command pattern and perspective shifting
2. Feature Slice 1: Streaming Chat β
2.1 Feature Overview β
Streaming Chat enables real-time, token-by-token streaming of LLM responses to provide an interactive chat experience. This is our highest priority feature because it:
- Provides immediate user value
- Demonstrates key architectural patterns
- Establishes patterns for provider integration
- Enables testing of core services (event, buffer, state)
2.2 Implementation Status β
- π Defining buffer protocol and types
- π Defining event primitives and protocols
- π Defining state container protocols
- π Designing event bus interface
- π Creating streaming response model
- π Planning buffer service implementation
- π Designing service-enabled provider interface
- π² Implementing buffer service
- π² Implementing event system
- π² Implementing state container
- π² Implementing provider streaming capabilities
- π² Building streaming chat example
2.3 Implementation Components β
The Streaming Chat feature slice implements the following components:
Core Type System Components β
Event Types:
EventT
,EventT_co
- Generic event type variables with variance controlEventIdT
- Unique identifier for eventsSourceT
- Event source identifier typeEventSubscriberT
- Event subscriber protocolEventFilterT
- Event filtering predicate typeEventHandlerT
- Event handler callable typeEventMetadata
- Event metadata tracking
Buffer Types:
TokenT
,TokenT_co
,TokenT_contra
- Token type variables with varianceBufferStateT
- Buffer state enumerationFlowControlT
- Flow control protocolBufferCapacityT
- Buffer capacity configurationBufferError
- Buffer operation error types
State Types:
StateT
,StateT_co
,StateT_contra
- State type variables with varianceVersionT
- State version identifierStateIdT
- Unique state identifierStateTransitionT
- State transition typeStateValidatorT
- State validation protocolStateProjectionT
- State projection protocol
Streaming Types:
StreamingResponseT
- Streaming response typeContentT
- Content type for accumulationProviderT
- Provider type for streamingResponseMetadataT
- Response metadata typeStreamErrorT
- Streaming error types
Implementation Components β
EventBus: Real-time event communication
- Event publication and subscription
- Event filtering and routing
- Thread-safe operation
- Event context tracking
- Middleware pipeline for event transformation
- Completion and error handling
- Library: Blinker for signal-based event dispatch
- Schema Validation: EventSchema with Marshmallow validation
Buffer Service: Stream token management
- Thread-safe token queue
- Backpressure control
- Flow rate management
- Token accumulation
- Buffer overflow protection
- Multi-consumer support
- Library: Pyrsistent for immutable buffer state
- Schema Validation: BufferSchema with capacity and configuration validation
State Container: Streaming response state
- Current response state
- Token history tracking
- Metadata tracking
- State transitions
- Versioning support
- State projections
- Libraries: Pyrsistent for immutable state, Eventsourcing for history
- Schema Validation: StateSchema with transition validation
Provider Adapter: LLM integration
- Provider-specific adapters
- Streaming support
- Error handling
- Token parsing
- Completion detection
- Performance monitoring
- Library: Effect for provider operation side effects
- Schema Validation: ProviderSchema with capability validation
2.4 Implementation Roadmap β
- May 20-21, 2025 π
- Define buffer, event, and state protocols
- Create type definitions and enumerations
- Design protocol interactions
- Document protocol behaviors
- Implement protocol validation utilities
- May 21-22, 2025 π²
- Implement EventBus using Blinker
- Create Buffer service with flow control
- Build state container with versioning
- Implement thread safety mechanisms
- Add event middleware pipeline
- May 22-23, 2025 π²
- Implement ServiceEnabledProvider with EventBus
- Create provider-specific streaming commands
- Build streaming buffer adapter for providers
- Add provider event publication
- Implement token accumulation
- May 23-24, 2025 π²
- Implement Anthropic provider with streaming
- Create OpenAI provider with streaming
- Build Ollama provider with streaming
- Create streaming chat example
- Implement streaming chat CLI interface
3. Feature Slice 2: Agent Delegation β
3.1 Feature Overview β
Agent Delegation enables task delegation and coordination between specialized agents working together to solve complex problems. This feature:
- Showcases agent collaboration capabilities
- Establishes message passing patterns
- Demonstrates stateful agent behavior
- Enables complex task decomposition
3.2 Implementation Status β
- π Defining agent messaging protocols
- π Creating agent state model
- π² Implementing controller agent architecture
- π² Building message routing system
- π² Designing task delegation patterns
- π² Creating specialized agent implementations
- π² Building agent delegation example
3.3 Implementation Components β
The Agent Delegation feature slice implements the following components:
Core Type System Components β
Agent Types:
AgentT
,AgentT_co
- Generic agent type variables with varianceAgentIdT
- Unique agent identifierAgentRoleT
- Agent role enumerationAgentStateT
- Agent state typeAgentCapabilityT
- Agent capability typeAgentConfigT
- Agent configuration typeAgentErrorT
- Agent error types
Message Types:
MessageT
- Generic message typeMessageIdT
- Unique message identifierMessageContentT
- Message content typeMessageDirectionT
- Message direction enumerationMessagePriorityT
- Message priority enumerationMessageStatusT
- Message status enumerationMessageRoutingInfoT
- Routing information type
Task Types:
TaskT
- Generic task typeTaskIdT
- Unique task identifierTaskStatusT
- Task status enumerationTaskPriorityT
- Task priority enumerationTaskResultT
- Task result typeTaskDependencyT
- Task dependency typeTaskErrorT
- Task error types
Controller Types:
ControllerT
- Controller typeControllerStateT
- Controller state typeControllerStrategyT
- Controller strategy protocolAgentRegistryT
- Agent registry typeControllerErrorT
- Controller error types
Implementation Components β
TemporalStore: Agent state tracking
- Version history management
- State transitions
- Checkpoint capabilities
- State serialization
- Temporal queries
- Diff-based state updates
- Library: Eventsourcing for temporal event storage
- Schema Validation: AgentSchema with Marshmallow validation
Message System: Agent communication
- Structured message format
- Message routing
- Delivery confirmation
- Message prioritization
- Message filtering
- Serialization support
- Library: Blinker for message publication/subscription
- Schema Validation: MessageSchema with content validation
Controller: Coordination and orchestration
- Agent registration
- Task delegation
- Progress tracking
- Error handling
- Resource management
- Strategy selection
- Libraries: Dependency Injector for agent wiring, DiffSync for state synchronization
- Schema Validation: ControllerSchema with delegation rules
Agent Registry: Agent discovery
- Agent capability matching
- Agent availability tracking
- Dynamic agent registration
- Agent metadata storage
- Version management
- Health monitoring
- Library: Dependency Injector for registry container
- Schema Validation: RegistrySchema with capability matching rules
3.4 Implementation Roadmap β
- May 23-24, 2025 π
- Implement TemporalStore for agent state tracking
- Create message model with serialization
- Implement message routing system
- Add agent state transition management
- Create agent event publication
- May 24-25, 2025 π²
- Implement controller agent architecture
- Create task delegation patterns
- Build message passing protocols
- Implement task tracking with state
- Add agent registry for discovery
- May 25-26, 2025 π²
- Implement task-aware agent
- Create tool-enabled agent
- Build knowledge agent
- Implement agent delegation example
- Create agent delegation CLI interface
4. Feature Slice 3: Knowledge Retrieval β
4.1 Feature Overview β
Knowledge Retrieval enables semantic search and retrieval of documents to enhance LLM responses with relevant information. This feature:
- Provides critical context augmentation
- Demonstrates persistence layer integration
- Showcases buffer system for search results
- Establishes document processing patterns
4.2 Implementation Status β
- π Defining chunking and embedding protocols
- π Creating retrieval service interface
- π² Implementing document chunking strategies
- π² Building embedding service
- π² Designing vector store integration
- π² Creating hybrid search implementation
- π² Building knowledge retrieval example
4.3 Implementation Components β
The Knowledge Retrieval feature slice implements the following components:
Core Type System Components β
Document Types:
DocumentT
- Generic document typeDocumentIdT
- Unique document identifierDocumentContentT
- Document content typeDocumentMetadataT
- Document metadata typeChunkT
- Document chunk typeChunkIdT
- Unique chunk identifierChunkMetadataT
- Chunk metadata type
Embedding Types:
EmbeddingT
- Generic embedding typeEmbeddingIdT
- Unique embedding identifierEmbeddingModelT
- Embedding model typeEmbeddingConfigT
- Embedding configuration typeEmbeddingVectorT
- Vector representation typeEmbeddingErrorT
- Embedding error types
Query Types:
QueryT
- Generic query typeQueryIdT
- Unique query identifierQueryResultT
- Query result typeQueryParamsT
- Query parameters typeSimilarityMeasureT
- Similarity measure enumerationRankingStrategyT
- Result ranking strategy protocolQueryErrorT
- Query error types
Storage Types:
StorageT
- Generic storage typeStorageIdT
- Unique storage identifierStorageConfigT
- Storage configuration typePersistenceStrategyT
- Persistence strategy protocolStorageMetadataT
- Storage metadata typeStorageErrorT
- Storage error types
Implementation Components β
PerspectiveAware: Context-specific views
- Schema-based transformations
- Context-aware projections
- View validation
- Data filtering
- Schema generation
- Serialization support
- Library: Marshmallow for schema-based transformations
- Schema Validation: DocumentSchema with perspective rules
Chunking Service: Document processing
- Semantic chunking
- Size-based chunking
- Recursive chunking
- Overlap management
- Metadata extraction
- Content cleaning
- Library: AspectLib for cross-cutting document processing concerns
- Schema Validation: ChunkSchema with boundary validation
Embedding Service: Vector generation
- Multiple model support
- Batch embedding
- Caching strategy
- Dimensionality handling
- Error recovery
- Performance optimization
- Library: Effect for embedding operation side effects
- Schema Validation: EmbeddingSchema with vector validation
Vector Store: Persistence layer
- ChromaDB integration
- Vector storage
- Metadata management
- Query optimization
- Index management
- Collection handling
- Library: Dependency Injector for store component wiring
- Schema Validation: StorageSchema with configuration validation
4.4 Implementation Roadmap β
- May 26-27, 2025 π
- Implement document chunking strategies
- Create embedding service with providers
- Build resource management for storage
- Add event publication for processing steps
- Implement resource cleanup
- May 27-28, 2025 π²
- Implement ChromaDB adapter with persistence
- Create vector search capabilities
- Build metadata filtering
- Implement result ranking algorithms
- Add search result buffering
- May 28-29, 2025 π²
- Implement hybrid search (vector + keyword)
- Create context enrichment pipeline
- Build document tracking with versioning
- Implement knowledge retrieval example
- Create retrieval CLI interface
5. Feature Slice 4: Multi-Provider Routing β
5.1 Feature Overview β
Multi-Provider Routing enables intelligent selection and fallback between different LLM providers based on capabilities, performance, and cost. This feature:
- Optimizes provider selection
- Demonstrates registry pattern
- Showcases capability matching
- Enables cost optimization
5.2 Implementation Status β
- π Defining provider service interfaces
- π Creating capability registry protocols
- π² Implementing provider registry
- π² Building capability-based selection
- π² Designing fallback strategies
- π² Creating provider group implementation
- π² Building multi-provider routing example
5.3 Implementation Components β
Container: Dependency injection framework
- Service registration
- Component resolution
- Lifecycle management
- Factory patterns
- Resource pooling
- Library: Dependency Injector for container implementation
- Schema Validation: ContainerSchema with dependency rules
Provider Registry: Provider discovery and selection
- Provider registration
- Capability matching
- Version management
- Health monitoring
- Metadata management
- Library: Dependency Injector for registry container
- Schema Validation: ProviderSchema with capability validation
Routing Strategies: Provider selection algorithms
- Cost-based routing
- Capability-based routing
- Performance-based routing
- Availability-based routing
- Hybrid routing strategies
- Library: Effect for routing operation side effects
- Schema Validation: RouteSchema with strategy validation
Provider Group: Multi-provider management
- Fallback handling
- Parallel execution
- Result aggregation
- Error recovery
- Provider coordination
- Library: DiffSync for provider state synchronization
- Schema Validation: ProviderGroupSchema with collective rules
5.4 Implementation Roadmap β
- May 29-30, 2025 π²
- Implement Container for dependency management
- Create service registry with discovery
- Build command pattern implementation
- Add capability registry system
- Implement provider factory
- May 30-31, 2025 π²
- Implement provider capability matching
- Create cost optimization strategies
- Build priority-based selection
- Implement provider group with fallback
- Add parallel execution for providers
- May 31 - June 1, 2025 π²
- Implement adaptive routing strategies
- Create performance tracking
- Build provider health monitoring
- Implement multi-provider routing example
- Create provider selection CLI interface
6. Feature Slice 5: Workflow Execution β
6.1 Feature Overview β
Workflow Execution enables complex multi-step workflows with dependency management, parallel execution, and error handling. This feature:
- Enables sophisticated process orchestration
- Demonstrates quantum partitioning
- Showcases reactive event mesh
- Establishes workflow patterns
6.2 Implementation Status β
- π Defining workflow primitives
- π Creating task execution protocols
- π² Implementing workflow engine
- π² Building dependency management
- π² Designing parallel execution
- π² Creating workflow monitoring
- π² Building workflow execution example
6.3 Implementation Components β
QuantumPartitioner: Parallel execution engine
- Task dependency resolution
- Parallel execution strategy
- Resource-aware scheduling
- Task partitioning
- Work distribution
- Library: TaskMap for dependency-based execution
- Schema Validation: TaskSchema with dependency rules
Workflow Engine: Process orchestration
- Workflow definition
- State tracking
- Error handling
- Event publication
- Resource management
- Library: Blinker for workflow event coordination
- Schema Validation: WorkflowSchema with execution rules
Dependency Manager: Task relationship handling
- Dependency graph creation
- Cycle detection
- Dependency resolution
- Constraint validation
- Dependency monitoring
- Library: TaskMap for DAG-based dependency resolution
- Schema Validation: DependencySchema with relationship rules
Execution Monitor: Performance tracking
- Execution metrics
- Bottleneck detection
- Resource monitoring
- Timeline visualization
- Historical tracking
- Library: Eventsourcing for execution history tracking
- Schema Validation: MonitorSchema with metrics validation
6.4 Implementation Roadmap β
- June 1-2, 2025 π²
- Implement QuantumPartitioner with TaskMap
- Create parallel execution strategies
- Build dependency tracking system
- Add task scheduling mechanisms
- Implement result aggregation
- June 2-3, 2025 π²
- Implement workflow engine with parallel execution
- Create workflow state tracking
- Build error handling and recovery
- Add workflow event publication
- Implement workflow monitoring
- June 3-4, 2025 π²
- Implement workflow definition DSL
- Create visual workflow representation
- Build workflow history tracking
- Implement workflow execution example
- Create workflow CLI interface
7. Feature Slice 6: Command CLI β
7.1 Feature Overview β
Command CLI provides a Textual-based rich terminal interface for interacting with Atlas. This feature:
- Delivers user-friendly interface
- Demonstrates command pattern
- Showcases perspective shifting
- Establishes UI patterns
7.2 Implementation Status β
- π Defining command primitives
- π Creating CLI interface protocols
- π² Implementing command execution
- π² Building Textual UI components
- π² Designing perspective-based views
- π² Creating configuration management
- π² Building command CLI example
7.3 Implementation Components β
PerspectiveAware: Context-specific views
- Schema-based transformations
- View selection
- Data filtering
- Presentation rules
- View transitions
- Library: Marshmallow for schema-based transformations
- Schema Validation: ViewSchema with presentation rules
Command System: Command execution framework
- Command discovery
- Parameter validation
- Command execution
- Result formatting
- Error handling
- Library: Dependency Injector for command resolution
- Schema Validation: CommandSchema with parameter rules
CLI UI Components: Rich terminal interface
- Screen management
- Widget implementation
- Event handling
- Rendering pipeline
- User interaction
- Library: AspectLib for cross-cutting UI concerns
- Schema Validation: ComponentSchema with UI constraints
Configuration System: User settings management
- Configuration storage
- Schema validation
- Default handling
- Update notification
- Migration support
- Library: Marshmallow for config serialization and validation
- Schema Validation: ConfigSchema with setting rules
7.4 Implementation Roadmap β
- June 4-5, 2025 π²
- Implement PerspectiveAware for context views
- Create command pattern implementation
- Build command schema with validation
- Add command execution tracking
- Implement command history
- June 5-6, 2025 π²
- Implement Textual application with EventBus
- Create conversation view with streaming
- Build command bar implementation
- Add screen management
- Implement widget components
- June 6-7, 2025 π²
- Implement configuration persistence
- Create command discovery
- Build help system and documentation
- Implement command CLI example
- Create comprehensive CLI user guide
8. Key Architectural Principles β
Despite shifting to a feature-driven approach, we maintain these core architectural principles from the clean break design:
- Protocol-First Design: All interfaces are defined as protocols before implementation
- Type-Safe Foundations: Strong typing throughout with centralized type variable system
- Schema Validation: All data structures validate with Marshmallow schemas
- Reactive Event Mesh: Components communicate through reactive event subscription via Blinker
- Temporal Awareness: State history and versioning maintained via Eventsourcing
- Explicit Effect Tracking: Side effects are captured and controlled via Effect
- Immutable State: Efficient immutable state transformations via Pyrsistent
- Perspective Shifting: Different contexts have appropriate views of the same data via Marshmallow
- Quantum Partitioning: Complex tasks are decomposed for parallel execution via TaskMap
- State Synchronization: Efficient reconciliation of state changes via DiffSync
- Aspect-Oriented Programming: Cross-cutting concerns handled via AspectLib
- Dependency Management: Component wiring and lifecycle via Dependency Injector
- Flat Abstraction Hierarchy: Core abstractions exist at the same conceptual level without artificial nesting
- Composable Architecture: Higher-level components built from compositions of simpler patterns
9. Implementation Timeline β
- May 20-26, 2025 π§
- Implement streaming chat feature slice
- Build agent delegation feature slice
- Create examples demonstrating both features
- Implement core services: event, buffer, state
- Core components: EventBus, StateProjector
- May 26 - June 1, 2025 π
- Implement knowledge retrieval feature slice
- Build multi-provider routing feature slice
- Create examples demonstrating both features
- Implement core services: registry, resources
- Core components: TemporalStore, Container
- June 1-7, 2025 π²
- Implement workflow execution feature slice
- Build command CLI feature slice
- Create examples demonstrating both features
- Implement core services: commands, perspective
- Core components: QuantumPartitioner, PerspectiveAware
- June 7-14, 2025 π²
- Implement system-level integration
- Complete documentation
- Add comprehensive examples
- Final polish and cleanup
- Full performance optimization
10. Key Benefits of Feature-Driven Approach β
- Functional Value Earlier: Users can see and test working features sooner
- Reduced Implementation Risk: Early validation of architectural patterns
- Better Prioritization: Resources focused on most important features first
- Incremental Architecture Adoption: Clean break principles applied incrementally
- Natural Integration Points: Features align with user expectations
- Parallelization Opportunity: Multiple vertical slices can be developed concurrently
- Easier Progress Tracking: Feature completion provides clear metrics
11. Schema Layer and Third-Party Integration β
Each feature slice integrates specific third-party libraries and includes comprehensive schema validation through Marshmallow:
11.1 Feature-Library Integration Summary β
Feature Slice | Primary Libraries | Key Capabilities |
---|---|---|
Streaming Chat | Blinker, Pyrsistent, Effect | Event communication, immutable state, side effect tracking |
Agent Delegation | Eventsourcing, Blinker, DiffSync | Temporal state, messaging, synchronization |
Knowledge Retrieval | Marshmallow, AspectLib, Dependency Injector | Schema transformation, cross-cutting concerns, service discovery |
Multi-Provider Routing | Dependency Injector, Effect, DiffSync | Container management, provider effects, state sync |
Workflow Execution | TaskMap, Blinker, Pyrsistent | Parallel execution, event coordination, immutable workflows |
Command CLI | Marshmallow, Dependency Injector, AspectLib | Command validation, service resolution, cross-cutting extensions |
11.2 Schema Design Approach β
Marshmallow schemas provide unified validation, serialization, and documentation with:
- Input/Output Validation: Type and structure validation
- Data Transformation: Format conversion and perspective views
- Documentation: Auto-generated API documentation
- Version Management: Schema evolution and migration
- Composition: Complex schemas through inheritance and nesting
- Cross-Slice Integration: Consistent interoperability patterns
11.3 Library Integration Strategy by Feature Slice β
Each vertical feature slice integrates the appropriate third-party libraries to deliver its specific functionality:
Streaming Chat Feature Libraries β
Blinker Integration for EventBus:
- Implements reactive event communication patterns
- Uses Signal objects with weak references for subscribers
- Creates thread-safe event publication with locking strategies
- Implements middleware pipeline for event transformation
- Provides bounded event history for debugging
- Performance optimizations:
- Partitioned signals for high-volume event types
- Optimized event dispatch for frequently triggered events
- Weak reference management to prevent memory leaks
Marshmallow Integration for Streaming Schemas:
- Creates StreamingResponseSchema for strict validation
- Implements TokenSchema hierarchy with polymorphic deserialization
- Provides ResponseMetadataSchema for tracking metrics
- Enables schema-based serialization for persistence
- Performance optimizations:
- Schema instance caching for repeated validations
- Partial serialization for streaming content
- Lazy field resolution for complex objects
Pyrsistent Integration for Immutable State:
- Uses PRecord for immutable state representation
- Implements structural sharing for efficient updates
- Creates delta tracking for state changes
- Provides thread-safe immutable state handling
- Performance optimizations:
- Focused record updates to minimize copying
- Cached state transformations for frequent operations
- Efficient structural sharing algorithms
Effect Integration for Streaming Side Effects:
- Tracks side effects in streaming operations
- Implements effect composition for complex operations
- Creates testable effect handlers for streaming behavior
- Provides effect monitoring and analysis tools
- Performance optimizations:
- Batched effect processing for improved throughput
- Selective effect tracking based on context
- Optimized effect handlers for common patterns
Agent Delegation Feature Libraries β
Eventsourcing Integration for TemporalStore:
- Implements event-sourced agent state
- Creates domain events for agent state transitions
- Provides snapshotting for performance optimization
- Implements versioned event repository
- Performance optimizations:
- Strategic snapshot intervals for efficient reconstruction
- Optimized event serialization for storage efficiency
- Selective event loading for large event streams
Dependency Injector Integration for Agent Management:
- Creates container registry for different agent types
- Implements runtime dependency resolution for agents
- Provides lifecycle management for agent resources
- Creates factory patterns for dynamic agent creation
- Performance optimizations:
- Singleton patterns for shared agent resources
- Lazy initialization for resource-intensive agents
- Optimized wire-up for complex dependency graphs
Marshmallow Integration for Agent Schemas:
- Implements AgentSchema hierarchy for different agent types
- Creates MessageSchema with validation rules
- Provides TaskSchema for agent tasks
- Enables schema inheritance for specialized agents
- Performance optimizations:
- Field-level serialization control for large messages
- Schema specialization with inheritance
- Optimized validation paths for frequent operations
DiffSync Integration for Agent State Synchronization:
- Implements bidirectional state synchronization
- Creates conflict resolution strategies
- Provides incremental state updates
- Implements change tracking and reconciliation
- Performance optimizations:
- Optimized diffing algorithms for large state
- Efficient change representation
- Selective synchronization based on change significance
Knowledge Retrieval Feature Libraries β
Marshmallow Integration for Document Schemas:
- Implements complex DocumentSchema with nested structures
- Creates ChunkSchema with metadata tracking
- Provides EmbeddingSchema for vector representation
- Implements schema inheritance for document types
- Performance optimizations:
- Partial loading for large documents
- Cached schema transformations
- Optimized validation for document batches
AspectLib Integration for Cross-Cutting Concerns:
- Implements logging aspects for retrieval operations
- Creates metrics collection across the retrieval pipeline
- Provides error handling aspects
- Implements caching aspects for performance
- Performance optimizations:
- Selective aspect application based on context
- Optimized aspect weaving for critical paths
- Cached woven objects for frequent operations
Pyrsistent Integration for Immutable Documents:
- Implements immutable document representation
- Creates efficient document transformation pipeline
- Provides structural sharing for document parts
- Implements delta-based document updates
- Performance optimizations:
- Optimized structure for document-specific patterns
- Cache optimizations for document fragments
- Memory-efficient representation for large documents
Dependency Injector Integration for Retrieval Services:
- Creates service registry for retrieval components
- Implements swappable retrieval strategy pattern
- Provides component lifecycle management
- Creates factory methods for specialized retrievers
- Performance optimizations:
- Resource pooling for database connections
- Optimized component initialization
- Service discovery with capability matching
Multi-Provider Routing Feature Libraries β
Dependency Injector Integration for Provider Registry:
- Implements provider container with capability discovery
- Creates factory patterns for provider instantiation
- Provides dependency resolution for provider requirements
- Implements provider lifecycle management
- Performance optimizations:
- Lazy provider initialization
- Optimized dependency resolution
- Cached provider instances
Effect Integration for Provider Operations:
- Tracks provider side effects explicitly
- Implements effect isolation between providers
- Creates testable provider behavior
- Provides composition of provider effects
- Performance optimizations:
- Batched effect handling for common operations
- Optimized effect handlers for provider-specific patterns
- Effect caching for expensive operations
Marshmallow Integration for Provider Schemas:
- Creates ProviderSchema with capability description
- Implements CapabilitySchema for feature detection
- Provides RoutingSchema for selection strategies
- Creates schema-based configuration validation
- Performance optimizations:
- Cached schema instances for frequent validation
- Optimized deserialization for provider responses
- Schema specialization for different provider types
DiffSync Integration for Provider State:
- Implements provider state synchronization
- Creates change tracking for provider operations
- Provides conflict resolution for multi-provider operations
- Implements incremental state updates
- Performance optimizations:
- Efficient change detection algorithms
- Optimized reconciliation for provider-specific patterns
- Selective synchronization based on criticality
Workflow Execution Feature Libraries β
TaskMap Integration for QuantumPartitioner:
- Implements dependency-based parallel execution
- Creates DAG representation for task workflows
- Provides sophisticated dependency resolution
- Implements efficient task scheduling
- Performance optimizations:
- Adaptive task granularity
- Work stealing for load balancing
- Optimized critical path execution
Pyrsistent Integration for Workflow State:
- Creates immutable workflow definition
- Implements structural sharing for workflow updates
- Provides incremental workflow execution state
- Creates efficient workflow transformations
- Performance optimizations:
- Optimized representation for complex workflows
- Cached workflow state transitions
- Memory-efficient incremental updates
Blinker Integration for Workflow Events:
- Implements event-driven workflow execution
- Creates specialized workflow event types
- Provides task coordination through events
- Implements workflow lifecycle events
- Performance optimizations:
- Optimized event routing for workflow phases
- Selective notification for specific workflow states
- Efficient event propagation patterns
Effect Integration for Workflow Side Effects:
- Tracks side effects in workflow execution
- Implements composable effect handlers
- Creates testable workflow behavior
- Provides monitoring of workflow effects
- Performance optimizations:
- Batched effect processing for task groups
- Parallelized effect handlers
- Optimized effect execution strategies
Command CLI Feature Libraries β
Marshmallow Integration for Command Schemas:
- Implements CommandSchema with parameter validation
- Creates ResultSchema for command output
- Provides schema-based help text generation
- Creates interactive documentation from schemas
- Performance optimizations:
- Cached schema instances for frequent commands
- Optimized validation for interactive use
- Incremental schema parsing for large commands
Dependency Injector Integration for CLI Services:
- Creates service registry for CLI components
- Implements plugin architecture for commands
- Provides command dependency resolution
- Creates factory patterns for command instantiation
- Performance optimizations:
- Lazy command initialization
- On-demand service loading
- Cached command instances
AspectLib Integration for Command Concerns:
- Implements logging aspects for all commands
- Creates permission checking aspects
- Provides timing aspects for performance tracking
- Implements retry aspects for resilience
- Performance optimizations:
- Selective aspect application based on command
- Optimized aspect composition for common patterns
- Efficient aspect weaving for interactive use
Effect Integration for Command Side Effects:
- Tracks command execution effects
- Implements effect isolation between commands
- Creates mock effects for testing
- Provides effect monitoring for debugging
- Performance optimizations:
- Optimized effect handling for interactive use
- Effect caching for expensive operations
- Selective effect tracking based on verbosity
NEXT STEPS
Our immediate focus is completing the Streaming Chat feature slice with Blinker integration for the EventBus and Marshmallow schema validation, followed by Agent Delegation with Eventsourcing for the TemporalStore. This will allow us to demonstrate the core capabilities of the system while establishing the architectural patterns and third-party library integration that will be used throughout the implementation.
12. Marshmallow Schema Implementation β
The schema implementation provides a comprehensive validation, serialization, and documentation layer that runs through all feature slices. The Marshmallow library was chosen for its flexibility, extendability, and compatibility with Pythonβs type system.
12.1 Core Schema Architecture β
The schema architecture follows these key design principles:
- Inheritance Hierarchy: Schemas use a well-defined inheritance hierarchy to share common validation rules
- Protocol Alignment: Each schema aligns with a corresponding protocol definition
- Type Integration: Schemas integrate with Pythonβs typing system for IDE assistance
- Version Management: All schemas include versioning capabilities for evolution
- Composition Over Complexity: Complex schemas are built through composition of simpler ones
12.2 Schema Categories and Implementation β
Category | Base Class | Description | Key Implementations |
---|---|---|---|
Core Schemas | BaseSchema | Foundation for all schemas | VersionedSchema , PolymorphicSchema , RegistrableSchema |
Protocol Schemas | ProtocolSchema | Schema for protocol validation | BufferProtocolSchema , EventBusProtocolSchema , StateContainerProtocolSchema |
Data Structure Schemas | DataSchema | Schema for data validation | TokenSchema , EventSchema , StateSchema , MessageSchema |
Configuration Schemas | ConfigSchema | Schema for configuration validation | BufferConfigSchema , EventBusConfigSchema , ProviderConfigSchema |
Meta Schemas | MetaSchema | Schema for metadata validation | SchemaVersionSchema , SchemaRegistrySchema , SchemaDocumentationSchema |
12.3 Schema Implementation by Feature Slice β
Each feature slice implements comprehensive Marshmallow schemas for validation and serialization:
- Streaming Chat:
StreamingResponseSchema
,TokenSchema
,EventSchema
with timestamp validation and performance metrics - Agent Delegation:
MessageSchema
,AgentSchema
,TaskSchema
with correlation tracking and state management - Knowledge Retrieval:
DocumentSchema
,ChunkSchema
,EmbeddingSchema
with chunking strategy validation - Multi-Provider Routing:
ProviderSchema
,CapabilitySchema
with feature flags and performance characteristics - Workflow Execution:
WorkflowSchema
,TaskSchema
with dependency validation and retry strategies - Command CLI:
CommandSchema
,ParameterSchema
with permission control and usage examples
See Implementation Guide for implementation details.
12.4 Schema Registry Implementation β
The Schema Registry provides centralized schema discovery, validation, and version management with these key capabilities:
- Schema Registration: Automatic discovery and registration of schemas
- Class Mapping: Direct mapping between Python classes and their schemas
- Version Migration: Automated migration between schema versions
- Schema Discovery: Runtime schema lookup by name or class
See Implementation Guide for registry usage patterns.
12.5 Third-Party Library Integration Details β
The schema implementation integrates with key third-party libraries to provide comprehensive functionality:
Library | Integration | Function |
---|---|---|
Marshmallow | Core Schema Validation | - Data validation - Serialization/deserialization - Schema composition - Field-level validation |
Marshmallow-Dataclass | Type-to-Schema Conversion | - Convert Python dataclasses to schemas - Type-safe schema creation - IDE autocompletion support - Automatic dataclass generation |
Pyrsistent | Immutable Data Structures | - Immutable schema data integration - Thread-safe state representations - Efficient structural sharing - Immutable type validation |
Effect | Side Effect Management | - Tracked validation operations - Testable schema validation - Controlled serialization effects - Effect-managed transformation |
Dependency Injector | Container Integration | - Schema discovery and registration - Runtime schema resolution - Validator dependency injection - Schema factory components |
Eventsourcing | Schema Evolution | - Event-based schema tracking - Schema migration events - Versioned schema history - Temporal schema queries |
12.6 Schema Files and Implementation β
The implementation includes the following key schema files for each feature slice:
Feature Slice | Schema Files | Key Capabilities |
---|---|---|
Core Service | atlas/core/schema/base.py atlas/core/schema/version.py atlas/core/schema/registry.py atlas/core/schema/factory.py atlas/core/schema/migration.py | - Base schema classes - Version tracking - Schema registry - Factory utilities - Migration tools |
Streaming Chat | atlas/core/schema/buffer.py atlas/core/schema/event.py atlas/providers/schema/streaming.py | - Buffer configuration validation - Event bus message validation - Streaming response validation |
Agent Delegation | atlas/agents/schema/agent.py atlas/agents/schema/message.py atlas/agents/schema/task.py | - Agent configuration validation - Message format validation - Task definition validation |
Knowledge Retrieval | atlas/knowledge/schema/document.py atlas/knowledge/schema/chunk.py atlas/knowledge/schema/embedding.py | - Document structure validation - Chunk format validation - Embedding vector validation |
Multi-Provider Routing | atlas/providers/schema/provider.py atlas/providers/schema/capability.py atlas/providers/schema/routing.py | - Provider configuration validation - Capability definition validation - Routing rule validation |
Workflow Execution | atlas/orchestration/schema/workflow.py atlas/orchestration/schema/task.py atlas/orchestration/schema/dependency.py | - Workflow structure validation - Task definition validation - Dependency constraint validation |
Command CLI | atlas/cli/schema/command.py atlas/cli/schema/parameter.py atlas/cli/schema/result.py | - Command structure validation - Parameter definition validation - Result format validation |