memory_dream
Consolidate recent memories into canonical facts and knowledge graph structures. Manage the dream process with status, pull, run, deep, runs, and rollback actions.
Instructions
Drive the dream — consolidation of recent memories into canonical facts and graph structure.
Actions:
status: backlog + whether a sweep would fire. Read-only.
pull: unconsolidated memories, oldest first; write facts via
memory_fact_set, then commit.
run: a server-side dream with the configured extractor
(loop to drain).
deep: full-corpus graph consolidation; dry run unless
apply. Settle candidates via
memory_graph_review; duplicate lesson/world slots are
listed for hand curation.
runs: recent dream passes (tallies, status).
rollback: revert a committed pass from its journal (facts +
events; traces/cursor kept).
Returns: per-action dict; {error} on bad input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | deep: True writes the consolidation (graph tables are snapshotted first); the default is a dry run. | |
| limit | No | pull/run: how many memories to process (pull defaults to 40). runs: how many passes to list (defaults to 10). | |
| action | Yes | ||
| cursor | No | commit: the newest pulled timestamp. Required for that action. | |
| run_id | No | rollback: which pass to revert; defaults to the newest committed pass. | |
| snippets | No | deep: False omits the evidence snippets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||