[GH-ISSUE #6491] [docs-i18n] docs/agents/memory.md — memory budgets, shared cutoffs, and scene checks #3635

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

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.md for 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.md in every current documentation pack on docs-i18n: de, es, fr, hi, ja, ko, pl, pt-br, ru, and zh-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.json using 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.md and AGENTS.md for the English guide changes in #6490 and #6513. Target the docs-i18n branch; no files are renamed or deleted.

Template check

  • I DID NOT read this template and provide the requested details.
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.md` for 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.md` in every current documentation pack on `docs-i18n`: `de`, `es`, `fr`, `hi`, `ja`, `ko`, `pl`, `pt-br`, `ru`, and `zh-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.json` using 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.md` and `AGENTS.md` for the English guide changes in #6490 and #6513. Target the `docs-i18n` branch; no files are renamed or deleted. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@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.

<!-- gh-comment-id:5769508470 --> @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.
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#3635
No description provided.