Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The cache invalidation logic is inconsistent with how embeddings are actually keyed. add_document/remove_document try to delete cached entries by URI, but get_embedding stores embeddings by an MD5 hash of content, so updated or removed documents leave stale embeddings behind. In a vector search component this can produce incorrect search results, retain deleted content semantically in cache, and break expected data lifecycle behavior.
