[PR #2056] [CLOSED] feat(otome-forge): now and then, side with one love interest when they disagree (0.6.23) #2094

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2056
Author: @SpicyMarinara
Created: 11/2/2026
Status: ❌ Closed

Base: staging ← Head: feat/otome-side-with-2046


📝 Commits (2)

  • cab6ca4 feat(otome-forge): now and then, side with one love interest when they disagree (#2046)
  • 49ec4f7 chore(otome-forge): release 0.6.23

📊 Changes

32 files changed (+1300 additions, -327 deletions)

View changed files

➕ artifacts/otome-forge-0.6.23.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 (+4 -0)
📝 packages/otome-forge/README.md (+3 -2)
📝 packages/otome-forge/client.js (+92 -75)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+147 -140)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+31 -7)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+4 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ChoicePills.tsx (+21 -5)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+34 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+18 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts (+7 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+17 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/story.ts (+5 -3)

...and 12 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 #2046

Why this change

The maintainer asked for a new kind of choice in chapters with several love interests. Now and then, when they argue or want to handle something differently, the player sides with one of them. That raises affection with the one picked and lowers it with the others. It should be rare: at most once every 3-4 chapters.

Today a pick can only ever lower affection (the hostile −15), so nothing let a choice reward the love interest the player backs.

What changed

Package: otome-forge (Otome Hearth) 0.6.23. sources/forge-kit and Gacha Forge are untouched.

How often (story/chapters.ts, sideWithOpen)

  • The earliest is main chapter 4. After that, at most one every four main chapters (SIDE_WITH_GAP = 3 chapters complete in between).
  • The count reads the stored main-chapter plans, so there's no new state field and no migration.
  • Stories already in progress count from before chapter 1: one past chapter 4 may get one in its next chapter, but only if the planner finds a real disagreement.
  • A ponytail: comment notes the ceiling: a planned side-with scene that was eased off before the pick still uses up the gap.

The plan (P5)

  • Only while a side-with scene is open, the chapter planner gets one optional rule: when 2 to 4 love interests share a beat node and the story gives them a real disagreement, it may mark that node sideWith, and its guide names what they disagree on. "Never invent one to use it."
  • Otherwise the planner prompt is byte-identical.
  • normalizeChapterPlan keeps the first mark that fits: a main chapter's beat node with 2-4 love interests. It drops any other mark without a repair turn, so the scene is never forced.
  • The mark is stored on the node and stripped from the player's view.

The scene (P6)

  • On a marked node, the narrator plays the disagreement out, each love interest pressing their own view. It offers exactly one small choice, with one option per love interest present, each with a backs id. There's no stay-out or split-the-difference option.
  • Labels use the same player-addressed voice as Confrontations and Closers. No softening wording was added.
  • readSideWith checks the reply: one choice, one option per love interest present, none missing or unknown. A miss costs the usual one repair turn, which names what's missing.
  • Only an option that names someone in backs marks the choice, so an empty "backs": null on another choice is ignored.

Affection (code only, never the model's reply)

  • sideWithEffects replaces any effects the model gave that choice:
    • the one backed gets trust +1 and +30 affection, uncapped by the daily cap;
    • each one passed over gets tension +1 and −10 affection, never below their level floor (affectionFloorOf), so no level, route stage or unlocked story is lost.
  • Trust is never lowered, so the hostile −15 never stacks on top.
  • A pick applies once, on first play; replays change nothing.
  • SIDE_WITH_AFFECTION lives in shared/economy.ts beside the other pinned numbers.

Canon

  • The pick is an ordinary small choice, so it reaches the played path, summaries and memory.
  • The irrevocable decisions block names it: "sided with Kai over Mireille".

Reader UI

  • The choice panel says Side with one of them, and each option shows the name it backs, in the accessible name too.
  • After the pick, polite toasts say +30 affection with … and −10 affection with … in each love interest's colour. There's no toast for one held at a level floor, and none on a replay.
  • On a replay, the first pick's label keeps room beside both badges on phones, and a badge that doesn't fit wraps under the label.
  • English strings: 3 new keys. The "Between you" affection hint now mentions siding with someone. The README rewards section lists the new numbers.

Release: 0.6.23 with a CHANGELOG entry. The rebuilt client.js, server.mjs, manifest, preview catalogs and artifacts/otome-forge-0.6.23.zip agree.

This PR, #2052 (0.6.20), #2053 (0.6.21) and #2055 (0.6.22) all change the release files. Whichever merges later is rebased and rebuilt on the earlier one.

Package and security impact

  • Affected package IDs: otome-forge (0.6.19 → 0.6.23).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none. POST …/choose also returns affection, the per-love-interest point change, for the toasts.
  • Restart, storage, update, or uninstall impact: chapter nodes and beats gain optional sideWith fields. Older saves read unchanged.

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

What the agent ran locally:

  • Regression suites: all 593 Otome TypeScript regressions and 12 .mjs regressions pass.
  • Typecheck: 0 strict errors in 88 server and 139 client files.
  • Other checks: both locale validators, Prettier and git diff --check pass.
  • New proofs, each checked to fail without its change:
    • otome-forge-chapters.regression.ts:
      • one every four main chapters at most, from chapter 4, counted from the stored plans;
      • the plan keeps one valid mark and drops every other, never as a repair;
      • the planner rule appears only while a side-with scene is open;
      • POST /chapters/next keeps a mark in chapter 4 and not in chapter 5 after one in chapter 2.
    • otome-forge-beats.regression.ts:
      • the reply needs one small choice backing each love interest present;
      • the P6 rule appears only on a marked main-chapter node;
      • the game sets the effects (a reply's affection 999 and trust −1 are ignored);
      • the pick moves affection once, and the decisions block names it.
    • otome-forge-state-caps.regression.ts:
      • the one backed gains past the daily cap;
      • one passed over never loses a level or a story;
      • a replay changes nothing.
  • Browser (package-otome-forge-reader.e2e.ts, desktop and mobile Chromium):
    • "Side with: the choice says so, names whom each option backs, and shows the affection it moved";
    • "Side with on a replay: the first pick's label keeps its room beside both badges", at 320 px, 390 px and on desktop.
    • The surrounding choice and replay tests also pass: 8/8.
  • Independent reviews: three review agents (logic and canon, UX and accessibility, proofs and build) found five defects. All are fixed with proofs:
    • an empty backs on another choice refused a valid reply;
    • an empty protagonist name in the rule;
    • replay badges collapsing the label on phones;
    • a race in the e2e;
    • an accessible-name gap.

For a human to verify:

  • With a real model, play a story to main chapter 4 or later with two love interests in a chapter. Manually verify that a chapter can get a side-with scene when they disagree, and that the three chapters after one never get another. Check the chapter-plan debug log for the SIDE WITH rule.
  • Manually verify the scene plays the argument out and offers one option per love interest present, worded to you, with no stay-out option.
  • Pick one. Manually verify you see "+30 affection with …" and "−10 affection with …" for each one passed over, and that Story → Between you shows the new points without a reload.
  • Replay that chapter. Manually verify the panel shows "Side with one of them" and "Your first choice", with no affection toasts, and that affection doesn't change.
  • Manually verify the next chapter's debug prompts list "sided with … over …" among the irrevocable decisions.
  • With a screen reader, manually verify each option is announced with the name it backs, and the toasts are announced.
  • Manually verify the panel and toasts in the Midnight and Pearl looks on a phone and a desktop, including a long love-interest name.

Documentation impact

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

The package README's rewards section and the CHANGELOG describe the change.

🤖 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/2056 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feat/otome-side-with-2046` --- ### 📝 Commits (2) - [`cab6ca4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cab6ca484a25bfab29a47c500c76eec30a2c1e35) feat(otome-forge): now and then, side with one love interest when they disagree (#2046) - [`49ec4f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/49ec4f7861562430c926413f568f8a66dc052aad) chore(otome-forge): release 0.6.23 ### 📊 Changes **32 files changed** (+1300 additions, -327 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.23.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` (+4 -0) 📝 `packages/otome-forge/README.md` (+3 -2) 📝 `packages/otome-forge/client.js` (+92 -75) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+147 -140) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+31 -7) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+4 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ChoicePills.tsx` (+21 -5) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+34 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+18 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts` (+7 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+17 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/story.ts` (+5 -3) _...and 12 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 #2046 ## Why this change The maintainer asked for a new kind of choice in chapters with several love interests. Now and then, when they argue or want to handle something differently, the player sides with one of them. That raises affection with the one picked and lowers it with the others. It should be rare: at most once every 3-4 chapters. Today a pick can only ever lower affection (the hostile −15), so nothing let a choice reward the love interest the player backs. ## What changed Package: `otome-forge` (Otome Hearth) **0.6.23**. `sources/forge-kit` and Gacha Forge are untouched. **How often (`story/chapters.ts`, `sideWithOpen`)** - The earliest is main chapter 4. After that, at most one every four main chapters (`SIDE_WITH_GAP = 3` chapters complete in between). - The count reads the stored main-chapter plans, so there's no new state field and no migration. - Stories already in progress count from before chapter 1: one past chapter 4 may get one in its next chapter, but only if the planner finds a real disagreement. - A `ponytail:` comment notes the ceiling: a planned side-with scene that was eased off before the pick still uses up the gap. **The plan (P5)** - Only while a side-with scene is open, the chapter planner gets one optional rule: when 2 to 4 love interests share a beat node and the story gives them a real disagreement, it may mark that node `sideWith`, and its guide names what they disagree on. "Never invent one to use it." - Otherwise the planner prompt is byte-identical. - `normalizeChapterPlan` keeps the first mark that fits: a main chapter's beat node with 2-4 love interests. It drops any other mark without a repair turn, so the scene is never forced. - The mark is stored on the node and stripped from the player's view. **The scene (P6)** - On a marked node, the narrator plays the disagreement out, each love interest pressing their own view. It offers exactly one small choice, with one option per love interest present, each with a `backs` id. There's no stay-out or split-the-difference option. - Labels use the same player-addressed voice as Confrontations and Closers. No softening wording was added. - `readSideWith` checks the reply: one choice, one option per love interest present, none missing or unknown. A miss costs the usual one repair turn, which names what's missing. - Only an option that names someone in `backs` marks the choice, so an empty `"backs": null` on another choice is ignored. **Affection (code only, never the model's reply)** - `sideWithEffects` replaces any effects the model gave that choice: - the one backed gets trust +1 and **+30 affection**, uncapped by the daily cap; - each one passed over gets tension +1 and **−10 affection**, never below their level floor (`affectionFloorOf`), so no level, route stage or unlocked story is lost. - Trust is never lowered, so the hostile −15 never stacks on top. - A pick applies once, on first play; replays change nothing. - `SIDE_WITH_AFFECTION` lives in `shared/economy.ts` beside the other pinned numbers. **Canon** - The pick is an ordinary small choice, so it reaches the played path, summaries and memory. - The irrevocable decisions block names it: "sided with Kai over Mireille". **Reader UI** - The choice panel says **Side with one of them**, and each option shows the name it backs, in the accessible name too. - After the pick, polite toasts say **+30 affection with …** and **−10 affection with …** in each love interest's colour. There's no toast for one held at a level floor, and none on a replay. - On a replay, the first pick's label keeps room beside both badges on phones, and a badge that doesn't fit wraps under the label. - English strings: 3 new keys. The "Between you" affection hint now mentions siding with someone. The README rewards section lists the new numbers. **Release:** 0.6.23 with a CHANGELOG entry. The rebuilt `client.js`, `server.mjs`, manifest, preview catalogs and `artifacts/otome-forge-0.6.23.zip` agree. This PR, #2052 (0.6.20), #2053 (0.6.21) and #2055 (0.6.22) all change the release files. Whichever merges later is rebased and rebuilt on the earlier one. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.19 → 0.6.23). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. `POST …/choose` also returns `affection`, the per-love-interest point change, for the toasts. - Restart, storage, update, or uninstall impact: chapter nodes and beats gain optional `sideWith` fields. Older saves read unchanged. ## 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 What the agent ran locally: - **Regression suites:** all 593 Otome TypeScript regressions and 12 `.mjs` regressions pass. - **Typecheck:** 0 strict errors in 88 server and 139 client files. - **Other checks:** both locale validators, Prettier and `git diff --check` pass. - **New proofs**, each checked to fail without its change: - `otome-forge-chapters.regression.ts`: - one every four main chapters at most, from chapter 4, counted from the stored plans; - the plan keeps one valid mark and drops every other, never as a repair; - the planner rule appears only while a side-with scene is open; - `POST /chapters/next` keeps a mark in chapter 4 and not in chapter 5 after one in chapter 2. - `otome-forge-beats.regression.ts`: - the reply needs one small choice backing each love interest present; - the P6 rule appears only on a marked main-chapter node; - the game sets the effects (a reply's affection 999 and trust −1 are ignored); - the pick moves affection once, and the decisions block names it. - `otome-forge-state-caps.regression.ts`: - the one backed gains past the daily cap; - one passed over never loses a level or a story; - a replay changes nothing. - **Browser** (`package-otome-forge-reader.e2e.ts`, desktop and mobile Chromium): - "Side with: the choice says so, names whom each option backs, and shows the affection it moved"; - "Side with on a replay: the first pick's label keeps its room beside both badges", at 320 px, 390 px and on desktop. - The surrounding choice and replay tests also pass: 8/8. - **Independent reviews:** three review agents (logic and canon, UX and accessibility, proofs and build) found five defects. All are fixed with proofs: - an empty `backs` on another choice refused a valid reply; - an empty protagonist name in the rule; - replay badges collapsing the label on phones; - a race in the e2e; - an accessible-name gap. For a human to verify: - With a real model, play a story to main chapter 4 or later with two love interests in a chapter. Manually verify that a chapter can get a side-with scene when they disagree, and that the three chapters after one never get another. Check the chapter-plan debug log for the SIDE WITH rule. - Manually verify the scene plays the argument out and offers one option per love interest present, worded to you, with no stay-out option. - Pick one. Manually verify you see "+30 affection with …" and "−10 affection with …" for each one passed over, and that Story → Between you shows the new points without a reload. - Replay that chapter. Manually verify the panel shows "Side with one of them" and "Your first choice", with no affection toasts, and that affection doesn't change. - Manually verify the next chapter's debug prompts list "sided with … over …" among the irrevocable decisions. - With a screen reader, manually verify each option is announced with the name it backs, and the toasts are announced. - Manually verify the panel and toasts in the Midnight and Pearl looks on a phone and a desktop, including a long love-interest name. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package README's rewards section and the CHANGELOG describe the change. 🤖 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:27 +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#2094
No description provided.