Files
Hy-Memory/tests
514bf5c47b fix(intention): preserve isolation scope in L7 recall and dedup (#81)
Session-scoped searches build only isolation_keys and leave user_ids /
agent_ids unset. recall_intentions had no isolation_keys parameter, so the
VDB query ran without any tenancy filter and could return every user's
intentions.

The duplicate bucket also ignored user_id / agent_id. Two users with a
similar intention on the same day were treated as duplicates, and the
loser was hard-deleted through vector_store.delete().

Pass isolation_key / isolation_keys through to the vector search and add
user_id / agent_id to the dedup bucket key. Add regression tests for the
parameter forwarding, cross-user recall, and cross-user dedup.

Co-authored-by: qiye.sjh <shijiahao_0802@youzan.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
2026-10-21 11:02:58 +08:00
..
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00