mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #2039] [Issue]: Otome Hearth context management doesn't follow the Gacha Forge memory rules #1885
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1885
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2039
Originally assigned to: @SpicyMarinara on GitHub.
What's wrong
Otome Hearth's story memory is automatic and runs in the background. It uses the same forge-kit memory core as Gacha Forge: summaries, overview, recall ranking with the 3 + 3 caps, audience, first canon stays canon, and the knowledge boundary. Its context management doesn't follow the Gacha Forge design rules, though. A code audit on staging (Otome 0.6.16) found these gaps:
chatkind, so they are stored word for word (sources/forge-kit/story-memory.mjs~548-551). A prompt sees that love interest's newest private chapters in full, up to 12,000 tokens. Older ones come back only as recalled details, and only if a whole chapter fits the recall budget (10% of context + 2,000). A long route soon keeps only its last chapter or two plus its big choices.story/canon.ts:37-39admits this.fitForgeMemoryPrompt.fitContext. On overflow, that shrinks the reply first (down to 128 tokens), then cuts the end of the system message, which holds the writing rules and JSON shape, before it touches any memory.bad-formatafter one repair turn.story/canon.ts~459-467). They grow when the overview keeps failing or no longer fits a smaller-context reader.memory/memory.ts:108-109says changed sources get re-summarized.Expected (Gacha Forge rules)
Package
otome-forge (Otome Hearth)
@SpicyMarinara commented on GitHub (Nov 1, 2026):
The maintainer restated the target for Otome Hearth, which matches Gacha Forge (roleplay-mode memory):
So route, repair, date and Character Story chapters will be handled like Gacha Forge's Character Stories:
Phone sessions, Snapshots, Read Him and Claw rounds stay private to their love interest, like Gacha Forge's chats.
@SpicyMarinara commented on GitHub (Nov 1, 2026):
Two more points from the maintainer:
canonicalSegmentsand the kit'sforgeCanonicalSegments, the Confrontation rounds and the decisions block). A regression test will keep it that way.@SpicyMarinara commented on GitHub (Nov 1, 2026):
One more requirement from the maintainer: the fix must also apply to stories already in progress. After updating, a run saved by 0.6.16 or earlier gets the full new behaviour with no player action:
None of it blocks play. First canon stays canon: chapter text is never rewritten. Only the missing summaries are added and the overview is rebuilt. A regression test will load a memory document saved by 0.6.16 and prove it catches up. Follow-ups: #2040 (What happened so far… while forging) and #2041 (Who said what? while a scene loads).
@SpicyMarinara commented on GitHub (Nov 2, 2026):
Fixed by #2042 (Otome Hearth 0.6.17), merged into staging.