[PR #2123] [MERGED] feat(otome-forge): paint a chapter's art ahead, end hung paints, dates and stories on Story (0.8.9) #2128

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-paint-ahead-story-connection


📝 Commits (1)

  • 7fad792 feat(otome-forge): paint a chapter's art ahead, end hung paints, write dates and stories with Story (0.8.9)

📊 Changes

27 files changed (+355 additions, -215 deletions)

View changed files

➕ artifacts/otome-forge-0.8.9.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 (+6 -0)
📝 packages/otome-forge/README.md (+2 -2)
📝 packages/otome-forge/client.js (+1 -1)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+103 -103)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+5 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/paint.ts (+38 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/character-story.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/prestige.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/date-night.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-him.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-me.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/story.ts (+4 -1)

...and 7 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 #2122

Why this change

The maintainer waited at every scene for its art, and one key image said "Painting this moment…" for 30 minutes. Their rules:

  • pre-generate all of a chapter's images, so each scene's art is ready when you reach it;
  • only a skipped scene's generations are stopped, and nothing is ever held back in case you skip;
  • dates, banner scenes and Character Stories are written with the Story connection.

What changed

  • otome-forge 0.8.9: writing ahead chains (story/beats.ts queueLookahead). While you read a scene, the chapter's following scenes are written in the background, one after another in the run's queue, and each is painted as soon as it is saved. Before, only the next scene was written ahead.
    • It stops where it always did: at a big choice, or a Confrontation that hasn't ended, because what follows depends on the pick. Serving the next scene after the pick starts it again.
    • An Ease off now writes the rest of the chapter again from the cut.
    • Rewrite and Ease off still drop and release what they replace, and a write that read a scene changed since is never kept.
  • A paid image gets 10 minutes (art/paint.ts):
    • The cause of the hang: the Engine image request had no deadline. The connection's image queue runs one paint at a time, so one call that never answered left every place and key image behind it pending.
    • Past the deadline, the paint is saved as failed with Retry, the next paint starts, and an image that arrives late is deleted from the gallery.
    • The reader now looks for a pending key image for 12 minutes instead of 3, so the failure shows without a reload.
  • The Story connection for Date Night, Read Them, Read Me, the banner plan (Snapshots, Moment and Memory premises, key-image briefs), Character Stories and the prestige extra stories, instead of Planning. Stories without their own Planning connection already used Story, so they see no change.
  • The CHANGELOG has a 0.8.9 entry, and the README's chapter and Ease off text describes writing ahead.

Not changed, open for the maintainer:

  • The Claw Machine lines are written in the same call as Home's tap and comfort lines, on Planning; moving them would move those too.
  • Plush and sticker designs stay on Planning.
  • Messages, the daily note, care and the wardrobe lines stay on Messages.
  • A chapter's first scene is still written when you open the chapter, so its art paints then.
  • Scenes of an open Make it right date written ahead before a rupture heals elsewhere keep that framing; the date's ending is an ordinary date's, as before.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386). Built against the same Engine commit as 0.8.7 and 0.8.8.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. Writing ahead makes more Story calls up front: the scenes up to the next big choice, which were otherwise written as you reached them.

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

  • Manually verify that opening a chapter with images on paints the following scenes' places and key images before you reach them, up to the next big choice.
  • Manually verify that Ease off and Rewrite still replace the scenes after them, and that the replaced scenes' pictures go.
  • Manually verify that a key image whose image service never answers ends with Retry after about 10 minutes, and that the next pictures then paint.
  • Manually verify, with a separate Planning connection set, that Date Night, Read Them, Read Me, a banner and a Character Story are written by the Story connection.

Agent-run checks:

  • npm run test:otome-forge: 690 tests pass (677 + 13). Six existing tests asserted the old one-scene-ahead design and were updated to the new rule; each still checks what it was written for:
    • "the lookahead and the player's own request write a beat once" now checks that each scene is written once up to the Confrontation, and nothing after it until it ends.
    • The two Ease off tests check that no scene written before the cut is kept, and that the reader gets the one written from the cut.
    • "the art hears of every beat" checks that each scene written ahead is painted once, with the review mode.
    • In the logs test, the chain's scenes get scripted replies, and nothing leaks into the logs.
    • The two Make it right date tests check that no scene is written twice, and that the ending is an ordinary date's.
  • New tests:
    • A date is planned with the Story connection even when the story has its own Planning connection. It fails with the old routing.
    • A paid image that never answers ends at its deadline, frees its connection's queue for the next paint, and its late image goes to be deleted.
  • node scripts/build-feature-packages.mjs otome-forge (Engine a3ceb0162b), node scripts/validate-catalog.mjs (v2=44, v3=44), node scripts/tests/catalog-release-notes.regression.mjs and npm run format:check: pass.
  • The strict package typecheck passes on 89 server and 145 client files. Lint has 0 errors; the warnings predate this change.
  • Still running when this opened: the Otome browser suite and local CodeRabbit. Their results will be added here.

