[GH-ISSUE #7264] [Issue]: Decision diagnostics show another character's memory recall when inspecting a newcomer #4054

Closed
opened 2026-10-21 06:09:53 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7264

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In an individual group chat (characters reply one by one) with Advanced Memory and Use Decision model on, Peek Prompt's Decision diagnostics → Advanced Memory activity → Latest recalled scenes and messages shows another character's Decision model recall. Inspecting a newly added character who cannot recall anything still shows the Decision model scoring scene summaries he never had access to.

Maintainer report (Decision model configured as Jev):

I noticed that Jev and decision selection which memories to recall triggers for Cyno. Cyno was just recently added to the chat and his entire chat history from when he joined is in his context. He has zero access to older messages or summaries. The prompt builder correctly does not include any for him, but when I inspect the prompt, I still see Jev deciding on the memories? Isn't that wasting tokens? Also, doesn't that imply we are not sorting the scene summaries by accessibility correctly? Because none of these scene summaries should even be considered for that character.

Expected behavior

The inspector shows only the inspected character's own saved recall. For a newcomer with nothing to recall, it shows no recall report, because the Decision model was never asked about memories for him.

Actual behavior

Recall itself is correct. A reproduction with a fake Jev server recorded 0 memory requests for the newcomer's turn, and his receipt said no-recall-candidates. Access filtering (knowledge starts, per-reader visibility, scene audience, live overlap) runs before both Decision passes from #7187.

The inspector is wrong in two places:

  1. packages/server/src/routes/generate/dry-run-route.ts picks the newest message in the whole chat that has a saved decisionRecall, whichever character it belongs to. A newcomer's receipt has no decisionRecall because nothing was recalled, so the inspector skips it and shows Tighnari's or Maukie's earlier report, including their scene summaries.
  2. The Decision diagnostics panel never sends the inspected message's character. In an individual Advanced Memory chat the preview therefore defaults to the first character in the chat, so inspecting Cyno's reply previews Maukie's decisions.

Steps to reproduce

  1. Create a Roleplay group chat with Maukie and Tighnari, set to reply one by one, with Advanced Memory on and Use Decision model on (Jev).
  2. Play a few scenes so they close and get summarized, and let Tighnari reply once so a Decision recall is saved.
  3. Add Cyno with his knowledge starting where he joins, and let him reply.
  4. Open Peek Prompt on Cyno's reply, then Decision diagnostics.
  5. Advanced Memory activity lists Tighnari's recalled scene summaries and messages.

Environment

  • Marinara Engine version: 2.5.0 (staging)
  • Install type: source
  • OS + version: macOS
  • Browser or app shell: browser

Logs, screenshots, or video

The debug log line [decision] … request names state.respondingCharacters. The Decision recall calls in this chat name Tighnari or Maukie, never Cyno.

Additional context

  • #7187: two-pass Decision recall (scene summaries, then messages from chosen scenes).
  • #7192 / #7199: "Decide who sees new messages", tested in the same chat.
  • The separate visibility report from the same session is #7263.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7264 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In an individual group chat (characters reply one by one) with Advanced Memory and **Use Decision model** on, Peek Prompt's **Decision diagnostics → Advanced Memory activity → Latest recalled scenes and messages** shows another character's Decision model recall. Inspecting a newly added character who cannot recall anything still shows the Decision model scoring scene summaries he never had access to. Maintainer report (Decision model configured as Jev): > I noticed that Jev and decision selection which memories to recall triggers for Cyno. Cyno was just recently added to the chat and his entire chat history from when he joined is in his context. He has zero access to older messages or summaries. The prompt builder correctly does not include any for him, but when I inspect the prompt, I still see Jev deciding on the memories? Isn't that wasting tokens? Also, doesn't that imply we are not sorting the scene summaries by accessibility correctly? Because none of these scene summaries should even be considered for that character. ## Expected behavior The inspector shows only the inspected character's own saved recall. For a newcomer with nothing to recall, it shows no recall report, because the Decision model was never asked about memories for him. ## Actual behavior Recall itself is correct. A reproduction with a fake Jev server recorded **0** memory requests for the newcomer's turn, and his receipt said `no-recall-candidates`. Access filtering (knowledge starts, per-reader visibility, scene audience, live overlap) runs before both Decision passes from #7187. The inspector is wrong in two places: 1. `packages/server/src/routes/generate/dry-run-route.ts` picks the newest message in the whole chat that has a saved `decisionRecall`, whichever character it belongs to. A newcomer's receipt has no `decisionRecall` because nothing was recalled, so the inspector skips it and shows Tighnari's or Maukie's earlier report, including their scene summaries. 2. The Decision diagnostics panel never sends the inspected message's character. In an individual Advanced Memory chat the preview therefore defaults to the first character in the chat, so inspecting Cyno's reply previews Maukie's decisions. ## Steps to reproduce 1. Create a Roleplay group chat with Maukie and Tighnari, set to reply one by one, with Advanced Memory on and Use Decision model on (Jev). 2. Play a few scenes so they close and get summarized, and let Tighnari reply once so a Decision recall is saved. 3. Add Cyno with his knowledge starting where he joins, and let him reply. 4. Open Peek Prompt on Cyno's reply, then Decision diagnostics. 5. Advanced Memory activity lists Tighnari's recalled scene summaries and messages. ## Environment - Marinara Engine version: 2.5.0 (staging) - Install type: source - OS + version: macOS - Browser or app shell: browser ## Logs, screenshots, or video The debug log line `[decision] … request` names `state.respondingCharacters`. The Decision recall calls in this chat name Tighnari or Maukie, never Cyno. ## Additional context - #7187: two-pass Decision recall (scene summaries, then messages from chosen scenes). - #7192 / #7199: "Decide who sees new messages", tested in the same chat. - The separate visibility report from the same session is #7263. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:09:53 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 7, 2026):

Fixed on staging by #7267. Ships to main with the next promotion.

<!-- gh-comment-id:6047641558 --> @SpicyMarinara commented on GitHub (Oct 7, 2026): Fixed on `staging` by #7267. Ships to `main` with the next promotion.
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-Engine#4054
No description provided.