Metis · Memory Curator — Consolidate Old Memories
consolidate_old_memoriesCompress old episodic decisions, session summaries, and reflexions into monthly summaries, then archive originals to maintain fast recall. Run with dry_run to preview changes.
Instructions
Consolidate old memories into monthly summaries and archive originals.
Tiered retention keeps recall() fast by compressing old raw entries into
distilled summaries while preserving the knowledge:
1. **Episodic decisions** older than decision_age_days (default 90) are
grouped by month and project, summarised into a single consolidated
entry per group, and the originals are marked archived=1 (excluded
from default recall but still queryable).
2. **Session summaries** older than session_age_days (default 180) are
marked archived=1 so they don't clutter keyword search.
3. **Reflexions** are consolidated monthly — patterns are distilled
into a single "what we learned in month X" entry.
Run with dry_run=True first to see what would happen without changes.
Args:
decision_age_days: Archive episodic decisions older than this (default 90).
session_age_days: Archive session summaries older than this (default 180).
dry_run: If True, report what would be done without making changes.
Returns:
A report of consolidation actions taken (or planned if dry_run).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| session_age_days | No | ||
| decision_age_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |