OpenSwarm
OpenSwarm copied to clipboard
Consolidate scattered memory reporting call sites
Problem
saveCognitiveMemory is called from 5+ different locations across the codebase, making it hard to track what gets memorized and when.
Current State
- Multiple call sites in autonomousRunner, pairPipeline, discordHandlers, etc.
- No centralized policy for what should be memorized
- Duplicate or conflicting memory entries possible
Proposed Solution
- Create a centralized
MemoryReporterthat all modules funnel through - Define clear memory categories and when each should fire
- Add deduplication at the reporter level
- Provide memory audit/stats command
References
- ARCHITECTURE.md known issue #2