Architecture
System Components
| Component | Responsibility |
|---|---|
| Kernel | Central orchestrator, manages lifecycle. Pure Python, dependency-free. |
| Memory Manager | Manages MemoryStream, handles Entropy Pruning (archiving low-mass events). |
| Fusion Engine | Background thread pool for similarity search using DBSCAN and Semantic Embeddings. |
| JIT Renderer | Decoupled Interpretation Service. Derives meaning from events at runtime. |
| Source Registry | [NEW] Epistemological Authority. Verification of event origin, type (Sensor/AI), and reputation. |
| Services | Pluggable logic modules (ML, Analytics, Cognitive Firewall). |
| Source modules | Hermes, Moltbook, etc. — pluggable. System works when any module is enabled or disabled. |
| Protocols | Interfaces for outside world: HTTP (8003), UDP (8004), gRPC (50051), GraphQL, WebSocket. |
Data Flow
- Ingest: Data enters via HTTP/UDP/gRPC.
- Origin Check: [NEW] Source Registry validates
source_idand checks Reputation/Signature. - Fusion Check: Fusion Engine checks for similar events in the buffer (Weighted by Source Reputation).
- Persistence: Event is appended to
MemoryStream(RAM) andindb.bin(Disk, Encrypted). - Replication:
- Leader writes to
raft.log. - Parallel RPCs sents to Followers.
- Upon Quorum, entry is Committed.
- Leader writes to
- Retrieval:
interpret()request arrives at HTTP Protocol. - Firewall:
CognitiveFirewallinspects event against Context rules. - JIT Render:
JITRendererService scores/mutates events based on Context (Decoupled from Storage). - Response: Signed and compressed response is returned to Agent.
Storage Format
- Memory: Python Objects (
Eventclass). - Disk:
indb.bin: Custom binary format (Encrypted BSON chunks).raft.log: Write-Ahead Log (WAL) for Consensus State (MessagePack).- Header: Magic Bytes + Version
- Payload: ChaCha20-Poly1305 Encrypted BSON chunks (indb.bin only)