Skip to main content

Memory Architectures

This guide covers architectural patterns for using Z3rno’s four-tier memory system effectively. The core pattern is progressive consolidation: working memory flows into episodic memory, which is distilled into semantic memory, which informs procedural memory.

The Consolidation Pipeline

This mirrors how human memory works: short-term experiences are consolidated into episodic memories during sleep, repeated experiences become semantic knowledge, and practiced skills become procedural habits.

Pattern 1: Automatic Session Consolidation

The simplest pattern. Z3rno automatically consolidates working memories into episodic memories when a session ends.
After the session ends, the working memories are evicted and a consolidated episodic memory is created. The next time someone asks “has this user contacted support?”, the episodic memory will surface.

Pattern 2: Episodic-to-Semantic Promotion

When you notice the same fact appearing across multiple episodes, promote it to semantic memory for faster, more reliable recall.

Automated Pattern Detection

Build a periodic job that scans episodic memories for repeated themes:

Pattern 3: Procedural Learning

Extract behavioural patterns from successful interactions and store them as procedural memories.

Using Procedural Memory in Responses

Pattern 4: Full-Stack Memory Architecture

Combine all tiers into a complete memory system:

Architecture Decision Guide

Next Steps