[PR #1808] [MERGED] feat(otome-forge): routes, rupture and repair, Confrontation, art, expressions, music and voices (0.0.4, M2b) #1977

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-forge-m2b


📝 Commits (7)

  • 5a65192 feat(otome-forge): routes, rupture and repair, Confrontation, art, expressions, music and voices (Otome Forge 0.0.4, M2b)
  • 4b8107a fix(otome-forge): stop waiting for faces that will never arrive
  • f72a2eb Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b
  • 1c2d660 fix(otome-forge): Dottore review of M2b (paid audio previews, CG review target, places, Confrontation voices)
  • a81758b Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b
  • d9de13a Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b
  • b9e37d2 refactor(otome-forge): name the round's crowded place apart, say what guards the CG patch

📊 Changes

82 files changed (+12373 additions, -693 deletions)

View changed files

📝 .github/workflows/otome-forge-browser.yml (+10 -0)
➕ artifacts/otome-forge-0.0.4.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/otome-forge/CHANGELOG.md (+6 -0)
📝 packages/otome-forge/README.md (+18 -2)
📝 packages/otome-forge/client.js (+274 -62)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+92 -77)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx (+7 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/api.ts (+15 -6)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CgTakeover.tsx (+56 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/forge-kit.d.ts (+45 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts (+10 -4)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-otome-audio.ts (+682 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+389 -35)

...and 62 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1803 (milestone M2b of #1781, Otome Forge release 1).

Why this change

M2a (#1800) made the story readable, but relationships could not deepen, conflicts had no climax, and nothing was painted, voiced or scored. The maintainer asked for flawed love interests whose angst has consequences ("a human inside a monster"), and for every personalization Gacha Forge has: expressions, voice lines, music generation and art. This milestone adds routes with stage gates, rupture and repair, the Confrontation, and the art and audio layer.

What changed

otome-forge 0.0.4 (staging-only).

  • Routes (server, state/stages.ts, story/routes-plan.ts, routes/arcs.ts):
    • Six stages per love interest, from Mask to Bond. Each next stage opens a free route chapter at an affection level.
    • Only the chapter's gate scene, read to its end on first play, moves the stage. Stage 4 reveals that love interest's stage-4 secret; stage 5 holds a Confrontation and a choice that cannot be undone.
    • A route chapter grants +300 Starlight and +150 affection, once.
  • Rupture and repair:
    • A rupture locks that love interest's route chapters (409 locked).
    • "Make it right" plans a 2–3 scene repair. Reading its resolving scene marks the grievance addressed and reopens the route.
    • A gate scene already on screen when a rupture opens elsewhere tells the player it waits until they make it right, with a way back to the story.
  • Confrontation (story/confrontation.ts, screens/reader/Confrontation.tsx):
    • Three rounds of Press, Hold, Yield or Reveal, written in one model call.
    • A hidden composure decides the ending: truth (trust +1), walkout (a major grievance, or a rupture at low trust) or standoff (tension +1).
    • In Dark, every round lets the protagonist refuse outright. The love interest's red lines hold.
  • Art (art/{places,cg,expressions}.ts, routes/art.ts):
    • Places are painted once each. Key images (CGs) are painted when their scene is written, or on tap with Ask before painting.
    • A CG joins the Album only through art/cg/seen, after the read passes it.
    • Five expression faces per love interest (tender, flustered, cold, hurt, angry) are painted in the background through the forge kit's createForgeStoryExpressions. A failed set is never repainted; turning faces off stops paid calls.
    • The Engine's "Review image prompts before sending" reaches every paint.
  • Audio (audio/music.ts, hooks/use-otome-audio.ts, Settings → Audio):
    • Six cues (home, date, tender, tense, angst, confession), each with a generated track when an audio connection is set, and the Engine's stock music otherwise.
    • Dialogue is voiced with the kit's voice picking: a card's Engine voice, otherwise a stable pool voice. Narration and thoughts stay silent, and the backlog can replay a line.
    • Unsaved audio settings preview only mute and volume, so no paid generation runs on them.
  • Knowledge boundary: private chapters (route, repair, story) now reach only their own love interest on every memory path. Planners see only the ledger rows, grievances and disclosures their love interest may know.
  • Tests: stages, confrontation, expressions, art and audio regressions (161 .ts + 5 .mjs in all); new tests/package-otome-forge-presentation.e2e.ts.

Internal review

Three review rounds before this PR:

  • The first round confirmed 16 findings. Among them: a gate passed by Ease off during a rupture, the per-chapter cap bypassed across chapters, repeated Reveal disclosures, paid images of empty-tag places, a CG paid for after Ease off, and focus and inertness during the CG pan.
  • After merging M2a's review fixes, a follow-up closed three issues: the ready-memory boundary for private chapters, the rupture-held gate notice, and the backlog at a cut.
  • A third round confirmed seven problems. Among them: another love interest's ledger lines in planners, Ease off after a Confrontation's ending paying twice, and the thought rule in Confrontations.

Each was fixed with a regression shown to fail without its fix.

Local CodeRabbit review

One trivial finding, fixed in the second commit. The reader kept polling the scene's art for faces that could never arrive: a love interest with no look, or a failed or stopped face set. GET /art/scene now lists the love interests whose faces are still being painted, and the reader waits only for those. A regression covers every set state and fails when a failed set counts as coming.

Choices made for the maintainer to confirm

  • Private chapters get no summary of their own yet. They are recalled in full, newest first within the budget. A kit audience on summarized character-story records is the upgrade (R3).
  • Planners still see every love interest's last two kinds of angst (one word each), for the no-repeat rule. They also see that another love interest has a rupture, without its text.
  • A gate scene that was on screen before a rupture opened stays unfinished until the repair. This follows the design's "shuts the gates".

Package and security impact

  • Affected package IDs: otome-forge (0.0.4, staging-only).
  • Engine compatibility impact: Capability API 1.386, unchanged.
  • New or changed permissions/entrypoints: none beyond routes, storage, ui. Uses the Engine's image, audio and TTS services through the existing host APIs.
  • Restart, storage, update, or uninstall impact: new world fields (places, audio) and state fields (album, route stages). A paint left pending by a restart reads as stopped. Deleting a world removes its images.

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, on the tree merged with current staging:

  • npm run test:otome-forge: 161 .ts and 5 .mjs pass.
  • These are clean:
    • npm run check and npm run typecheck:packages;
    • the strict typecheck against an Engine root;
    • both locale validators and test-catalog-lanes;
    • git diff --check.
  • Two builds are byte-identical.
  • A Chromium smoke of the built bundles used a scripted model and a fake image service that counts paid calls. It covered:
    • a route chapter's gate moving the stage once;
    • each Confrontation ending;
    • a walkout's rupture locking the route until the repair;
    • faces painted in the background, with no further paid call once turned off;
    • a CG unlocking only once seen;
    • stock music without an audio connection;
    • a world with no images or audio reading to the end.
  • The presentation and reader specs pass on a stand-in host at desktop and phone width (20 passed).

Please verify by hand:

  • Manually verify, on a staging Engine with a real model, that a love interest at affection level 3 opens their stage-2 route chapter, and that its last scene moves them to stage 2.
  • Manually verify a Confrontation: Press, Hold, Yield and Reveal read naturally across the three rounds, and a walkout can open a rupture with "Make it right" on the story screen.
  • Manually verify, with an image connection, that places and a CG paint (or wait for a tap with Ask before painting) and the CG appears in the Album only after it is seen.
  • Manually verify faces appear after background painting and stop costing calls when turned off in Settings → Images.
  • Manually verify music: stock tracks without an audio connection, generated cues with one, and voiced dialogue using the Engine's voice assignments.
  • Manually verify the CG pan and the Confrontation at phone width (390 px), with reduced motion, and by keyboard only.

🤖 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/1808 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-forge-m2b` --- ### 📝 Commits (7) - [`5a65192`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5a651920dca41fcb63793690bb80c4ed44708361) feat(otome-forge): routes, rupture and repair, Confrontation, art, expressions, music and voices (Otome Forge 0.0.4, M2b) - [`4b8107a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4b8107aaa5a05aa8f56f12d1a6b4d8979f6f06a1) fix(otome-forge): stop waiting for faces that will never arrive - [`f72a2eb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f72a2eb6321bc919f36f1a5d73e2c01b6b39dc11) Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b - [`1c2d660`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1c2d6603a20dc1309104510d88bc73961b51c239) fix(otome-forge): Dottore review of M2b (paid audio previews, CG review target, places, Confrontation voices) - [`a81758b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a81758ba01e630cac5e18f3aee41e1aee4f18d20) Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b - [`d9de13a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d9de13a4816226d9e342f87dc21096fd3cefdc67) Merge remote-tracking branch 'origin/staging' into feat/otome-forge-m2b - [`b9e37d2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b9e37d21c0876f1b9ce6fb354181f69b5e274d32) refactor(otome-forge): name the round's crowded place apart, say what guards the CG patch ### 📊 Changes **82 files changed** (+12373 additions, -693 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/otome-forge-browser.yml` (+10 -0) ➕ `artifacts/otome-forge-0.0.4.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/otome-forge/CHANGELOG.md` (+6 -0) 📝 `packages/otome-forge/README.md` (+18 -2) 📝 `packages/otome-forge/client.js` (+274 -62) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+92 -77) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx` (+7 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/api.ts` (+15 -6) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/CgTakeover.tsx` (+56 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/forge-kit.d.ts` (+45 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts` (+10 -4) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-otome-audio.ts` (+682 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+389 -35) _...and 62 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1803 (milestone M2b of #1781, Otome Forge release 1). ## Why this change M2a (#1800) made the story readable, but relationships could not deepen, conflicts had no climax, and nothing was painted, voiced or scored. The maintainer asked for flawed love interests whose angst has consequences ("a human inside a monster"), and for every personalization Gacha Forge has: expressions, voice lines, music generation and art. This milestone adds routes with stage gates, rupture and repair, the Confrontation, and the art and audio layer. ## What changed `otome-forge` 0.0.4 (staging-only). - **Routes (server, `state/stages.ts`, `story/routes-plan.ts`, `routes/arcs.ts`):** - Six stages per love interest, from Mask to Bond. Each next stage opens a free route chapter at an affection level. - Only the chapter's gate scene, read to its end on first play, moves the stage. Stage 4 reveals that love interest's stage-4 secret; stage 5 holds a Confrontation and a choice that cannot be undone. - A route chapter grants +300 Starlight and +150 affection, once. - **Rupture and repair:** - A rupture locks that love interest's route chapters (409 `locked`). - "Make it right" plans a 2–3 scene repair. Reading its resolving scene marks the grievance addressed and reopens the route. - A gate scene already on screen when a rupture opens elsewhere tells the player it waits until they make it right, with a way back to the story. - **Confrontation (`story/confrontation.ts`, `screens/reader/Confrontation.tsx`):** - Three rounds of Press, Hold, Yield or Reveal, written in one model call. - A hidden composure decides the ending: truth (trust +1), walkout (a major grievance, or a rupture at low trust) or standoff (tension +1). - In Dark, every round lets the protagonist refuse outright. The love interest's red lines hold. - **Art (`art/{places,cg,expressions}.ts`, `routes/art.ts`):** - Places are painted once each. Key images (CGs) are painted when their scene is written, or on tap with Ask before painting. - A CG joins the Album only through `art/cg/seen`, after the read passes it. - Five expression faces per love interest (tender, flustered, cold, hurt, angry) are painted in the background through the forge kit's `createForgeStoryExpressions`. A failed set is never repainted; turning faces off stops paid calls. - The Engine's "Review image prompts before sending" reaches every paint. - **Audio (`audio/music.ts`, `hooks/use-otome-audio.ts`, Settings → Audio):** - Six cues (home, date, tender, tense, angst, confession), each with a generated track when an audio connection is set, and the Engine's stock music otherwise. - Dialogue is voiced with the kit's voice picking: a card's Engine voice, otherwise a stable pool voice. Narration and thoughts stay silent, and the backlog can replay a line. - Unsaved audio settings preview only mute and volume, so no paid generation runs on them. - **Knowledge boundary:** private chapters (route, repair, story) now reach only their own love interest on every memory path. Planners see only the ledger rows, grievances and disclosures their love interest may know. - **Tests:** stages, confrontation, expressions, art and audio regressions (161 `.ts` + 5 `.mjs` in all); new `tests/package-otome-forge-presentation.e2e.ts`. ### Internal review Three review rounds before this PR: - The first round confirmed 16 findings. Among them: a gate passed by Ease off during a rupture, the per-chapter cap bypassed across chapters, repeated Reveal disclosures, paid images of empty-tag places, a CG paid for after Ease off, and focus and inertness during the CG pan. - After merging M2a's review fixes, a follow-up closed three issues: the ready-memory boundary for private chapters, the rupture-held gate notice, and the backlog at a cut. - A third round confirmed seven problems. Among them: another love interest's ledger lines in planners, Ease off after a Confrontation's ending paying twice, and the thought rule in Confrontations. Each was fixed with a regression shown to fail without its fix. ### Local CodeRabbit review One trivial finding, fixed in the second commit. The reader kept polling the scene's art for faces that could never arrive: a love interest with no look, or a failed or stopped face set. `GET /art/scene` now lists the love interests whose faces are still being painted, and the reader waits only for those. A regression covers every set state and fails when a failed set counts as coming. ### Choices made for the maintainer to confirm - Private chapters get no summary of their own yet. They are recalled in full, newest first within the budget. A kit audience on summarized `character-story` records is the upgrade (R3). - Planners still see every love interest's last two kinds of angst (one word each), for the no-repeat rule. They also see that another love interest has a rupture, without its text. - A gate scene that was on screen before a rupture opened stays unfinished until the repair. This follows the design's "shuts the gates". ## Package and security impact - Affected package IDs: `otome-forge` (0.0.4, staging-only). - Engine compatibility impact: Capability API 1.386, unchanged. - New or changed permissions/entrypoints: none beyond `routes`, `storage`, `ui`. Uses the Engine's image, audio and TTS services through the existing host APIs. - Restart, storage, update, or uninstall impact: new world fields (`places`, `audio`) and state fields (`album`, route stages). A paint left pending by a restart reads as stopped. Deleting a world removes its images. ## 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, on the tree merged with current `staging`: - `npm run test:otome-forge`: 161 `.ts` and 5 `.mjs` pass. - These are clean: - `npm run check` and `npm run typecheck:packages`; - the strict typecheck against an Engine root; - both locale validators and `test-catalog-lanes`; - `git diff --check`. - Two builds are byte-identical. - A Chromium smoke of the built bundles used a scripted model and a fake image service that counts paid calls. It covered: - a route chapter's gate moving the stage once; - each Confrontation ending; - a walkout's rupture locking the route until the repair; - faces painted in the background, with no further paid call once turned off; - a CG unlocking only once seen; - stock music without an audio connection; - a world with no images or audio reading to the end. - The presentation and reader specs pass on a stand-in host at desktop and phone width (20 passed). Please verify by hand: - [ ] Manually verify, on a staging Engine with a real model, that a love interest at affection level 3 opens their stage-2 route chapter, and that its last scene moves them to stage 2. - [ ] Manually verify a Confrontation: Press, Hold, Yield and Reveal read naturally across the three rounds, and a walkout can open a rupture with "Make it right" on the story screen. - [ ] Manually verify, with an image connection, that places and a CG paint (or wait for a tap with Ask before painting) and the CG appears in the Album only after it is seen. - [ ] Manually verify faces appear after background painting and stop costing calls when turned off in Settings → Images. - [ ] Manually verify music: stock tracks without an audio connection, generated cues with one, and voiced dialogue using the Engine's voice assignments. - [ ] Manually verify the CG pan and the Confrontation at phone width (390 px), with reduced motion, and by keyboard only. 🤖 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:38: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#1977
No description provided.