Commit Graph

3 Commits

Author SHA1 Message Date
Jonny 18e2ff87d2 feat: add memory_facts DB helpers
Implement four async DB-helper functions for memory_facts table:
- insert_memory_fact(user_id, content) -> int
- search_memory_facts(query) -> list
- delete_memory_fact(fact_id) -> None
- get_all_memory_facts() -> list

Add test_memory.py with 4 passing tests for these helpers.
All tests pass with mocked db_query.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019iZMEPk2Kt1UC96Lo9bC5w
2026-09-13 12:10:23 +02:00
Jonny 8856ef16a1 feat: add migration 006_memory.sql for cross-chat memory tables
Add two new tables for cross-chat memory feature:
- memory_facts: stores explicit user-provided facts (user_id, content, created_at)
- conversation_summaries: stores conversation summaries with vector embeddings for similarity search

This migration prepares the database schema for Task 2-7 of the cross-chat memory feature plan.
No indexes yet (sequential scan sufficient for expected data volume).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019iZMEPk2Kt1UC96Lo9bC5w
2026-09-13 11:56:32 +02:00
Jonny 32026d4264 docs: add design spec for cross-chat memory (facts + summaries)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019iZMEPk2Kt1UC96Lo9bC5w
2026-09-13 11:46:21 +02:00