You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rearchitect the EPISODIC memory tier to natively store chat conversations as log-structured, variable-length experience records with a reinterpreted 64B header and inline CBOR document bodies — replacing the current anti-pattern of routing raw chat turns through the full cognitive ingestion pipeline (SEMANTIC tier + embedding + HNSW + BM25 + SPLADE + Hebbian + entity extraction).
As a Spector agent, I want my chat conversations to be stored efficiently with sub-millisecond append latency and O(1) paginated retrieval, so that I can maintain rich conversation history without polluting my semantic knowledge base or paying unnecessary cognitive pipeline overhead.
Acceptance Criteria
EPISODIC tier uses reinterpreted 64B header: session_id (8B), role, sequence_id, body_length, timestamp — no Bloom filter, no importance, no emotional encoding
Chat turns stored as 64B header + inline CBOR body (variable-length, log-structured)
EpisodicLogMemory replaces fixed-stride EpisodicRecordMemory with append-only variable-length store
Summary
Rearchitect the EPISODIC memory tier to natively store chat conversations as log-structured, variable-length experience records with a reinterpreted 64B header and inline CBOR document bodies — replacing the current anti-pattern of routing raw chat turns through the full cognitive ingestion pipeline (SEMANTIC tier + embedding + HNSW + BM25 + SPLADE + Hebbian + entity extraction).
ADR: ADR-0006 (Episodic Conversation Architecture)
User Story
As a Spector agent, I want my chat conversations to be stored efficiently with sub-millisecond append latency and O(1) paginated retrieval, so that I can maintain rich conversation history without polluting my semantic knowledge base or paying unnecessary cognitive pipeline overhead.
Acceptance Criteria
Scope
IN scope (MVP):
OUT of scope (future):
Getting Started
cd /home/bharat/git/spector && mvn clean verify -T1Cmemory/spector-memory/.../kernel/layout/SynapticHeaderConstants.javamemory/spector-memory/.../cortex/EpisodicRecordMemory.java(to be replaced)memory/spector-memory/.../kernel/bundle/PartitionBundle.javamemory/spector-memory/.../DefaultSpectorMemory.javasynapse/spector-synapse/.../agent/chat/infrastructure/SpectorMemoryChatAdapter.javasynapse/spector-synapse/.../memory/MemoryService.javasynapse/spector-synapse/.../agent/memory/SpectorChatMemoryRepository.javaRICE-C Score