batch_promote
Promote expiring short-term memories to permanent storage to prevent loss of context. Supports dry-run mode to preview candidates before committing.
Instructions
Automatically promote expiring short-term memories from demo.memories to permanent long-term storage (demo.marsvault_chunks). Scans for memories that will expire within the alert window, then chunks and ingests each one with vector embeddings. Use this to prevent valuable context from being lost when short-term memories expire. Supports dry-run mode to preview candidates before committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert_window_hours | No | Look-ahead window in hours. Memories expiring within this window are candidates for promotion (default 48). | |
| max_promote | No | Maximum number of memories to promote in a single batch (default 10). | |
| dry_run | No | When true, list candidate memories without actually promoting them. Use to preview before committing. | |
| memory_ids | No | Explicit list of short-term memory UUIDs to promote. When provided, auto-detection is skipped and only these IDs are processed. | |
| origin | No | Origin marker tagged on all promoted chunks for traceability | batch-promote |