Cleanup: leftover references to memory modules deleted in #12697
Author: Git-on-my-levelCreated Sep 28, 2026Updated Sep 28, 2026
Labelsgood first issuebackendchoretech debt
Leftovers from the #12697 review, all still present on main:
- Stale provenance string.
backend/utils/llm/working_observations.pypersists"source": "utils.llm.working_memory.extract_l1_memory_archive_items_from_text", but that module was deleted. Point it at the survivingutils.llm.working_observationsfunction. Nothing parses the old string. - Stale doc citations.
backend/docs/memory/domain_model.mdstill cites the deletedworking_memory.py,l2_memory_routes.pyanddurable_memory_patches.py(4 references) as current code locations. Update them to the surviving canonical modules. - Dead exports.
memory_contracts.pyexportsL2MemoryRoute,SourceBackedMemoryCandidateandDURABLE_MEMORY_PATCH_FACT_SOURCE, which have no remaining external callers. Remove them, or wire them in if a caller should exist.
Acceptance criteria
- One PR fixes all three; confirm each with
git grepagainst currentmainfirst. - The dead-code ratchet and backend tests (via
backend/test.sh) pass.
Source: BasedHardware/omi