TERRANOETIS

Memory system

Platform v3.0.0 Docs v3.0.0 MEASURED — memory subsystem reported “ok” in the measured health check

Full description: Read the full narrative

Two coexisting systems: the v1 PlanetaryMemorySystem (5 tiers, decay loop) and the v2 six-tier hierarchy with dedicated SQLite tables and a MemoryManagerV2 facade (store/buildContext/consolidate). The chat semantic cache (similarity threshold 0.7) is wrapped by an EnhancedCache.

v1 tiers (capacity / retention, from constructor)
TierCapacityRetentionHot path
sensory10,00060 sRedis (TTL 60 s) with SQLite fallback
working1,0001 hRedis (TTL 3600 s)
episodic10,0007 daysSQLite
semanticSQLite
procedural1,000SQLite
decay sweepevery 60 s (all tiers)See server/memory/memorySystem.ts:22,35-80
v2 tiers and backing tables
TierModuleSQLite tablesSource
SensorysensoryBuffer.ts (importance-ranked)sensory_bufferserver/memoryV2/sensoryBuffer.ts:32 server/db/schema.sql:332
WorkingworkingMemory.tsworking_memoryserver/memoryV2/workingMemory.ts:30 server/db/schema.sql:348
EpisodicepisodicMemoryV2.ts (outcome + consolidation flags)episodic_v2server/memoryV2/episodicMemoryV2.ts:92 server/db/schema.sql:363
SemanticsemanticMemory.tssemantic_entities / semantic_relationsserver/memoryV2/semanticMemory.ts:54 server/db/schema.sql:391-403
ProceduralproceduralMemoryV2.tsprocedural_v2server/memoryV2/proceduralMemoryV2.ts:25 server/db/schema.sql:418
PredictivepredictiveMemory.ts (ensemble models)predictive_models / prediction_log_v2server/memoryV2/predictiveMemory.ts:31 server/db/schema.sql:434-451
AspectDetailSource
Embeddings768-dim cosine (embedding.ts; Xenova MiniLM via Omninet)server/embedding.ts:4,78
FacadeMemoryManagerV2: store() / buildContext() / consolidate()server/memoryV2/memoryManagerV2.ts:27,57,172,239
HTTP surface/api/memory/working|episodes|facts|procedural|predictive|sensory|consolidate|status|statsserver/index.ts:12653-12836