[GH-ISSUE #196] [Issue]: Long-Term Memory Vault All filters omit scoped memories #101

Closed
opened 2026-10-20 17:24:23 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/196

Originally assigned to: @Promansis on GitHub.

Problem

The Long-Term Memory Vault does not consistently return all memories for combinations of the All selectors:

  • A specific character plus All chats should show every memory associated with that character.
  • A specific character and chat plus All branches should show memories from every branch in that conversation.
  • The result should not contain duplicate memories when the same note is reachable through multiple scope links.

Cause

MemoryVault.tsx derives selector scopes through several fallbacks. Character, conversation, and branch selection can narrow the request to a single chat or omit group/branch-scoped notes instead of representing the complete selected chat union. The server scope matcher also treats group-scoped notes differently from equivalent multi-chat scopes.

Expected behavior

The three selectors should compose as independent scope filters:

  • All characters means no character restriction.
  • A character plus All chats means all chats containing that character.
  • A character/chat plus All branches means all branches belonging to that conversation.
  • Selecting one branch narrows only to that branch.
  • Each memory note appears once, even if multiple scope paths match it.

Acceptance criteria

  • Add focused regression coverage for character + all chats, character + chat + all branches, and one selected branch.
  • Include character-, chat-, group-, and branch-scoped notes in the expected results.
  • Returned note IDs are unique.
  • Existing single-chat and global-memory behavior remains unchanged.
  • Rebuild the Long-Term Memory package and generated catalog outputs.

Related: #122

Originally created by @Promansis on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/196 Originally assigned to: @Promansis on GitHub. ## Problem The Long-Term Memory Vault does not consistently return all memories for combinations of the `All` selectors: - A specific character plus `All chats` should show every memory associated with that character. - A specific character and chat plus `All branches` should show memories from every branch in that conversation. - The result should not contain duplicate memories when the same note is reachable through multiple scope links. ## Cause `MemoryVault.tsx` derives selector scopes through several fallbacks. Character, conversation, and branch selection can narrow the request to a single chat or omit group/branch-scoped notes instead of representing the complete selected chat union. The server scope matcher also treats group-scoped notes differently from equivalent multi-chat scopes. ## Expected behavior The three selectors should compose as independent scope filters: - `All characters` means no character restriction. - A character plus `All chats` means all chats containing that character. - A character/chat plus `All branches` means all branches belonging to that conversation. - Selecting one branch narrows only to that branch. - Each memory note appears once, even if multiple scope paths match it. ## Acceptance criteria - Add focused regression coverage for character + all chats, character + chat + all branches, and one selected branch. - Include character-, chat-, group-, and branch-scoped notes in the expected results. - Returned note IDs are unique. - Existing single-chat and global-memory behavior remains unchanged. - Rebuild the Long-Term Memory package and generated catalog outputs. Related: #122
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#101
No description provided.