tsift-memory
First-party memory substrate for tsift and agent-doc.
This crate owns the stable memory schema, budgeted capture contracts, graph projection primitives, 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 version1.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.project_memory_eventsmaps memory events into provider-neutral graph nodes/edges.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-db refresh can project matching
claude-memobservations, session summaries, user prompts, and adjacent Chroma handles as read-only semantic/session/source rows without taking over capture ownership.