#19568·omi

Persona, notification and goals features read the legacy memories store and miss new memories

Author: Git-on-my-levelCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbugbackendmemories

Bug

Memories are now written to memory_items, but several features still read only the legacy users/{uid}/memories store. For a user whose memories were written after the switch, these features see nothing or stale data.

Readers of the legacy store on main:

  • backend/utils/apps.py (persona)
  • backend/utils/llm/notifications.py
  • backend/utils/llm/goals.py (found after the original cleanup audit; confirm it is the same defect)

Acceptance criteria

  1. Each reader goes through the canonical memory read path (see backend/utils/memory/ARCHITECTURE.md), not the legacy collection.
  2. A regression test uses a user who has memories only in the new store and shows that persona, notification and goals inputs include them.
  3. The dead-code and import ratchets still pass. No data migration is required or allowed in this PR.

No traffic gate applies. This is a correctness fix split out of the monorepo-cleanup Phase 2 list.