Delete Memory Record
Memory
Delete Memory Record
Soft-delete a memory record (sets is_active = False).
The row is retained, matching the sessions/projects soft-delete convention; browse and retrieval exclude inactive records. Returns 404 (never 403) when the record does not exist, belongs to another user, or the id is unparseable, so cross-tenant existence is not leaked. get_db_for_principal applies set_rls_user before the write, matching the ingest path.
IDOR AUDIT PASS - MemoryRecord.user_id == authenticated user_id is
enforced in the WHERE clause on both the lookup and the write.
DELETE
Delete Memory Record
