[PR #1950] [MERGED] Otome Hearth 0.5.1: chapters vary how they end, and their closing choices differ #2045

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1950
Author: @SpicyMarinara
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-chapter-variety-1949


📝 Commits (1)

  • bf82b80 fix(otome-forge): chapters vary how they end, and their closing choices differ (#1949)

📊 Changes

16 files changed (+171 additions, -136 deletions)

View changed files

➕ artifacts/otome-forge-0.5.1.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/manifest.json (+3 -3)
📝 packages/otome-forge/server.mjs (+89 -89)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/prompts.ts (+15 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-beats.regression.ts (+13 -0)
📝 tests/otome-forge-date-night.regression.ts (+1 -0)
📝 tests/otome-forge-prologue.regression.ts (+1 -0)
📝 tests/otome-forge-sfw-defaults.regression.ts (+8 -6)

📄 Description

Pull request

Linked issue

Closes #1949

Why this change

  • The problem (maintainer's playtest): main chapters follow one formula. At the end of almost every chapter a love interest comes to take the protagonist away from another, and the player picks whom to go with. It gets boring.
  • The maintainer's call: a big choice at the end of a chapter is welcome. What should change is that the choices vary, and that chapters stop being built on one template. Places may repeat.
  • The cause: three prompt pieces combine.
    • The shared choice kit tells the chapter planner the final beat may end on one lasting decision (its examples include "romance").
    • The planner's Foil rule, "The Foil's goal competes with the protagonist's or the Lead's", reads in a romance as the Foil competing for the protagonist.
    • The narrator of a chapter's last node may end on a big choice. With the Lead and the Foil both there, it picks "whom do you go with".

What changed

otome-forge 0.5.1 (staging-only), in story/prompts.ts:

  • The chapter plan (P5): a new rule. No chapter is planned on the template of the ones before it: vary what drives it and where its turn falls. When its last node leaves a lasting decision open, that decision is a different kind from the recent chapters', not always whom the protagonist goes with, and never a choice between love interests two chapters running.
    • The recent chapters' decisions are already in the prompt: the irrevocable player decisions at the end of story memory (canon.ts decisionsText).
  • The Foil (P5): its rivalry is not always for the protagonist. A goal, a secret, a duty or the mystery counts too.
  • A chapter's last node (P6): a big choice stays optional, as before. When it is offered, it is a different kind of decision from the recent ones. This applies to main, route, repair and Character Story chapters. The prologue keeps its own choices, and dates never end on a big choice.
  • Shared wording: both rules share one VARIED_DECISION phrase, so they say the same thing.
  • Unchanged: the shared kit (sources/forge-kit) is not touched, so Gacha Forge is not affected. Route, repair, Confrontation and Closer prompts are byte-identical (their SFW digests did not move).
  • Release: CHANGELOG 0.5.1, and the rebuilt bundle, manifest, catalogs, notes and 0.5.1 zip.

Package and security impact

  • Affected package IDs: otome-forge (0.5.1, staging-only).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none. Prompt text only.
  • Restart, storage, update, or uninstall impact: none. Stories in progress pick up the rules from their next chapter plan and next last node.

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

Agent-side checks:

  • Pass: npm run test:otome-forge (487 + 12), the strict typecheck, npm run check, git diff --check, test-catalog-lanes, validate-package-locales and catalog-release-notes.
  • tests/otome-forge-beats.regression.ts: the last node carries the varied-decision rule and the climax before it does not. The chapter plan carries the template rule, the same phrase and the new Foil wording. It fails on staging's prompts.
  • tests/otome-forge-prologue.regression.ts, tests/otome-forge-date-night.regression.ts: the prologue and a date's last scene do not carry it. The prologue assertion fails if its exclusion is removed.
  • tests/otome-forge-sfw-defaults.regression.ts: the SFW digests of the chapter plan and both beat prompts are taken again (Angst and Gentle), as the test's header asks when an SFW prompt changes on purpose. The beat fixture is a one-node chapter, so it is a last node. Every other digest is unchanged.
  • Not run locally: validate-catalog, because the sparse worktree leaves out other packages' zips (CI runs it), and the browser suite (CI runs it; no UI changed).
  • Running alongside: local CodeRabbit and a multi-agent review.

Please verify by hand:

  • Manually verify, by playing three or four main chapters in one story, that their endings and closing choices differ, and that no two chapters in a row end on choosing between love interests.
  • Manually verify, with debug mode on, that a chapter plan carries "Never plan a chapter on the template of the ones before it", and that the prompt for a chapter's last scene carries "This is the chapter's last node".
  • Manually verify that a route chapter's gate still ends on its big choice.

Documentation impact

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

The CHANGELOG has the 0.5.1 entry; the README does not describe how chapters end.

Owner: @SpicyMarinara (made by Claude).

🤖 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/1950 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-chapter-variety-1949` --- ### 📝 Commits (1) - [`bf82b80`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bf82b800961369a3a8b61e029d372b42baeebe16) fix(otome-forge): chapters vary how they end, and their closing choices differ (#1949) ### 📊 Changes **16 files changed** (+171 additions, -136 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.5.1.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/manifest.json` (+3 -3) 📝 `packages/otome-forge/server.mjs` (+89 -89) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/story/prompts.ts` (+15 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-beats.regression.ts` (+13 -0) 📝 `tests/otome-forge-date-night.regression.ts` (+1 -0) 📝 `tests/otome-forge-prologue.regression.ts` (+1 -0) 📝 `tests/otome-forge-sfw-defaults.regression.ts` (+8 -6) </details> ### 📄 Description # Pull request ## Linked issue Closes #1949 ## Why this change - **The problem (maintainer's playtest):** main chapters follow one formula. At the end of almost every chapter a love interest comes to take the protagonist away from another, and the player picks whom to go with. It gets boring. - **The maintainer's call:** a big choice at the end of a chapter is welcome. What should change is that the choices vary, and that chapters stop being built on one template. Places may repeat. - **The cause:** three prompt pieces combine. - The shared choice kit tells the chapter planner the final beat may end on one lasting decision (its examples include "romance"). - The planner's Foil rule, "The Foil's goal competes with the protagonist's or the Lead's", reads in a romance as the Foil competing for the protagonist. - The narrator of a chapter's last node may end on a big choice. With the Lead and the Foil both there, it picks "whom do you go with". ## What changed `otome-forge` 0.5.1 (staging-only), in `story/prompts.ts`: - **The chapter plan (P5):** a new rule. No chapter is planned on the template of the ones before it: vary what drives it and where its turn falls. When its last node leaves a lasting decision open, that decision is a different kind from the recent chapters', not always whom the protagonist goes with, and never a choice between love interests two chapters running. - The recent chapters' decisions are already in the prompt: the irrevocable player decisions at the end of story memory (`canon.ts decisionsText`). - **The Foil (P5):** its rivalry is not always for the protagonist. A goal, a secret, a duty or the mystery counts too. - **A chapter's last node (P6):** a big choice stays optional, as before. When it is offered, it is a different kind of decision from the recent ones. This applies to main, route, repair and Character Story chapters. The prologue keeps its own choices, and dates never end on a big choice. - **Shared wording:** both rules share one `VARIED_DECISION` phrase, so they say the same thing. - **Unchanged:** the shared kit (`sources/forge-kit`) is not touched, so Gacha Forge is not affected. Route, repair, Confrontation and Closer prompts are byte-identical (their SFW digests did not move). - **Release:** CHANGELOG 0.5.1, and the rebuilt bundle, manifest, catalogs, notes and 0.5.1 zip. ## Package and security impact - Affected package IDs: `otome-forge` (0.5.1, staging-only). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. Prompt text only. - Restart, storage, update, or uninstall impact: none. Stories in progress pick up the rules from their next chapter plan and next last node. ## 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 Agent-side checks: - **Pass:** `npm run test:otome-forge` (487 + 12), the strict typecheck, `npm run check`, `git diff --check`, `test-catalog-lanes`, `validate-package-locales` and `catalog-release-notes`. - **`tests/otome-forge-beats.regression.ts`:** the last node carries the varied-decision rule and the climax before it does not. The chapter plan carries the template rule, the same phrase and the new Foil wording. It fails on staging's prompts. - **`tests/otome-forge-prologue.regression.ts`, `tests/otome-forge-date-night.regression.ts`:** the prologue and a date's last scene do not carry it. The prologue assertion fails if its exclusion is removed. - **`tests/otome-forge-sfw-defaults.regression.ts`:** the SFW digests of the chapter plan and both beat prompts are taken again (Angst and Gentle), as the test's header asks when an SFW prompt changes on purpose. The beat fixture is a one-node chapter, so it is a last node. Every other digest is unchanged. - **Not run locally:** `validate-catalog`, because the sparse worktree leaves out other packages' zips (CI runs it), and the browser suite (CI runs it; no UI changed). - **Running alongside:** local CodeRabbit and a multi-agent review. Please verify by hand: - [ ] Manually verify, by playing three or four main chapters in one story, that their endings and closing choices differ, and that no two chapters in a row end on choosing between love interests. - [ ] Manually verify, with debug mode on, that a chapter plan carries "Never plan a chapter on the template of the ones before it", and that the prompt for a chapter's last scene carries "This is the chapter's last node". - [ ] Manually verify that a route chapter's gate still ends on its big choice. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The CHANGELOG has the 0.5.1 entry; the README does not describe how chapters end. Owner: @SpicyMarinara (made by Claude). 🤖 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:00 +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#2045
No description provided.