memory_digest
Aggregate related memories, TODOs, and issues into a deterministic digest for current context. Returns source IDs for inspection.
Instructions
Return a deterministic digest of memories related to a topic.
The digest is an aggregation surface for agents that need current context, not a narrative generator. It combines active hybrid-search hits, optional supersession lineage, related memory ids, and matching TODO/issue memories. Raw source ids are always returned so callers can inspect primitives if the digest is too broad or too narrow.
Args: topic: Subject to digest. k: Maximum active search hits and TODO/issue matches to include. include_lineage: Include supersession history for active hits. include_todos: Include matching memora/todos and memora/issues entries. include_related_hops: Number of cross-reference hops to collect, capped at 3. synthesize: Reserved for future LLM synthesis. False by default. preview_chars: Preview length per returned memory. tags_any: Restrict hybrid search and discovered TODO/issue matches to memories with any of these tags. tags_all: Restrict hybrid search and discovered TODO/issue matches to memories with all of these tags. metadata_filters: Optional metadata filters. date_from: Optional created_at lower bound (ISO or relative like "7d"). date_to: Optional created_at upper bound (ISO or relative like "7d"). seed_ids: Explicit memory ids to include as source memories and expand lineage/related from. debug: Include ranked candidates, applied filters, and seed/filter notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| k | No | ||
| include_lineage | No | ||
| include_todos | No | ||
| include_related_hops | No | ||
| synthesize | No | ||
| preview_chars | No | ||
| tags_any | No | ||
| tags_all | No | ||
| metadata_filters | No | ||
| date_from | No | ||
| date_to | No | ||
| seed_ids | No | ||
| debug | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |