[PR #1943] [MERGED] Otome Hearth: the Closer, a warm chapter climax that alternates with the Confrontation #2042

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/1943
Author: @SpicyMarinara
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-closer-1938


📝 Commits (2)

  • fab3084 feat(otome-forge): the Closer, a warm chapter climax that alternates with the Confrontation (#1938)
  • 0fbd10b fix(otome-forge): an Opened up that changes nothing is not "remembered"

📊 Changes

38 files changed (+1523 additions, -414 deletions)

View changed files

📝 README.md (+1 -1)
➕ artifacts/otome-forge-0.4.0.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+7 -0)
📝 packages/otome-forge/README.md (+8 -7)
📝 packages/otome-forge/client.js (+57 -47)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+145 -138)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reader-state.ts (+7 -5)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+16 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Confrontation.tsx (+65 -9)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx (+2 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx (+3 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+46 -25)

...and 18 more files

📄 Description

Pull request

Linked issue

Closes #1938

Why this change

  • The maintainer's request: a main chapter should be able to end with something other than a Confrontation, so the main story allows good outcomes too.
  • The agreed design: a warm climax named "Closer". After 2 main chapters ending the same way, the next uses the other kind, so the two alternate often. It also needs a bad ending, for when the player gets it all wrong.

What changed

otome-forge 0.4.0 (staging-only).

  • The Closer: a main chapter's warm climax.
    • Rounds: over 3 rounds, the Lead offers something of themselves: a memory, a fear, a wish, a touch. The protagonist answers with Reassure, Tease, Mirror (opens up in return; recorded as a disclosure, like Reveal) or Ask.
    • Hidden guard: it runs on the Confrontation's composure line. It starts at 2, each answer moves it −1, 0 or +1, and it stays within 0–4. It is never shown, and neither are untaken answers or endings not reached.
    • Endings:
      • Opened up (guard 0): trust +1 and, the first time only, a first-opened-up Love Timeline entry (lasting, so it becomes an anniversary).
      • Almost (1–3): nothing changes.
      • Shut out (4), the bad ending: trust −1 and a minor grievance the love interest holds. Being harmed costs 15 affection, as a hostile choice does, never below the level's floor.
    • First play only: effects land once, through the same applied-effects path (${i}/stance-<k>, ${i}/closer).
  • Reuse of the Confrontation's machinery (story/confrontation.ts):
    • One stored slot: the game is stored in the same slot, with kind: "closer". A game stored before 0.4.0 has no kind and stays a Confrontation, so every Ease off, rewrite, canon, lookahead and replay path in beats.ts works unchanged.
    • Kind specs: a small spec table per kind (moves, endings, the disclosing move, grievance severity, moods, wording) replaces the hard-coded stance lists.
    • Stored schema: a union of the two game shapes. A game holding the other kind's move is dropped, never read half one and half the other.
    • Stance route: it takes either kind's moves and refuses a move of the other game with a 400 before saving anything.
    • Canon: it says "round k of the closer", so memory never remembers a warm scene as an argument.
  • P12c, the Closer's writer: one call, shaped as P12, under the scene contract.
    • NSFW stories: the partner's card carries their tastes (#1936), and Opened up may turn intimate at the contract's Heat.
    • No added limits: no consent or "non-graphic" wording; the player's toggles decide.
  • Planning:
    • One climax: a main chapter has exactly one climax node, a Confrontation or a Closer, second-to-last or last. A Closer needs the Lead in it.
    • Streak: when the last two main chapters ended alike, the planner must use the other (requiredClimax), and the repair turn names why. Otherwise it picks from the story: grievances and strain lean toward a Confrontation, trust and calm toward a Closer. The prompt names the last climax.
    • Other planners: route, repair and Character Story plans refuse a Closer. Route chapters keep their Confrontations, since stage gates use them.
    • Existing saves: every stored main chapter ends with a Confrontation, so a story with two or more main chapters gets a Closer next.
  • Reader:
    • The Confrontation's pills and ending card, with the Closer's own labels and icons.
    • A "Closer" frame chip and a Story-path icon.
    • Colours for the new pills and endings.
    • 16 new locale keys (English only).
  • Docs and release: the README (chapters, Closers, rewards, Love Timeline, costs), the root README's catalog row, CHANGELOG 0.4.0, and the rebuilt bundle, manifest, preview catalogs and 0.4.0 zip.

Package and security impact

  • Affected package IDs: otome-forge (0.4.0, staging-only).
  • Engine compatibility impact: none (Capability API unchanged).
  • New or changed permissions/entrypoints: none; the stance route takes the Closer's moves.
  • Restart, storage, update, or uninstall impact:
    • New optional data: a closer node kind and kind: "closer" on a stored game. Older documents read as before.
    • Downgrade: an older build would drop a closer node or game, so a downgrade past 0.4.0 loses any Closer already planned.

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 (468 + 12), the strict typecheck, both locale validators, ESLint and Prettier on the changed files, and git diff --check.
  • New suite, tests/otome-forge-closer.regression.ts (8 tests):
    • the guard and endings;
    • the climax rule, the streak and the forced kind, and the route, repair and story refusals;
    • P12c normalisation;
    • the stored-game round trip (and a legacy Confrontation);
    • the view hiding the guard and untaken answers;
    • a refused Confrontation stance that saves nothing;
    • Opened up's trust and once-only first, Mirror's disclosure, replays, and canon wording;
    • Shut out (trust, minor grievance, −15 affection, once) and Almost (nothing);
    • the NSFW prompt (tastes, intimacy, no censoring wording) versus SFW.
  • Mutation checks: removing the move check, the once-only first or the forced-climax rule each fails a test.
  • Other tests:
    • The reader-state regression checks the Closer's pills in their own order.
    • The SFW digests were retaken only for the chapter planner, whose text names the Closer; the new P12c digest is pinned. Confrontation, beat, route, repair and banner digests are unchanged.
  • Browser, against the real Engine (desktop and mobile): a new Closer play-through and the full reader Confrontation play-through pass.
    • The play-through covers: the frame chip, four pills (no stances), the posted moves, the Opened up card focused with no numbers, and Go on to Chapter complete.
  • Not run locally:
    • the full 320-test browser suite (CI runs it);
    • validate-catalog, because the sparse worktree leaves out other packages' zips.

Please verify by hand:

  • Manually verify, in a story with two finished main chapters, that the third main chapter ends with a Closer, and its pills read Reassure, Tease, Mirror and Ask.
  • Manually verify each ending once (Opened up, Almost, Shut out): trust and the Love Timeline first for Opened up, the grievance for Shut out, and nothing for Almost.
  • Manually verify, with debug mode on in an NSFW story, that P12c carries the love interest's tastes and that Opened up can turn intimate.
  • Manually verify route chapters still end with Confrontations at stage 5.

Documentation impact

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

Owner: @SpicyMarinara (made by Claude). It follows #1937 (0.3.0). #1942 (0.3.1) is open beside it; whichever merges second gets rebased.

🤖 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/1943 **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:** `feat/otome-closer-1938` --- ### 📝 Commits (2) - [`fab3084`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fab3084820134845d40a4b5e945f5346d93fd4e4) feat(otome-forge): the Closer, a warm chapter climax that alternates with the Confrontation (#1938) - [`0fbd10b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0fbd10b94c2763589cde1ca4a464ac29e72b8438) fix(otome-forge): an Opened up that changes nothing is not "remembered" ### 📊 Changes **38 files changed** (+1523 additions, -414 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `artifacts/otome-forge-0.4.0.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+7 -0) 📝 `packages/otome-forge/README.md` (+8 -7) 📝 `packages/otome-forge/client.js` (+57 -47) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+145 -138) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reader-state.ts` (+7 -5) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+16 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Confrontation.tsx` (+65 -9) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx` (+2 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx` (+3 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+46 -25) _...and 18 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1938 ## Why this change - **The maintainer's request:** a main chapter should be able to end with something other than a Confrontation, so the main story allows good outcomes too. - **The agreed design:** a warm climax named "Closer". After 2 main chapters ending the same way, the next uses the other kind, so the two alternate often. It also needs a bad ending, for when the player gets it all wrong. ## What changed `otome-forge` 0.4.0 (staging-only). - **The Closer:** a main chapter's warm climax. - **Rounds:** over 3 rounds, the Lead offers something of themselves: a memory, a fear, a wish, a touch. The protagonist answers with **Reassure**, **Tease**, **Mirror** (opens up in return; recorded as a disclosure, like Reveal) or **Ask**. - **Hidden guard:** it runs on the Confrontation's composure line. It starts at 2, each answer moves it −1, 0 or +1, and it stays within 0–4. It is never shown, and neither are untaken answers or endings not reached. - **Endings:** - **Opened up** (guard 0): trust +1 and, the first time only, a `first-opened-up` Love Timeline entry (lasting, so it becomes an anniversary). - **Almost** (1–3): nothing changes. - **Shut out** (4), the bad ending: trust −1 and a minor grievance the love interest holds. Being harmed costs 15 affection, as a hostile choice does, never below the level's floor. - **First play only:** effects land once, through the same applied-effects path (`${i}/stance-<k>`, `${i}/closer`). - **Reuse of the Confrontation's machinery** (`story/confrontation.ts`): - **One stored slot:** the game is stored in the same slot, with `kind: "closer"`. A game stored before 0.4.0 has no kind and stays a Confrontation, so every Ease off, rewrite, canon, lookahead and replay path in `beats.ts` works unchanged. - **Kind specs:** a small spec table per kind (moves, endings, the disclosing move, grievance severity, moods, wording) replaces the hard-coded stance lists. - **Stored schema:** a union of the two game shapes. A game holding the other kind's move is dropped, never read half one and half the other. - **Stance route:** it takes either kind's moves and refuses a move of the other game with a 400 before saving anything. - **Canon:** it says "round k of the closer", so memory never remembers a warm scene as an argument. - **P12c, the Closer's writer:** one call, shaped as P12, under the scene contract. - **NSFW stories:** the partner's card carries their tastes (#1936), and Opened up may turn intimate at the contract's Heat. - **No added limits:** no consent or "non-graphic" wording; the player's toggles decide. - **Planning:** - **One climax:** a main chapter has exactly one climax node, a Confrontation or a Closer, second-to-last or last. A Closer needs the Lead in it. - **Streak:** when the last two main chapters ended alike, the planner must use the other (`requiredClimax`), and the repair turn names why. Otherwise it picks from the story: grievances and strain lean toward a Confrontation, trust and calm toward a Closer. The prompt names the last climax. - **Other planners:** route, repair and Character Story plans refuse a Closer. Route chapters keep their Confrontations, since stage gates use them. - **Existing saves:** every stored main chapter ends with a Confrontation, so a story with two or more main chapters gets a Closer next. - **Reader:** - The Confrontation's pills and ending card, with the Closer's own labels and icons. - A "Closer" frame chip and a Story-path icon. - Colours for the new pills and endings. - 16 new locale keys (English only). - **Docs and release:** the README (chapters, Closers, rewards, Love Timeline, costs), the root README's catalog row, CHANGELOG 0.4.0, and the rebuilt bundle, manifest, preview catalogs and 0.4.0 zip. ## Package and security impact - Affected package IDs: `otome-forge` (0.4.0, staging-only). - Engine compatibility impact: none (Capability API unchanged). - New or changed permissions/entrypoints: none; the stance route takes the Closer's moves. - Restart, storage, update, or uninstall impact: - New optional data: a `closer` node kind and `kind: "closer"` on a stored game. Older documents read as before. - Downgrade: an older build would drop a `closer` node or game, so a downgrade past 0.4.0 loses any Closer already planned. ## 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` (468 + 12), the strict typecheck, both locale validators, ESLint and Prettier on the changed files, and `git diff --check`. - **New suite, `tests/otome-forge-closer.regression.ts` (8 tests):** - the guard and endings; - the climax rule, the streak and the forced kind, and the route, repair and story refusals; - P12c normalisation; - the stored-game round trip (and a legacy Confrontation); - the view hiding the guard and untaken answers; - a refused Confrontation stance that saves nothing; - Opened up's trust and once-only first, Mirror's disclosure, replays, and canon wording; - Shut out (trust, minor grievance, −15 affection, once) and Almost (nothing); - the NSFW prompt (tastes, intimacy, no censoring wording) versus SFW. - **Mutation checks:** removing the move check, the once-only first or the forced-climax rule each fails a test. - **Other tests:** - The reader-state regression checks the Closer's pills in their own order. - The SFW digests were retaken only for the chapter planner, whose text names the Closer; the new P12c digest is pinned. Confrontation, beat, route, repair and banner digests are unchanged. - **Browser, against the real Engine (desktop and mobile):** a new Closer play-through and the full reader Confrontation play-through pass. - The play-through covers: the frame chip, four pills (no stances), the posted moves, the Opened up card focused with no numbers, and Go on to Chapter complete. - **Not run locally:** - the full 320-test browser suite (CI runs it); - `validate-catalog`, because the sparse worktree leaves out other packages' zips. Please verify by hand: - [ ] Manually verify, in a story with two finished main chapters, that the third main chapter ends with a Closer, and its pills read Reassure, Tease, Mirror and Ask. - [ ] Manually verify each ending once (Opened up, Almost, Shut out): trust and the Love Timeline first for Opened up, the grievance for Shut out, and nothing for Almost. - [ ] Manually verify, with debug mode on in an NSFW story, that P12c carries the love interest's tastes and that Opened up can turn intimate. - [ ] Manually verify route chapters still end with Confrontations at stage 5. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Owner: @SpicyMarinara (made by Claude). It follows #1937 (0.3.0). #1942 (0.3.1) is open beside it; whichever merges second gets rebased. 🤖 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#2042
No description provided.