[PR #2043] [MERGED] feat(otome-forge): What happened so far… and Who said what? while Otome Hearth writes (0.6.18) #2087

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-loading-screens-2040


📝 Commits (1)

  • 4663f0c feat(otome-forge): What happened so far… and Who said what? while Otome Hearth writes (0.6.18)

📊 Changes

28 files changed (+1239 additions, -389 deletions)

View changed files

➕ artifacts/otome-forge-0.6.18.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 (+6 -0)
📝 packages/otome-forge/README.md (+1 -0)
📝 packages/otome-forge/client.js (+188 -163)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+126 -126)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+7 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+27 -20)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/WhoSaidWhat.tsx (+142 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx (+54 -15)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+9 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+26 -1)
➕ packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/who-said-what.ts (+118 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/memory.ts (+25 -1)

...and 8 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 #2040
Closes #2041

Why this change

The maintainer asked for two things to fill Otome Hearth's waits, on phones and desktop:

  • #2040: while a new chapter is being forged, show a scrollable What happened so far… with the story's constant summary. Players get something to read, and it reminds them what happened.
  • #2041: while a scene is loading and being written, offer a small Who said what? game. Players match randomly chosen dialogue lines from the love interests to whoever said them in the story, and see whether they got it right. It's fully optional, makes no model calls, and runs until the scene is ready.

Both build on the 0.6.17 memory (#2042), whose overview now covers the whole timeline.

What changed

Package: otome-forge (Otome Hearth) 0.6.18.

What happened so far… (#2040)

  • Server: new GET /runs/:run/memory/overview in routes/memory.ts.
    • It returns {paragraphs} from the saved ${R}:memory overview: an empty list before the first summary, and 404 for an unknown run.
    • overviewParagraphs strips only leading markdown heading or bullet markers and an echoed "Canon to date" heading.
    • Source keys never leave the server. There's no model call, no write, and nothing is filtered by Heat.
  • Client: StorySoFar in StoryHome.tsx.
    • It sits under the planning status in the Lead dialog (main chapter) and in ArcPlanDialog (route, repair and extra-story chapters).
    • It's a tabbable region labelled by the heading "What happened so far…", outside the status live region, so it isn't read out as part of the status.
    • It's fetched fresh on each wait and hidden until a summary exists.
    • At 320×568 the summary shrinks first, so the planning status and Cancel stay in view.

Who said what? (#2041)

  • Server: new minigames/who-said-what.ts with pickWhoSaidWhat, which holds the pure rules, and whoSaidWhat, which reads the story. It's served at GET /runs/:run/who-said-what.
  • Where lines come from: canonicalSegments over completedChapters (now exported from canon.ts). That means the played path only: picked options and the stances taken, never an unpicked option or an untaken stance.
    • Excluded: the prologue, prestige extra stories, the chapter in progress, and any chapter with an unsettled or missing beat.
  • Which lines qualify: only a love interest's spoken lines.
    • Dropped: thoughts, narration, the protagonist's lines (also matched by first name), non-love-interest speakers, and lines under a first name two love interests share.
    • Too short: under 12 letters. Lines over 160 characters are cut at a word with "…", counting code points so emoji and CJK are never split.
    • Duplicates are removed, and a line two love interests both said is dropped.
  • The batch: 24 lines, shuffled on the server. The choices are the love interests who have a line. With fewer than 2 of them, or fewer than 6 lines, the game stays hidden.
  • Cost: no model call and no state written. Only the round's right/wrong and a tally in client state are kept.
  • Client: new screens/reader/WhoSaidWhat.tsx, mounted in the reader's bottom panel after "Writing the next scene…", and only while it's writing.
    • It shows a 44px Play Who said what? button. After Play: the quoted line, two columns of love interest buttons with Read Him's answered states, a polite verdict ("Right!" or "Not quite. {{name}} said it."), a tally, and Next line.
    • It never takes focus when it appears. Focus moves only after Play, an answer or Next.
    • It uses no timers, and it unmounts when the scene is ready.
  • Shared fix: the quoted line in the Wardrobe and in the game now shows a keyboard focus ring. It was missing from the shared .of-show-text style.

Other

  • Seven new keys in the package's English locale only.
  • Version 0.6.18 with a player-facing CHANGELOG entry and a README bullet.
  • The bundle route-list regression lists the two new GET routes.

Not changed: prompts, memory upkeep, image generation, other locales.

Generated outputs: server.mjs, client.js, manifest.json, catalog/preview/{,v2/,v3/}catalog.json and notes.json, artifacts/otome-forge-0.6.18.zip.

Package and security impact

  • Affected package IDs: otome-forge (0.6.17 → 0.6.18).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: two read-only GET routes under the existing package router (/runs/:run/memory/overview, /runs/:run/who-said-what). No new permissions.
  • Restart, storage, update, or uninstall impact: none. Nothing new is stored.

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 582 Otome TypeScript and 12 .mjs regressions pass.

  • Typecheck: 0 errors in 88 server and 139 client files.

  • Formatting and locale: both locale validators, Prettier and git diff --check pass.

  • Package build: the manifest, preview catalogs and zip agree, and the release note is under the 1,000-character cap.

  • Catalog validation: validate-catalog.mjs stops only on other packages' zips, which this sparse worktree doesn't have. CI runs it.

  • Browser tests on desktop-chromium and mobile-chromium: reader spec 52/52, presentation 130/130, home 34/34, loop 4/4. They cover:

    • the summary as a labelled region that scrolls by End/Home and wheel;
    • status and Cancel staying in view at 320×568;
    • Play not taking focus;
    • a round played by keyboard and one by pointer;
    • the right/wrong verdict;
    • the game disappearing when the scene arrives;
    • no horizontal scroll;
    • reduced motion;
    • light and dark themes.
  • Proofs: each new proof fails without its change (routes reversed, client mount reversed and rebuilt, mutations of the line rules) and passes with it.

  • Independent review: three reviews (phones/desktop and accessibility; data correctness; proofs and build) found five minor defects, all fixed with proofs:

    • the quote had no keyboard focus ring;
    • long-line cuts could split a surrogate pair (reported twice);
    • no proof covered the skip of a chapter with an unsettled beat;
    • no proof covered the summary in ArcPlanDialog.

    A no-op initialFocus prop was removed. Local CodeRabbit reported 0 findings. Afterwards, the overview heading filter also ignores "Canon to date:" with a colon.

For a human to verify:

  • On a real phone, manually touch-scroll the "What happened so far…" panel in the Lead dialog and in the route, repair or extra-story planning dialog, and confirm the dialog behind it doesn't scroll.
  • With VoiceOver (iOS/macOS) and TalkBack (Android), manually confirm three things. The summary is announced as the region "What happened so far…", not as part of the planning status. The Who said what? verdict is announced. Focus lands on the quoted line after Play and Next line.
  • Manually check the contrast of the summary text and of the answered buttons (right, wrong, dimmed) in Pearl (light) and Midnight (dark).
  • Turn on Marinara Engine's "Reduce Ambient Animations & Effects" and manually confirm the verdict, buttons and quill don't animate.
  • On a real story with renamed love interests, or two who share a first name, manually confirm those lines are skipped and the game hides when fewer than two love interests qualify.
  • On a real model connection, manually confirm the scene opens with no extra delay while a round is mid-answer, and focus moves to the dialogue's Next button.

Known limits, documented for follow-ups:

  • Date Night planning, a Character Story or Moment's first open, arc planning, and the reader's "Opening…" and "Preparing the background" waits use other wait screens and don't get either feature yet. Each would be a one-line follow-up.
  • On a landscape phone the reader's portrait stage is already cramped, so the Lead dialog overflows. That was already true; the summary only adds to it.
  • At 320×568, a toast shown in the few seconds after Play is visually clipped while the game is open. It's still announced.

Documentation impact

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

The package README and CHANGELOG describe both features.

🤖 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/2043 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-loading-screens-2040` --- ### 📝 Commits (1) - [`4663f0c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4663f0c2a6c9c24be5d6823b9dbd2558111701a7) feat(otome-forge): What happened so far… and Who said what? while Otome Hearth writes (0.6.18) ### 📊 Changes **28 files changed** (+1239 additions, -389 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.18.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` (+6 -0) 📝 `packages/otome-forge/README.md` (+1 -0) 📝 `packages/otome-forge/client.js` (+188 -163) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+126 -126) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+7 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+27 -20) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/WhoSaidWhat.tsx` (+142 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx` (+54 -15) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+9 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+26 -1) ➕ `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/who-said-what.ts` (+118 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/memory.ts` (+25 -1) _...and 8 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 #2040 Closes #2041 ## Why this change The maintainer asked for two things to fill Otome Hearth's waits, on phones and desktop: - **#2040:** while a new chapter is being forged, show a scrollable **What happened so far…** with the story's constant summary. Players get something to read, and it reminds them what happened. - **#2041:** while a scene is loading and being written, offer a small **Who said what?** game. Players match randomly chosen dialogue lines from the love interests to whoever said them in the story, and see whether they got it right. It's fully optional, makes no model calls, and runs until the scene is ready. Both build on the 0.6.17 memory (#2042), whose overview now covers the whole timeline. ## What changed Package: `otome-forge` (Otome Hearth) **0.6.18**. **What happened so far… (#2040)** - **Server:** new `GET /runs/:run/memory/overview` in `routes/memory.ts`. - It returns `{paragraphs}` from the saved `${R}:memory` overview: an empty list before the first summary, and 404 for an unknown run. - `overviewParagraphs` strips only leading markdown heading or bullet markers and an echoed "Canon to date" heading. - Source keys never leave the server. There's no model call, no write, and nothing is filtered by Heat. - **Client:** `StorySoFar` in `StoryHome.tsx`. - It sits under the planning status in the Lead dialog (main chapter) and in `ArcPlanDialog` (route, repair and extra-story chapters). - It's a tabbable region labelled by the heading "What happened so far…", outside the status live region, so it isn't read out as part of the status. - It's fetched fresh on each wait and hidden until a summary exists. - At 320×568 the summary shrinks first, so the planning status and Cancel stay in view. **Who said what? (#2041)** - **Server:** new `minigames/who-said-what.ts` with `pickWhoSaidWhat`, which holds the pure rules, and `whoSaidWhat`, which reads the story. It's served at `GET /runs/:run/who-said-what`. - **Where lines come from:** `canonicalSegments` over `completedChapters` (now exported from `canon.ts`). That means the played path only: picked options and the stances taken, never an unpicked option or an untaken stance. - Excluded: the prologue, prestige extra stories, the chapter in progress, and any chapter with an unsettled or missing beat. - **Which lines qualify:** only a love interest's spoken lines. - Dropped: thoughts, narration, the protagonist's lines (also matched by first name), non-love-interest speakers, and lines under a first name two love interests share. - Too short: under 12 letters. Lines over 160 characters are cut at a word with "…", counting code points so emoji and CJK are never split. - Duplicates are removed, and a line two love interests both said is dropped. - **The batch:** 24 lines, shuffled on the server. The choices are the love interests who have a line. With fewer than 2 of them, or fewer than 6 lines, the game stays hidden. - **Cost:** no model call and no state written. Only the round's right/wrong and a tally in client state are kept. - **Client:** new `screens/reader/WhoSaidWhat.tsx`, mounted in the reader's bottom panel after "Writing the next scene…", and only while it's writing. - It shows a 44px **Play Who said what?** button. After Play: the quoted line, two columns of love interest buttons with Read Him's answered states, a polite verdict ("Right!" or "Not quite. {{name}} said it."), a tally, and **Next line**. - It never takes focus when it appears. Focus moves only after Play, an answer or Next. - It uses no timers, and it unmounts when the scene is ready. - **Shared fix:** the quoted line in the Wardrobe and in the game now shows a keyboard focus ring. It was missing from the shared `.of-show-text` style. **Other** - Seven new keys in the package's English locale only. - Version 0.6.18 with a player-facing CHANGELOG entry and a README bullet. - The bundle route-list regression lists the two new GET routes. **Not changed:** prompts, memory upkeep, image generation, other locales. **Generated outputs:** `server.mjs`, `client.js`, `manifest.json`, `catalog/preview/{,v2/,v3/}catalog.json` and `notes.json`, `artifacts/otome-forge-0.6.18.zip`. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.17 → 0.6.18). - Engine compatibility impact: none. - New or changed permissions/entrypoints: two read-only GET routes under the existing package router (`/runs/:run/memory/overview`, `/runs/:run/who-said-what`). No new permissions. - Restart, storage, update, or uninstall impact: none. Nothing new is stored. ## 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 582 Otome TypeScript and 12 `.mjs` regressions pass. - **Typecheck:** 0 errors in 88 server and 139 client files. - **Formatting and locale:** both locale validators, Prettier and `git diff --check` pass. - **Package build:** the manifest, preview catalogs and zip agree, and the release note is under the 1,000-character cap. - **Catalog validation:** `validate-catalog.mjs` stops only on other packages' zips, which this sparse worktree doesn't have. CI runs it. - **Browser tests** on desktop-chromium and mobile-chromium: reader spec 52/52, presentation 130/130, home 34/34, loop 4/4. They cover: - the summary as a labelled region that scrolls by End/Home and wheel; - status and Cancel staying in view at 320×568; - Play not taking focus; - a round played by keyboard and one by pointer; - the right/wrong verdict; - the game disappearing when the scene arrives; - no horizontal scroll; - reduced motion; - light and dark themes. - **Proofs:** each new proof fails without its change (routes reversed, client mount reversed and rebuilt, mutations of the line rules) and passes with it. - **Independent review:** three reviews (phones/desktop and accessibility; data correctness; proofs and build) found five minor defects, all fixed with proofs: - the quote had no keyboard focus ring; - long-line cuts could split a surrogate pair (reported twice); - no proof covered the skip of a chapter with an unsettled beat; - no proof covered the summary in `ArcPlanDialog`. A no-op `initialFocus` prop was removed. Local CodeRabbit reported 0 findings. Afterwards, the overview heading filter also ignores "Canon to date:" with a colon. For a human to verify: - On a real phone, manually touch-scroll the "What happened so far…" panel in the Lead dialog and in the route, repair or extra-story planning dialog, and confirm the dialog behind it doesn't scroll. - With VoiceOver (iOS/macOS) and TalkBack (Android), manually confirm three things. The summary is announced as the region "What happened so far…", not as part of the planning status. The Who said what? verdict is announced. Focus lands on the quoted line after Play and Next line. - Manually check the contrast of the summary text and of the answered buttons (right, wrong, dimmed) in Pearl (light) and Midnight (dark). - Turn on Marinara Engine's "Reduce Ambient Animations & Effects" and manually confirm the verdict, buttons and quill don't animate. - On a real story with renamed love interests, or two who share a first name, manually confirm those lines are skipped and the game hides when fewer than two love interests qualify. - On a real model connection, manually confirm the scene opens with no extra delay while a round is mid-answer, and focus moves to the dialogue's Next button. Known limits, documented for follow-ups: - Date Night planning, a Character Story or Moment's first open, arc planning, and the reader's "Opening…" and "Preparing the background" waits use other wait screens and don't get either feature yet. Each would be a one-line follow-up. - On a landscape phone the reader's portrait stage is already cramped, so the Lead dialog overflows. That was already true; the summary only adds to it. - At 320×568, a toast shown in the few seconds after Play is visually clipped while the game is open. It's still announced. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package README and CHANGELOG describe both features. 🤖 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:24 +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#2087
No description provided.