prune_stale_links
Remove stale memory graph edges and orphan nodes to maintain an optimized, lean graph structure by eliminating low-weight connections and unused elements.
Instructions
Remove stale memory graph edges whose weight has decayed below threshold via e^(-λt) formula. Also removes orphan nodes with no edges, low access count, and >7 days since last access. Keeps the graph lean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Minimum decayed weight to keep an edge. Default: 0.15. Lower = keep more edges. |