OpenSwarm icon indicating copy to clipboard operation
OpenSwarm copied to clipboard

Consolidate scattered memory reporting call sites

Open unohee opened this issue 8 months ago • 0 comments

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 MemoryReporter that 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

unohee avatar Mar 09 '26 04:03 unohee