A recurring piece of feedback on my chatbot-memory posts goes something like this: "The two-table pattern is fine for a tutorial, but is that really all that's in your agentic runtime?"
Fair question. The answer is no — the rolling-summary recipe and the structured-facts variant are teaching shapes. They show the minimum data model a developer needs to build conversation memory in our engine without taking a framework dependency. They are deliberately the floor.
The actual agentic runtime that ships with SynapCores Community Edition has substantially more in it. I haven't written about it because for most readers the floor is the right starting point — and because once I name the components I'm on the hook to keep them shipping. But the gap between "what the blog says" and "what the engine does" is now wide enough that I should close it. This post is the survey.
Everything below is code in crates/aidb-chat-agent/ on CE. None of it is roadmap. The file paths are real.
The four memory subsystems
The engine doesn't have one memory store. It has four, integrated by a UnifiedMemorySystem coordinator:
pub struct UnifiedMemorySystem {
pub memory_manager: Arc<AsyncMemoryManager>, // working / paging tier
pub semantic_index: Arc<RwLock<Vec<(Embedding, u64)>>>, // semantic memory
pub agent_memory: Arc<RwLock<AgentMemory>>, // episodic / experience
pub behavioral_memory: Arc<BehavioralMemory>, // behavioral / preferences
}
Semantic memory is the layer the blog posts cover — embeddings over text, cosine recall, the thing most people think of as "vector memory."
Episodic memory is AgentMemory.experiences — a typed record of tasks the agent attempted:
pub struct Experience {
pub task_id: String,
pub goal: String,
pub actions: Vec<String>,
pub result: String,
pub success: bool,
pub timestamp: i64,
}
That's a CoALA-style episodic record. Goals, actions taken, result, whether it worked. The agent retrieves similar past experiences when planning a new task — find_similar_experiences(goal) for keyword-matched recall, get_successful_pattern(goal_pattern) for the most-recent successful precedent.
Working memory is the AsyncMemoryManager — explicit Page structures, a BufferPool, and a configurable EvictionPolicy. This is the per-session active context the runtime pages in and out as the conversation moves.
Behavioral memory is the layer that doesn't appear in any short tutorial — and that's a gap I'm fixing in this post. It's structured user-profile state that the agent updates after every interaction. It looks like this:
pub struct Preference {
pub category: PreferenceCategory, // Communication, Topic, Tool, Workflow, ...
pub value: PreferenceValue,
pub confidence: f32, // 0.0 – 1.0
pub frequency: u32,
pub last_seen: DateTime<Utc>,
}
pub struct BehavioralPattern {
pub pattern_type: PatternType, // ResponseLengthPreference, ToolUsagePattern, ...
pub occurrences: Vec<PatternOccurrence>,
}
pub struct PersonalityTrait {
pub dimension: TraitDimension,
pub score: f32,
}
Confidence-weighted, frequency-tracked, recency-aware. After every recorded interaction, infer_behavioral_patterns(user_message, assistant_response) updates this state — preferred response length, tool-usage patterns, timing patterns, the works. None of it lives in a prose summary.
The thing the rolling-summary tutorial doesn't show: exponential decay
Buried in behavioral/behavioral.rs is the recency model the floor recipes leave out:
// Recency weight (exponential decay, half-life of 30 days)
let recency_weight = 0.5_f32.powf(days_since / 30.0);
...
let weight = pref.confidence * recency_weight * frequency_weight;
That's the Generative Agents weighting formula — confidence × recency × frequency — applied to user preferences. A preference the user expressed once six months ago weighs much less than one they expressed three times in the last week. The agent's "what does this user want" answer at any moment is a weighted view, not a raw lookup.
The two-table tutorial uses pure cosine because pure cosine is enough for the lesson. The runtime uses confidence-weighted recency-decayed retrieval because that's what actually works.
Tool-mediated self-editing memory
The runtime is not a passive database that the LLM reads at the start of every turn. Every memory tier has explicit write tools, and the DecisionEngine chooses when to invoke them:
pub enum Decision {
Respond(String),
ExecuteTool(ToolCall),
AskForClarification(String),
Delegate(String),
}
When the agent encounters a fact worth keeping, it calls a tool that writes to the right memory tier. behavioral_memory.record_pattern(...) for a behavioral fact, agent_memory.add_experience(...) for an episodic record, semantic-index push((embedding, page_id)) for retrieval anchors. This is the MemGPT/Letta self-editing pattern, implemented as a tool registry instead of a hard-coded paging UX.
The recipes don't show this because tool-mediated memory writes are an agent-loop concept, not a SQL concept. But they are in the engine, and they are the substrate on which any production agent built on SynapCores actually runs.