[GH-ISSUE #640] [Bug]: keep implicit chat personas out of Long-Term Memory write scopes #328

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory import and related write paths can inherit the persona attached to a chat even when the user did not choose Persona as a memory destination. This can make memories from one character/chat available in other chats that reuse the same persona.

Affected package

long-term-memory

Expected behavior

The current-chat destination should write availability to that chat only. Persona-wide availability should be added only when the user explicitly selects a persona destination. Runtime recall of explicitly persona-scoped memories should continue to work.

Actual behavior

The shared chat scope resolver includes personaId for runtime recall and is also reused by import, source extraction, and transfer write paths. The source candidate and destination merge paths can therefore persist persona links without an explicit persona destination selection.

Steps to reproduce

  1. Use a chat attached to Persona P and a character, then import or extract a source using the default current-chat destination.
  2. Inspect the persisted source note, draft, or extracted memory scope.
  3. Use another chat with Persona P and a different character and check Long-Term Memory recall.

The reported cross-character behavior requires confirmation against a live package fixture; the shared write-scope paths and the unintended persona inheritance are confirmed by source inspection.

Environment

  • Marinara Engine version: current staging compatibility range
  • Package version: long-term-memory current staging build
  • Install type: source/test fixture
  • OS + version: Linux
  • Browser or app shell: Engine package host

Logs, screenshots, or video

None. Do not include private chat data.

Additional context

Related feature scope: #623. Runtime persona recall is intentionally separate from write-side destination selection. A focused regression should cover current-chat-only, explicit persona, and same-persona/different-character cases.

Originally created by @Promansis on GitHub (Aug 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/640 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory import and related write paths can inherit the persona attached to a chat even when the user did not choose Persona as a memory destination. This can make memories from one character/chat available in other chats that reuse the same persona. ## Affected package `long-term-memory` ## Expected behavior The current-chat destination should write availability to that chat only. Persona-wide availability should be added only when the user explicitly selects a persona destination. Runtime recall of explicitly persona-scoped memories should continue to work. ## Actual behavior The shared chat scope resolver includes `personaId` for runtime recall and is also reused by import, source extraction, and transfer write paths. The source candidate and destination merge paths can therefore persist persona links without an explicit persona destination selection. ## Steps to reproduce 1. Use a chat attached to Persona P and a character, then import or extract a source using the default current-chat destination. 2. Inspect the persisted source note, draft, or extracted memory scope. 3. Use another chat with Persona P and a different character and check Long-Term Memory recall. The reported cross-character behavior requires confirmation against a live package fixture; the shared write-scope paths and the unintended persona inheritance are confirmed by source inspection. ## Environment - Marinara Engine version: current staging compatibility range - Package version: `long-term-memory` current staging build - Install type: source/test fixture - OS + version: Linux - Browser or app shell: Engine package host ## Logs, screenshots, or video None. Do not include private chat data. ## Additional context Related feature scope: #623. Runtime persona recall is intentionally separate from write-side destination selection. A focused regression should cover current-chat-only, explicit persona, and same-persona/different-character cases.
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#328
No description provided.