1.4 KiB
1.4 KiB
Feature Plan: Agent Knowledge Memory Foundation (Pre-11/12)
Goal
Establish a scalable, queryable memory substrate so wiki and MCP features can rely on fast retrieval instead of markdown-file scans.
Why This Comes Before 11/12
- Plan 11 (personal memory) needs performant retrieval and indexing guarantees.
- Plan 12 (MCP wiki/tools) needs a stable backend abstraction independent of UI and tool transport.
Scope
- Pluggable memory search backend interface.
- Default Django backend for zero-infra operation.
- Optional Manticore backend for scalable full-text/vector-ready indexing.
- Reindex + query operational commands.
- System diagnostics endpoints for backend status and query inspection.
Implementation Slice
- Add
core/memory/search_backend.pyabstraction and backends. - Add
memory_search_reindexandmemory_search_querymanagement commands. - Add system APIs:
- backend status
- memory query
- Add lightweight Podman utility script for Manticore runtime.
- Add tests for diagnostics and query behavior.
Acceptance Criteria
- Memory retrieval works with
MEMORY_SEARCH_BACKEND=djangoout of the box. - Switching to
MEMORY_SEARCH_BACKEND=manticorerequires only env/config + container startup. - Operators can verify backend health and query output from system settings.
Out of Scope
- Full wiki article model/UI.
- Full MCP server process/tooling.
- Embedding generation pipeline (next slice after backend foundation).