Skip to content

fix: deduplicate store entries in intelligence.cjs (194MB → 79KB)#1519

Open
sparkling wants to merge 1 commit intoruvnet:mainfrom
sparkling:fix/intelligence-dedup
Open

fix: deduplicate store entries in intelligence.cjs (194MB → 79KB)#1519
sparkling wants to merge 1 commit intoruvnet:mainfrom
sparkling:fix/intelligence-dedup

Conversation

@sparkling
Copy link
Copy Markdown

Issue

Fixes #1518

Summary

auto-memory-store.json accumulates duplicate entries (4482 with 157 unique IDs). buildEdges() processes all duplicates producing 1.3M edges. Fix deduplicates by ID before graph construction.

  • 194MB → 79KB (99.96% reduction)
  • 1,337,498 edges → 157
  • Cache-hit check fixed to use unique count

Test plan

  • Run init --full, verify graph-state.json under 100KB
  • Run multiple sessions, verify graph-state.json does not grow unbounded

Generated with claude-flow

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.

Bug: intelligence.cjs graph-state.json grows to 194MB due to duplicate store entries

1 participant