[PR #2142] [MERGED] feat(otome-forge): figurines are painted, not drawn as SVG (0.9.3) #2138

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-figurine-paint


📝 Commits (6)

  • 0a11b31 feat(otome-forge): figurines are painted, not drawn as SVG (0.9.3)
  • 9cbfd87 fix(otome-forge): review fixes for painted figurines (0.9.3)
  • c1a8daa Merge remote-tracking branch 'origin/staging' into feat/otome-figurine-paint
  • 4fe43ea Merge remote-tracking branch 'origin/staging' into feat/otome-figurine-paint
  • 163b902 fix(otome-forge): the Wardrobe keeps reading until a figurine is cut out (0.9.3)
  • 5e36549 fix(otome-forge): the Wardrobe queues a painted figurine's cut-out too (0.9.3)

📊 Changes

37 files changed (+1464 additions, -770 deletions)

View changed files

➕ artifacts/otome-forge-0.9.3.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 (+10 -9)
📝 packages/otome-forge/client.js (+96 -87)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+161 -162)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/GiftArt.tsx (+18 -11)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-items.ts (+8 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+4 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeLayers.tsx (+13 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeScreen.tsx (+3 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wardrobe/Wardrobe.tsx (+47 -28)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wish/ShopPanel.tsx (+117 -17)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wish/WishScreen.tsx (+1 -0)

...and 17 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 #2138

Why this change

The maintainer found that the Shop's figurines, drawn as SVG by the text model, don't look good, and asked for them to be made with image generation.

What changed

  • otome-forge 0.9.3 (rebuilt client.js, server.mjs, manifest, artifact and catalog entries).

  • Painting (new art/figurine.ts, following the item-art paid-work rules):

    • Buying a figurine starts one paid image in the background. The purchase never waits for it.
    • Opening the Shop or Home never paints anything.
    • The paint record (unit.figurine) is claimed in one revision-checked write. It is waiting-consent under Ask before painting or the Engine's prompt review.
    • The record is checked again right before the paid call, and the image is saved only onto the record that asked.
    • A failed paint is kept and repainted only on a tap. One lost to a restart reads as stopped.
    • Without an image connection nothing is claimed, and the shelf keeps the portrait frame.
  • Routes: POST /runs/:run/shop/figurines/:li/art {prompt?, negativePrompt?} is the tap (Paint it or Try again). It waits for the paint and never pays twice; it answers 404, 409 locked before purchase, or 503 no-connection. POST .../art/prompt serves the review dialog.

  • The image: figurinePrompt asks for a small PVC collectible figure of the love interest in the look they wear now, on a round display base, with product-photo lighting.

    • It uses the looks' chroma backdrop, size and SFW rating path.
    • It is painted through generateOutfit, with the likeness reference their looks get.
  • Cut-out:

    • Queued after the paint, through the Home cut-out pipeline.
    • The Shop shelf, the Wardrobe and Home show the cut-out. Before the server cut-out lands, they show the image with its backdrop removed by the same display cleanup looks use.
    • If neither is ready, they show the portrait frame or a faint stand-in, never the green backdrop.
  • Removed: the SVG figurine drawing, figurineMessages, the Shop and Home drawing queues, the reply normalizer and Unit.figurineArt (an old saved one is dropped on read). The plush code and prompt are back to their pre-0.9.0 form, byte-identical.

  • Client:

    • The Shop and Wardrobe show "Painting…", Paint it or Try again, using the existing paint taps and the review dialog. A double tap pays once and never opens the scene.
    • A figurine's Buy shows "Paints 1 image", plus "after you tap Paint it" when Ask or prompt review holds the paint.
    • The Shop polls while a figurine paints or is cut out.
  • Tests: the shop regressions now cover painting:

    • it paints once, only after purchase;
    • Ask and review hold it for a tap;
    • a failure is kept, and Retry repaints once;
    • the image is saved only onto the record that asked;
    • the cut-out is queued;
    • with no connection nothing paints;
    • the debug prompt is logged;
    • the route rules.

    The wish e2e covers the Shop's paint states, the double tap and the cost notes. Routes are pinned in the server-bundle list.

  • Docs and release: README (Shop, Wardrobe, Home, cost table, retry note) and CHANGELOG 0.9.3.

Version 0.9.3 follows #2135 (0.9.2), which is still open. Whichever merges second has staging merged in and is rebuilt.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386)
  • New or changed permissions/entrypoints: two routes under the existing Shop routes. No new permissions.
  • Restart, storage, update, or uninstall impact:
    • A figurine's paint record replaces the old SVG on each love interest's unit.
    • Figurines bought in 0.9.0–0.9.1 have no painting, and the Shop offers Paint it.
    • Painted images and cut-outs are kept in the Global Gallery and 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

  • Manually verify with a real image provider: buy a love interest's figurine, check the painted figurine looks like them in their current look on a round base, and that it cuts out cleanly on the Shop shelf, in Wardrobe → Me → Gifts and on Home.
  • Manually verify with Ask before painting on: buying holds the paint, and Paint it paints once.
  • Manually verify that a figurine bought in 0.9.1 shows Paint it in the Shop.

Agent-run checks:

  • npm run test:otome-forge: 703 + 13 pass, also after merging staging.
  • Strict typecheck, npm run check, locale keys, release notes, catalog lanes and git diff --check: pass.
  • Browser: the Shop's wish e2e passed on mobile-chromium before the review fixes. The updated e2e steps were not run again locally; CI runs them.
  • Review: two reviewers, one on paid-image state and one on UI and wording, with each finding verified.
    • The paid-image reviewer found nothing.
    • The UI reviewer's three confirmed findings are fixed in 9cbfd8716: the green backdrop, the disappearing Paint button, and copy that ignored prompt review.

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/2142 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/6/2026 **Status:** ✅ Merged **Merged:** 11/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-figurine-paint` --- ### 📝 Commits (6) - [`0a11b31`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0a11b319b930ebb38b81b42249a592dbd05e7143) feat(otome-forge): figurines are painted, not drawn as SVG (0.9.3) - [`9cbfd87`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9cbfd871699cde3bbe4d7bf00ec6f5b8aac6fed2) fix(otome-forge): review fixes for painted figurines (0.9.3) - [`c1a8daa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c1a8daa0cfa20496110be7388fae329fa1c60f63) Merge remote-tracking branch 'origin/staging' into feat/otome-figurine-paint - [`4fe43ea`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4fe43ea60e551eee81f77c2be22b81d0ecb0109e) Merge remote-tracking branch 'origin/staging' into feat/otome-figurine-paint - [`163b902`](https://github.com/Pasta-Devs/Marinara-Agents/commit/163b9026cdb219e18d9c22c495180bd4f1006ef1) fix(otome-forge): the Wardrobe keeps reading until a figurine is cut out (0.9.3) - [`5e36549`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e36549816fb67c0659b1a3d09c5cbfc16cb26fa) fix(otome-forge): the Wardrobe queues a painted figurine's cut-out too (0.9.3) ### 📊 Changes **37 files changed** (+1464 additions, -770 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.9.3.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` (+10 -9) 📝 `packages/otome-forge/client.js` (+96 -87) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+161 -162) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/GiftArt.tsx` (+18 -11) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-items.ts` (+8 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+4 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeLayers.tsx` (+13 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/home/HomeScreen.tsx` (+3 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wardrobe/Wardrobe.tsx` (+47 -28) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wish/ShopPanel.tsx` (+117 -17) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/wish/WishScreen.tsx` (+1 -0) _...and 17 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 #2138 ## Why this change The maintainer found that the Shop's figurines, drawn as SVG by the text model, don't look good, and asked for them to be made with image generation. ## What changed - **otome-forge 0.9.3** (rebuilt `client.js`, `server.mjs`, manifest, artifact and catalog entries). - **Painting** (new `art/figurine.ts`, following the item-art paid-work rules): - Buying a figurine starts one paid image in the background. The purchase never waits for it. - Opening the Shop or Home never paints anything. - The paint record (`unit.figurine`) is claimed in one revision-checked write. It is `waiting-consent` under **Ask before painting** or the Engine's prompt review. - The record is checked again right before the paid call, and the image is saved only onto the record that asked. - A failed paint is kept and repainted only on a tap. One lost to a restart reads as `stopped`. - Without an image connection nothing is claimed, and the shelf keeps the portrait frame. - **Routes:** `POST /runs/:run/shop/figurines/:li/art {prompt?, negativePrompt?}` is the tap (Paint it or Try again). It waits for the paint and never pays twice; it answers 404, 409 `locked` before purchase, or 503 `no-connection`. `POST .../art/prompt` serves the review dialog. - **The image:** `figurinePrompt` asks for a small PVC collectible figure of the love interest in the look they wear now, on a round display base, with product-photo lighting. - It uses the looks' chroma backdrop, size and SFW rating path. - It is painted through `generateOutfit`, with the likeness reference their looks get. - **Cut-out:** - Queued after the paint, through the Home cut-out pipeline. - The Shop shelf, the Wardrobe and Home show the cut-out. Before the server cut-out lands, they show the image with its backdrop removed by the same display cleanup looks use. - If neither is ready, they show the portrait frame or a faint stand-in, never the green backdrop. - **Removed:** the SVG figurine drawing, `figurineMessages`, the Shop and Home drawing queues, the reply normalizer and `Unit.figurineArt` (an old saved one is dropped on read). The plush code and prompt are back to their pre-0.9.0 form, byte-identical. - **Client:** - The Shop and Wardrobe show "Painting…", **Paint it** or **Try again**, using the existing paint taps and the review dialog. A double tap pays once and never opens the scene. - A figurine's Buy shows "Paints 1 image", plus "after you tap Paint it" when Ask or prompt review holds the paint. - The Shop polls while a figurine paints or is cut out. - **Tests:** the shop regressions now cover painting: - it paints once, only after purchase; - Ask and review hold it for a tap; - a failure is kept, and Retry repaints once; - the image is saved only onto the record that asked; - the cut-out is queued; - with no connection nothing paints; - the debug prompt is logged; - the route rules. The wish e2e covers the Shop's paint states, the double tap and the cost notes. Routes are pinned in the server-bundle list. - **Docs and release:** README (Shop, Wardrobe, Home, cost table, retry note) and CHANGELOG 0.9.3. Version 0.9.3 follows #2135 (0.9.2), which is still open. Whichever merges second has staging merged in and is rebuilt. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (Engine 2.5.1+, capability API 1.386) - New or changed permissions/entrypoints: two routes under the existing Shop routes. No new permissions. - Restart, storage, update, or uninstall impact: - A figurine's paint record replaces the old SVG on each love interest's unit. - Figurines bought in 0.9.0–0.9.1 have no painting, and the Shop offers **Paint it**. - Painted images and cut-outs are kept in the Global Gallery and deleted with the story. ## 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 with a real image provider: buy a love interest's figurine, check the painted figurine looks like them in their current look on a round base, and that it cuts out cleanly on the Shop shelf, in Wardrobe → Me → Gifts and on Home. - Manually verify with **Ask before painting** on: buying holds the paint, and **Paint it** paints once. - Manually verify that a figurine bought in 0.9.1 shows **Paint it** in the Shop. Agent-run checks: - `npm run test:otome-forge`: 703 + 13 pass, also after merging staging. - Strict typecheck, `npm run check`, locale keys, release notes, catalog lanes and `git diff --check`: pass. - Browser: the Shop's wish e2e passed on mobile-chromium before the review fixes. The updated e2e steps were not run again locally; CI runs them. - Review: two reviewers, one on paid-image state and one on UI and wording, with each finding verified. - The paid-image reviewer found nothing. - The UI reviewer's three confirmed findings are fixed in `9cbfd8716`: the green backdrop, the disappearing Paint button, and copy that ignored prompt review. ## 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:48 +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#2138
No description provided.