mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7270] [Feature]: Let the Helper combine summaries with private character sections when compacting Advanced Memory #4058
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#4058
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/7270
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Reported by Mari while testing Advanced Memory in Roleplay:
When Advanced Memory's constant Chat Summaries go over 70% of Summary and recall budget, compaction asks the Helper to shorten them. But it skips every summary whose text differs between characters, meaning any summary with a private
{{#if char == "Name"}}…{{/if}}section. In a group chat that is most of the summaries Advanced Memory writes, because scene recaps put private facts in those sections. So those summaries are never combined or shortened, only the plain ones are, and a character can stay over the budget while later replies keep paying to shorten the plain summaries again.Proposed solution
Let compaction send the Helper the summaries Advanced Memory wrote itself, with their character conditions intact, together with the plain summaries the same characters can read. The Helper then combines them into one shorter summary using the existing Combine summaries prompt, and is told to keep each private fact inside a section with exactly its original condition.
Alternatives considered
Additional context
Code:
updateConstantSummariesAfterGenerationinpackages/server/src/services/advanced-memory.ts, which skips audience-dependent templates with aponytail:note. The docs indocs/agents/memory.mdsay these summaries "need a manual edit".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 #7275. Ships tomainwith the next promotion.