mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1028] [Issue]: Keep chat-only LTM availability separate from persona and character visibility #527
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Sep 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1028
Originally assigned to: @Promansis on GitHub.
Summary
A Long-Term Memory destination selected as one chat can become available in other chats that share the source chat's character or persona. The current scope model expands chat context with related IDs and retrieval treats any chat, group, character, or persona overlap as visibility, which is broader than chat-only availability.
Affected package
long-term-memory(scope construction, extraction destinations, persistence, and runtime retrieval)Expected behavior
When the user selects
available in: X chat, the derived memory should be visible in chat X only, unless the user explicitly selects a group, character, or persona destination. Explicit persona- or character-scoped memories should continue to be available across the matching chats by design.The source scope, destination scope, persisted note scope, and runtime retrieval matcher should preserve this distinction.
Actual behavior
The chat scope resolver includes the chat's persona and character IDs. Import/extraction and projection paths can persist or merge those related links, and runtime retrieval uses OR-overlap across chat, group, character, and persona IDs. Therefore a memory associated with chat X can match another chat through a shared persona or character. Scope merging is additive, so prior broad links can also remain when a narrower destination is selected later.
Steps to reproduce
Environment
stagingcompatibility rangelong-term-memorystaging buildLogs, screenshots, or video
The investigation used
scratch/ltm-debug-log.jsonl; it contains private extraction identifiers and is not attached. Regression fixtures should be synthetic and contain no private chat data.Additional context
Related historical scope work: #623 and #640. This issue is limited to the contract between explicit destination selection and visibility; it should not change subject identity resolution or evidence deduplication. Add focused coverage for chat-only, explicit persona, explicit character, group, and same-persona/different-character cases in
tests/long-term-memory-runtime.regression.tsand the relevant route/storage scope suites.Template check