[triage-generated] [bug] Fix MEMORY.md corruption and hot memory staleness #252

Closed
opened 2026-03-15 18:41:51 +00:00 by hermes · 0 comments
Collaborator

Why

Issue #240 describes MEMORY.md as corrupted mid-word and user_preferences containing fabrications. This is the first actionable step from the 222 epic memory overhaul.

What

Fix the immediate memory quality problems before attempting the full overhaul.

Files

  • src/timmy/memory_system.py — the hot memory (MEMORY.md) update logic
  • data/memory/MEMORY.md — the file itself (examine and fix)

Implementation

  1. Read current MEMORY.md, identify corrupted entries
  2. In memory_system.py, add content validation before writing to MEMORY.md
  3. Truncation guard: if content would be truncated (exceeds section limit), reject or warn
  4. Add a dedup check for user_preferences to prevent fabricated entries

Acceptance criteria

  • MEMORY.md is not corrupted after a thinking cycle
  • Content validation prevents mid-word truncation
  • Fabricated user preferences are filtered out
  • Test: test_memory_write_no_truncation

Tags: [triage-generated] [bug]

## Why Issue #240 describes MEMORY.md as corrupted mid-word and user_preferences containing fabrications. This is the first actionable step from the 222 epic memory overhaul. ## What Fix the immediate memory quality problems before attempting the full overhaul. ## Files - src/timmy/memory_system.py — the hot memory (MEMORY.md) update logic - data/memory/MEMORY.md — the file itself (examine and fix) ## Implementation 1. Read current MEMORY.md, identify corrupted entries 2. In memory_system.py, add content validation before writing to MEMORY.md 3. Truncation guard: if content would be truncated (exceeds section limit), reject or warn 4. Add a dedup check for user_preferences to prevent fabricated entries ## Acceptance criteria - MEMORY.md is not corrupted after a thinking cycle - Content validation prevents mid-word truncation - Fabricated user preferences are filtered out - Test: test_memory_write_no_truncation Tags: [triage-generated] [bug]
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#252