[PR #2170] [MERGED] feat(otome-forge): their side of a big moment, read in Routes (0.15.0) #2166

Closed
opened 2026-11-08 03:50:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-his-side


📝 Commits (6)

  • d7f9860 feat(otome-forge): his side of a big moment, read in Routes (0.15.0)
  • 5d3dbb7 Merge origin/staging into feat/otome-his-side (0.15.0 after birthdays' 0.12.0)
  • 1f0a572 fix(otome-forge): his side's review fixes (0.15.0)
  • 9a0f0ba Merge origin/staging into feat/otome-his-side (0.15.0 after the arc fix's 0.13.1)
  • 17017d7 fix(otome-forge): his side's review fixes (typed side target, no story memory)
  • a6ed5c0 Merge origin/staging into feat/otome-his-side (0.15.0 after touch's 0.14.0)

📊 Changes

35 files changed (+2325 additions, -428 deletions)

View changed files

➕ artifacts/otome-forge-0.15.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/README.md (+8 -2)
📝 packages/otome-forge/client.js (+139 -130)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+167 -166)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CostHint.tsx (+10 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+16 -6)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+12 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+10 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx (+8 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx (+150 -16)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+38 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/arcs.ts (+28 -0)

...and 15 more files

📄 Description

Pull request

Linked issue

Closes #2155

Why this change

The maintainer asked for "His side": "Let's implement this in Routes, but limit it so it only happens for LI after an important moment. Maximum one allowed per arc, for each LI."

  • They chose big moments only.
  • They added: "His Side, when it happens, it should be treated as the part of the chapter it follows. So when the next chapter is built, we attach the previous chapter + his side (if the player played it) in full to the context."

What changed

Package: otome-forge 0.15.0 (version is provisional until rebased).

  • The moment: a route chapter that moves his stage, a Closer ending in Opened up or Shut out, a Confrontation ending in the truth or a walkout, or a rift mended by a repair chapter. A moment counts only on its first counted read.
  • The offer:
    • Routes offers his side of it: the same scene from his point of view, with his thoughts.
    • There is at most one per story arc for each love interest. Until it's read, it follows the arc's newest big moment, and an unread offer from an earlier arc stays.
    • The chapter's end announces it in one line in the arc-news panel.
  • Cost: opening it is free and writing it is 1 model call. It has no key image, and paints only a place that has no picture yet. Reading it pays 30 Starlight.
  • Part of the chapter it follows (the maintainer's addition):
    • When the next storyline chapter is built (main, route and repair plans and scenes), that chapter and its His side go in full, if the player read it.
    • Other prompts get it only where that love interest's private memory allows. In cached prompts, it goes in only for the chapter's own love interest, so the cached part stays identical.
    • Later, it follows its chapter into the summary.
  • His thoughts are bounded by his bible. Reading his side gives the player, not the protagonist, what's in it.
  • No back-filled offers for stories in progress. README, CHANGELOG, bundles and catalogs. Merged with staging through 0.12.0.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: routes for his side's offer and claim
  • Restart, storage, update, or uninstall impact: new chapter documents, deleted with the story

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

Run by the agents:

  • npm run test:otome-forge: all pass, including the new otome-forge-his-side.regression.ts. It covers:
    • the moments and the once-per-arc limit;
    • following the newest moment;
    • the next chapter's prompt holding the chapter plus his side in full;
    • other love interests' prompts not getting it;
    • other chapters' prompts being byte-identical.
  • Strict typecheck, npm run check, locale keys, the catalog (on a full copy) and git diff --check: pass.
  • The new browser test passes on desktop and a 390×844 phone.

Still to verify by hand:

  • Manually verify that after a stage-moving route chapter, Routes offers his side and the chapter end announces it.
  • Manually verify that reading it plays as a scene in his voice, and that the next chapter acknowledges what it showed.
  • Manually verify that another love interest's next scene doesn't know what was in his side.

Documentation impact

  • Updated this README catalog and package guidance

🤖 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/2170 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-his-side` --- ### 📝 Commits (6) - [`d7f9860`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d7f98608d17a2d9f832a4a39d38fa0d1404984d9) feat(otome-forge): his side of a big moment, read in Routes (0.15.0) - [`5d3dbb7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5d3dbb7c80638405fefe8fa4eadf5778a7117273) Merge origin/staging into feat/otome-his-side (0.15.0 after birthdays' 0.12.0) - [`1f0a572`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1f0a5722a0a9e015a28819de62957f519fd67a19) fix(otome-forge): his side's review fixes (0.15.0) - [`9a0f0ba`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9a0f0ba1623272c5bf341a1a06a535c0603b9679) Merge origin/staging into feat/otome-his-side (0.15.0 after the arc fix's 0.13.1) - [`17017d7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/17017d7ea2c103486af4169dca6a2c1915d8e2e1) fix(otome-forge): his side's review fixes (typed side target, no story memory) - [`a6ed5c0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a6ed5c0ef064939c56d92b7a34576a9bee15534e) Merge origin/staging into feat/otome-his-side (0.15.0 after touch's 0.14.0) ### 📊 Changes **35 files changed** (+2325 additions, -428 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.15.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/README.md` (+8 -2) 📝 `packages/otome-forge/client.js` (+139 -130) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+167 -166) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CostHint.tsx` (+10 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+16 -6) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+12 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+10 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx` (+8 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx` (+150 -16) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+38 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/arcs.ts` (+28 -0) _...and 15 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #2155 ## Why this change The maintainer asked for "His side": "Let's implement this in Routes, but limit it so it only happens for LI after an important moment. Maximum one allowed per arc, for each LI." - They chose big moments only. - They added: "His Side, when it happens, it should be treated as the part of the chapter it follows. So when the next chapter is built, we attach the previous chapter + his side (if the player played it) in full to the context." ## What changed Package: `otome-forge` 0.15.0 (version is provisional until rebased). - **The moment:** a route chapter that moves his stage, a Closer ending in Opened up or Shut out, a Confrontation ending in the truth or a walkout, or a rift mended by a repair chapter. A moment counts only on its first counted read. - **The offer:** - Routes offers his side of it: the same scene from his point of view, with his thoughts. - There is at most one per story arc for each love interest. Until it's read, it follows the arc's newest big moment, and an unread offer from an earlier arc stays. - The chapter's end announces it in one line in the arc-news panel. - **Cost:** opening it is free and writing it is 1 model call. It has no key image, and paints only a place that has no picture yet. Reading it pays 30 Starlight. - **Part of the chapter it follows (the maintainer's addition):** - When the next storyline chapter is built (main, route and repair plans and scenes), that chapter and its His side go in full, if the player read it. - Other prompts get it only where that love interest's private memory allows. In cached prompts, it goes in only for the chapter's own love interest, so the cached part stays identical. - Later, it follows its chapter into the summary. - **His thoughts** are bounded by his bible. Reading his side gives the player, not the protagonist, what's in it. - No back-filled offers for stories in progress. README, CHANGELOG, bundles and catalogs. Merged with staging through 0.12.0. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: routes for his side's offer and claim - Restart, storage, update, or uninstall impact: new chapter documents, deleted with the story ## 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 Run by the agents: - `npm run test:otome-forge`: all pass, including the new `otome-forge-his-side.regression.ts`. It covers: - the moments and the once-per-arc limit; - following the newest moment; - the next chapter's prompt holding the chapter plus his side in full; - other love interests' prompts not getting it; - other chapters' prompts being byte-identical. - Strict typecheck, `npm run check`, locale keys, the catalog (on a full copy) and `git diff --check`: pass. - The new browser test passes on desktop and a 390×844 phone. Still to verify by hand: - Manually verify that after a stage-moving route chapter, Routes offers his side and the chapter end announces it. - Manually verify that reading it plays as a scene in his voice, and that the next chapter acknowledges what it showed. - Manually verify that another love interest's next scene doesn't know what was in his side. ## Documentation impact - [x] Updated this README catalog and package guidance 🤖 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 changed title from [PR #2170] feat(otome-forge): their side of a big moment, read in Routes (0.15.0) to [PR #2170] [MERGED] feat(otome-forge): their side of a big moment, read in Routes (0.15.0) 2026-11-08 07:04:58 +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#2166
No description provided.