Skip to content

feat: make MCP/API salience and feedback weights configurable#330

Merged
CalebisGross merged 1 commit intomainfrom
feat/configurable-memory-defaults
Mar 21, 2026
Merged

feat: make MCP/API salience and feedback weights configurable#330
CalebisGross merged 1 commit intomainfrom
feat/configurable-memory-defaults

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

  • Add memory_defaults config section for initial salience per memory type and feedback tuning weights
  • MCP server: replace hardcoded salience switch + feedback consts with MemoryDefaults struct passed via constructor
  • API routes: replace duplicate salience switch and feedback consts with exported package-level vars set from config at startup
  • Eliminates duplicate switch statements between internal/mcp/server.go and internal/api/routes/memories.go
  • Single source of truth for salience values (decision: 0.85, error: 0.8, insight: 0.9, learning: 0.8, handoff: 0.95)

Test plan

  • make build passes
  • make test passes (all green, including MCP and API route tests)
  • No new lint issues

🤖 Generated with Claude Code

Add memory_defaults config section with initial salience per memory
type and feedback tuning weights. Eliminates duplicate switch
statements between MCP server and API routes.

MCP server receives MemoryDefaults via constructor. API routes use
exported package-level vars set at startup from config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CalebisGross CalebisGross force-pushed the feat/configurable-memory-defaults branch from 9378830 to d66b349 Compare March 21, 2026 16:02
@CalebisGross CalebisGross merged commit d51c88a into main Mar 21, 2026
@CalebisGross CalebisGross deleted the feat/configurable-memory-defaults branch March 21, 2026 16:02
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.

1 participant