-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
agent-memoryContext persistence agentContext persistence agentagent-qaTesting and verification agentTesting and verification agentagent-retrospectiveLearning extraction agentLearning extraction agentarea-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsenhancementNew feature or requestNew feature or requestpriority:P1Important: Affects user experience significantly, high business valueImportant: Affects user experience significantly, high business valuetechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burdenCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden
Milestone
Description
Summary
After ADR-037 Memory Router Architecture is approved and MemoryRouter.psm1 is implemented, update agent prompts to use the unified Memory Router interface instead of direct backend calls.
Background
ADR-037 defines a unified interface:
Search-Memory: Semantic/lexical search with Forgetful→Serena fallbackGet-Memory: Direct memory retrieval by IDSave-Memory: Store memories with automatic deduplication
Files to Modify (Enumerated)
| File | Lines/Symbols | Current State | Required Change |
|---|---|---|---|
.claude/agents/skillbook.md |
Lines 43, 1230-1267 | Uses mcp__serena__* |
Use Memory Router |
.claude/agents/memory.md |
Entire memory section | Uses Serena-only | Use Memory Router |
.claude/agents/retrospective.md |
Lines with cloudmcp-manager |
Deprecated refs | Remove, use router |
Grep Command to Find All Affected Files
grep -rn "mcp__serena__\|mcp__forgetful__\|cloudmcp" .claude/agents/Dependencies
- Reconcile memory system fragmentation across 4 interfaces #751 - Memory fragmentation resolved (unified interface defined)
- [M-003] MemoryRouter performance optimization: reduce 260ms overhead to <20ms #734 - MemoryRouter.psm1 performance optimized (<20ms)
- ADR-037 approved
Acceptance Criteria
-
grep -rn "mcp__serena__\|mcp__forgetful__\|cloudmcp" .claude/agents/returns ONLY Memory Router usage patterns - skillbook.md uses
Search-Memoryfor deduplication checks - memory.md uses Memory Router for all memory operations
- retrospective.md has zero
cloudmcp-managerreferences - All prompts document Memory Router fallback behavior
- Integration tests verify agent prompts work with router
Exit Criteria Verification
# Must return 0 matches for direct MCP calls
grep -c "mcp__serena__list_memories\|mcp__serena__read_memory\|cloudmcp" .claude/agents/*.md
# Expected: 0
# Must return matches for Memory Router usage
grep -c "Search-Memory\|Get-Memory\|Save-Memory" .claude/agents/*.md
# Expected: >0Related
- ADR-037:
.agents/architecture/ADR-037-memory-router-architecture.md - ADR-007: Memory-First Architecture
- Blocking: Reconcile memory system fragmentation across 4 interfaces #751, [M-003] MemoryRouter performance optimization: reduce 260ms overhead to <20ms #734
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agent-memoryContext persistence agentContext persistence agentagent-qaTesting and verification agentTesting and verification agentagent-retrospectiveLearning extraction agentLearning extraction agentarea-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsenhancementNew feature or requestNew feature or requestpriority:P1Important: Affects user experience significantly, high business valueImportant: Affects user experience significantly, high business valuetechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burdenCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden