3Written to touchstones table with the emotional register intact
4Optionally linked to a session via link_touchstone(touchstone_id, session_lineage)
Conversation write path
1A design or architecture discussion deserves persistence — not just the outcome but the thread
2create_conversation(title, topic, topic_tags) — creates the container
3add_conversation_entry(conversation_id, entry_type, author, body) — appends each turn
4Entries are append-only. The conversation accumulates; nothing is revised or overwritten
Flow 2
Retrieve — How Ren wakes up
One call. One round-trip. Everything needed to start working — no scanning, no reconstruction from fragments.
The sweep rule at session close: The open threads and next steps that appear in the wake bundle must be read back — from the bundle or a fresh pull if stale — before writing the close. Anything this session's work actually resolved must be marked via update_session_element before the atomic close_session call. This prevents closed items from accumulating indefinitely. The incident that prompted this rule: 43 working-state items on 2026-06-11, a third already done.
Flow 3
Search — Keyword discovery to targeted retrieval
When the wake bundle isn't enough — diving into history to find a specific session, decision, or conversation.
AND-matched keyword search: The Agent Memory Schema uses AND-matching — all query terms must appear in the record. This is intentionally different from Letta's semantic (pgvector) search. Keyword search is predictable and fast; you know exactly what you're looking for when you use it. For fuzzy or concept-based search across Ren's archival memory, use archival_memory_search (Letta Store 1).
T4 search (framework artifacts)
Framework project artifacts in the T4 store use the same AND-keyword pattern via search_t4(query, project_slug). Narrowing by project_slug prevents cross-project noise. Full record via get_t4_entry(project_slug, entry_type, entry_id).
Related docs
Memory Overview — the three stores and how they fit together
Memory Schema — all tables, attributes, and relationships