[PR #1849] [MERGED] fix(otome-forge): preserve artwork and persona appearance (0.1.2) #1998

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-hearth-art-preservation


📝 Commits (6)

  • 5fcd13e fix(otome-forge): refresh obsolete cutouts from retained originals
  • aef99eb fix(otome-forge): use current persona appearance and full-body likenesses
  • 1b4c326 fix(forge): retain cutout references and rebuild shared helper consumers
  • c704bd8 fix(otome-forge): keep neutral identity in couple portraits
  • bd5b114 Merge remote-tracking branch 'origin/staging' into fix/otome-hearth-art-preservation
  • 7b3c642 fix(otome-hearth): only certify builtin cleanup revisions

📊 Changes

53 files changed (+1500 additions, -430 deletions)

View changed files

➕ artifacts/gacha-forge-1.27.4.zip (+0 -0)
➕ artifacts/otome-forge-0.1.2.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/preview/catalog.json (+14 -9)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+14 -9)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+14 -9)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 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/gacha-forge/CHANGELOG.md (+4 -0)
📝 packages/gacha-forge/bundle-patches.json (+14 -0)
📝 packages/gacha-forge/client.js (+2 -2)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+6 -2)
📝 packages/otome-forge/CHANGELOG.md (+9 -0)

...and 33 more files

📄 Description

Linked issue

Closes #1848

Why this change

Home kept damaged feather cut-outs permanently, persona looks bypassed cleanup, and card-imported love interests never sent their existing Full Body → Neutral sprite to the image model. Persona image prompts also reused stale generated identity text after Appearance changed. This release repairs those paths and gives Otome Hearth's Home chooser tab its requested heart.

What changed

  • Otome Hearth 0.1.2: love-interest and persona generated looks share free background cleanup. Retained raw sources remain unchanged in Wardrobe.
  • Probe the optional Engine cleanup revision. Revision 2 selects repaired built-in matte cleanup and rebuilds obsolete derivatives from their raw sources. Only an explicit built-in cleanup records that repaired revision; a temporary status failure followed by auto/AI cleanup remains eligible for a built-in refresh when status recovers. Older hosts keep existing cached art. A previous derivative stays visible during refresh or failure; an Engine restart can retry a failed refresh. The reader polls free cleanup and stops when it settles.
  • Resolve the selected character card's exact full_neutral raster through its sprite API, then the same love interest's generated base look, then the card avatar. Derive local file paths from validated metadata and selected IDs; ignore metadata URLs. Couple portraits send the selected LI neutral identity plus both painted outfits, preserving the persona reference and the existing two-look fallback. Scene outfit ordering, deduplication and the four-reference limit remain shared.
  • Add an opt-in identity resolver to the shared forge wrapper. Gacha Forge keeps its existing avatar/outfit behavior. Its official rebuild is included as 1.27.4 because reproducibility gates detected a 46-byte shared-wrapper server delta; its client changes only the version readout and maintenance note through the existing patch ledger. No Gacha game logic, permissions or compatibility changes.
  • Read the selected persona's current Appearance for every image builder, or its nonempty enabled Image Appearance Override. Preserve authored text whole, including long/repeated descriptions; retain the action's outfit changes. A readable persona with empty Appearance sends its avatar reference and outfit details, with no invented cached body or P4 model call. Only an unavailable persona retains its own saved identity fallback. The obsolete P4 generation path is removed, reducing text-model cost for Paint the cast.
  • Add a transparent rose heart rendered from the already-used Lucide Heart glyph for the tab; retain the package cover asset.
  • Rebuild the Otome manifest, payloads, 0.1.2 artifact and preview lanes; refresh the Gacha manifest, reversible version/readout ledger, 1.27.4 artifact and published lanes through its official builder. Update package guidance and release notes.

