[GH-ISSUE #7371] [Issue]: Advanced Memory with a Decision model never ends a scene #4108

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

With Advanced Memory's Use Decision model on (hosted Jev, jev-latest), scene checks never close a scene. In the maintainer's long Roleplay chat the open scene grew from message #1162 to #1260 (99 messages) with no summary, while the status kept saying Memory Ready. Several obvious transitions happened in that range, including a *** scene break with a POV switch and an out-of-character "POV switch" note.

Expected behavior

A clear location change, time skip, POV switch to characters elsewhere, or scene-break line closes the scene, and the closed scene gets summarized. There should also be a way to re-check a range of messages for scenes after the fact.

Actual behavior

Every Decision scene check commits "no ending", so nothing is summarized and no error appears.

Causes found in the code and confirmed by replaying the production questions against hosted Jev on the real chat (158 requests, which reproduce the saved diagnostics within ±0.03):

  1. Fixed 0.8 cut-off. MEMORY_DECISION_SCENE_THRESHOLD = 0.8 ignores the backend's calibrated threshold (0.5 for System One connections, 0.1 for the Open-Jev sidecar), which every other Decision gate uses. Hosted Jev scored the real transitions 0.19–0.70 with the production wording, so none ever cleared 0.8.
  2. "Does the END of message X…" questions can't see across the window. The newest message in each check has nothing after it, and the message before the window is context only. So a transition between two checks is never asked about.
  3. The model sees no speaker names, and the question doesn't mention POV switches or scene-break lines.
  4. No way to re-scan. A full preparation already marked #1162–#1199 as classified (with the same 0.8 cut-off), and with status Ready nothing in the UI re-checks a range.

Steps to reproduce

  1. Enable Advanced Memory with Use Decision model on a TypeSafe Jev connection.
  2. Chat through several clear scene changes.
  3. Open Chat Settings → Memory Recall: the last summarized scene never advances, and the decision diagnostics show scene scores below 0.8.

Environment

  • Marinara Engine: staging (Docker), 2026-10-09
  • Decision connection: TypeSafe, jev-latest, maxStateTokens 30000

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7371 Originally assigned to: @SpicyMarinara on GitHub. ## Summary With Advanced Memory's **Use Decision model** on (hosted Jev, `jev-latest`), scene checks never close a scene. In the maintainer's long Roleplay chat the open scene grew from message #1162 to #1260 (99 messages) with no summary, while the status kept saying Memory Ready. Several obvious transitions happened in that range, including a `***` scene break with a POV switch and an out-of-character "POV switch" note. ## Expected behavior A clear location change, time skip, POV switch to characters elsewhere, or scene-break line closes the scene, and the closed scene gets summarized. There should also be a way to re-check a range of messages for scenes after the fact. ## Actual behavior Every Decision scene check commits "no ending", so nothing is summarized and no error appears. Causes found in the code and confirmed by replaying the production questions against hosted Jev on the real chat (158 requests, which reproduce the saved diagnostics within ±0.03): 1. **Fixed 0.8 cut-off.** `MEMORY_DECISION_SCENE_THRESHOLD = 0.8` ignores the backend's calibrated threshold (0.5 for System One connections, 0.1 for the Open-Jev sidecar), which every other Decision gate uses. Hosted Jev scored the real transitions 0.19–0.70 with the production wording, so none ever cleared 0.8. 2. **"Does the END of message X…" questions can't see across the window.** The newest message in each check has nothing after it, and the message before the window is context only. So a transition between two checks is never asked about. 3. **The model sees no speaker names**, and the question doesn't mention POV switches or scene-break lines. 4. **No way to re-scan.** A full preparation already marked #1162–#1199 as classified (with the same 0.8 cut-off), and with status Ready nothing in the UI re-checks a range. ## Steps to reproduce 1. Enable Advanced Memory with Use Decision model on a TypeSafe Jev connection. 2. Chat through several clear scene changes. 3. Open Chat Settings → Memory Recall: the last summarized scene never advances, and the decision diagnostics show scene scores below 0.8. ## Environment - Marinara Engine: staging (Docker), 2026-10-09 - Decision connection: TypeSafe, `jev-latest`, maxStateTokens 30000 ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:10:51 +07:00
Author
Owner

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

Fixed on staging by #7373 (Decision-model scene cuts on the connection's own threshold, plus Re-scan scenes). The follow-up #7374 also checks every new message and lets the Helper end a scene where the previous check stopped.

<!-- gh-comment-id:6090024550 --> @SpicyMarinara commented on GitHub (Oct 9, 2026): Fixed on staging by #7373 (Decision-model scene cuts on the connection's own threshold, plus **Re-scan scenes**). The follow-up #7374 also checks every new message and lets the Helper end a scene where the previous check stopped.
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#4108
No description provided.