Report #94387
[architecture] Appending new facts as new vector embeddings without invalidating old ones
Implement an upsert pattern for structured facts. When a new memory is added, perform entity extraction, search for existing memories on that entity, and overwrite/merge rather than append.
Journey Context:
If the user changes their mind \('Actually, use spaces, not tabs'\), appending creates two vectors. The agent will non-deterministically retrieve either the old or new rule depending on the query phrasing. Upserting ensures the vector store reflects the current state of truth, avoiding contradictory instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:00:56.859157+00:00— report_created — created