Package and security impact

  • Affected package IDs: otome-forge 0.1.2 and the required reproducible gacha-forge 1.27.4 rebuild; the changed identity resolver is opt-in for Otome.
  • Engine compatibility impact: minimum/capability API unchanged. Free repair uses the backward-compatible metadata supplied by Pasta-Devs/Marinara-Engine#8448; older hosts continue to work.
  • New or changed permissions/entrypoints: none. Existing loopback image/sprite routes only; no arbitrary URL fetching, new dependency or provider integration.
  • Restart, storage, update, or uninstall impact: optional cleanupRevision and previousRefs in package-owned cut-out records, and optional player cut-outs. Originals and prior derivative bytes are retained until user-requested story deletion; the existing reference collector still finds every retained image. New unattached derivatives still use existing cleanup if a run disappears before save. No paid image generation was used to develop or validate this change.

Validation

Completed locally:

  • npm run check: formatting and ESLint pass (existing warnings remain).
  • Otome source regressions: 379 passed; committed-bundle regressions: 5 passed, including full Appearance sentinels, real image-client reference payloads, old-host fallback, free refresh, pending/restarted refresh failures, persona base/outfit cleanup, and reader polling state.
  • Shared/Gacha reference regressions: 26 passed. Both previously failing hosted commands pass unchanged: gacha-forge-location-ids.regression.mjs and gacha-forge-bundle-rebuild.regression.mjs.
  • Strict Otome typecheck: 78 server/shared and 124 client files pass.
  • Catalog lanes, package locales, catalog/archive validation and release-note regression pass.
  • New regression cases fail on untouched staging, then pass with the changes.

The 38-case desktop/mobile Chromium Home, reader and setup matrix passes, including actual heart asset rendering, free-cleanup polling and stopping. Confirmed local CodeRabbit findings are fixed: transient status retry, retained derivative reference ownership, and the Playwright diagnostic argument. Peer-reviewed restart/empty-Appearance corners are also fixed and regressed. The full fresh local CodeRabbit review against current staging completed on bd5b1141 with no new findings, including the couple-reference patch and its payload tests. A final root/peer edge audit then reproduced an auto/AI derivative incorrectly inheriting the host revision after two failed status probes. This is fixed on 7b3c6421, with an actual-client/queue regression that failed before the fix and now passes. Six focused cache/status controls and independent peer review pass; fresh local delta review completed on 7b3c6421 with no findings. Earlier substantive findings were fixed and reviewed again. An earlier request to bump 0.1.2 again was rejected: current staging still publishes 0.1.1, so 0.1.2 is this PR's unpublished release.

