[PR #2083] [MERGED] fix(otome-forge): love interests remember their Character Stories (0.7.3) #2107

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-story-continuity


📝 Commits (2)

  • 6e47931 fix(otome-forge): Character Stories join the timeline, private to their love interest (0.7.3)
  • 6fdbea1 fix(otome-forge): the Home note, Read Him and Read Me keep his Character Stories (0.7.3)

📊 Changes

19 files changed (+261 additions, -188 deletions)

View changed files

➕ artifacts/otome-forge-0.7.3.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/README.md (+1 -1)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/server.mjs (+125 -125)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/forge-kit.d.ts (+5 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/note.ts (+2 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/ids.ts (+1 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts (+22 -14)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-him.ts (+2 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-home-wardrobe.regression.ts (+16 -4)
📝 tests/otome-forge-memory-audience.regression.ts (+43 -4)

📄 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 #2082

Why this change

The maintainer played Character Stories and found the love interests acting as if they hadn't happened. Their request: "just ensure LIs are aware of what happened in character stories".

Since 0.7.0 (#2066), a Character Story, Moment or first-look scene stayed out of the story's timeline. It reached later prompts only as a recalled summary, and only when its love interest led the chapter or was in the scene. Those recalls share 5k tokens, newest first, with messages, Snapshots, Read Him, Claw rounds and Read Me, so older Character Stories were often left out.

The maintainer's rule from 2026-11-01 already said Character Stories go into the overview, as in Gacha Forge. Asked how much other love interests may use, they chose "you remember, they don't": the others act only on what they could see, as with route chapters.

What changed

Package: otome-forge 0.7.3 (rebuilt server.mjs, artifact and catalog preview entries).

  • Timeline (memory/memory.ts):
    • A story-<item> chapter's summary now joins the timeline in story order, as a route chapter does.
    • It keeps its private title, <Name>'s own story chapter "…" (private: …), and the summary's "Private: only and the protagonist know this." opening, which condensing keeps.
    • Dates are unchanged: they stay recalls.
  • No duplicates: a Character Story is no longer a recall in prompts that carry the timeline.
    • The Home note, Read Him and Read Me carry no timeline and send only his newest recall. They ask for his own Character Stories as recalls (ownStories, forge-kit.d.ts), so he knows them there too. Another love interest's never come.
  • Stories in progress:
    • OVERVIEW_STYLE goes from 3 to 4, so each saved run rebuilds its timeline once from the summaries it already has. That works the same way as 0.7.0's rebuild.
    • It needs no new summary calls. Condensing runs only if the rebuilt timeline passes 13k + 1k.
    • ponytail: a run whose memory is waiting for Retry (a failed summary) when it updates sends its summaries as recent canon until Retry rebuilds it, with the oldest giving way. The kit holds every failure for Retry.
  • Docs: the README's private memory line now matches the code. Route and repair chapters were already in the shared timeline, though it said they weren't. CHANGELOG 0.7.3.

Not in this PR, by the maintainer's choice: blocking the main story while a Character Story is unfinished, and handing a Character Story's ending to the next scene. Love interests' stage-2 thought lines are a mechanic the maintainer confirmed and kept.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: each story's memory rebuilds its timeline once in the background after the update. No storage format change.

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

What the agent ran:

  • tests/otome-forge-*.regression.ts: 634/634 pass; tests/otome-forge-*.regression.mjs: 13/13 pass.
  • typecheck-packages.mjs otome-forge, eslint and prettier on the changed files, git diff --check: clean.
  • The new regression fails on 0.7.2 and passes on 0.7.3. It checks four things:
    • a story- Character Story joins the timeline after the chapter it followed, titled private;
    • it is not a recall where the timeline goes;
    • the Home note, Read Him and Read Me path gets it as his newest recall;
    • another love interest never gets it as a recall.
  • The Messages test now expects Kai's Character Story in Mireille's prompt only inside the timeline, under its private title, and nowhere else.
  • CodeRabbit: one trivial finding, about where that test's check could match; fixed.
  • An independent three-lens review (privacy, stories in progress, timeline correctness) confirmed two issues:
    • The Home note, Read Him and Read Me lost Character Stories: fixed in the second commit.
    • A run with a failed summary at update time waits for Retry: documented with the ponytail: note.
    • Five more findings were refuted by adversarial verification. They were existing behaviour of route chapters and of 0.7.0's rebuild, or the accepted privacy design.

Manual verification notes

  • Manually verify in a story with a finished Character Story: after the update, open Debug → Story memory (or "What happened so far…" while a chapter is planned). The timeline rebuilds once and includes the Character Story.
  • Manually verify that the next main scene with that love interest refers to what happened in the Character Story.
  • Manually verify that a scene or message with another love interest doesn't show them knowing what happened in it.
  • Manually verify that the love interest's Home note can draw on the Character Story right after it's finished.

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/2083 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-story-continuity` --- ### 📝 Commits (2) - [`6e47931`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6e47931178b0c82bb11f8019c6c68203989c917b) fix(otome-forge): Character Stories join the timeline, private to their love interest (0.7.3) - [`6fdbea1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6fdbea1ba16fc52d2c8e20bf32c519960827e455) fix(otome-forge): the Home note, Read Him and Read Me keep his Character Stories (0.7.3) ### 📊 Changes **19 files changed** (+261 additions, -188 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.7.3.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/README.md` (+1 -1) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/server.mjs` (+125 -125) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/forge-kit.d.ts` (+5 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/note.ts` (+2 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/ids.ts` (+1 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts` (+22 -14) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-him.ts` (+2 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-home-wardrobe.regression.ts` (+16 -4) 📝 `tests/otome-forge-memory-audience.regression.ts` (+43 -4) </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 #2082 ## Why this change The maintainer played Character Stories and found the love interests acting as if they hadn't happened. Their request: "just ensure LIs are aware of what happened in character stories". Since 0.7.0 (#2066), a Character Story, Moment or first-look scene stayed out of the story's timeline. It reached later prompts only as a recalled summary, and only when its love interest led the chapter or was in the scene. Those recalls share 5k tokens, newest first, with messages, Snapshots, Read Him, Claw rounds and Read Me, so older Character Stories were often left out. The maintainer's rule from 2026-11-01 already said Character Stories go into the overview, as in Gacha Forge. Asked how much other love interests may use, they chose "you remember, they don't": the others act only on what they could see, as with route chapters. ## What changed Package: `otome-forge` 0.7.3 (rebuilt `server.mjs`, artifact and catalog preview entries). - **Timeline** (`memory/memory.ts`): - A `story-<item>` chapter's summary now joins the timeline in story order, as a route chapter does. - It keeps its private title, `<Name>'s own story chapter "…" (private: …)`, and the summary's "Private: only <Name> and the protagonist know this." opening, which condensing keeps. - Dates are unchanged: they stay recalls. - **No duplicates:** a Character Story is no longer a recall in prompts that carry the timeline. - The Home note, Read Him and Read Me carry no timeline and send only his newest recall. They ask for his own Character Stories as recalls (`ownStories`, `forge-kit.d.ts`), so he knows them there too. Another love interest's never come. - **Stories in progress:** - `OVERVIEW_STYLE` goes from 3 to 4, so each saved run rebuilds its timeline once from the summaries it already has. That works the same way as 0.7.0's rebuild. - It needs no new summary calls. Condensing runs only if the rebuilt timeline passes 13k + 1k. - `ponytail:` a run whose memory is waiting for Retry (a failed summary) when it updates sends its summaries as recent canon until Retry rebuilds it, with the oldest giving way. The kit holds every failure for Retry. - **Docs:** the README's private memory line now matches the code. Route and repair chapters were already in the shared timeline, though it said they weren't. CHANGELOG 0.7.3. Not in this PR, by the maintainer's choice: blocking the main story while a Character Story is unfinished, and handing a Character Story's ending to the next scene. Love interests' stage-2 thought lines are a mechanic the maintainer confirmed and kept. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: each story's memory rebuilds its timeline once in the background after the update. No storage format change. ## 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` What the agent ran: - `tests/otome-forge-*.regression.ts`: 634/634 pass; `tests/otome-forge-*.regression.mjs`: 13/13 pass. - `typecheck-packages.mjs otome-forge`, eslint and prettier on the changed files, `git diff --check`: clean. - The new regression fails on 0.7.2 and passes on 0.7.3. It checks four things: - a `story-` Character Story joins the timeline after the chapter it followed, titled private; - it is not a recall where the timeline goes; - the Home note, Read Him and Read Me path gets it as his newest recall; - another love interest never gets it as a recall. - The Messages test now expects Kai's Character Story in Mireille's prompt only inside the timeline, under its private title, and nowhere else. - CodeRabbit: one trivial finding, about where that test's check could match; fixed. - An independent three-lens review (privacy, stories in progress, timeline correctness) confirmed two issues: - The Home note, Read Him and Read Me lost Character Stories: fixed in the second commit. - A run with a failed summary at update time waits for Retry: documented with the `ponytail:` note. - Five more findings were refuted by adversarial verification. They were existing behaviour of route chapters and of 0.7.0's rebuild, or the accepted privacy design. ### Manual verification notes - Manually verify in a story with a finished Character Story: after the update, open Debug → Story memory (or "What happened so far…" while a chapter is planned). The timeline rebuilds once and includes the Character Story. - Manually verify that the next main scene with that love interest refers to what happened in the Character Story. - Manually verify that a scene or message with another love interest doesn't show them knowing what happened in it. - Manually verify that the love interest's Home note can draw on the Character Story right after it's finished. ## 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:33 +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#2107
No description provided.