Skip to content

fix(s09_memory): align consolidation cap with trigger threshold#440

Open
beasaltfish wants to merge 1 commit into
shareAI-lab:mainfrom
beasaltfish:fix/memory-consolidate-threshold
Open

fix(s09_memory): align consolidation cap with trigger threshold#440
beasaltfish wants to merge 1 commit into
shareAI-lab:mainfrom
beasaltfish:fix/memory-consolidate-threshold

Conversation

@beasaltfish

Copy link
Copy Markdown

Summary

  • consolidate_memories() triggers at CONSOLIDATE_THRESHOLD = 10 files, but its prompt tells the model to keep the total under 30 — since 10 < 30, the cap never forces any actual merging/pruning when consolidation runs.
  • Lowered the cap in the prompt to 8 (below the trigger threshold) so each consolidation pass has real room to shrink the memory set.

Test plan

  • Manually seed .memory/ with 10 dummy memory files and run the agent loop to confirm consolidate_memories() now reduces the count below 10

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant