pub fn cleanup_queue_entry(db_path: &Path, memory_id: i64, name: &str)Expand description
GAP-SG-13: remove a memory’s enrich-queue entry when the memory is deleted or
force-merged, so the dead-letter / pending sidecar never references a row
that no longer exists. Best-effort and a no-op when the queue file is absent
(the common case after a clean run, which removes it). Targets BOTH
memory_id (populated at enqueue for memory ops, GAP-SG-12) and item_key
(the memory name) so pending rows enqueued before id resolution are also
cleared. Errors are logged, never propagated — cleanup must not fail the
caller’s delete/upsert.