[PR #1646] [MERGED] feat(gacha-forge): add enemy tiers and story boss dialogue #1640

Closed
opened 2026-10-25 04:02:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feature/gacha-enemy-tiers-boss-dialogue


📝 Commits (2)

  • a02e0b1 docs(gacha-forge): track story boss and enemy tier work
  • d6746e5 feat(gacha-forge): add enemy tiers and cached boss dialogue

📊 Changes

22 files changed (+2413 additions, -60 deletions)

View changed files

➕ artifacts/gacha-forge-1.13.0.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 (+7 -0)
📝 packages/gacha-forge/README.md (+10 -0)
📝 packages/gacha-forge/bundle-patches.json (+138 -0)
📝 packages/gacha-forge/client.js (+228 -5)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+146 -6)
➕ packages/gacha-forge/src/enemy-encounters-client.mjs (+221 -0)
➕ packages/gacha-forge/src/enemy-encounters-server.mjs (+138 -0)
📝 tests/gacha-forge-bundle-rebuild.regression.mjs (+2 -0)
➕ tests/gacha-forge-combat-dialogue.regression.mjs (+570 -0)
➕ tests/gacha-forge-enemy-encounters.regression.mjs (+241 -0)
📝 tests/gacha-forge-player-choices.regression.mjs (+14 -2)
➕ tests/gacha-forge-story-bosses.regression.mjs (+325 -0)

...and 2 more files

📄 Description

Linked issue

Closes #1645

Why this change

Story combat previously had no explicit Soldier/Elite/Boss distinction, and chapter plans could finish without a climactic opponent. Important enemies also had no contextual combat lines. This makes new chapters build toward a boss and lets significant fights react to the battle using the existing deterministic combat system.

What changed

  • Publish Gacha Forge 1.13.0 with enemy tiers in formation cards and enemy details. The last fight of each newly planned chapter is a boss before the closing story scene; combat-node counts and progression remain unchanged.
  • Generate and cache validated enemy dialogue with the encounter: introductions, attacks, HP thresholds and player victory/defeat. Stable enemy IDs bind speakers. Each cue plays once per battle, with no per-turn model requests.
  • Use existing boss mechanics and health bars. Dialogue supports Continue, Auto, assigned world-character voices, mute and dialogue volume. Enemy inspection pauses Auto even during outcome lines; enemy-first instant losses honor the saved Auto preference while explicit result replay stays manual.
  • Preserve old chapters, cached encounters, existing Tower bosses, seeded combat results, verified command replay and reward settlement. Older ordinary enemies without a tier display Soldier without rewriting the save.
  • Maintain source helpers and reversible bundle hooks, regenerate client/server payloads, manifest, ZIP, catalog entries and release notes together.

Package and security impact

  • Affected package: gacha-forge (downloadable app).
  • Engine compatibility, capabilities, permissions, entrypoints and dependency set are unchanged. No Engine source/snapshot change is needed.
  • Encounter output is validated before caching: known tiers/mechanics, real enemy speakers, allowed triggers/types and bounded cue text. DOM text is rendered as text, and voice identity comes only from a unique match against the actual world cast.
  • Tier/cue/voice presentation metadata stays outside canonical combat verification packets; existing boss mechanics remain in the frozen verified packet. No RNG, action-log or reward arithmetic changes.
  • Existing worlds require no storage migration. Newly generated content receives tiers/dialogue; saved chapters are not regenerated. Update the installed Gacha Forge package to receive this feature.

Validation

