Skip to content

feat: memory tiers, importance fix, topic tags#1

Open
WingedGuardian wants to merge 1 commit intomainfrom
feat/memory-tier-tags
Open

feat: memory tiers, importance fix, topic tags#1
WingedGuardian wants to merge 1 commit intomainfrom
feat/memory-tier-tags

Conversation

@WingedGuardian
Copy link
Copy Markdown
Owner

Summary

  • Add tier (core/domain) column — get_core_facts_block() now only injects core-tier items
  • Fix importance inversion: agent-explicit stores use importance=0.9 / confidence=0.7 (outranks passive extractions at 0.8/0.5)
  • Add tags (JSON array) to SQLite and Qdrant payload for keyword-based cross-domain recall
  • CASE WHEN guards prevent background extractions from demoting core-tier promotions

Companion PRs:

Test plan

  • Verify store_fact() writes importance=0.9 to Qdrant and confidence=0.7 to SQLite
  • Verify get_core_facts_block() returns empty when no core-tier items exist
  • Verify tags passthrough from extractions to both backends

🤖 Generated with Claude Code

- Add tier (core/domain) and tags (JSON array) params to _upsert_item, store_fact
- Agent-explicit stores now use importance=0.9 / confidence=0.7 (outranks passive extractions)
- get_core_facts_block() filters on tier='core' — domain knowledge no longer auto-injected
- CASE WHEN guards prevent background extractions from demoting core-tier promotions
- Tags passthrough from extractions to both Qdrant and SQLite
- get_high_confidence_items() supports optional tier filter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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