[GH-ISSUE #6461] [Issue]: Advanced Memory summary compaction gets stuck on Resume processing #3617

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced Memory Recall can get stuck after scene summary generation fails. Selecting Resume processing briefly returns to scene-boundary processing, then repeats a compaction error instead of completing the remaining summaries.

Expected behavior

Resume unfinished summaries from saved progress, retain completed work, and summarize only the selected scene messages and applicable corrections. A failed compaction must be retryable without resetting the archive.

Actual behavior

The reported error is: “The summary model could not compact this history within the chosen budget.” Inspection found that failed oversized outputs remain cached and can repeat the same failure on every resume. Initialization also reports the classifying stage even when its completed checkpoint skips detection.

Steps to reproduce

  1. Enable Advanced Memory Recall and prepare an ongoing Roleplay chat.
  2. Reach the scene-summary step and have a model return a recap that cannot be compacted within its summary budget.
  3. Click Resume processing after the error.

Environment

  • Marinara Engine version: staging; exact installed revision not reported
  • Install type: not reported
  • OS + version: not reported for this occurrence
  • Browser or app shell: not reported for this occurrence
  • Summary connection: GPT-6 Astra; reported context setting approximately 65,000 tokens

Logs, screenshots, or video

Memory processing stopped
The summary model could not compact this history within the chosen budget

Additional context

Follow-up to #6450. Implementation owner: @SpicyMarinara, working with Codex in codex/sept20-memory-resume. Scope is summary recovery and accurate resume progress, without changing source messages or character knowledge boundaries.

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/6461 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced Memory Recall can get stuck after scene summary generation fails. Selecting Resume processing briefly returns to scene-boundary processing, then repeats a compaction error instead of completing the remaining summaries. ## Expected behavior Resume unfinished summaries from saved progress, retain completed work, and summarize only the selected scene messages and applicable corrections. A failed compaction must be retryable without resetting the archive. ## Actual behavior The reported error is: “The summary model could not compact this history within the chosen budget.” Inspection found that failed oversized outputs remain cached and can repeat the same failure on every resume. Initialization also reports the classifying stage even when its completed checkpoint skips detection. ## Steps to reproduce 1. Enable Advanced Memory Recall and prepare an ongoing Roleplay chat. 2. Reach the scene-summary step and have a model return a recap that cannot be compacted within its summary budget. 3. Click Resume processing after the error. ## Environment - Marinara Engine version: staging; exact installed revision not reported - Install type: not reported - OS + version: not reported for this occurrence - Browser or app shell: not reported for this occurrence - Summary connection: GPT-6 Astra; reported context setting approximately 65,000 tokens ## Logs, screenshots, or video Memory processing stopped The summary model could not compact this history within the chosen budget ## Additional context Follow-up to #6450. Implementation owner: @SpicyMarinara, working with Codex in `codex/sept20-memory-resume`. Scope is summary recovery and accurate resume progress, without changing source messages or character knowledge boundaries. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:08 +07:00
Author
Owner

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

Fixed on staging by #6462. Resume preserves completed scene detection and summaries, retries failed compaction, and reports the memory-summary limit. The regression reproduces the previous failure and now passes; local validation and CodeRabbit review passed. GitHub CI is still finishing.

<!-- gh-comment-id:5751935178 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Fixed on staging by #6462. Resume preserves completed scene detection and summaries, retries failed compaction, and reports the memory-summary limit. The regression reproduces the previous failure and now passes; local validation and CodeRabbit review passed. GitHub CI is still finishing.
Author
Owner

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

Reopening for the follow-up reported on staging 26e2cd0 (before #6462): preparation reaches 19 scene entries, then repeats the compaction error. The maintainer wants scene-only summary requests using the Advanced Memory helper and context limit, with existing paid summaries preserved across an update.

Implementation owner: @SpicyMarinara with Codex, branch codex/sept20-memory-summary-contract. This follow-up separates archived scene recaps from the constant-summary size limit, corrects helper routing, and verifies restart/resume from persisted progress. No reset or unrelated issue sweep is planned.

<!-- gh-comment-id:5752211761 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Reopening for the follow-up reported on staging `26e2cd0` (before #6462): preparation reaches 19 scene entries, then repeats the compaction error. The maintainer wants scene-only summary requests using the Advanced Memory helper and context limit, with existing paid summaries preserved across an update. Implementation owner: @SpicyMarinara with Codex, branch `codex/sept20-memory-summary-contract`. This follow-up separates archived scene recaps from the constant-summary size limit, corrects helper routing, and verifies restart/resume from persisted progress. No reset or unrelated issue sweep is planned.
Author
Owner

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

The maintainer also requested deletion of individual scene memories from their editor, with confirmation. This is included in #6466: delete the saved recap, preserve the transcript, and reuse the existing excluded-record handling so maintenance does not regenerate it.

Recovery proof now includes the actual 26e2cd0 implementation writing a 1,000-message archive, failing after 19 completed recaps, and the patched implementation reopening that persisted storage: all 19 were unchanged, only the unfinished scene made a new request, and boundary detection did not repeat. The regression uses a local model fixture, not a paid provider.

<!-- gh-comment-id:5752305217 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): The maintainer also requested deletion of individual scene memories from their editor, with confirmation. This is included in #6466: delete the saved recap, preserve the transcript, and reuse the existing excluded-record handling so maintenance does not regenerate it. Recovery proof now includes the actual `26e2cd0` implementation writing a 1,000-message archive, failing after 19 completed recaps, and the patched implementation reopening that persisted storage: all 19 were unchanged, only the unfinished scene made a new request, and boundary detection did not repeat. The regression uses a local model fixture, not a paid provider.
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#3617
No description provided.