memory_detect_supersessions
Find memories that have been updated or replaced by newer versions, then link them with 'supersedes' relationships. Scans existing memories to catch supersessions missed at write time.
Instructions
Detect memories that supersede (update/replace) other memories.
Scans existing memories for pairs where one is an evolved/updated version of another, then creates 'supersedes' edges between them. Complements memory_absorb which only catches supersessions at write time.
Uses neutral LLM classification (not biased by timestamps) to determine both the relationship type and direction.
Args: min_similarity: Minimum embedding similarity to consider (default: 0.55) limit: Maximum pairs to analyze with LLM (default: 20) dry_run: If True, preview detections without creating edges (default: True) tags_any: Only consider memories with any of these tags min_confidence: Minimum LLM confidence to accept (default: 0.75)
Returns: Dictionary with candidates found, analyzed count, detected supersessions, and detailed results for each pair.
Rate limited: 120s cooldown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| dry_run | No | ||
| tags_any | No | ||
| min_confidence | No | ||
| min_similarity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |