[GH-ISSUE #6102] [Feature]: Advanced Roleplay memory and automatic context management #3384

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

Originally created by @SpicyMarinara on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6102

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Long Roleplay chats currently require manual summary maintenance and context cutoffs. Users want to keep a chosen context budget while retaining relevant earlier dialogue and each character's actual knowledge.

Proposed solution

Implement the maintainer-approved Advanced Memory Recall (Alpha) plan:

  • Roleplay-only opt-in under Chat Settings → Memory Recall, with context/continuity budgets, helper connection, recalled-message range and Individual-mode narrator selection.
  • Reuse existing summaries, configured Summary prompts/models, embeddings, visibility rules and preset formatting. Maintain live history, scoped continuity, and a durable scene archive.
  • Detect genuine scene boundaries with a bounded helper call, summarize completed scenes, and move an independent managed context boundary when necessary. For an oversized open scene, temporarily summarize its prefix while keeping the scene open.
  • Initialize existing chats in resumable bounded batches and reuse valid ranged summaries. Confirm missing character knowledge ranges once where historical participation is ambiguous.
  • Expose preset placement through Chat Summary plus Current Scene Summary, Recalled Scenes and Recalled Messages markers. Apply XML/Markdown/None and brief explanatory framing, including fallback placement without duplication.
  • Add progress/cancel/resume, pixel Professor Mari running in a hamster wheel, and inspectable/editable scene memory. Keep edits, visibility changes, branches, imports and backups consistent.
  • Preserve Standard Recall and other modes when disabled, and validate full per-responder prompt budgets without silent scene trimming.

Alternatives considered

A new memory framework, vector database, or downloadable agent dependency would duplicate Engine facilities. The approved approach uses a small core coordinator and the existing file store.

Additional context

Requested and approved by @SpicyMarinara. Owner: @SpicyMarinara with Codex; coordinated storage/generation, preset and UI work under one draft staging PR. The full plan is retained in the maintainer workspace. No user chat data is needed for automated proof.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6102 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Long Roleplay chats currently require manual summary maintenance and context cutoffs. Users want to keep a chosen context budget while retaining relevant earlier dialogue and each character's actual knowledge. ## Proposed solution Implement the maintainer-approved Advanced Memory Recall (Alpha) plan: - Roleplay-only opt-in under Chat Settings → Memory Recall, with context/continuity budgets, helper connection, recalled-message range and Individual-mode narrator selection. - Reuse existing summaries, configured Summary prompts/models, embeddings, visibility rules and preset formatting. Maintain live history, scoped continuity, and a durable scene archive. - Detect genuine scene boundaries with a bounded helper call, summarize completed scenes, and move an independent managed context boundary when necessary. For an oversized open scene, temporarily summarize its prefix while keeping the scene open. - Initialize existing chats in resumable bounded batches and reuse valid ranged summaries. Confirm missing character knowledge ranges once where historical participation is ambiguous. - Expose preset placement through Chat Summary plus Current Scene Summary, Recalled Scenes and Recalled Messages markers. Apply XML/Markdown/None and brief explanatory framing, including fallback placement without duplication. - Add progress/cancel/resume, pixel Professor Mari running in a hamster wheel, and inspectable/editable scene memory. Keep edits, visibility changes, branches, imports and backups consistent. - Preserve Standard Recall and other modes when disabled, and validate full per-responder prompt budgets without silent scene trimming. ## Alternatives considered A new memory framework, vector database, or downloadable agent dependency would duplicate Engine facilities. The approved approach uses a small core coordinator and the existing file store. ## Additional context Requested and approved by @SpicyMarinara. Owner: @SpicyMarinara with Codex; coordinated storage/generation, preset and UI work under one draft staging PR. The full plan is retained in the maintainer workspace. No user chat data is needed for automated proof. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Implemented in #6103 and merged into staging at f8cb4017ed. Enable Advanced Memory Recall (Alpha) in Chat Settings → Memory Recall; setup, progress and memory management remain inside the drawer. Required checks and CodeRabbit passed. Translated documentation is tracked separately in #6106.

<!-- gh-comment-id:5649034682 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Implemented in #6103 and merged into staging at f8cb4017edd902b8e6722b32c121e08d8b3cac25. Enable Advanced Memory Recall (Alpha) in Chat Settings → Memory Recall; setup, progress and memory management remain inside the drawer. Required checks and CodeRabbit passed. Translated documentation is tracked separately in #6106.
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#3384
No description provided.