mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7371] [Issue]: Advanced Memory with a Decision model never ends a scene #4108
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4108
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 @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):
MEMORY_DECISION_SCENE_THRESHOLD = 0.8ignores 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.Steps to reproduce
Environment
jev-latest, maxStateTokens 30000Template check
@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.