[GH-ISSUE #6512] [Issue]: Advanced Memory fails on tiny constant-compaction targets #3649

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced Memory can stop with “The helper model could not compact this history within the 196-token constant summary limit.” The number is a proportional target assigned to a constant-summary group, but the helper treats it as a strict completion requirement. This can block processing despite otherwise completed scene summaries.

Expected behavior

  • Scene recaps should request 2–3 paragraphs.
  • Automated summaries should have at least 8,196 output tokens for reasoning and final text, preserving a higher Chat Summary Maximum output size.
  • Constant consolidation should work toward its configured share after generation without repeatedly failing or spending tokens to force one small group under a hard per-group target.
  • Existing summaries and completed preparation work must be preserved.
  • Failed or unfinished helper output must not create active constants. A successful compacted replacement deactivates its originals.
  • Generated constants use message-range titles. Constants covering live messages stay out of that prompt and out of archived-summary compaction.
  • Scene-end checks appear as Advanced Recall in agent activity, including checks sharing a post-processing tracker call. Reindexing must preserve the check interval.

The maintainer also reported an automatic character-specific New Start on the latest message at roughly 30k in Peek Prompt, despite a 65k configured prompt limit. The flag menu did not show it selected and could not remove it. The context limit must apply to the outgoing prompt, excluding reply allowance; automatic scene resets must apply to all characters and be reversible through the existing All flag.

Actual behavior

The maintainer repeatedly receives the 196-token constant-summary error. Current code derives this target from each group’s share of the constant budget and retries until the summary fits it exactly. Scene prompts also lack the requested paragraph guidance.

Steps to reproduce

  1. Enable Advanced Memory with several constant-summary groups.
  2. Exceed the configured constant share so a small group receives a proportional compaction target.
  3. Return a valid summary above that target; processing can fail repeatedly on Resume.

Environment

  • Marinara Engine version: staging after #6510; exact running build not provided for this report.
  • Install type: not provided for this report.
  • OS + version: not provided for this report.
  • Browser or app shell: not provided for this report.

Logs, screenshots, or video

Reported error: “The helper model could not compact this history within the 196-token constant summary limit. Resume processing retries unfinished work.”

Additional context

Owner: @SpicyMarinara, with Codex-assisted implementation. Keep the fix narrow and reuse Chat Summary settings and existing resumable preparation.

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/6512 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced Memory can stop with “The helper model could not compact this history within the 196-token constant summary limit.” The number is a proportional target assigned to a constant-summary group, but the helper treats it as a strict completion requirement. This can block processing despite otherwise completed scene summaries. ## Expected behavior - Scene recaps should request 2–3 paragraphs. - Automated summaries should have at least 8,196 output tokens for reasoning and final text, preserving a higher Chat Summary Maximum output size. - Constant consolidation should work toward its configured share after generation without repeatedly failing or spending tokens to force one small group under a hard per-group target. - Existing summaries and completed preparation work must be preserved. - Failed or unfinished helper output must not create active constants. A successful compacted replacement deactivates its originals. - Generated constants use message-range titles. Constants covering live messages stay out of that prompt and out of archived-summary compaction. - Scene-end checks appear as Advanced Recall in agent activity, including checks sharing a post-processing tracker call. Reindexing must preserve the check interval. The maintainer also reported an automatic character-specific New Start on the latest message at roughly 30k in Peek Prompt, despite a 65k configured prompt limit. The flag menu did not show it selected and could not remove it. The context limit must apply to the outgoing prompt, excluding reply allowance; automatic scene resets must apply to all characters and be reversible through the existing All flag. ## Actual behavior The maintainer repeatedly receives the 196-token constant-summary error. Current code derives this target from each group’s share of the constant budget and retries until the summary fits it exactly. Scene prompts also lack the requested paragraph guidance. ## Steps to reproduce 1. Enable Advanced Memory with several constant-summary groups. 2. Exceed the configured constant share so a small group receives a proportional compaction target. 3. Return a valid summary above that target; processing can fail repeatedly on Resume. ## Environment - Marinara Engine version: staging after #6510; exact running build not provided for this report. - Install type: not provided for this report. - OS + version: not provided for this report. - Browser or app shell: not provided for this report. ## Logs, screenshots, or video Reported error: “The helper model could not compact this history within the 196-token constant summary limit. Resume processing retries unfinished work.” ## Additional context Owner: @SpicyMarinara, with Codex-assisted implementation. Keep the fix narrow and reuse Chat Summary settings and existing resumable preparation. ## Template check - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:29 +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#3649
No description provided.