mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7269] [Issue]: Decision recall gives one-message excerpts or none, and never says why #4053
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#4053
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 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7269
Originally assigned to: @SpicyMarinara on GitHub.
Summary
With Advanced Memory's Decision model on, recalled scene summaries are picked correctly, but they often come with no message excerpts, and nothing says why. Reported by the maintainer:
Tracing the recall path found three separate causes:
Math.ceil(score), but the Decision model's score is a 0..1 probability, so it is always 1. Maximum messages per excerpt is ignored, and the model's other picks are dropped and shown as "Not selected" in Decision diagnostics. Text matching (when the Decision model is off or fails) already reaches Maximum.Summaries with parts only some characters know (
{{#if char == "Name"}}) still show each character only their own parts. Their original messages stay narrator-only by design, because the raw messages can hold facts the summary kept from that character. That rule is unchanged here; it only needs to be explained.Expected behavior
Actual behavior
Steps to reproduce
Environment
Logs, screenshots, or video
Local reproduction (fake Decision model, 3 relevant scenes, min 1 / max 2):
Additional context
Code:
packages/server/src/services/advanced-memory.tsexcerpt build inprepareImpl. Related: #7187 (two-pass decision recall), #6490 (summaries reserve space before excerpts).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7277. Ships tomainwith the next promotion.