[PR #1696] [MERGED] feat(gacha-forge): optional Formation combat and reusable battle voices #1698

Closed
opened 2026-10-27 06:05:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/gacha-formation-combat


📝 Commits (10+)

  • 3df51cf docs(gacha-forge): define optional formation combat scope
  • 76747af feat(gacha-forge): add optional formation combat
  • 0f5effd test(gacha-forge): exercise formation confirmation and combat UI
  • 0812750 fix(gacha-forge): finish formation lifecycle and review proof
  • 79691c1 build(gacha-forge): package formation combat 1.18.0
  • 4170cda fix(gacha-forge): restrict formation bonuses to spent energy
  • 5b595f6 ci(gacha-forge): run installed feature browser proofs
  • 2892b40 fix(gacha-forge): give formation controls and energy room
  • c0994fb fix(gacha-forge): use the active combat accent token
  • 78b2d97 ci(gacha-forge): discover browser suites with native Bash

📊 Changes

44 files changed (+10002 additions, -70 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+8 -0)
➕ artifacts/gacha-forge-1.19.0.zip (+0 -0)
📝 catalog/catalog.json (+63 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+63 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+63 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+7 -0)
📝 packages/gacha-forge/README.md (+14 -0)
📝 packages/gacha-forge/bundle-patches.json (+230 -0)
📝 packages/gacha-forge/client.js (+1843 -6)
➕ packages/gacha-forge/docs/formation-combat.md (+21 -0)
📝 packages/gacha-forge/manifest.json (+60 -5)
📝 packages/gacha-forge/server.mjs (+1818 -13)
📝 packages/gacha-forge/src/audio-client.mjs (+2 -0)
📝 packages/gacha-forge/src/audio-en.mjs (+13 -0)
📝 packages/gacha-forge/src/audio-settings.mjs (+1 -0)
➕ packages/gacha-forge/src/combat-ultimate-client.mjs (+138 -0)
➕ packages/gacha-forge/src/combat-voices-client.mjs (+287 -0)

...and 24 more files

📄 Description

Linked issue

Closes #1694

Why this change

Adds the requested optional Formation combat alternative with frontline fighters, protected supports and shared elemental energy. Existing worlds retain Classic until the player confirms a switch.

What changed

  • Added Classic / Formation selection during setup; Classic is the default. Formation deploys one to four characters, with one to three in Front. Supports supply typed energy/passives; frontline fighters each act once in the player's chosen order. Energy persists between turns, caps at 12 and resets each battle. Attack/Guard are free; repositioning costs an action. Frontline collapse determines defeat.
  • Standards accept any energy; Ultimates may require their native element, with Light/Dark substitution at 2:1. Spending bonuses require energy actually paid. Validated effects/triggers support row transitions, solo bonuses, tokens, elemental barriers and ordered-target bosses. Existing boss mechanics/dialogue remain available. Server rewards replay frozen snapshots using the shared client/server simulator.
  • Added a confirmed Story Continuity switch. Durable jobs prepare every character kit with at most three workers, committing the mode only when all are ready. Interruptions/failures require explicit retry. Original kits, identities, progression, equipment, inventory, story and messages remain saved. Pending battles block switching; oversized teams require explicit selection.
  • Added elemental Ultimate portraits, reduced-motion support and optional combat voice lines in World Sources → Audio. Assigned voices generate four durable slots: death, enemy defeat and two Ultimate variants. Clips are reused across battles/reloads. Muting pauses unspent reservations without a new paid retry and lets already-started bytes settle silently; real/ambiguous provider failures still require explicit retry.
  • Fixed legacy enemy conversion granting an unintended shield when no passive existed. Authored zero power stays zero; missing, null, blank and malformed values use the legacy default. Standard scaling uses the same raw finite value before its existing clamp. Also close cached-audio file handles when stat fails, clarify the Formation-only voice hint and clean encounter-prompt spacing.
  • Added maintained source, English strings, regressions and CI coverage. Rebuilt Gacha Forge 1.19.0, manifest, ZIP and catalog lanes. Seasonal clock-skew and chronology repairs are included through the merged base.

Package and security impact

  • Affected package: gacha-forge. Engine compatibility and permissions (network, routes, storage, ui) are unchanged; no Engine changes or dependencies. Conversion and validated voice-storage routes use existing host model/TTS APIs and prompt logging.
  • Existing update/restart flow; additive conversion records and package-owned audio. World deletion fences pending work and removes its audio; uninstall retains saved worlds.
  • Builds on merged Seasonal #1695/staging ee2290834936572d69ce0fb5ff90f61ac5f20664. Current source/review head: af14501eaa89408873a437c71593117a59073309. Published Seasonal 1.18.0 remains unchanged.
  • Final ZIP: 8,569,811 bytes, SHA-256 a175ea406fe05ccb3455683f22788872e4f00e4fbbfc2961beb39fd2b6f60c4e. Client: e633990c…; server: 58a5e74c….

Validation

Completed local evidence:

  • Full npm run check: 0 errors, 812 existing warnings. Catalog, lanes, locales, release notes and diff checks pass. Full catalog validation used 43 exact Git/catalog-verified zero-copy links, removed afterward; only final 1.19 remains materialized. The official no-op rebuild reproduces 322 materialized files byte-for-byte and verifies all 258 declared payloads; published 1.18 is independently checked from its Git object.
  • 48 non-browser Gacha suites pass on the final package, including the added file-serving suite in CI. Core 18 cases cover deterministic replay, payment/row rules, the zero/missing/malformed matrix and actual battle damage proving no unintended passive shield. Voice 16, legacy audio 26, real-file 3, memory core 24, memory integration 40 and legacy replay SDK 7 cases pass, plus actual conversion/voice SDK and combined event/Formation proofs.
  • Fresh six-process real public file-backed persistence: rerun against a175ea40… and the changed shared module. Unit/index failures roll back real writes; all 14 records survive rollback/retry/reopen. Retry reuses five staged kits with zero generation calls.
  • Exact final package manager: published 1.18.0 5b803706… → 1.19.0 a175ea40… passes five fresh-process phases, preserving 13 documents including event metadata/chapter/beat. Hash/corrupt-archive rejection, offline activation, uninstall and no resurrection pass.
  • Fresh installed UI: 32/32 pass on exact a175ea40… across dark/light desktop/mobile landscape Chromium and WebKit, covering setup, confirmation/focus, conversion, energy geometry, hidden controls, contrast and Ultimate effects. Final captures are recorded and the final Ultimate capture was visually inspected.
  • Earlier documentation/prompt and mute/expiry findings were repaired. The new zero-power MEDIUM and optional stat/hint/spacing notes are addressed. Fresh committed local CodeRabbit delta against 8b31b20c completed with zero findings across 13 text files, excluding the binary ZIP.

Exact-head hosted CI and viable Dottore/zero open findings remain separate merge gates.

Human checklist (left unchecked):

  • 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 a real saved playthrough's conversion, interruption/retry and return to Classic.
  • Manually verify touch/keyboard behavior on a physical phone in both orientations.
  • Manually verify assigned-voice generation/reuse with a configured provider.

Controlled transports and browser emulation do not establish physical-device or paid-provider behavior. The existing portrait landscape-only overlay remains.

Documentation impact

  • Updated package README, changelog and Formation rules/design note.
  • No linked Engine documentation changes required.

UI evidence

The shared feature browser workflow uploads synthetic setup/settings/action/Ultimate captures and geometry/contrast records. Local WebKit coverage supplements hosted Chromium.


🔄 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/1696 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gacha-formation-combat` --- ### 📝 Commits (10+) - [`3df51cf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3df51cfe1b1c91b3e640211c6738307cf90ad170) docs(gacha-forge): define optional formation combat scope - [`76747af`](https://github.com/Pasta-Devs/Marinara-Agents/commit/76747af4379b6cdd1ee8a5b0ca66b3bf995f1707) feat(gacha-forge): add optional formation combat - [`0f5effd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0f5effd9a1faa5f552a9b71c171b69aa7846e8d8) test(gacha-forge): exercise formation confirmation and combat UI - [`0812750`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0812750e8aaa926429ed79fa4671bf5b2a712c9b) fix(gacha-forge): finish formation lifecycle and review proof - [`79691c1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/79691c1895167019e96554beb002b5f36d8a0e10) build(gacha-forge): package formation combat 1.18.0 - [`4170cda`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4170cda0bc3cca1fd929cb4d4b5246eaae663481) fix(gacha-forge): restrict formation bonuses to spent energy - [`5b595f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5b595f657f10a94f1b70ff769854b95efe40fdfd) ci(gacha-forge): run installed feature browser proofs - [`2892b40`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2892b40bd0b89065ac58b81ba7b25c364ffce7d9) fix(gacha-forge): give formation controls and energy room - [`c0994fb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c0994fb426dfcd78eea62e49179f57278a613a79) fix(gacha-forge): use the active combat accent token - [`78b2d97`](https://github.com/Pasta-Devs/Marinara-Agents/commit/78b2d97e69236f8012dab9167e48e22ae2e3e960) ci(gacha-forge): discover browser suites with native Bash ### 📊 Changes **44 files changed** (+10002 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+8 -0) ➕ `artifacts/gacha-forge-1.19.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+63 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+63 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+63 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+7 -0) 📝 `packages/gacha-forge/README.md` (+14 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+230 -0) 📝 `packages/gacha-forge/client.js` (+1843 -6) ➕ `packages/gacha-forge/docs/formation-combat.md` (+21 -0) 📝 `packages/gacha-forge/manifest.json` (+60 -5) 📝 `packages/gacha-forge/server.mjs` (+1818 -13) 📝 `packages/gacha-forge/src/audio-client.mjs` (+2 -0) 📝 `packages/gacha-forge/src/audio-en.mjs` (+13 -0) 📝 `packages/gacha-forge/src/audio-settings.mjs` (+1 -0) ➕ `packages/gacha-forge/src/combat-ultimate-client.mjs` (+138 -0) ➕ `packages/gacha-forge/src/combat-voices-client.mjs` (+287 -0) _...and 24 more files_ </details> ### 📄 Description ## Linked issue Closes #1694 ## Why this change Adds the requested optional Formation combat alternative with frontline fighters, protected supports and shared elemental energy. Existing worlds retain Classic until the player confirms a switch. ## What changed - Added **Classic / Formation** selection during setup; Classic is the default. Formation deploys one to four characters, with one to three in Front. Supports supply typed energy/passives; frontline fighters each act once in the player's chosen order. Energy persists between turns, caps at 12 and resets each battle. Attack/Guard are free; repositioning costs an action. Frontline collapse determines defeat. - Standards accept any energy; Ultimates may require their native element, with Light/Dark substitution at 2:1. Spending bonuses require energy actually paid. Validated effects/triggers support row transitions, solo bonuses, tokens, elemental barriers and ordered-target bosses. Existing boss mechanics/dialogue remain available. Server rewards replay frozen snapshots using the shared client/server simulator. - Added a confirmed **Story Continuity** switch. Durable jobs prepare every character kit with at most three workers, committing the mode only when all are ready. Interruptions/failures require explicit retry. Original kits, identities, progression, equipment, inventory, story and messages remain saved. Pending battles block switching; oversized teams require explicit selection. - Added elemental Ultimate portraits, reduced-motion support and optional combat voice lines in **World Sources → Audio**. Assigned voices generate four durable slots: death, enemy defeat and two Ultimate variants. Clips are reused across battles/reloads. Muting pauses unspent reservations without a new paid retry and lets already-started bytes settle silently; real/ambiguous provider failures still require explicit retry. - Fixed legacy enemy conversion granting an unintended shield when no passive existed. Authored zero power stays zero; missing, null, blank and malformed values use the legacy default. Standard scaling uses the same raw finite value before its existing clamp. Also close cached-audio file handles when stat fails, clarify the Formation-only voice hint and clean encounter-prompt spacing. - Added maintained source, English strings, regressions and CI coverage. Rebuilt Gacha Forge **1.19.0**, manifest, ZIP and catalog lanes. Seasonal clock-skew and chronology repairs are included through the merged base. ## Package and security impact - Affected package: `gacha-forge`. Engine compatibility and permissions (`network`, `routes`, `storage`, `ui`) are unchanged; no Engine changes or dependencies. Conversion and validated voice-storage routes use existing host model/TTS APIs and prompt logging. - Existing update/restart flow; additive conversion records and package-owned audio. World deletion fences pending work and removes its audio; uninstall retains saved worlds. - Builds on merged Seasonal #1695/staging `ee2290834936572d69ce0fb5ff90f61ac5f20664`. Current source/review head: **`af14501eaa89408873a437c71593117a59073309`**. Published Seasonal 1.18.0 remains unchanged. - Final ZIP: **8,569,811 bytes**, SHA-256 **`a175ea406fe05ccb3455683f22788872e4f00e4fbbfc2961beb39fd2b6f60c4e`**. Client: `e633990c…`; server: `58a5e74c…`. ## Validation Completed local evidence: - Full `npm run check`: **0 errors, 812 existing warnings**. Catalog, lanes, locales, release notes and diff checks pass. Full catalog validation used 43 exact Git/catalog-verified zero-copy links, removed afterward; only final 1.19 remains materialized. The official no-op rebuild reproduces **322 materialized files byte-for-byte** and verifies all **258 declared payloads**; published 1.18 is independently checked from its Git object. - **48 non-browser Gacha suites pass** on the final package, including the added file-serving suite in CI. Core **18** cases cover deterministic replay, payment/row rules, the zero/missing/malformed matrix and actual battle damage proving no unintended passive shield. Voice **16**, legacy audio **26**, real-file **3**, memory core **24**, memory integration **40** and legacy replay SDK **7** cases pass, plus actual conversion/voice SDK and combined event/Formation proofs. - **Fresh six-process real public file-backed persistence:** rerun against `a175ea40…` and the changed shared module. Unit/index failures roll back real writes; all **14 records** survive rollback/retry/reopen. Retry reuses five staged kits with **zero generation calls**. - **Exact final package manager:** published 1.18.0 `5b803706…` → 1.19.0 `a175ea40…` passes five fresh-process phases, preserving **13 documents** including event metadata/chapter/beat. Hash/corrupt-archive rejection, offline activation, uninstall and no resurrection pass. - **Fresh installed UI: 32/32 pass** on exact `a175ea40…` across dark/light desktop/mobile landscape Chromium and WebKit, covering setup, confirmation/focus, conversion, energy geometry, hidden controls, contrast and Ultimate effects. Final captures are recorded and the final Ultimate capture was visually inspected. - Earlier documentation/prompt and mute/expiry findings were repaired. The new zero-power MEDIUM and optional stat/hint/spacing notes are addressed. Fresh committed local CodeRabbit delta against `8b31b20c` completed with **zero findings across 13 text files**, excluding the binary ZIP. Exact-head hosted CI and viable Dottore/zero open findings remain separate merge gates. Human checklist (left unchecked): - [ ] `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 a real saved playthrough's conversion, interruption/retry and return to Classic. - [ ] Manually verify touch/keyboard behavior on a physical phone in both orientations. - [ ] Manually verify assigned-voice generation/reuse with a configured provider. Controlled transports and browser emulation do not establish physical-device or paid-provider behavior. The existing portrait landscape-only overlay remains. ## Documentation impact - [ ] Updated package README, changelog and Formation rules/design note. - [ ] No linked Engine documentation changes required. ## UI evidence The shared feature browser workflow uploads synthetic setup/settings/action/Ultimate captures and geometry/contrast records. Local WebKit coverage supplements hosted Chromium. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:05:56 +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#1698
No description provided.