Consolidate memory
zenbrain_consolidateRun one consolidation pass to turn emotionally weighted recent episodes into semantic facts once and remove only stale working-memory slots; long-term memory stays intact. Use between sessions.
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 removed by decay (relevance at or below 0.01). | |
| promoted | Yes | Episodes promoted to semantic facts in this pass. |