Completed against d6746e5730210841d2c8eb6ffb3c81823cc2129f:

  • npm run check: passed (formatting and ESLint; no errors).
  • Catalog lane, localization, catalog/archive/runtime and release-notes validation: passed.
  • Feature regressions: 12 server controls, 13 client/simulator controls and 5 actual bundled-route integration cases passed. Route coverage includes model-cache reuse, verified win/replay/rewards, old saves and Tower compatibility.
  • Existing player choices (43), audio (23), music prompts (7), achievements (22 ladders/214 thresholds), location IDs and deterministic source rebuild regressions passed.
  • Full Gacha browser suite: 88/88 passed, two workers, desktop Chromium, mobile Chromium, mobile WebKit and the existing hybrid-pointer case. Includes all 27 new tier/dialogue cases, theme fit, plain-text rendering, assigned-speech failure, mute, Auto outcome inspection and enemy-first defeat.
  • Exact-artifact real package-manager/HTTP test: released 1.12.2 → 1.13.0, activation, saved world/roster/claimed rewards/audio/cache preservation, warm offline restart, independent cold-process offline restart, uninstall and cold-process missing-route/empty-registry checks passed. All 247 payload hashes verified; owned test data/socket cleaned.
  • Local CodeRabbit review completed with zero findings across all 21 text files. Independent final integration review passed. The two Auto defects were reproduced before correction and have maintained actual-runner regressions.
  • git diff --check: passed.

Artifact SHA-256: 59aa9cdde10a159b97b2e6ee4290e333b71e8f1d7806c87107f3e4dfb553bf06.

UI evidence

Browser screenshots of the installed final package were inspected in desktop Vanguard and landscape-phone Bloom. Tier labels, boss health bar, dialogue, Continue target and existing combat controls fit the game stage. The suite asserts dialogue bounds and tap reachability and retains screenshots/traces for negative controls.

Manual verification tasks

  • Manually verify new chapter boss introductions and contextual lines with a real model in an existing world.
  • Manually verify portrait/landscape behavior on a physical phone, including the device keyboard and real assigned TTS voices.
  • Manually verify the installed package update in Agents → Download Agents against the published staging catalog after merge.

Automated browser tests use the real installed package, combat simulator and UI, with isolated world/encounter fixtures and mocked model/speech providers. Device emulation and mocked speech do not prove native-device or live-provider behavior. Package lifecycle tests exercise the real manager and loopback HTTP separately from the Download Agents UI.

Documentation impact

Updated Gacha Forge README and package changelog; catalog membership and Engine compatibility are unchanged. No Engine docs/ content changed.


