mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6491] [docs-i18n] docs/agents/memory.md — memory budgets, shared cutoffs, and scene checks #3635
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#3635
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 (Sep 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6491
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
PRs #6490 and #6513 update
docs/agents/memory.mdfor Advanced Memory. Translate the final English guide after #6513, which supersedes the earlier overlap behavior and clarifies shared, reversible context cutoffs.Proposed solution
Update
agents/memory.mdin every current documentation pack ondocs-i18n:de,es,fr,hi,ja,ko,pl,pt-br,ru, andzh-hans.Cover the final behavior from #6490 and #6513:
Ranged constant Chat Summaries are omitted while any covered messages remain live. They stay saved and enabled, and become eligible again when the complete range is archived. Preserve their character conditions; eligible constants take priority over optional recall.
The Summary and recall budget reserves at most 70% for active constants. Prompt priority is constants, then all selected scene summaries, then excerpts. Total memory can use up to 2,000 additional tokens, subject to the full context cap. Constants over their 70% share compact only after the reply, using the helper and Chat Summary Maximum output size; live-range constants are excluded from the archived budget and consolidation; legacy unranged constants remain eligible.
Shared templates that expand differently per character stay intact. Other groups receive proportional soft length targets. Templates that alone exceed the target need manual editing. Failed/unfinished output is not saved; a shorter successful replacement is saved together with deactivation of the originals, using message-range titles.
The preset picker offers one Recalled Scenes marker. Existing recalled_messages markers remain compatible aliases; summaries and excerpts stay paired in one section.
Post-generation checks receive actual message numbers plus one look-behind message and return exact scene-ending numbers. They reuse eligible tracker calls when source visibility and context capacity permit; otherwise they use the helper. Archive ranges run from after the previous ending through the new ending, including a scene ending at the latest reply.
New summary inputs and recalled message text omit illustrations and image captions while retaining readable text attachments. Live scenes remain excluded from optional recall.
The maximum context before compression limits estimated outgoing prompt tokens, including instructions, tools, attachments, live messages and recalled memory. Reply tokens and safety headroom are separate; the model total context limit still applies.
Automatic cutoffs reset to the latest scene for all characters and can be undone by unchecking All in the existing New Start menu. Personal flags remain independent. Temporary trimming inside an oversized open scene does not create a persistent flag.
Scene recaps request 2–3 paragraphs. Summary calls allow at least 8,196 output tokens and retain a larger Chat Summary Maximum output size, including reasoning space.
Regenerate and validate each changed pack's
manifest.jsonusing the existing documentation scripts.Alternatives considered
Leaving translations unchanged would preserve contradictory instructions. Copying English into translated guides would not provide a translation.
Additional context
Follow-up required by
CONTRIBUTING.mdandAGENTS.mdfor the English guide changes in #6490 and #6513. Target thedocs-i18nbranch; no files are renamed or deleted.Template check
@SpicyMarinara commented on GitHub (Sep 22, 2026):
Implementation owner: @SpicyMarinara, with Codex. Draft PR #6517 updates all ten documentation packs against docs-i18n, using the final English behavior from #6513.