apply_memento_confidence_decay
Applies automatic confidence decay to memory relationships based on last access time, maintaining knowledge base freshness through intelligent decay rules that vary by memory importance and type.
Instructions
Apply automatic confidence decay based on last access time.
Use for:
System maintenance to keep knowledge base fresh
Applying intelligent decay rules
Monthly confidence adjustment routine
Intelligent decay rules:
Critical memories (security, auth, api_key, password, critical, no_decay tags): NO DECAY
High importance memories: Reduced decay based on importance score
General knowledge: Standard 5% monthly decay (decay_factor=0.95)
Temporary context: Higher decay rate
Decay formula: monthly_decay = confidence × decay_factor^(months_since_last_access)
Minimum confidence: 0.1 (won't decay below this)
Returns:
Number of relationships updated
Summary of decay applied
Breakdown by memory type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | No | Optional memory ID. When provided, applies decay only to relationships of that specific memory (and updates their decay_factor based on the memory's importance and tags). When omitted, applies decay to all relationships system-wide. |