From e9e1584a74e6f0d06c5c85969abf840e3972d04a Mon Sep 17 00:00:00 2001 From: devasher Date: Wed, 1 Jul 2026 15:53:20 +0800 Subject: [PATCH] fix(s09_memory): align consolidation cap with trigger threshold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prompt told the model to keep memories under 30, but consolidation only triggers at 10 files — the cap never had room to bind. Lower the cap below the threshold so consolidation actually shrinks the set. Co-Authored-By: Claude Sonnet 5 --- s09_memory/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s09_memory/code.py b/s09_memory/code.py index 117c8359a..3cce5a898 100644 --- a/s09_memory/code.py +++ b/s09_memory/code.py @@ -299,7 +299,7 @@ def consolidate_memories(): "Consolidate the following memory files. Rules:\n" "1. Merge duplicates into one\n" "2. Remove outdated/contradicted memories\n" - "3. Keep the total under 30 memories\n" + "3. Keep the total under 8 memories\n" "4. Preserve important user preferences above all\n" "Return a JSON array. Each item: {name, type, description, body}.\n\n" f"{catalog[:16000]}"