Everyone builds agent memory for store-and-search. I built the other half: write and delete.
说明与用途
memgovern 为代理记忆添加写入、删除和冲突处理功能,实现衰减、可逆删除和手动冲突解决。
问题
Agent memory systems focus on storing and retrieving embeddings but ignore how memories should be written, deleted, and reconciled when conflicting.
结果
memgovern adds write, delete, and conflict handling to agent memory, enabling decay, reversible deletions, and manual conflict resolution.
工作流
- Initialize MemoryStore with conflict_policy=MANUAL
- Write a memory with importance
- Write a conflicting memory on same key
- Resolve conflict by choosing winner
- Delete a memory with a reason
- Audit a key to view history
证据
memgovern treats these as first-class operations. Zero dependencies, SQLite under the hood:
Decay: memories carry importance + TTL; queries rank by exponential-decay score, not recency alone.
Tombstones: deletes are tombstones, not erasures — reversible, with a reason attached, full audit trail.
Conflict arbitration: a contradictory write on the same key is quarantined as PENDING. You pick the winner (new / old / both / human decides) instead of silently clobbering.
- 记录日期: 2026-10-01T18:56:06.020Z