[PR #2148] [MERGED] fix(otome-forge): scene pictures send each person's own likeness (0.9.5) #2145

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-scene-references


📝 Commits (2)

  • eea5f02 fix(otome-forge): scene pictures send each person's own likeness (0.9.5)
  • 792cd5e fix(otome-forge): a protagonist named like the node's love interest keeps him in the picture (0.9.5)

📊 Changes

25 files changed (+1060 additions, -373 deletions)

View changed files

➕ artifacts/otome-forge-0.9.5.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/server.mjs (+152 -152)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/cg.ts (+263 -45)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/figurine.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/image-client.ts (+104 -35)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/outfits.ts (+17 -12)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/stickers.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/date-night.ts (+13 -3)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/photo-shoot.ts (+18 -8)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/prompts.ts (+6 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/wish/banners.ts (+7 -5)
📝 scripts/build-feature-packages.mjs (+1 -1)

...and 5 more files

📄 Description

Pull request

Linked issue

Closes #2145

Why this change

The maintainer saw three scene pictures in a row on GPT Image 2.5 Sunburst whose people looked nothing like the love interest or the protagonist: a chapter key image and a Character Story's art. A run against a real Engine 2.5.2 with a fake provider found three ways Otome Hearth sends the wrong references, or none, and still pays:

  1. Outfits. In a picture of two or more people, a person wearing a look was sent only as that look's picture, and their card sprite or avatar and persona avatar were dropped. A look painted without a likeness (possible, and silent) then put a stranger's face into every group scene. A deleted look file with no setup portrait sent nothing at all.
  2. Names. The narrator writes a key image's cast. Otome recognised only the stored name or its first word. "You", "the protagonist", a title ("Lord Kai", "Il Dottore" written "Dottore"), an honorific, a surname, a fuller name, a dropped accent or a love interest's id all became a stranger, with no reference and no look line, and no log. Memory art can name the protagonist "You", and the Moment, Snapshot and keepsake checks dropped her on any name mismatch.
  3. Nothing stopped the paint. When a saved picture failed to load, the paint went ahead without it and was saved as ready.

What changed

Package: otome-forge 0.9.5 (S = packages/otome-forge/src/engine/packages/server/src/services/otome-forge).

  • Group pictures send each person's true likeness (S/art/cg.ts cgSubjects).
    • Still one picture per person (the 2026-11-03 rule against merged bodies), but now it's who they are: the card's neutral full body or avatar, the persona avatar, then the setup portrait. Their worn look is tried only when none of those loads.
    • The prompt still names the look's outfit, and its reference sentence says "face, hair and build" rather than "…and clothing" (S/prompts.ts, carried into the date keepsake).
    • Pictures of one person keep [identity, look]. The pair portrait and the Photo Shoot still use the looks themselves, because they exist to show them.
    • An archetype love interest alone in a look, with no portrait, now sends that look instead of nothing.
  • Names resolve at paint time (resolveCast), so stored beats are fixed too.
    • A love interest's id, or role words for the protagonist ("you", "the protagonist", "MC"…).
    • Titles, articles and honorifics are ignored; accents are folded on Latin, Greek and Cyrillic letters only. Exact names win over partial ones, whole words only ("Ann" is never Anna), and a possessive names someone else ("Kai's mother").
    • A title of the other gender is someone else ("Mrs. Ren" is not Kai Ren). An entry with no letters ("???") names nobody known.
    • The node's love interests settle a shared name, and a cast that names nobody is filled from the brief only when it names them (a picture of a letter stays empty).
    • Used by key images, Memory, Moment and Snapshot art, the memories banner and the keepsake. The keepsake now keeps a protagonist with no name.
  • Never pay for strangers when a picture exists (S/art/image-client.ts, Otome's own subjectReference).
    • A subject marked who whose pictures exist but none loads throws MissingLikenessError before the paid call. The paint is saved as failed and offers Retry, as for any failure.
    • A person with no picture at all is still painted from their description, and that is logged.
    • This covers key images, item art, banners, the keepsake, the pair portrait, look paints, figurines, stickers and the Photo Shoot. Base-look paints in setup are unchanged.
  • Every person a picture names who matches nobody is logged as a warning.
  • No UI text, schema, paint-state, kit or Engine change. sources/forge-kit and packages/gacha-forge are byte-identical.
  • Release: version 0.9.5, CHANGELOG, rebuilt server.mjs, manifest.json, artifacts/otome-forge-0.9.5.zip and catalogs. client.js is unchanged because there is no client change.

Trade-off: in pictures of two or more people, a worn look is drawn from its outfit line rather than its exact painted design, so that each face is right. Under a tag-style image profile there is no reference sentence, so a reference-capable model sees the identity picture in its base clothes, with only the outfit tags against it.

Not in this PR: the Engine's image fallback still retries a failed request on the fallback connection even if that connection can't take references. The maintainer's fallback, GPT Image 2.5 Flare, does take them, so it isn't the cause here. That change would be Engine-owned and also affect the Illustrator.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (no new capability API)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. Stories in progress pick up the new references on their next paint or Retry.

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

Run by the agent:

  • npm run test:otome-forge: 717 + 13 passed, 0 failed.
  • node scripts/typecheck-packages.mjs otome-forge: no strict errors.
  • npm run check: no lint errors in touched files.
  • node scripts/validate-catalog.mjs and git diff --check: pass.

New regressions:

  • otome-forge-cg-worn: the resolveCast table and the brief fallback.
  • otome-forge-image-references, through the real loopback client and kit wrapper:
    • a group scene sends the sprite and the persona avatar, not the looks;
    • looks that 404 fall back to the card avatar;
    • "Ren, You" and "Lord Kai, the protagonist" send both people;
    • a missing file fails with 0 generations, then Retry succeeds;
    • a pair portrait or Photo Shoot picture that 404s fails with 0 generations.
  • otome-forge-date-night: keepsake wording, and a protagonist with no name.

Still to verify by hand:

  • Manually verify, on GPT Image 2.5 Sunburst, that a key image with the love interest and the protagonist, both wearing looks, shows their real faces and the looks' outfits.
  • Manually verify a Memory or Character Story picture where the protagonist is written as "You".
  • Manually verify that deleting a love interest's card avatar file and painting a key image fails with Try again and no paid call.

Documentation impact

  • No documentation changes needed

🤖 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/2148 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-scene-references` --- ### 📝 Commits (2) - [`eea5f02`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eea5f028b048a200d755f7be0311f09daf8f0b96) fix(otome-forge): scene pictures send each person's own likeness (0.9.5) - [`792cd5e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/792cd5e734f450329878bd7a9882074588481377) fix(otome-forge): a protagonist named like the node's love interest keeps him in the picture (0.9.5) ### 📊 Changes **25 files changed** (+1060 additions, -373 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.9.5.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/server.mjs` (+152 -152) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/cg.ts` (+263 -45) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/figurine.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/image-client.ts` (+104 -35) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/outfits.ts` (+17 -12) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/stickers.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/date-night.ts` (+13 -3) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/minigames/photo-shoot.ts` (+18 -8) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/prompts.ts` (+6 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/wish/banners.ts` (+7 -5) 📝 `scripts/build-feature-packages.mjs` (+1 -1) _...and 5 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #2145 ## Why this change The maintainer saw three scene pictures in a row on GPT Image 2.5 Sunburst whose people looked nothing like the love interest or the protagonist: a chapter key image and a Character Story's art. A run against a real Engine 2.5.2 with a fake provider found three ways Otome Hearth sends the wrong references, or none, and still pays: 1. **Outfits.** In a picture of two or more people, a person wearing a look was sent only as that look's picture, and their card sprite or avatar and persona avatar were dropped. A look painted without a likeness (possible, and silent) then put a stranger's face into every group scene. A deleted look file with no setup portrait sent nothing at all. 2. **Names.** The narrator writes a key image's cast. Otome recognised only the stored name or its first word. "You", "the protagonist", a title ("Lord Kai", "Il Dottore" written "Dottore"), an honorific, a surname, a fuller name, a dropped accent or a love interest's id all became a stranger, with no reference and no look line, and no log. Memory art can name the protagonist "You", and the Moment, Snapshot and keepsake checks dropped her on any name mismatch. 3. **Nothing stopped the paint.** When a saved picture failed to load, the paint went ahead without it and was saved as ready. ## What changed Package: `otome-forge` 0.9.5 (S = `packages/otome-forge/src/engine/packages/server/src/services/otome-forge`). - **Group pictures send each person's true likeness** (`S/art/cg.ts` `cgSubjects`). - Still one picture per person (the 2026-11-03 rule against merged bodies), but now it's who they are: the card's neutral full body or avatar, the persona avatar, then the setup portrait. Their worn look is tried only when none of those loads. - The prompt still names the look's outfit, and its reference sentence says "face, hair and build" rather than "…and clothing" (`S/prompts.ts`, carried into the date keepsake). - Pictures of one person keep [identity, look]. The pair portrait and the Photo Shoot still use the looks themselves, because they exist to show them. - An archetype love interest alone in a look, with no portrait, now sends that look instead of nothing. - **Names resolve at paint time** (`resolveCast`), so stored beats are fixed too. - A love interest's id, or role words for the protagonist ("you", "the protagonist", "MC"…). - Titles, articles and honorifics are ignored; accents are folded on Latin, Greek and Cyrillic letters only. Exact names win over partial ones, whole words only ("Ann" is never Anna), and a possessive names someone else ("Kai's mother"). - A title of the other gender is someone else ("Mrs. Ren" is not Kai Ren). An entry with no letters ("???") names nobody known. - The node's love interests settle a shared name, and a cast that names nobody is filled from the brief only when it names them (a picture of a letter stays empty). - Used by key images, Memory, Moment and Snapshot art, the memories banner and the keepsake. The keepsake now keeps a protagonist with no name. - **Never pay for strangers when a picture exists** (`S/art/image-client.ts`, Otome's own `subjectReference`). - A subject marked `who` whose pictures exist but none loads throws `MissingLikenessError` before the paid call. The paint is saved as failed and offers Retry, as for any failure. - A person with no picture at all is still painted from their description, and that is logged. - This covers key images, item art, banners, the keepsake, the pair portrait, look paints, figurines, stickers and the Photo Shoot. Base-look paints in setup are unchanged. - Every person a picture names who matches nobody is logged as a warning. - No UI text, schema, paint-state, kit or Engine change. `sources/forge-kit` and `packages/gacha-forge` are byte-identical. - Release: version 0.9.5, CHANGELOG, rebuilt `server.mjs`, `manifest.json`, `artifacts/otome-forge-0.9.5.zip` and catalogs. `client.js` is unchanged because there is no client change. **Trade-off:** in pictures of two or more people, a worn look is drawn from its outfit line rather than its exact painted design, so that each face is right. Under a tag-style image profile there is no reference sentence, so a reference-capable model sees the identity picture in its base clothes, with only the outfit tags against it. **Not in this PR:** the Engine's image fallback still retries a failed request on the fallback connection even if that connection can't take references. The maintainer's fallback, GPT Image 2.5 Flare, does take them, so it isn't the cause here. That change would be Engine-owned and also affect the Illustrator. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (no new capability API) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. Stories in progress pick up the new references on their next paint or Retry. ## Validation <!-- Human tasks. Agent-run results are listed in the notes below. --> - [ ] `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 Run by the agent: - `npm run test:otome-forge`: 717 + 13 passed, 0 failed. - `node scripts/typecheck-packages.mjs otome-forge`: no strict errors. - `npm run check`: no lint errors in touched files. - `node scripts/validate-catalog.mjs` and `git diff --check`: pass. New regressions: - `otome-forge-cg-worn`: the `resolveCast` table and the brief fallback. - `otome-forge-image-references`, through the real loopback client and kit wrapper: - a group scene sends the sprite and the persona avatar, not the looks; - looks that 404 fall back to the card avatar; - "Ren, You" and "Lord Kai, the protagonist" send both people; - a missing file fails with 0 generations, then Retry succeeds; - a pair portrait or Photo Shoot picture that 404s fails with 0 generations. - `otome-forge-date-night`: keepsake wording, and a protagonist with no name. Still to verify by hand: - Manually verify, on GPT Image 2.5 Sunburst, that a key image with the love interest and the protagonist, both wearing looks, shows their real faces and the looks' outfits. - Manually verify a Memory or Character Story picture where the protagonist is written as "You". - Manually verify that deleting a love interest's card avatar file and painting a key image fails with **Try again** and no paid call. ## Documentation impact - [x] No documentation changes needed 🤖 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 changed title from [PR #2148] fix(otome-forge): scene pictures send each person's own likeness (0.9.5) to [PR #2148] [MERGED] fix(otome-forge): scene pictures send each person's own likeness (0.9.5) 2026-11-07 21:43:44 +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#2145
No description provided.