[PR #2115] [MERGED] feat(otome-forge): 0.8.7: Opus 5.5 memory fix, the protagonist's outfit, the world you chose, your 5★ first-wear scene, couple sets #2125

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2115
Author: @SpicyMarinara
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-protagonist-outfit


📝 Commits (10+)

  • ad4cff7 feat(otome-forge): the story knows what the protagonist wears now (0.8.7)
  • fef4407 fix(otome-forge): couple set looks line up at the top
  • 620e4df fix(otome-forge): chapters keep the world you chose (0.8.8)
  • 50fb538 fix(otome-forge): 0.8.7 review fixes
  • de1a2cf feat(otome-forge): the protagonist's 5-star look gets a first-wear scene like a love interest's
  • 956e216 fix(otome-forge): 0.8.8 review fixes
  • dcb796b fix(otome-forge): the timeline-condensing call has room to finish
  • 07f33c5 Merge commit 'fef4407ee' into feat/otome-protagonist-outfit
  • 452adf7 Merge commit 'dcb796b8a' into feat/otome-protagonist-outfit
  • 53a2bc9 fix(otome-forge): her-look5 first-wear review fixes

📊 Changes

41 files changed (+1440 additions, -718 deletions)

View changed files

➕ artifacts/otome-forge-0.8.7.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+8 -0)
📝 packages/otome-forge/README.md (+2 -2)
📝 packages/otome-forge/client.js (+326 -325)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+130 -130)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx (+10 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/MemoryBanner.tsx (+23 -45)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-items.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-memory.ts (+30 -18)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/memory-notice.ts (+13 -17)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wardrobe/Wardrobe.tsx (+12 -5)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+3 -2)

...and 21 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2114

Why this change

  • Retry the summary hangs. It stayed on "Trying the summary again…" indefinitely.
  • Story memory fails on Claude Opus 5.5. A player on Opus 5.5 got "The model's reply for memory-timeline did not match: the reply was cut…" every time the timeline condensed, so memory never recovered. The condensing call asks for about 5,000 words of JSON, but it had a chapter summary's 10,240-token reply room. A thinking model spends its thinking from that same room.
  • Love interests vs. the protagonist. The story knew what a love interest wears, but not what the protagonist wears.
  • World drift. Players reported every world drifting to a steampunk look. The player's premise (its genre, era and technology) never reached the chapter planners. They only saw the model's 2–4 sentence rewrite of it, which was never asked to keep the era.
  • 5★ looks. A love interest's 5★ look has a first-wear scene. The protagonist's 5★ look, the other half of the couple set, had none.
  • Couple set alignment. The two looks in a couple set sat at different heights when one name wrapped to two lines.

What changed

