[PR #1797] [MERGED] feat(forge-kit): options for Otome Forge, with Gacha Forge's defaults (Gacha Forge 1.26.2, M0b) #1970

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

📋 Pull Request Information

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

Base: staging ← Head: feat/forge-kit-options


📝 Commits (1)

  • 917e821 feat(forge-kit): options for Otome Forge, with Gacha Forge's defaults (Gacha Forge 1.26.2, Otome Forge M0b)

📊 Changes

30 files changed (+971 additions, -326 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -0)
📝 CONTRIBUTING.md (+1 -1)
➕ artifacts/gacha-forge-1.26.2.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/gacha-forge/CHANGELOG.md (+4 -0)
📝 packages/gacha-forge/bundle-patches.json (+15 -0)
📝 packages/gacha-forge/client.js (+104 -92)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+82 -46)
📝 packages/gacha-forge/src/audio-client.mjs (+1 -76)
📝 sources/forge-kit/audio-prompts.mjs (+24 -7)
📝 sources/forge-kit/audio-settings.mjs (+17 -10)
📝 sources/forge-kit/character-card-context.mjs (+5 -5)
📝 sources/forge-kit/image-avatar-references.mjs (+2 -2)
📝 sources/forge-kit/player-choices-server.mjs (+3 -2)

...and 10 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1796 (milestone M0b of #1781, Otome Forge release 1).

Why this change

Otome Forge reuses the shared forge kit (#1795) with its own values: five expression faces and their looks, its own log prefix, choice label, music scenes and soundtrack cues, and voice picking for its love interests. The kit's modules hard-coded Gacha Forge's values. This makes each one an option whose default is Gacha Forge's value, so Gacha Forge's call sites stay as they are and only Otome Forge passes anything.

What changed

  • Kit options, each defaulting to Gacha Forge's value:
    • story-expressions.mjs: names on normalizeForgeStoryExpression and forgeStoryExpressionArt.
    • story-expressions-server.mjs:
      • createForgeStoryExpressions takes names, looks, localAvatarPath, logPrefix and scopeName;
      • forgeStoryExpressionCast takes names, and forgeStoryExpressionPrompt takes looks;
      • forgeExpressionLooks is exported.
    • player-choices-server.mjs: label on forgeNormalizeChoiceBeat.
    • audio-prompts.mjs: scenes and medium on forgeMusicBriefMessages, passed through createForgeMusicPromptService.
    • audio-settings.mjs: scope and cues on recordForgeSoundtrack, cues on availableForgeSoundtracks, and moods on normalizeForgeMusicMood.
    • character-card-context.mjs and image-avatar-references.mjs: log prefixes.
  • sources/forge-kit/voice-picking.mjs (new). forgeExplicitVoice, forgeVoicePool, forgeStableVoice, forgeSpeakerVoice and forgeStoryPersona move there, unchanged, from Gacha Forge's audio-client.mjs. listVoices defaults to Gacha Forge's forgeConnectionVoices, which stays in Gacha Forge. The client ledger inlines the module just before audio-client.mjs.
  • Gacha Forge 1.26.2:
    • nothing changes in play;
    • the bundles change only inside the kit's inlined source blocks and the version strings;
    • the version is bumped, with a neutral What's new line (1.26.1 pinned), a CHANGELOG entry, the manifest, the artifact and the catalog.
  • Tests:
    • New tests/forge-kit-options.regression.mjs (7 cases):
      • (a) each changed module, imported as plain ESM with no Gacha Forge global defined and every option passed, throws no ReferenceError;
      • (b) the kit text inlined the way the bundle does, run in a vm with Gacha Forge's globals, gives Gacha Forge's results;
      • (c) Otome Forge's five faces, looks, path reader, prefix, scope and label are honoured.
    • Five audio and voice tests now import the moved functions from the kit.
    • The bundle rebuild proof includes the new module.
  • Docs: CONTRIBUTING's forge-kit entry spells out Gacha Forge (Dottore's note on #1795).

Package and security impact

  • Affected package IDs: gacha-forge (1.26.2, no change in play).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.

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

Agent-side checks:

  • All 75 tests/gacha-forge-*.regression.mjs files plus forge-kit-options pass (600 by the runner's count). npm run check and git diff --check are clean.
  • A strip-and-compare script removed the kit's inlined source blocks and the version strings from the 1.26.1 and 1.26.2 bundles: everything else is identical.
  • An independent verifier checked each changed function against Gacha Forge's call sites in the shipped bundles. It found the client's voice functions still resolve, confirmed the release bookkeeping, and found Otome Forge unaffected. Its three findings are fixed:
    • an Otome Forge zip that a rebuild would have deleted;
    • What's new wording;
    • a gap in the identity proof.
  • validate-catalog needs the full artifacts/ checkout, which this sparse worktree lacks; the Gacha Forge catalog entry was checked by hand.

To verify by hand:

  • Manually verify that Gacha Forge 1.26.2 plays as before: story scenes with expressions, character voices including the persona's, the soundtrack, and choices.

🤖 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/1797 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/forge-kit-options` --- ### 📝 Commits (1) - [`917e821`](https://github.com/Pasta-Devs/Marinara-Agents/commit/917e821e1762a679dc3a8d5c4b331c919966b96e) feat(forge-kit): options for Otome Forge, with Gacha Forge's defaults (Gacha Forge 1.26.2, Otome Forge M0b) ### 📊 Changes **30 files changed** (+971 additions, -326 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) 📝 `CONTRIBUTING.md` (+1 -1) ➕ `artifacts/gacha-forge-1.26.2.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/gacha-forge/CHANGELOG.md` (+4 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+15 -0) 📝 `packages/gacha-forge/client.js` (+104 -92) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+82 -46) 📝 `packages/gacha-forge/src/audio-client.mjs` (+1 -76) 📝 `sources/forge-kit/audio-prompts.mjs` (+24 -7) 📝 `sources/forge-kit/audio-settings.mjs` (+17 -10) 📝 `sources/forge-kit/character-card-context.mjs` (+5 -5) 📝 `sources/forge-kit/image-avatar-references.mjs` (+2 -2) 📝 `sources/forge-kit/player-choices-server.mjs` (+3 -2) _...and 10 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1796 (milestone M0b of #1781, Otome Forge release 1). ## Why this change Otome Forge reuses the shared forge kit (#1795) with its own values: five expression faces and their looks, its own log prefix, choice label, music scenes and soundtrack cues, and voice picking for its love interests. The kit's modules hard-coded Gacha Forge's values. This makes each one an option whose default is Gacha Forge's value, so Gacha Forge's call sites stay as they are and only Otome Forge passes anything. ## What changed - **Kit options**, each defaulting to Gacha Forge's value: - `story-expressions.mjs`: `names` on `normalizeForgeStoryExpression` and `forgeStoryExpressionArt`. - `story-expressions-server.mjs`: - `createForgeStoryExpressions` takes `names`, `looks`, `localAvatarPath`, `logPrefix` and `scopeName`; - `forgeStoryExpressionCast` takes `names`, and `forgeStoryExpressionPrompt` takes `looks`; - `forgeExpressionLooks` is exported. - `player-choices-server.mjs`: `label` on `forgeNormalizeChoiceBeat`. - `audio-prompts.mjs`: `scenes` and `medium` on `forgeMusicBriefMessages`, passed through `createForgeMusicPromptService`. - `audio-settings.mjs`: `scope` and `cues` on `recordForgeSoundtrack`, `cues` on `availableForgeSoundtracks`, and `moods` on `normalizeForgeMusicMood`. - `character-card-context.mjs` and `image-avatar-references.mjs`: log prefixes. - **`sources/forge-kit/voice-picking.mjs` (new).** `forgeExplicitVoice`, `forgeVoicePool`, `forgeStableVoice`, `forgeSpeakerVoice` and `forgeStoryPersona` move there, unchanged, from Gacha Forge's `audio-client.mjs`. `listVoices` defaults to Gacha Forge's `forgeConnectionVoices`, which stays in Gacha Forge. The client ledger inlines the module just before `audio-client.mjs`. - **Gacha Forge 1.26.2:** - nothing changes in play; - the bundles change only inside the kit's inlined source blocks and the version strings; - the version is bumped, with a neutral What's new line (1.26.1 pinned), a CHANGELOG entry, the manifest, the artifact and the catalog. - **Tests:** - New `tests/forge-kit-options.regression.mjs` (7 cases): - (a) each changed module, imported as plain ESM with no Gacha Forge global defined and every option passed, throws no `ReferenceError`; - (b) the kit text inlined the way the bundle does, run in a `vm` with Gacha Forge's globals, gives Gacha Forge's results; - (c) Otome Forge's five faces, looks, path reader, prefix, scope and label are honoured. - Five audio and voice tests now import the moved functions from the kit. - The bundle rebuild proof includes the new module. - **Docs:** CONTRIBUTING's forge-kit entry spells out Gacha Forge (Dottore's note on #1795). ## Package and security impact - Affected package IDs: `gacha-forge` (1.26.2, no change in play). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. ## 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 Agent-side checks: - All 75 `tests/gacha-forge-*.regression.mjs` files plus `forge-kit-options` pass (600 by the runner's count). `npm run check` and `git diff --check` are clean. - A strip-and-compare script removed the kit's inlined source blocks and the version strings from the 1.26.1 and 1.26.2 bundles: everything else is identical. - An independent verifier checked each changed function against Gacha Forge's call sites in the shipped bundles. It found the client's voice functions still resolve, confirmed the release bookkeeping, and found Otome Forge unaffected. Its three findings are fixed: - an Otome Forge zip that a rebuild would have deleted; - What's new wording; - a gap in the identity proof. - `validate-catalog` needs the full `artifacts/` checkout, which this sparse worktree lacks; the Gacha Forge catalog entry was checked by hand. To verify by hand: - Manually verify that Gacha Forge 1.26.2 plays as before: story scenes with expressions, character voices including the persona's, the soundtrack, and choices. 🤖 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:38:24 +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#1970
No description provided.