Expand description
Knowledge consolidation: detect fragmented memories that can be merged, and detect stale/superseded records that should be archived.
§Consolidation
Scans accepted/canonical records, clusters by entities/tags Jaccard similarity > 0.5, and suggests merging clusters of 3+ records.
§Pruning
Detects records that should be archived:
- Superseded: record A supersedes B, and A is accepted/canonical → B should be archived
- Expired:
valid_untildate has passed - Stale: not referenced in 180+ days AND not constraint/preference type
Structs§
Enums§
Functions§
- apply_
consolidation - Execute a consolidation: create merged record + archive fragments.
- apply_
prune - Execute pruning: archive each prunable record.
- detect_
consolidation_ candidates - Detect clusters of related accepted/canonical records that could be merged.
- detect_
prune_ candidates - Detect records that should be archived (superseded, expired, or stale).
- load_
entries - Load entries from the lifecycle store for a given config path.
- resolve_
lifecycle_ root - Resolve lifecycle root from config path.