|
| 1 | +# RFC: Kaelis Memory Extension for Shared Persistent Memory |
1 | 2 |
|
| 3 | +## Summary |
| 4 | +This RFC proposes a set of MCP tools extending the Model Context Protocol with shared persistent memory capabilities, including multi-agent collaboration spaces, permission management, version control, and self-evolving memory. |
| 5 | + |
| 6 | +## Motivation |
| 7 | +Current MCP tools are well-suited for stateless interactions, but multi-agent collaboration lacks a shared persistence layer for long-running tasks. This extension provides: |
| 8 | +- Shared memory spaces with fine-grained permissions |
| 9 | +- Full-text search (FTS5) across memories |
| 10 | +- Optimistic locking for concurrent access |
| 11 | +- Self-evolving memory optimisation |
| 12 | +- Semantic publish-subscribe for memory change notifications |
| 13 | + |
| 14 | +## Specification |
| 15 | +Five new MCP tools are proposed: |
| 16 | + |
| 17 | +### memory_remember |
| 18 | +Write or update a shared memory in a collaborative space. |
| 19 | + |
| 20 | +### memory_recall |
| 21 | +Search memories within a shared space. |
| 22 | + |
| 23 | +### memory_forget |
| 24 | +Delete a memory with audit trail. |
| 25 | + |
| 26 | +### memory_evolve |
| 27 | +Trigger self-evolution on specified memories. |
| 28 | + |
| 29 | +### memory_subscribe |
| 30 | +Subscribe to memory changes matching tags or patterns. |
| 31 | + |
| 32 | +Full JSON schemas are available in the reference implementation. |
| 33 | + |
| 34 | +## Security Considerations |
| 35 | +- Four-tier role model: owner, admin, writer, reader |
| 36 | +- All write/delete operations are audited |
| 37 | +- Optimistic locking prevents concurrent modification conflicts |
| 38 | + |
| 39 | +## Reference Implementation |
| 40 | +Kaelis project: https://github.com/Alex-conder/Kaelis-archive |
| 41 | +Implementation files: `core/shared_memory_space.py`, `core/mcp/server.py` |
| 42 | + |
| 43 | +## Backward Compatibility |
| 44 | +This extension does not modify existing MCP protocol behaviour. All new tools are optional. |
0 commit comments