Skip to main content

Module cluster

Module cluster 

Source
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_until date has passed
  • Stale: not referenced in 180+ days AND not constraint/preference type

Structs§

ConsolidateApplyResult
ConsolidationSuggestion
PruneApplyResult
PruneSuggestion

Enums§

PruneReason

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.