Otome Hearth 0.8.7 (otome-forge):

  • Memory: the timeline-condensing call now asks for 24,576 tokens of reply room, plus the usual reasoning headroom, instead of 10,240. Chapter summaries keep theirs. A model with a small context still gets what its context leaves.
  • The protagonist's outfit:
    • The protagonist's prompt block now ends with the same "How … looks now" line love interests get: the worn Wardrobe look, else the everyday outfit. It reuses appearanceLine.
    • The persona's Appearance still goes in once.
    • The date planner's duplicate WHAT THEY WEAR block is removed.
    • The "noticed" and Show prompts don't repeat the look they're about.
  • World:
    • The player's premise is added, read only for its genre, era and technology, to the arc planner and the chapter planners: main, route, repair, Character Story and extra story. The extra story's AU kind may still leave it.
    • Every other prompt (scenes, bibles, Home lines, notes, dates, phone chat, images) sends exactly what it sent before.
    • The world plan's setting now states the era and technology the premise sets, and a rule keeps them.
    • The premise box placeholder no longer suggests "a city of clockwork canals".
    • Outfit and place tags are unchanged.
  • The protagonist's 5★ look (her-look5): it now gets the same one-scene first-wear story as a love interest's 5★ look, through the same pipeline.
    • The scene is with the love interest of its couple set and names their matching look. If the pair can't be read, it's written without the couple sentence.
    • Only that love interest remembers it.
    • Writing it costs no model call or paint. A look you already own gets its scene on the next open.
    • Back from the scene returns to the right Wardrobe tab.
  • Couple sets: both looks line up at the top, and the heart sits level with the middle of the pictures.
  • Retry the summary: it no longer hangs on "Trying the summary again…".
    • The cause: Retry queued the summary as background work, and the Engine refuses background work on a connection while the story's own calls run on it. The memory connection falls back to the story's, so while the player kept reading the retry never ran.
    • Retry now runs as a foreground job, placed ahead of other queued work.
    • The banner hides on Retry and comes back only if the summary fails again, if no connection can write summaries, or if the Retry request itself fails. While automatic upkeep waits after a failure, the banner keeps showing the failure.
  • Version 0.8.7, with one CHANGELOG entry. The package, artifact, catalogs and notes are rebuilt.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (capability API and minimum Engine unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. Saved stories keep working. A story already under way gets the premise from its next plan, and owned 5★ looks get their scene on next open.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify on a Claude Opus 5.5 connection that a long story's memory condenses without the "reply was cut" banner.
  • Manually verify that wearing a look with Wear at home shows up in how the next scene describes the protagonist.
  • Manually verify that a new story with a modern or sci-fi premise keeps that era in its chapters.
  • Manually verify that opening the protagonist's 5★ look offers Read the first-wear scene, and that the scene is with the couple set's love interest.
  • Manually verify that pressing Retry the summary while reading hides the banner, and that it returns only if the summary fails again.
  • Manually verify on a phone that a couple set whose look name wraps to two lines keeps both pictures level.

Agent-run checks:

  • npm run test:otome-forge: all 688 passed. New tests cover:
    • the condensing reply room (fails on the old code);
    • the protagonist's look line, with the persona Appearance once;
    • the premise only in planners, with every other prompt byte-equal to staging;
    • the first-wear scene's pair, memory audience, no repeat charge, and already-owned looks;
    • the reader pinning nothing for a her-look5;
    • the summary retry (hidden while it runs, back on a new failure, never hiding a real failure).
  • node scripts/typecheck-packages.mjs otome-forge: clean. npm run format:check, node scripts/validate-catalog.mjs and git diff --check: pass.
  • Each part had its own independent review. Every confirmed finding is fixed, including a revert of wording changes that went beyond the maintainer's limits for the world fix. The combined result had an independent check with no problems.
  • A separate check confirmed that the previous chapter is always sent in full exactly once, never beside its summary, even when its summary is still being written as the next chapter starts.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/2115 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/5/2026 **Status:** ✅ Merged **Merged:** 11/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-protagonist-outfit` --- ### 📝 Commits (10+) - [`ad4cff7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ad4cff7cda4f83119dbdd95b2d257ded6d193a9c) feat(otome-forge): the story knows what the protagonist wears now (0.8.7) - [`fef4407`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fef4407ee878a17281a42dc25f032b483eef9d40) fix(otome-forge): couple set looks line up at the top - [`620e4df`](https://github.com/Pasta-Devs/Marinara-Agents/commit/620e4df02245c69c92be988ebc5ad5f358854645) fix(otome-forge): chapters keep the world you chose (0.8.8) - [`50fb538`](https://github.com/Pasta-Devs/Marinara-Agents/commit/50fb538761c75ef6a3e075dfa9718c43cd7ddf05) fix(otome-forge): 0.8.7 review fixes - [`de1a2cf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/de1a2cfdbb413c58a7333a7d077e31a185fc8bea) feat(otome-forge): the protagonist's 5-star look gets a first-wear scene like a love interest's - [`956e216`](https://github.com/Pasta-Devs/Marinara-Agents/commit/956e216e7406a8694ddac2f439fafa68dd6ccd82) fix(otome-forge): 0.8.8 review fixes - [`dcb796b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/dcb796b8a62d621d3c5cd926199e2291b5484b1b) fix(otome-forge): the timeline-condensing call has room to finish - [`07f33c5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/07f33c5d0a761ed113543395918f6c068ecf04c0) Merge commit 'fef4407ee' into feat/otome-protagonist-outfit - [`452adf7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/452adf7a3dc23386294b6bc252e6dea96118305f) Merge commit 'dcb796b8a' into feat/otome-protagonist-outfit - [`53a2bc9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/53a2bc984d14755b43e9a4df6fa829e4b2f82b75) fix(otome-forge): her-look5 first-wear review fixes ### 📊 Changes **41 files changed** (+1440 additions, -718 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.8.7.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+8 -0) 📝 `packages/otome-forge/README.md` (+2 -2) 📝 `packages/otome-forge/client.js` (+326 -325) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+130 -130) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx` (+10 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/MemoryBanner.tsx` (+23 -45) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-items.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-memory.ts` (+30 -18) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/memory-notice.ts` (+13 -17) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wardrobe/Wardrobe.tsx` (+12 -5) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+3 -2) _...and 21 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2114 ## Why this change - **Retry the summary hangs.** It stayed on "Trying the summary again…" indefinitely. - **Story memory fails on Claude Opus 5.5.** A player on Opus 5.5 got "The model's reply for memory-timeline did not match: the reply was cut…" every time the timeline condensed, so memory never recovered. The condensing call asks for about 5,000 words of JSON, but it had a chapter summary's 10,240-token reply room. A thinking model spends its thinking from that same room. - **Love interests vs. the protagonist.** The story knew what a love interest wears, but not what the protagonist wears. - **World drift.** Players reported every world drifting to a steampunk look. The player's premise (its genre, era and technology) never reached the chapter planners. They only saw the model's 2–4 sentence rewrite of it, which was never asked to keep the era. - **5★ looks.** A love interest's 5★ look has a first-wear scene. The protagonist's 5★ look, the other half of the couple set, had none. - **Couple set alignment.** The two looks in a couple set sat at different heights when one name wrapped to two lines. ## What changed Otome Hearth 0.8.7 (`otome-forge`): - **Memory:** the timeline-condensing call now asks for 24,576 tokens of reply room, plus the usual reasoning headroom, instead of 10,240. Chapter summaries keep theirs. A model with a small context still gets what its context leaves. - **The protagonist's outfit:** - The protagonist's prompt block now ends with the same "How … looks now" line love interests get: the worn Wardrobe look, else the everyday outfit. It reuses `appearanceLine`. - The persona's Appearance still goes in once. - The date planner's duplicate WHAT THEY WEAR block is removed. - The "noticed" and Show prompts don't repeat the look they're about. - **World:** - The player's premise is added, read only for its genre, era and technology, to the arc planner and the chapter planners: main, route, repair, Character Story and extra story. The extra story's AU kind may still leave it. - Every other prompt (scenes, bibles, Home lines, notes, dates, phone chat, images) sends exactly what it sent before. - The world plan's setting now states the era and technology the premise sets, and a rule keeps them. - The premise box placeholder no longer suggests "a city of clockwork canals". - Outfit and place tags are unchanged. - **The protagonist's 5★ look (`her-look5`):** it now gets the same one-scene first-wear story as a love interest's 5★ look, through the same pipeline. - The scene is with the love interest of its couple set and names their matching look. If the pair can't be read, it's written without the couple sentence. - Only that love interest remembers it. - Writing it costs no model call or paint. A look you already own gets its scene on the next open. - Back from the scene returns to the right Wardrobe tab. - **Couple sets:** both looks line up at the top, and the heart sits level with the middle of the pictures. - **Retry the summary:** it no longer hangs on "Trying the summary again…". - The cause: Retry queued the summary as background work, and the Engine refuses background work on a connection while the story's own calls run on it. The memory connection falls back to the story's, so while the player kept reading the retry never ran. - Retry now runs as a foreground job, placed ahead of other queued work. - The banner hides on Retry and comes back only if the summary fails again, if no connection can write summaries, or if the Retry request itself fails. While automatic upkeep waits after a failure, the banner keeps showing the failure. - Version 0.8.7, with one CHANGELOG entry. The package, artifact, catalogs and notes are rebuilt. ## Package and security impact - Affected package IDs: otome-forge - Engine compatibility impact: none (capability API and minimum Engine unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. Saved stories keep working. A story already under way gets the premise from its next plan, and owned 5★ looks get their scene on next open. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify on a Claude Opus 5.5 connection that a long story's memory condenses without the "reply was cut" banner. - Manually verify that wearing a look with **Wear at home** shows up in how the next scene describes the protagonist. - Manually verify that a new story with a modern or sci-fi premise keeps that era in its chapters. - Manually verify that opening the protagonist's 5★ look offers **Read the first-wear scene**, and that the scene is with the couple set's love interest. - Manually verify that pressing **Retry the summary** while reading hides the banner, and that it returns only if the summary fails again. - Manually verify on a phone that a couple set whose look name wraps to two lines keeps both pictures level. Agent-run checks: - `npm run test:otome-forge`: all 688 passed. New tests cover: - the condensing reply room (fails on the old code); - the protagonist's look line, with the persona Appearance once; - the premise only in planners, with every other prompt byte-equal to staging; - the first-wear scene's pair, memory audience, no repeat charge, and already-owned looks; - the reader pinning nothing for a `her-look5`; - the summary retry (hidden while it runs, back on a new failure, never hiding a real failure). - `node scripts/typecheck-packages.mjs otome-forge`: clean. `npm run format:check`, `node scripts/validate-catalog.mjs` and `git diff --check`: pass. - Each part had its own independent review. Every confirmed finding is fixed, including a revert of wording changes that went beyond the maintainer's limits for the world fix. The combined result had an independent check with no problems. - A separate check confirmed that the previous chapter is always sent in full exactly once, never beside its summary, even when its summary is still being written as the next chapter starts. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:40 +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-Agents#2125
No description provided.