The final joined proof at Agents 7b3c6421 with actual merged Engine 387abb65 (#8448) executes the actual Home handler and cleanup queue against real status, built-in cleanup, Gallery and capability-document storage. Green LI and mid-grey persona fixtures each preserve all 1,872 foreground pixels, remove all 7,344 background pixels, retain the original SHA-256 and prior derivative references, and survive a separate-process document-store reopen. Both cleanup responses report revision 2 and built-in processing, with zero model/external-provider calls. These are synthetic fixtures; the screenshot's original source bytes were unavailable.

Production archive validation and package-manager lifecycle proof also passes on 7b3c6421: install/update 0.1.1 → 0.1.2, retained previous version, separate-process registry/heart readback, and uninstall. The existing download injection supplies verified archive bytes parsed through the public catalog parser; network requests are blocked. This does not claim runtime start or Download Agents UI coverage.

  • 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 the maintainer's original feathered look after updating Engine and Otome Hearth; original raw asset bytes were not supplied for direct replay.
  • Manually verify an actual image provider honors the full-body identity and outfit references. Automated payload proof uses a fake provider and makes no paid request.
  • Physical iOS/Android device verification remains outstanding. Browser device emulation is recorded separately.
  • Manually verify package runtime start and the Download Agents UI lifecycle. Automated package-manager install/update, separate-process installed-file readback and uninstall passed; the browser harness installs an isolated fixture.

Documentation impact

  • Updated package guidance and release notes
  • Updated linked Marinara Engine documentation

UI evidence

The existing package harness captured desktop and mobile screenshots of the actual rebuilt Home chooser heart, plus Midnight/Pearl Home layouts. The polling case uses mocked Otome run responses with the real client and manifest. Provider requests are replaced with fixtures; physical-device and real-provider proof remain manual.


🔄 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/1849 **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-hearth-art-preservation` --- ### 📝 Commits (6) - [`5fcd13e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5fcd13e8a6ffcea47cde09067d6f4e7e4b3e00dc) fix(otome-forge): refresh obsolete cutouts from retained originals - [`aef99eb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aef99ebb1a8b1462bec68c7efe57872c5fd65aec) fix(otome-forge): use current persona appearance and full-body likenesses - [`1b4c326`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1b4c3260356a486c0efee2369acb554b0a7eea35) fix(forge): retain cutout references and rebuild shared helper consumers - [`c704bd8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c704bd80baced8d06c5610b718d000a6c8cb0052) fix(otome-forge): keep neutral identity in couple portraits - [`bd5b114`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bd5b1141ce370b0fb33060c8c724bb2e94450b9a) Merge remote-tracking branch 'origin/staging' into fix/otome-hearth-art-preservation - [`7b3c642`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7b3c6421485a1fbd6400b04962a05229332a1397) fix(otome-hearth): only certify builtin cleanup revisions ### 📊 Changes **53 files changed** (+1500 additions, -430 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.27.4.zip` (+0 -0) ➕ `artifacts/otome-forge-0.1.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/preview/catalog.json` (+14 -9) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+14 -9) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+14 -9) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `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/gacha-forge/CHANGELOG.md` (+4 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+14 -0) 📝 `packages/gacha-forge/client.js` (+2 -2) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+6 -2) 📝 `packages/otome-forge/CHANGELOG.md` (+9 -0) _...and 33 more files_ </details> ### 📄 Description ## Linked issue Closes #1848 ## Why this change Home kept damaged feather cut-outs permanently, persona looks bypassed cleanup, and card-imported love interests never sent their existing Full Body → Neutral sprite to the image model. Persona image prompts also reused stale generated identity text after Appearance changed. This release repairs those paths and gives Otome Hearth's Home chooser tab its requested heart. ## What changed - Otome Hearth 0.1.2: love-interest and persona generated looks share free background cleanup. Retained raw sources remain unchanged in Wardrobe. - Probe the optional Engine cleanup revision. Revision 2 selects repaired built-in matte cleanup and rebuilds obsolete derivatives from their raw sources. Only an explicit built-in cleanup records that repaired revision; a temporary status failure followed by auto/AI cleanup remains eligible for a built-in refresh when status recovers. Older hosts keep existing cached art. A previous derivative stays visible during refresh or failure; an Engine restart can retry a failed refresh. The reader polls free cleanup and stops when it settles. - Resolve the selected character card's exact `full_neutral` raster through its sprite API, then the same love interest's generated base look, then the card avatar. Derive local file paths from validated metadata and selected IDs; ignore metadata URLs. Couple portraits send the selected LI neutral identity plus both painted outfits, preserving the persona reference and the existing two-look fallback. Scene outfit ordering, deduplication and the four-reference limit remain shared. - Add an opt-in identity resolver to the shared forge wrapper. Gacha Forge keeps its existing avatar/outfit behavior. Its official rebuild is included as 1.27.4 because reproducibility gates detected a 46-byte shared-wrapper server delta; its client changes only the version readout and maintenance note through the existing patch ledger. No Gacha game logic, permissions or compatibility changes. - Read the selected persona's current Appearance for every image builder, or its nonempty enabled Image Appearance Override. Preserve authored text whole, including long/repeated descriptions; retain the action's outfit changes. A readable persona with empty Appearance sends its avatar reference and outfit details, with no invented cached body or P4 model call. Only an unavailable persona retains its own saved identity fallback. The obsolete P4 generation path is removed, reducing text-model cost for Paint the cast. - Add a transparent rose heart rendered from the already-used Lucide Heart glyph for the tab; retain the package cover asset. - Rebuild the Otome manifest, payloads, 0.1.2 artifact and preview lanes; refresh the Gacha manifest, reversible version/readout ledger, 1.27.4 artifact and published lanes through its official builder. Update package guidance and release notes. ## Package and security impact - Affected package IDs: `otome-forge` 0.1.2 and the required reproducible `gacha-forge` 1.27.4 rebuild; the changed identity resolver is opt-in for Otome. - Engine compatibility impact: minimum/capability API unchanged. Free repair uses the backward-compatible metadata supplied by Pasta-Devs/Marinara-Engine#8448; older hosts continue to work. - New or changed permissions/entrypoints: none. Existing loopback image/sprite routes only; no arbitrary URL fetching, new dependency or provider integration. - Restart, storage, update, or uninstall impact: optional `cleanupRevision` and `previousRefs` in package-owned cut-out records, and optional player cut-outs. Originals and prior derivative bytes are retained until user-requested story deletion; the existing reference collector still finds every retained image. New unattached derivatives still use existing cleanup if a run disappears before save. No paid image generation was used to develop or validate this change. ## Validation Completed locally: - `npm run check`: formatting and ESLint pass (existing warnings remain). - Otome source regressions: 379 passed; committed-bundle regressions: 5 passed, including full Appearance sentinels, real image-client reference payloads, old-host fallback, free refresh, pending/restarted refresh failures, persona base/outfit cleanup, and reader polling state. - Shared/Gacha reference regressions: 26 passed. Both previously failing hosted commands pass unchanged: `gacha-forge-location-ids.regression.mjs` and `gacha-forge-bundle-rebuild.regression.mjs`. - Strict Otome typecheck: 78 server/shared and 124 client files pass. - Catalog lanes, package locales, catalog/archive validation and release-note regression pass. - New regression cases fail on untouched staging, then pass with the changes. The 38-case desktop/mobile Chromium Home, reader and setup matrix passes, including actual heart asset rendering, free-cleanup polling and stopping. Confirmed local CodeRabbit findings are fixed: transient status retry, retained derivative reference ownership, and the Playwright diagnostic argument. Peer-reviewed restart/empty-Appearance corners are also fixed and regressed. The full fresh local CodeRabbit review against current staging completed on `bd5b1141` with no new findings, including the couple-reference patch and its payload tests. A final root/peer edge audit then reproduced an auto/AI derivative incorrectly inheriting the host revision after two failed status probes. This is fixed on `7b3c6421`, with an actual-client/queue regression that failed before the fix and now passes. Six focused cache/status controls and independent peer review pass; fresh local delta review completed on `7b3c6421` with no findings. Earlier substantive findings were fixed and reviewed again. An earlier request to bump 0.1.2 again was rejected: current staging still publishes 0.1.1, so 0.1.2 is this PR's unpublished release. The final joined proof at Agents `7b3c6421` with actual merged Engine `387abb65` (#8448) executes the actual Home handler and cleanup queue against real status, built-in cleanup, Gallery and capability-document storage. Green LI and mid-grey persona fixtures each preserve all 1,872 foreground pixels, remove all 7,344 background pixels, retain the original SHA-256 and prior derivative references, and survive a separate-process document-store reopen. Both cleanup responses report revision 2 and built-in processing, with zero model/external-provider calls. These are synthetic fixtures; the screenshot's original source bytes were unavailable. Production archive validation and package-manager lifecycle proof also passes on `7b3c6421`: install/update 0.1.1 → 0.1.2, retained previous version, separate-process registry/heart readback, and uninstall. The existing download injection supplies verified archive bytes parsed through the public catalog parser; network requests are blocked. This does not claim runtime start or Download Agents UI coverage. - [ ] `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 the maintainer's original feathered look after updating Engine and Otome Hearth; original raw asset bytes were not supplied for direct replay. - Manually verify an actual image provider honors the full-body identity and outfit references. Automated payload proof uses a fake provider and makes no paid request. - Physical iOS/Android device verification remains outstanding. Browser device emulation is recorded separately. - Manually verify package runtime start and the Download Agents UI lifecycle. Automated package-manager install/update, separate-process installed-file readback and uninstall passed; the browser harness installs an isolated fixture. ## Documentation impact - [ ] Updated package guidance and release notes - [ ] Updated linked Marinara Engine documentation ## UI evidence The existing package harness captured desktop and mobile screenshots of the actual rebuilt Home chooser heart, plus Midnight/Pearl Home layouts. The polling case uses mocked Otome run responses with the real client and manifest. Provider requests are replaced with fixtures; physical-device and real-provider proof remain manual. --- <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:38 +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#1998
No description provided.