Commit Graph

3 Commits

Author SHA1 Message Date
Jonny 09fc20c9df chore: track pre-existing test_chat_tools.py baseline
Was never committed before. Tracking it now (unmodified) so Task 6 of
the cross-chat-memory plan, which edits this file, produces a clean
incremental diff instead of showing the whole file as new.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019iZMEPk2Kt1UC96Lo9bC5w
2026-09-13 12:24:01 +02:00
Jonny 99dd1a1f8f fix: move 006_memory.sql to Claude outputs/migrations/
Matches the existing local convention (002-005 already live there) -
the plan/spec text mistakenly said top-level migrations/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019iZMEPk2Kt1UC96Lo9bC5w
2026-09-13 12:23:51 +02:00
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