From 08b74ec6d62944462a0a23fba1a4bc1a44524b45 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 14 Feb 2026 19:20:07 -0600 Subject: [PATCH] Fix decay baseline so new memories start Active instead of Fading Changed zero-access usage_factor from 0.5 to 1.0 in calculate_decay_score(). Previously, a freshly stored solution (importance=0.7, weight=1.2) scored 0.42 (Fading); now scores 0.84 (Active) as intended. Co-Authored-By: Claude Opus 4.6 --- skills/cognitive-memory/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/cognitive-memory/client.py b/skills/cognitive-memory/client.py index d36046e..07400f0 100644 --- a/skills/cognitive-memory/client.py +++ b/skills/cognitive-memory/client.py @@ -361,7 +361,7 @@ def calculate_decay_score( decay_score = importance * e^(-lambda * days) * log2(access_count + 1) * type_weight """ time_factor = math.exp(-DECAY_LAMBDA * days_since_access) - usage_factor = math.log2(access_count + 1) if access_count > 0 else 0.5 + usage_factor = math.log2(access_count + 1) if access_count > 0 else 1.0 return importance * time_factor * usage_factor * type_weight