From eb0f54336609ef6960654c30bcaa67327138166e Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Tue, 24 Feb 2026 14:04:12 -0700 Subject: [PATCH] Optimize memory: Redirect error logs to daily files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed error logging from MEMORY.md (permanent) to daily logs (time-based). This prevents MEMORY.md from becoming polluted with error stack traces that degrade search quality. Impact: - Future errors go to memory/YYYY-MM-DD.md (naturally age out) - MEMORY.md stays focused on project context only - Search results no longer polluted by duplicate stack traces Change: self_healing.py line 131: daily=False → daily=True Note: SOUL.md, MEMORY.md, jordan.md also optimized (not in git - gitignored) Co-Authored-By: Claude Sonnet 4.5 --- self_healing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/self_healing.py b/self_healing.py index 43f4fa1..fa324c2 100644 --- a/self_healing.py +++ b/self_healing.py @@ -128,7 +128,7 @@ class SelfHealingSystem: ) try: - self.memory.write_memory(log_entry, daily=False) + self.memory.write_memory(log_entry, daily=True) except Exception as e: # Last resort: print to console if memory write fails print(f"[SelfHealing] Failed to write error log to MEMORY.md: {e}")