consolidate
Identify and merge duplicate notes, mark inactive threads as stale, deduplicate exact text matches, and release orphaned claims to maintain periodic memory hygiene.
Instructions
Periodic memory hygiene. dry_run=True (default) reports only.
merge_dup_notes : intra-thread cosine ≥ note_cosine, keep oldest idle_stale : active threads not touched in stale_days dedupe_verbatim : exact text + (if embeddings) cosine ≥ verbatim_cosine release_orphan : claim ≥ orphan_days old, no progress past claim mark
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| stale_days | No | ||
| orphan_days | No | ||
| note_cosine | No | ||
| verbatim_cosine | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |