[GH-ISSUE #6468] [Issue]: Advanced Memory summaries overlap live context messages #3621

Closed
opened 2026-10-21 06:05:12 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced Memory can include a complete scene summary even when some of its source messages are still in the live context. Ranged manual summaries can also introduce live messages into the continuity summary.

Expected behavior

Only recall messages and summaries whose sources are outside the live message range sent to the model. Keep the saved scene archive intact; prompt selection should not require resetting or regenerating completed scene summaries.

Actual behavior

The scene recall filter accepts a scene if any source message is outside the live range, including a scene cut in half by a manual context start. Continuity selects ranged manual summaries from all eligible history rather than only the archived prefix.

Steps to reproduce

  1. Prepare Advanced Memory for a Roleplay chat with a completed scene.
  2. Put a shared “Mark as new start” cutoff inside that scene and request related content.
  3. Inspect the prepared prompt: the full recap can overlap messages still present verbatim. A manual summary covering the live range can also enter continuity.

Environment

  • Marinara Engine version: staging, source inspected at 5cefd18
  • Install type: source inspection; deterministic regression reproduction in progress
  • OS + version: not specific to this server-side selection path
  • Browser or app shell: not specific to this server-side selection path

Logs, screenshots, or video

Code trace in packages/server/src/services/advanced-memory.ts: recall uses an any-source-outside test, and continuity passes all eligible messages to ranged summary selection.

Additional context

Maintainer-requested follow-up to #6466. Implementation owner: @SpicyMarinara (Codex). Scope is prompt source selection only.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6468 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced Memory can include a complete scene summary even when some of its source messages are still in the live context. Ranged manual summaries can also introduce live messages into the continuity summary. ## Expected behavior Only recall messages and summaries whose sources are outside the live message range sent to the model. Keep the saved scene archive intact; prompt selection should not require resetting or regenerating completed scene summaries. ## Actual behavior The scene recall filter accepts a scene if any source message is outside the live range, including a scene cut in half by a manual context start. Continuity selects ranged manual summaries from all eligible history rather than only the archived prefix. ## Steps to reproduce 1. Prepare Advanced Memory for a Roleplay chat with a completed scene. 2. Put a shared “Mark as new start” cutoff inside that scene and request related content. 3. Inspect the prepared prompt: the full recap can overlap messages still present verbatim. A manual summary covering the live range can also enter continuity. ## Environment - Marinara Engine version: staging, source inspected at `5cefd18` - Install type: source inspection; deterministic regression reproduction in progress - OS + version: not specific to this server-side selection path - Browser or app shell: not specific to this server-side selection path ## Logs, screenshots, or video Code trace in `packages/server/src/services/advanced-memory.ts`: recall uses an any-source-outside test, and continuity passes all eligible messages to ranged summary selection. ## Additional context Maintainer-requested follow-up to #6466. Implementation owner: @SpicyMarinara (Codex). Scope is prompt source selection only. ## Template check - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:12 +07:00
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#3621
No description provided.