[GH-ISSUE #1758] Gacha Forge: forging the next chapter takes 15-20 minutes #1736

Closed
opened 2026-11-07 16:36:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1758

Originally assigned to: @SpicyMarinara on GitHub.

Reported by the maintainer: forging the next chapter (not the story beats) takes 15–20 minutes.

Confirmed causes so far

  • The forging screen waits for every fight to be designed. After the plan lands, /combat-guide runs once per combat node, one after another, before the chapter map is shown.
  • Generation waits for story memory. Every memory-enabled generation, the chapter plan included, waits for any running memory job and summarizes missing records first (recall() awaits maintain()). Right after a chapter ends, the plan therefore waits for that chapter's summary and the overview rewrite.
  • Long summaries always fail. Memory summaries reserve at most 2,000 output tokens, but every generation needs at least 8,192 (generation-output-capacity). Long sources therefore always fail, and memory falls back to the legacy history.

Maintainer's direction

  1. The chapter plan is just the plan. Fights are designed alongside story beats, in node order, in the background.
  2. Allow at least 10k output tokens for summaries, because thinking models need the room.
  3. The recall design stays: the constant summary, recalled chapter summaries, the last chapter in full, and the current chapter. Summarizing runs automatically in the background and never blocks generation.

A full latency trace is in progress. The fix PR will link here.

Originally created by @SpicyMarinara on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1758 Originally assigned to: @SpicyMarinara on GitHub. Reported by the maintainer: forging the next chapter (not the story beats) takes 15–20 minutes. **Confirmed causes so far** - **The forging screen waits for every fight to be designed.** After the plan lands, `/combat-guide` runs once per combat node, one after another, before the chapter map is shown. - **Generation waits for story memory.** Every memory-enabled generation, the chapter plan included, waits for any running memory job and summarizes missing records first (`recall()` awaits `maintain()`). Right after a chapter ends, the plan therefore waits for that chapter's summary and the overview rewrite. - **Long summaries always fail.** Memory summaries reserve at most 2,000 output tokens, but every generation needs at least 8,192 (`generation-output-capacity`). Long sources therefore always fail, and memory falls back to the legacy history. **Maintainer's direction** 1. The chapter plan is just the plan. Fights are designed alongside story beats, in node order, in the background. 2. Allow at least 10k output tokens for summaries, because thinking models need the room. 3. The recall design stays: the constant summary, recalled chapter summaries, the last chapter in full, and the current chapter. Summarizing runs automatically in the background and never blocks generation. A full latency trace is in progress. The fix PR will link here.
bsakaguchi 2026-11-07 16:36:19 +07:00
  • closed this issue
  • added the
    bug
    label
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-Agents#1736
No description provided.