Documentation impact

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

🤖 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/2123 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/5/2026 **Status:** ✅ Merged **Merged:** 11/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-paint-ahead-story-connection` --- ### 📝 Commits (1) - [`7fad792`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7fad7923df06155a2098ff8f8afc1da60d829970) feat(otome-forge): paint a chapter's art ahead, end hung paints, write dates and stories with Story (0.8.9) ### 📊 Changes **27 files changed** (+355 additions, -215 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.8.9.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` (+6 -0) 📝 `packages/otome-forge/README.md` (+2 -2) 📝 `packages/otome-forge/client.js` (+1 -1) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+103 -103) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+5 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/paint.ts` (+38 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/character-story.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/prestige.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/date-night.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-him.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/read-me.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/story.ts` (+4 -1) _...and 7 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 #2122 ## Why this change The maintainer waited at every scene for its art, and one key image said "Painting this moment…" for 30 minutes. Their rules: - pre-generate all of a chapter's images, so each scene's art is ready when you reach it; - only a skipped scene's generations are stopped, and nothing is ever held back in case you skip; - dates, banner scenes and Character Stories are written with the Story connection. ## What changed - **otome-forge 0.8.9: writing ahead chains** (`story/beats.ts` `queueLookahead`). While you read a scene, the chapter's following scenes are written in the background, one after another in the run's queue, and each is painted as soon as it is saved. Before, only the next scene was written ahead. - It stops where it always did: at a big choice, or a Confrontation that hasn't ended, because what follows depends on the pick. Serving the next scene after the pick starts it again. - An **Ease off** now writes the rest of the chapter again from the cut. - **Rewrite** and **Ease off** still drop and release what they replace, and a write that read a scene changed since is never kept. - **A paid image gets 10 minutes** (`art/paint.ts`): - **The cause of the hang:** the Engine image request had no deadline. The connection's image queue runs one paint at a time, so one call that never answered left every place and key image behind it pending. - Past the deadline, the paint is saved as failed with **Retry**, the next paint starts, and an image that arrives late is deleted from the gallery. - The reader now looks for a pending key image for 12 minutes instead of 3, so the failure shows without a reload. - **The Story connection** for Date Night, Read Them, Read Me, the banner plan (Snapshots, Moment and Memory premises, key-image briefs), Character Stories and the prestige extra stories, instead of Planning. Stories without their own Planning connection already used Story, so they see no change. - The CHANGELOG has a 0.8.9 entry, and the README's chapter and Ease off text describes writing ahead. Not changed, open for the maintainer: - The Claw Machine lines are written in the same call as Home's tap and comfort lines, on Planning; moving them would move those too. - Plush and sticker designs stay on Planning. - Messages, the daily note, care and the wardrobe lines stay on Messages. - A chapter's first scene is still written when you open the chapter, so its art paints then. - Scenes of an open Make it right date written ahead before a rupture heals elsewhere keep that framing; the date's ending is an ordinary date's, as before. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386). Built against the same Engine commit as 0.8.7 and 0.8.8. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. Writing ahead makes more Story calls up front: the scenes up to the next big choice, which were otherwise written as you reached them. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - Manually verify that opening a chapter with images on paints the following scenes' places and key images before you reach them, up to the next big choice. - Manually verify that **Ease off** and **Rewrite** still replace the scenes after them, and that the replaced scenes' pictures go. - Manually verify that a key image whose image service never answers ends with **Retry** after about 10 minutes, and that the next pictures then paint. - Manually verify, with a separate Planning connection set, that Date Night, Read Them, Read Me, a banner and a Character Story are written by the Story connection. Agent-run checks: - `npm run test:otome-forge`: 690 tests pass (677 + 13). Six existing tests asserted the old one-scene-ahead design and were updated to the new rule; each still checks what it was written for: - "the lookahead and the player's own request write a beat once" now checks that each scene is written once up to the Confrontation, and nothing after it until it ends. - The two Ease off tests check that no scene written before the cut is kept, and that the reader gets the one written from the cut. - "the art hears of every beat" checks that each scene written ahead is painted once, with the review mode. - In the logs test, the chain's scenes get scripted replies, and nothing leaks into the logs. - The two Make it right date tests check that no scene is written twice, and that the ending is an ordinary date's. - New tests: - **A date is planned with the Story connection** even when the story has its own Planning connection. It fails with the old routing. - **A paid image that never answers** ends at its deadline, frees its connection's queue for the next paint, and its late image goes to be deleted. - `node scripts/build-feature-packages.mjs otome-forge` (Engine `a3ceb0162b`), `node scripts/validate-catalog.mjs` (v2=44, v3=44), `node scripts/tests/catalog-release-notes.regression.mjs` and `npm run format:check`: pass. - The strict package typecheck passes on 89 server and 145 client files. Lint has 0 errors; the warnings predate this change. - Still running when this opened: the Otome browser suite and local CodeRabbit. Their results will be added here. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 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:43 +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#2128
No description provided.