Skip to main content

Module consolidate

Module consolidate 

Source
Expand description

Topic-document consolidation primitive (v0.5.0).

Anchored on Infini-Memory (arXiv:2606.10677) — “each topic document serves as a semantic unit for collecting related evidence, preserving metadata, and revising facts over time.”

execute groups a caller-chosen set of member memories into a single revisable topic document: it collects evidence (the member ids), it preserves provenance (per-member source, timestamp, confidence), it supports fact revision (supersede an earlier topic document while keeping the old row and the hash-chain history), and the result is retrievable as a unit (a normal recallable MemoryRecord plus consolidated_from relations).

This is the caller-driven, by-id, revisable sibling of the offline tag-cluster pass in super::lifecycle::run_consolidation. It is deterministic (no LLM): with no caller summary, the document content is a stable join of the member contents ordered by (created_at, id), so the same inputs always yield the same document. Being a plain engine primitive, it flows identically through MCP, REST, and gRPC.

Structs§

ConsolidateRequest
Request to consolidate a set of member memories into one topic document.
ConsolidateResponse
Result of a consolidation.

Functions§

execute