[PR #2129] [MERGED] fix(otome-forge): chapters remember your last Character Story, whoever leads them (0.8.11) #2132

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-character-story-carryover


📝 Commits (2)

  • 38f66d1 fix(otome-forge): chapters remember your last Character Story, whoever leads them (0.8.11)
  • 982f404 docs(otome-forge): name the last Character Story's real headings, and what counts as one (0.8.11)

📊 Changes

19 files changed (+454 additions, -196 deletions)

View changed files

➕ artifacts/otome-forge-0.8.11.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/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 (+124 -124)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts (+10 -5)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/timeline.ts (+3 -3)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/beats.ts (+4 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/canon.ts (+73 -20)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts (+6 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/routes-plan.ts (+4 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-beats.regression.ts (+185 -0)

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

Why this change

The maintainer played a Character Story with one love interest, then a story chapter led by another one. That chapter lost what happened in the Character Story, and its scenes sometimes contradicted it. Their request: "always include in the chapter/scene generation a summary of the last character story, with the mention that it's private between MC and that selected LI."

The cause: a Character Story is private to its love interest. Before its summary was folded into the timeline, a plan or scene got it only when that love interest led the chapter or was in the scene. Memory upkeep runs in the background and waits while the player's own calls use the connection. So a chapter played right after the story, led by someone else, often got nothing of it.

What changed

  • otome-forge 0.8.11 (rebuilt server.mjs, manifest, artifact and catalog entries; client.js is unchanged).
  • Server:
    • story/canon.ts: recallText takes a new opt-in, lastStory. The newest completed Character Story is chosen from every completed chapter, never from what the cast may know. This covers a Memory's story, a Moment or a first-wear scene, but not an extra story or a date.

      • It goes into the cached story context for every cast. Its heading names it as private between the protagonist and its love interest, and names anyone else who appears in it.
      • It goes by its summary, or in full while it has none. Its summary never gives way.
      • When the timeline holds its entry, that entry is left out so the text appears once. If the timeline's condensed head already holds it, the block still goes in.
      • Without the option the output is byte-identical.
    • The option is passed only from the storyline prompts:

      • the main chapter plan (story/chapters.ts);
      • the route and repair plans (story/routes-plan.ts);
      • scenes, Confrontations and Closers of main, route and repair chapters (story/beats.ts).

      Dates, Character Story plans, extra stories, banners, arcs and Messages are unchanged.

    • memory/timeline.ts: renderTimeline can leave out several entries.

    • titleOf, the memory sources and the shared knowledge-boundary text are untouched.

  • Docs and release: README "Private memory" bullet, CHANGELOG 0.8.11.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386). Built against the same Engine commit as 0.8.10.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. No stored data changes; stories already in progress get the block on their next chapter or scene.

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: play a Character Story with one love interest, then start the next main chapter led by a different love interest. With Debug mode on, check that the chapter plan and its first scene carry # Last Character Story … naming it private between your protagonist and that love interest.
  • Manually verify that the chapter's scenes don't contradict that story, and that the other love interests act as if they don't know what happened in it.

Agent-run checks:

  • npm run test:otome-forge: 679 + 13 pass, 0 fail. Two new cases in tests/otome-forge-beats.regression.ts:
    • The text is identical across casts in every memory state: no summary, summary, timeline entry, condensed head.
    • The newest story is the one chosen, and extra stories and dates are never chosen.
    • Cameos are named, and an empty protagonist name falls back to "the protagonist".
    • Without the option the output is unchanged.
    • A Sol-led chapter plan after a Mireille story carries it in message 0, as its first scene does.
  • Strict package typecheck: 0 errors.
  • npm run check: Prettier clean, ESLint 0 errors.
  • validate-catalog.mjs (44 packages, v2=44, v3=44), validate-package-locales, validate-package-locale-keys, test-catalog-lanes, catalog-release-notes, catalog-generatedat-determinism, git diff --check: pass.
  • The Playwright browser suites were not run locally; CI runs them.
  • Local CodeRabbit: 0 findings.

Left for the maintainer (not changed here, to keep to the request):

  • Only the newest Character Story is sent this way. An older one that the timeline hasn't folded in yet still waits for its summary.
  • That love interest's ledger rows from the story, and their dates, still reach only their own scenes.

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/2129 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/6/2026 **Status:** ✅ Merged **Merged:** 11/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-character-story-carryover` --- ### 📝 Commits (2) - [`38f66d1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/38f66d1d6d8c7553d4bfeb56cf8ce7aaa0f0d331) fix(otome-forge): chapters remember your last Character Story, whoever leads them (0.8.11) - [`982f404`](https://github.com/Pasta-Devs/Marinara-Agents/commit/982f40478948f8942e3c671ca41b850bf9616ef6) docs(otome-forge): name the last Character Story's real headings, and what counts as one (0.8.11) ### 📊 Changes **19 files changed** (+454 additions, -196 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.8.11.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/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` (+124 -124) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts` (+10 -5) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/timeline.ts` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/beats.ts` (+4 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/canon.ts` (+73 -20) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/chapters.ts` (+6 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/routes-plan.ts` (+4 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-beats.regression.ts` (+185 -0) </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 #2126 ## Why this change The maintainer played a Character Story with one love interest, then a story chapter led by another one. That chapter lost what happened in the Character Story, and its scenes sometimes contradicted it. Their request: "always include in the chapter/scene generation a summary of the last character story, with the mention that it's private between MC and that selected LI." The cause: a Character Story is private to its love interest. Before its summary was folded into the timeline, a plan or scene got it only when that love interest led the chapter or was in the scene. Memory upkeep runs in the background and waits while the player's own calls use the connection. So a chapter played right after the story, led by someone else, often got nothing of it. ## What changed - **otome-forge 0.8.11** (rebuilt `server.mjs`, manifest, artifact and catalog entries; `client.js` is unchanged). - **Server:** - `story/canon.ts`: `recallText` takes a new opt-in, `lastStory`. The newest completed Character Story is chosen from every completed chapter, never from what the cast may know. This covers a Memory's story, a Moment or a first-wear scene, but not an extra story or a date. - It goes into the cached story context for every cast. Its heading names it as private between the protagonist and its love interest, and names anyone else who appears in it. - It goes by its summary, or in full while it has none. Its summary never gives way. - When the timeline holds its entry, that entry is left out so the text appears once. If the timeline's condensed head already holds it, the block still goes in. - Without the option the output is byte-identical. - The option is passed only from the storyline prompts: - the main chapter plan (`story/chapters.ts`); - the route and repair plans (`story/routes-plan.ts`); - scenes, Confrontations and Closers of main, route and repair chapters (`story/beats.ts`). Dates, Character Story plans, extra stories, banners, arcs and Messages are unchanged. - `memory/timeline.ts`: `renderTimeline` can leave out several entries. - `titleOf`, the memory sources and the shared knowledge-boundary text are untouched. - **Docs and release:** README "Private memory" bullet, CHANGELOG 0.8.11. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386). Built against the same Engine commit as 0.8.10. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. No stored data changes; stories already in progress get the block on their next chapter or scene. ## 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: play a Character Story with one love interest, then start the next main chapter led by a different love interest. With Debug mode on, check that the chapter plan and its first scene carry `# Last Character Story …` naming it private between your protagonist and that love interest. - Manually verify that the chapter's scenes don't contradict that story, and that the other love interests act as if they don't know what happened in it. Agent-run checks: - `npm run test:otome-forge`: 679 + 13 pass, 0 fail. Two new cases in `tests/otome-forge-beats.regression.ts`: - The text is identical across casts in every memory state: no summary, summary, timeline entry, condensed head. - The newest story is the one chosen, and extra stories and dates are never chosen. - Cameos are named, and an empty protagonist name falls back to "the protagonist". - Without the option the output is unchanged. - A Sol-led chapter plan after a Mireille story carries it in message 0, as its first scene does. - Strict package typecheck: 0 errors. - `npm run check`: Prettier clean, ESLint 0 errors. - `validate-catalog.mjs` (44 packages, v2=44, v3=44), `validate-package-locales`, `validate-package-locale-keys`, `test-catalog-lanes`, `catalog-release-notes`, `catalog-generatedat-determinism`, `git diff --check`: pass. - The Playwright browser suites were not run locally; CI runs them. - Local CodeRabbit: 0 findings. **Left for the maintainer** (not changed here, to keep to the request): - Only the newest Character Story is sent this way. An older one that the timeline hasn't folded in yet still waits for its summary. - That love interest's ledger rows from the story, and their dates, still reach only their own scenes. ## 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:45 +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#2132
No description provided.