memory_detect_supersessions
Analyze memory pairs to detect supersessions where one memory updates another, then create supersedes edges, using neutral LLM classification.
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 |
|---|---|---|---|
| min_similarity | No | ||
| limit | No | ||
| dry_run | No | ||
| tags_any | No | ||
| min_confidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |