tsift-memory
First-party memory substrate for tsift and agent-doc.
This crate owns the stable memory schema, budgeted capture contracts, and migration importers. It treats external memory tools such as claude-mem as import sources instead of durable runtime dependencies.
Current surfaces:
MemoryStoreinitializes.tsift/memory.dbwith schema version2.read_memory_events_with_policyreads bounded memory slices with explicitrecent_first,oldest_first, orquery_relevantpolicies, andmemory_read_watermarkhashes the selected event set plus memory-table high water marks for projection freshness.plan_capture_handoffestimates tokens before model calls and reports split/defer decisions.guard_memory_handofffails closed on oversized raw payloads and emits digest/context replacements plus retryable chunk commands.inspect_claude_memandread_claude_mem_eventsinspect the observedclaude-memSQLite schema without writing to it.import_claude_memoptionally migrates those events into the tsift memory DB; uncapped imports report per-table source/read/import reconciliation and capped event-id samples so operators can prove all supported rows were covered without oversized JSON.
Graph/RAG behavior lives in tsift-memgraphrag, which depends on this crate for
events and imports. tsift-memory does not depend back on MemGraphRAG.