[PR #1873] [MERGED] fix(otome-forge): keep raw expressions off the stage #2009

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-stage-expression-cutouts


📝 Commits (3)

  • abbe0af chore: mark Otome 0.1.7 sprite cleanup work in progress
  • a6f62cb fix(otome-forge): keep raw expressions off the stage
  • f288c04 fix(otome-forge): preserve phone stickers during sprite cleanup

📊 Changes

22 files changed (+789 additions, -260 deletions)

View changed files

➕ artifacts/otome-forge-0.1.7.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 (+4 -0)
📝 packages/otome-forge/README.md (+1 -1)
📝 packages/otome-forge/client.js (+97 -97)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+102 -102)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+11 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeScreen.tsx (+6 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+9 -4)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/art.ts (+10 -4)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/schemas/state.ts (+14 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/otome-forge-stage-cutouts.regression.ts (+245 -0)

...and 2 more files

📄 Description

Linked issue

Closes #1872. Owner: @SpicyMarinara (Codex).

Implementation and required local validation are complete. All 20 focused browser cases and substantive local review are complete; hosted checks and Dottore remain merge gates.

Why this change

A chapter could replace Maukie's clean neutral sprite with an expression's opaque green original. Scene art returned raw expressions without queueing their free cleanup, and the reader overrode cleaned run data with those URLs. Home also selected an original expression while cleanup was pending or unavailable.

What changed

  • Scene reads queue the existing free cleanup for current stage sprite sources and keep polling until painting/cleanup settles. Only cleaned expression derivatives are exposed for stage display.
  • Shared run expressions preserve phone sticker behavior: a cleaned derivative when available, otherwise its painted original. Reader stage selection accepts only URLs in the existing cutout allowlist; relevant expression changes refresh the authoritative run data without unrelated place/CG refresh loops.
  • Home retains the clean neutral or previous clean result while an expression is pending, cleanup fails, or a cleaned expression fails to load. Cached cutout identity keeps its correct framing.
  • Raw originals, gallery references, outfits and story progress are preserved. Existing cleanup quality/revision handling and supplied-persona-avatar treatment are unchanged; scene backdrops are not cleaned as sprites.
  • Rebuilt Otome Hearth 0.1.7 through the supported builder, including client/server payloads, manifest, archive and preview catalogs. No user settings, storage fields, permissions or provider integrations were added.

Validation

Passed: source formatting/lint (0 errors, 815 existing warnings), strict package types (78 server/shared and 124 client files), all 393 regressions, catalog lanes, localization, catalog/archive validation, release notes and whitespace.

Five actual server-handler regressions cover cached and new expressions, delayed cleanup, finite failure/stopped states, retained art/progress, stage source coverage and scenery exclusion. The original pre-fix raw-expression failures are preserved.

Frozen browser scenarios cover Reader pending→ready/pending→unavailable and Home pending→ready/pending→unavailable/clean-image-load-error. All five first failed on installed 0.1.6 at direct raw-image guards. The same image, framing, read-growth and poll-stop guards pass on 0.1.7. Replay's existing stored-beat POST is checked exactly; cleanup adds no mutation or regeneration request.

Final browser matrix: mobile Chromium 7/7, mobile WebKit 7/7, desktop Chromium 7/7 and desktop WebKit 7/7, sequentially with one worker. The extra cases verify phone sticker pickers and sent bubbles retain ready faces during pending/failed free cleanup. Reader before/after captures show transparent silhouettes and stable cut framing; Home's failed-image case retains the neutral fixture.

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt and installed every affected payload, manifest and artifact
  • Manually verify the original saved chapter on a physical phone
  • Manually verify fine sprite details with configured real providers
  • Manually verify Engine UI update/restart and uninstall cleanup

Final local CodeRabbit completed at f288c046 with zero findings across all 21 changed text files. Dottore’s earlier confirmed sticker-consumer finding was repaired and covered by RED/GREEN server and browser cases; this does not claim the prior review had zero findings. Independent archive audit verified exact membership, every declared payload pin, CRC and path safety; no binary review is implied.

Evidence and limits

The isolated Engine harness installed and activated exact 0.1.7 client/server bytes. Browser proof uses controlled responses and emulation; it does not establish physical-device or live-provider quality. Original failures and final screenshots remain in /tmp/otome-017-expression-* and server proof in /tmp/otome-stage-cutouts-*.

Archive SHA256: 3ae9d63c2fcb0ee0dec959e93e49c87b39f00b7a17c73c2f6d2e8b547654a19d (1,636,622 bytes). Client: 750dfc06ea307882d0d2c70efdf2e9e6ce4ea86e65f8603b592ac7a16addf864. Server: ef72b54388018a75bfc6791159d19cf7ac483405a007f4c5bfdcd879c810991e.


🔄 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/1873 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-stage-expression-cutouts` --- ### 📝 Commits (3) - [`abbe0af`](https://github.com/Pasta-Devs/Marinara-Agents/commit/abbe0af2965ba4da379477ea6c3b4a8c6b844cbe) chore: mark Otome 0.1.7 sprite cleanup work in progress - [`a6f62cb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a6f62cb1644c06208875e0d244ee0643b147b869) fix(otome-forge): keep raw expressions off the stage - [`f288c04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f288c046a8acee4bb070a277a1bcd73e86ff7f5d) fix(otome-forge): preserve phone stickers during sprite cleanup ### 📊 Changes **22 files changed** (+789 additions, -260 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.1.7.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` (+4 -0) 📝 `packages/otome-forge/README.md` (+1 -1) 📝 `packages/otome-forge/client.js` (+97 -97) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+102 -102) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+11 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeScreen.tsx` (+6 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+9 -4) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/art.ts` (+10 -4) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/schemas/state.ts` (+14 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/otome-forge-stage-cutouts.regression.ts` (+245 -0) _...and 2 more files_ </details> ### 📄 Description ## Linked issue Closes #1872. Owner: @SpicyMarinara (Codex). Implementation and required local validation are complete. All 20 focused browser cases and substantive local review are complete; hosted checks and Dottore remain merge gates. ## Why this change A chapter could replace Maukie's clean neutral sprite with an expression's opaque green original. Scene art returned raw expressions without queueing their free cleanup, and the reader overrode cleaned run data with those URLs. Home also selected an original expression while cleanup was pending or unavailable. ## What changed - Scene reads queue the existing free cleanup for current stage sprite sources and keep polling until painting/cleanup settles. Only cleaned expression derivatives are exposed for stage display. - Shared run expressions preserve phone sticker behavior: a cleaned derivative when available, otherwise its painted original. Reader stage selection accepts only URLs in the existing cutout allowlist; relevant expression changes refresh the authoritative run data without unrelated place/CG refresh loops. - Home retains the clean neutral or previous clean result while an expression is pending, cleanup fails, or a cleaned expression fails to load. Cached cutout identity keeps its correct framing. - Raw originals, gallery references, outfits and story progress are preserved. Existing cleanup quality/revision handling and supplied-persona-avatar treatment are unchanged; scene backdrops are not cleaned as sprites. - Rebuilt Otome Hearth 0.1.7 through the supported builder, including client/server payloads, manifest, archive and preview catalogs. No user settings, storage fields, permissions or provider integrations were added. ## Validation Passed: source formatting/lint (0 errors, 815 existing warnings), strict package types (78 server/shared and 124 client files), all 393 regressions, catalog lanes, localization, catalog/archive validation, release notes and whitespace. Five actual server-handler regressions cover cached and new expressions, delayed cleanup, finite failure/stopped states, retained art/progress, stage source coverage and scenery exclusion. The original pre-fix raw-expression failures are preserved. Frozen browser scenarios cover Reader pending→ready/pending→unavailable and Home pending→ready/pending→unavailable/clean-image-load-error. All five first failed on installed 0.1.6 at direct raw-image guards. The same image, framing, read-growth and poll-stop guards pass on 0.1.7. Replay's existing stored-beat POST is checked exactly; cleanup adds no mutation or regeneration request. Final browser matrix: mobile Chromium 7/7, mobile WebKit 7/7, desktop Chromium 7/7 and desktop WebKit 7/7, sequentially with one worker. The extra cases verify phone sticker pickers and sent bubbles retain ready faces during pending/failed free cleanup. Reader before/after captures show transparent silhouettes and stable cut framing; Home's failed-image case retains the neutral fixture. - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt and installed every affected payload, manifest and artifact - [ ] Manually verify the original saved chapter on a physical phone - [ ] Manually verify fine sprite details with configured real providers - [ ] Manually verify Engine UI update/restart and uninstall cleanup Final local CodeRabbit completed at `f288c046` with zero findings across all 21 changed text files. Dottore’s earlier confirmed sticker-consumer finding was repaired and covered by RED/GREEN server and browser cases; this does not claim the prior review had zero findings. Independent archive audit verified exact membership, every declared payload pin, CRC and path safety; no binary review is implied. ## Evidence and limits The isolated Engine harness installed and activated exact 0.1.7 client/server bytes. Browser proof uses controlled responses and emulation; it does not establish physical-device or live-provider quality. Original failures and final screenshots remain in `/tmp/otome-017-expression-*` and server proof in `/tmp/otome-stage-cutouts-*`. Archive SHA256: `3ae9d63c2fcb0ee0dec959e93e49c87b39f00b7a17c73c2f6d2e8b547654a19d` (1,636,622 bytes). Client: `750dfc06ea307882d0d2c70efdf2e9e6ce4ea86e65f8603b592ac7a16addf864`. Server: `ef72b54388018a75bfc6791159d19cf7ac483405a007f4c5bfdcd879c810991e`. --- <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:42 +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#2009
No description provided.