Optimize memory: Redirect error logs to daily files

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 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 14:04:12 -07:00
parent 6d62fa6314
commit eb0f543366

View File

@@ -128,7 +128,7 @@ class SelfHealingSystem:
) )
try: try:
self.memory.write_memory(log_entry, daily=False) self.memory.write_memory(log_entry, daily=True)
except Exception as e: except Exception as e:
# Last resort: print to console if memory write fails # Last resort: print to console if memory write fails
print(f"[SelfHealing] Failed to write error log to MEMORY.md: {e}") print(f"[SelfHealing] Failed to write error log to MEMORY.md: {e}")