Consolidate memory
zenbrain_consolidateConverts recent emotional episodes into semantic facts and prunes low-relevance working-memory slots in one pass. Use between sessions or after storing data.
Instructions
Run one consolidation pass: among the 100 most recent episodes, each one with an emotional weight above 0.5 becomes a semantic fact — once, however often the pass runs. Working-memory slots lose relevance with age, and slots whose relevance has dropped to 0.01 or below are removed; that is the only deletion, and nothing in long-term memory is deleted. Run it between sessions or after a batch of zenbrain_store calls, not on every turn; compare zenbrain_health before and after to see the effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pruned | Yes | Always 0: consolidation deletes nothing from long-term memory. | |
| decayed | Yes | Working-memory slots decayed. | |
| promoted | Yes | Episodes promoted to semantic facts in this pass. |