From 80c79c18d2452b64e32bb8899bfa40f26c87f2ec Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Mon, 23 Mar 2026 22:54:47 -0400 Subject: [PATCH] fix: restore live timestamp to HotMemory.read() output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DB-backed HotMemory.read() dropped the "> Last updated:" header that the old file-based template included. This meant callers saw no indication of when hot memory was last computed, and the stale-file problem (#10) had no equivalent fix in the new code path. Add the current UTC timestamp to the computed output so the timestamp is always fresh — never stale from a persisted file. Fixes #1339 Refs #10 Co-Authored-By: Claude Sonnet 4.6 --- src/timmy/memory/consolidation.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/timmy/memory/consolidation.py b/src/timmy/memory/consolidation.py index d3068cbc..4641c60b 100644 --- a/src/timmy/memory/consolidation.py +++ b/src/timmy/memory/consolidation.py @@ -89,7 +89,12 @@ class HotMemory: """Read hot memory — computed view of top facts + last reflection from DB.""" try: facts = recall_personal_facts() - lines = ["# Timmy Hot Memory\n"] + now = datetime.now(UTC).strftime("%Y-%m-%d %H:%M UTC") + lines = [ + "# Timmy Hot Memory\n", + f"> Working RAM — always loaded, ~300 lines max, pruned monthly", + f"> Last updated: {now}\n", + ] if facts: lines.append("## Known Facts\n") -- 2.43.0