Electra Archon
SEED Architecture Implementation for the Electra Archon wizard.
SEED Architecture
SEED stands for State-Event-Entity-Domain - a modular architecture for building resilient, auditable systems.
Components
- State - Immutable snapshots of entity state with versioning
- Event - Pub/sub system for inter-component communication
- Entity - Core domain objects with identity
- Domain - Business logic and rules
Project Structure
electra-archon/
├── schemas/ # JSON schemas for data validation
│ └── state.json # State schema definition
├── models/ # Python data models
│ └── state.py # State dataclass implementation
├── docs/ # Documentation
│ └── state-schema.md
├── tests/ # Test suite
│ └── test_state.py
└── pytest.ini # Test configuration
Quick Start
from models.state import State, StateType, StateMetadata
import uuid
# Create a state
state = State.create(
entity_id=str(uuid.uuid4()),
state_type=StateType.ACTIVE,
payload={"status": "running"},
metadata=StateMetadata(source="electra", tags=["seed"])
)
# Serialize
json_str = state.to_json()
Running Tests
pytest tests/ -v
Backlog
See Issues for current backlog:
- Issue #3: Design Electra State Schema for SEED Architecture ✅
- Issue #4: Implement Event Bus for Inter-Archon Communication
- Issue #5: Create Entity Resolution Service
License
MIT
Description
Languages
Python
100%