Architecture Overview
CogMem is designed as a framework-agnostic, self-evolving knowledge layer that any AI agent can plug into. At its core is the Knowledge Kernel — a deterministic system that governs how information becomes knowledge. Above it sits the Adaptive Cognitive Plane (ACP) — a control layer that learns how to organize that knowledge more effectively over time.Design Principles
Contract-First
Core contracts define interfaces without importing provider clients
Provider Isolation
Database clients live behind provider implementations
Event-Driven
Agents communicate via outbox events for loose coupling
Multi-Tenant
Every object scoped by tenant_id for isolation
Structure as Hypothesis
Every structural choice is a testable hypothesis, not a fixed decision
Safe Self-Evolution
All structural changes are proposed, reversible, and auditable
System Layers
Data Flow
Ingestion Flow
Query Flow
Self-Evolution Flow
Core Domain Objects
Import Rules
Next Steps
Adaptive Cognitive Plane
How the system evolves itself
Knowledge Kernel
Explore the cognitive core
Contracts
Learn about core interfaces
Knowledge Workflows
See workflow strategies