Improve memory auto-injection in runAgentWithMemory: 1) Filter out superseded memories (don't show old info that has been replaced), 2) Surface contradictions as warnings in the prompt, 3) Add recency weighting to similarity scores. Use knowledge graph relations to inform which memories surface.
Implementation complete. Commit 2cd4a63.
Features: 1. Recency weighting: Recent memories get a boost (20% recency, 80% similarity) 2. Superseded filtering: Memories with 'supersedes' links are hidden 3. Contradiction detection: Warns when memories conflict 4. Enhanced API: recallMemoriesEnhanced returns ScoredMemory with all scores
The enhancement is transparent - existing code continues to work, but now gets smarter results through the HydrationConfig/MemorySources pipeline.