🔄 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/1646 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/gacha-enemy-tiers-boss-dialogue` --- ### 📝 Commits (2) - [`a02e0b1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a02e0b1209e547b82ecca7b0cfcaf3bbf057c244) docs(gacha-forge): track story boss and enemy tier work - [`d6746e5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d6746e5730210841d2c8eb6ffb3c81823cc2129f) feat(gacha-forge): add enemy tiers and cached boss dialogue ### 📊 Changes **22 files changed** (+2413 additions, -60 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.13.0.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` (+7 -0) 📝 `packages/gacha-forge/README.md` (+10 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+138 -0) 📝 `packages/gacha-forge/client.js` (+228 -5) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+146 -6) ➕ `packages/gacha-forge/src/enemy-encounters-client.mjs` (+221 -0) ➕ `packages/gacha-forge/src/enemy-encounters-server.mjs` (+138 -0) 📝 `tests/gacha-forge-bundle-rebuild.regression.mjs` (+2 -0) ➕ `tests/gacha-forge-combat-dialogue.regression.mjs` (+570 -0) ➕ `tests/gacha-forge-enemy-encounters.regression.mjs` (+241 -0) 📝 `tests/gacha-forge-player-choices.regression.mjs` (+14 -2) ➕ `tests/gacha-forge-story-bosses.regression.mjs` (+325 -0) _...and 2 more files_ </details> ### 📄 Description ## Linked issue Closes #1645 ## Why this change Story combat previously had no explicit Soldier/Elite/Boss distinction, and chapter plans could finish without a climactic opponent. Important enemies also had no contextual combat lines. This makes new chapters build toward a boss and lets significant fights react to the battle using the existing deterministic combat system. ## What changed - Publish **Gacha Forge 1.13.0** with enemy tiers in formation cards and enemy details. The last fight of each newly planned chapter is a boss before the closing story scene; combat-node counts and progression remain unchanged. - Generate and cache validated enemy dialogue with the encounter: introductions, attacks, HP thresholds and player victory/defeat. Stable enemy IDs bind speakers. Each cue plays once per battle, with no per-turn model requests. - Use existing boss mechanics and health bars. Dialogue supports Continue, Auto, assigned world-character voices, mute and dialogue volume. Enemy inspection pauses Auto even during outcome lines; enemy-first instant losses honor the saved Auto preference while explicit result replay stays manual. - Preserve old chapters, cached encounters, existing Tower bosses, seeded combat results, verified command replay and reward settlement. Older ordinary enemies without a tier display Soldier without rewriting the save. - Maintain source helpers and reversible bundle hooks, regenerate client/server payloads, manifest, ZIP, catalog entries and release notes together. ## Package and security impact - Affected package: `gacha-forge` (downloadable app). - Engine compatibility, capabilities, permissions, entrypoints and dependency set are unchanged. No Engine source/snapshot change is needed. - Encounter output is validated before caching: known tiers/mechanics, real enemy speakers, allowed triggers/types and bounded cue text. DOM text is rendered as text, and voice identity comes only from a unique match against the actual world cast. - Tier/cue/voice presentation metadata stays outside canonical combat verification packets; existing boss mechanics remain in the frozen verified packet. No RNG, action-log or reward arithmetic changes. - Existing worlds require no storage migration. Newly generated content receives tiers/dialogue; saved chapters are not regenerated. Update the installed Gacha Forge package to receive this feature. ## Validation Completed against `d6746e5730210841d2c8eb6ffb3c81823cc2129f`: - `npm run check`: passed (formatting and ESLint; no errors). - Catalog lane, localization, catalog/archive/runtime and release-notes validation: passed. - Feature regressions: 12 server controls, 13 client/simulator controls and 5 actual bundled-route integration cases passed. Route coverage includes model-cache reuse, verified win/replay/rewards, old saves and Tower compatibility. - Existing player choices (43), audio (23), music prompts (7), achievements (22 ladders/214 thresholds), location IDs and deterministic source rebuild regressions passed. - Full Gacha browser suite: **88/88 passed**, two workers, desktop Chromium, mobile Chromium, mobile WebKit and the existing hybrid-pointer case. Includes all 27 new tier/dialogue cases, theme fit, plain-text rendering, assigned-speech failure, mute, Auto outcome inspection and enemy-first defeat. - Exact-artifact real package-manager/HTTP test: released 1.12.2 → 1.13.0, activation, saved world/roster/claimed rewards/audio/cache preservation, warm offline restart, independent cold-process offline restart, uninstall and cold-process missing-route/empty-registry checks passed. All 247 payload hashes verified; owned test data/socket cleaned. - Local CodeRabbit review completed with **zero findings across all 21 text files**. Independent final integration review passed. The two Auto defects were reproduced before correction and have maintained actual-runner regressions. - `git diff --check`: passed. Artifact SHA-256: `59aa9cdde10a159b97b2e6ee4290e333b71e8f1d7806c87107f3e4dfb553bf06`. ### UI evidence Browser screenshots of the installed final package were inspected in desktop Vanguard and landscape-phone Bloom. Tier labels, boss health bar, dialogue, Continue target and existing combat controls fit the game stage. The suite asserts dialogue bounds and tap reachability and retains screenshots/traces for negative controls. ### Manual verification tasks - [ ] Manually verify new chapter boss introductions and contextual lines with a real model in an existing world. - [ ] Manually verify portrait/landscape behavior on a physical phone, including the device keyboard and real assigned TTS voices. - [ ] Manually verify the installed package update in Agents → Download Agents against the published staging catalog after merge. Automated browser tests use the real installed package, combat simulator and UI, with isolated world/encounter fixtures and mocked model/speech providers. Device emulation and mocked speech do not prove native-device or live-provider behavior. Package lifecycle tests exercise the real manager and loopback HTTP separately from the Download Agents UI. ## Documentation impact Updated Gacha Forge README and package changelog; catalog membership and Engine compatibility are unchanged. No Engine `docs/` content changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:02:22 +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#1640
No description provided.