Repository navigation
Conversation
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The identity and deletion paths are consistently updated across both adapters with appropriate regression and live-service coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Fixes vector identity collisions by keying and deleting vectors using object type and ID.
Changes:
- Adds object type to vector point identities.
- Makes deletion operate on typed object references across both Qdrant adapters.
- Adds facade, adapter-contract, and live-service regression coverage.
| File | Description |
|---|---|
src/usecases/vector_indexing.rs |
Passes typed references to deletion. |
src/usecases/retrieve.rs |
Updates test-store delegation. |
src/usecases/remember.rs |
Updates test-store contract. |
src/usecases/correct_forget.rs |
Records and forwards typed deletions. |
src/test_support.rs |
Updates the temporary vector store. |
src/ports/vector_candidate.rs |
Defines typed deletion semantics. |
src/memory.rs |
Adds the facade-level collision regression test. |
src/adapters/qdrant/store.rs |
Implements exact typed deletion and parity tests. |
src/adapters/qdrant/payload.rs |
Includes object type in point IDs. |
src/adapters/qdrant_edge/mod.rs |
Implements typed filtered deletion. |
.github/workflows/pr_validation.yaml |
Runs the live service deletion contract. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Owner
Author
|
Superseded by #150: this fix was merged into the stack there (with its reconciliation against the scene surfaces the stack added) and reviewed by both tiers. Closing at the decider's direction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fix on main, found while cleaning up the scene slice.
The failure
The graph identifies a memory by object type and id, and ids are caller-supplied (ADR-I-0020). The vector side used the id alone (plus the surface). An application that derives one UUID from one external id for a conversation's thread and for its episode is plausible, and then:
forgetof one memory silently erased another.The change
Blast radius
Vector points written with the old ids are no longer reached by an upsert for the same memory; they remain readable through their payload. There are no consumers, so there is no migration and no shim; a store is rebuilt by a fresh namespace or a replay. The companion evaluation repository's frozen embeddings are keyed by text hash and its graph snapshots hold no point ids, so neither is affected.
Evidence: internal Tier D review approved with no findings and its own census of every vector-side reader and delete path. fmt, check, clippy with warnings denied and the full suite pass for the worker and independently for the reviewer; the live service delete test is this PR's Qdrant job.
This PR is outside the merges the decider pre-authorized and waits for approval. The scene stack (#117 to #123) was cut before it and will merge main forward once it lands.
🤖 Generated with Claude Code