[EPIC] Memory: pluggable provider architecture with file-backed persistence #712

Closed
opened 2026-10-27 13:37:26 +00:00 by sam · 0 comments
Owner

Pluggable memory system to match Hermes parity:\n\n1. MemoryProvider interface: Abstract interface with methods for initialize(), get_tool_schemas(), prefetch(), sync_turn(), and optional lifecycle hooks (on_session_end, on_session_switch, on_pre_compress, on_memory_write).\n\n2. Built-in file-backed memory: MEMORY.md and USER.md stored per-session/profile. LLM-callable memory tool with add/replace/remove actions. Frozen snapshot at session start (preserves prefix cache), immediate disk write on updates. Section-sign delimited entries with substring matching.\n\n3. MemoryManager: Orchestrates built-in + at most one external provider. Background serialized write executor. Prefetch with timeout (8s). Streaming context scrubber that strips injected memory spans from model output.\n\nRef: docs/prds/hermes-gap-analysis.md section 4

Acceptance Criteria

An external memory provider (e.g. Honcho, Mem0) can be plugged in via config. The built-in memory tool persists across sessions. Conversation context is recalled on session resume.


Imported from beads archie-core-1786637494691-187-3f76aa73 · GitHub #208 · type epic · priority P2 · created 2026-08-08 · closed 2026-08-08

Pluggable memory system to match Hermes parity:\n\n1. **MemoryProvider interface**: Abstract interface with methods for initialize(), get_tool_schemas(), prefetch(), sync_turn(), and optional lifecycle hooks (on_session_end, on_session_switch, on_pre_compress, on_memory_write).\n\n2. **Built-in file-backed memory**: MEMORY.md and USER.md stored per-session/profile. LLM-callable memory tool with add/replace/remove actions. Frozen snapshot at session start (preserves prefix cache), immediate disk write on updates. Section-sign delimited entries with substring matching.\n\n3. **MemoryManager**: Orchestrates built-in + at most one external provider. Background serialized write executor. Prefetch with timeout (8s). Streaming context scrubber that strips injected memory spans from model output.\n\nRef: docs/prds/hermes-gap-analysis.md section 4 ### Acceptance Criteria An external memory provider (e.g. Honcho, Mem0) can be plugged in via config. The built-in memory tool persists across sessions. Conversation context is recalled on session resume. --- _Imported from beads `archie-core-1786637494691-187-3f76aa73` · GitHub #208 · type epic · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumepic labels 2026-10-27 13:37:26 +00:00
sam self-assigned this 2026-10-27 13:37:26 +00:00
sam closed this issue 2026-10-27 13:37:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#712