[PR #542] [MERGED] feat: add Gacha Forge (Collection slice) 1.0.0 #1017

Closed
opened 2026-10-20 17:33:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feature/gacha-forge-package


📝 Commits (3)

  • 5e8e044 feat: add Gacha Forge (Collection slice) 1.0.0
  • f5a47e3 fix: remove trailing whitespace from the Gacha Forge client bundle
  • bde50da Merge branch 'staging' into feature/gacha-forge-package

📊 Changes

16 files changed (+3574 additions, -3 deletions)

View changed files

📝 README.md (+2 -1)
➕ artifacts/gacha-forge-1.0.0.zip (+0 -0)
➕ artwork/agent-covers/gacha-forge.png (+0 -0)
📝 catalog/catalog.json (+78 -0)
📝 catalog/v2/catalog.json (+78 -0)
📝 catalog/v3/catalog.json (+78 -0)
➕ packages/gacha-forge/README.md (+24 -0)
➕ packages/gacha-forge/agents.json (+22 -0)
➕ packages/gacha-forge/client.js (+3065 -0)
➕ packages/gacha-forge/gacha-forge-icon.png (+0 -0)
➕ packages/gacha-forge/locales/en.json (+17 -0)
➕ packages/gacha-forge/manifest.json (+68 -0)
➕ packages/gacha-forge/server.mjs (+65 -0)
➕ scripts/build-gacha-forge-package.mjs (+71 -0)
📝 scripts/catalog-package-guidance.mjs (+4 -0)
📝 scripts/validate-catalog.mjs (+2 -2)

📄 Description

New feature package: a standalone gacha game mode as a Home browser tab. Pre-built payload bundles with their own builder (build-gacha-forge-package.mjs) re-deriving manifest hashes, locale, deterministic zip, and catalog entry.

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #541

Why this change

  • The catalog has no collection/gacha Experience. Gacha Forge adds a standalone gacha game mode as a Home browser tab (same surface shape as Noodle and Slurp): forge a world from your lorebooks, pull on banners with pity, and collect the cast the model writes and paints.

  • Follows up on the maintainer's request to split the package into reviewable slices: this PR is the first slice (Collection) — world forging, banners, portraits and banner art, the Units browser, and the Home scene with its pickers. Combat, story, materials, equipment and events are drawn locked and ship as follow-up PRs, one system each.

What changed

  • New package packages/gacha-forge/: manifest.json (schema v2, with builtAgainst provenance), agents.json, pre-built client.js and server.mjs bundles, gacha-forge-icon.png (Home tab icon), generated locales/en.json, and a package README.md.

  • New builder scripts/build-gacha-forge-package.mjs: re-derives manifest hashes and the English locale from the committed payload bytes, writes the reproducible artifact zip with createDeterministicZip, and updates the catalog family through writeCatalogFamily (lanes are routed from the manifest's Engine range, never hand-placed).

  • artifacts/gacha-forge-1.0.0.zip (deterministic, store-only).

  • Catalog lanes regenerated: catalog/catalog.json, catalog/v2/, catalog/v3/ (the package publishes to v2 and v3).

  • scripts/catalog-package-guidance.mjs: activation guidance entry for gacha-forge.

  • scripts/validate-catalog.mjs: package-count assertion 36 → 37 (24 agents, 13 features).

  • Root README.md: catalog counts, the v2.4.4 compatibility list, and a Misc Agents row.

  • artwork/agent-covers/gacha-forge.png (512×512 catalog cover).

Package and security impact

  • Affected package IDs: gacha-forge (new).
  • Engine compatibility impact: >=2.4.4 <4.0.0; built and tested against Engine 2.4.4 (staging @ ddc712b). No other package changes.
  • New or changed permissions/entrypoints: server.mjs + client.js entrypoints (new package). Permissions, each with its consumer:
    - routes — the package's own game routes (28 in this slice), registered through the capability runtime; all privileged by the Engine's standard capability-route guard.
    - network — loopback HTTP to the Engine's own APIs for portrait/banner-art generation and lorebook reads (/api/characters/avatar-generation, /api/global-gallery/upload, /api/lorebooks); nothing leaves the machine.
    - storage — world/session state as capability documents; generated art is stored in the Global Gallery with global-gallery: references so the Engine's cleanup never orphans it.
    - ui — the Home browser tab client.
    - No chat-read/chat-write: the package never touches chats.
  • Restart, storage, update, or uninstall impact: install and uninstall require a restart (server entrypoint). Uninstalling removes the tab and its routes; world documents follow the Engine's capability-document lifecycle.

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

  • Tested on a clean Marinara Engine staging checkout (2.4.4 @ ddc712b) with a fresh profile — no pre-existing worlds, portraits, or art, so first-run branches actually ran.

  • Full flow played end to end: world creation from lorebooks (cast slots honored), founding banner splash painted automatically at the end of world creation, featured banner art painted on first sight, pulls with pity, portraits generated per unit, Units browser and unit sheets, Home scene with background and unit pickers.

  • Full Agents → Download Agents lifecycle exercised against the exact catalog entry and artifact zip from this branch (served through a throwaway catalog override): update to 1.0.0 with checksum verification and restart prompt; uninstall with cleanup verified after restart (package absent from health, client route 404, Home tab gone); fresh install from the catalog with the package active and its client served again.

  • Existing game worlds survived the uninstall → reinstall cycle intact — world state lives in the Engine's capability-document storage, not in the package payload, so removing the package never destroys player data.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

image

Summary by CodeRabbit

  • New Features
    • Added Gacha Forge for creating gacha-style worlds, pulling banners, and collecting characters.
    • Access Gacha Forge from the Home tab.
    • Supports Conversation, Roleplay, and Game modes.
    • Includes a Collection view for exploring gathered characters and content.
  • Documentation
    • Added installation, navigation, usage, and package guidance.
  • Catalog
    • Updated the catalog to include Gacha Forge, bringing the total to 37 first-party packages.
  • Installation
    • Requires an application restart after installation.

🔄 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/542 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 8/24/2026 **Status:** ✅ Merged **Merged:** 8/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/gacha-forge-package` --- ### 📝 Commits (3) - [`5e8e044`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e8e044da8807eddb720d555034e08032c9cc425) feat: add Gacha Forge (Collection slice) 1.0.0 - [`f5a47e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f5a47e3a56c196665e4d10d8bbc99070cf712a9f) fix: remove trailing whitespace from the Gacha Forge client bundle - [`bde50da`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bde50dae62b9502c3ef9afd94c5b249718766201) Merge branch 'staging' into feature/gacha-forge-package ### 📊 Changes **16 files changed** (+3574 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -1) ➕ `artifacts/gacha-forge-1.0.0.zip` (+0 -0) ➕ `artwork/agent-covers/gacha-forge.png` (+0 -0) 📝 `catalog/catalog.json` (+78 -0) 📝 `catalog/v2/catalog.json` (+78 -0) 📝 `catalog/v3/catalog.json` (+78 -0) ➕ `packages/gacha-forge/README.md` (+24 -0) ➕ `packages/gacha-forge/agents.json` (+22 -0) ➕ `packages/gacha-forge/client.js` (+3065 -0) ➕ `packages/gacha-forge/gacha-forge-icon.png` (+0 -0) ➕ `packages/gacha-forge/locales/en.json` (+17 -0) ➕ `packages/gacha-forge/manifest.json` (+68 -0) ➕ `packages/gacha-forge/server.mjs` (+65 -0) ➕ `scripts/build-gacha-forge-package.mjs` (+71 -0) 📝 `scripts/catalog-package-guidance.mjs` (+4 -0) 📝 `scripts/validate-catalog.mjs` (+2 -2) </details> ### 📄 Description New feature package: a standalone gacha game mode as a Home browser tab. Pre-built payload bundles with their own builder (build-gacha-forge-package.mjs) re-deriving manifest hashes, locale, deterministic zip, and catalog entry. # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue Closes #541 ## Why this change - The catalog has no collection/gacha Experience. Gacha Forge adds a standalone gacha game mode as a Home browser tab (same surface shape as Noodle and Slurp): forge a world from your lorebooks, pull on banners with pity, and collect the cast the model writes and paints. - Follows up on the maintainer's request to split the package into reviewable slices: this PR is the first slice (Collection) — world forging, banners, portraits and banner art, the Units browser, and the Home scene with its pickers. Combat, story, materials, equipment and events are drawn locked and ship as follow-up PRs, one system each. - ## What changed - New package packages/gacha-forge/: manifest.json (schema v2, with builtAgainst provenance), agents.json, pre-built client.js and server.mjs bundles, gacha-forge-icon.png (Home tab icon), generated locales/en.json, and a package README.md. - New builder scripts/build-gacha-forge-package.mjs: re-derives manifest hashes and the English locale from the committed payload bytes, writes the reproducible artifact zip with createDeterministicZip, and updates the catalog family through writeCatalogFamily (lanes are routed from the manifest's Engine range, never hand-placed). - artifacts/gacha-forge-1.0.0.zip (deterministic, store-only). - Catalog lanes regenerated: catalog/catalog.json, catalog/v2/, catalog/v3/ (the package publishes to v2 and v3). - scripts/catalog-package-guidance.mjs: activation guidance entry for gacha-forge. - scripts/validate-catalog.mjs: package-count assertion 36 → 37 (24 agents, 13 features). - Root README.md: catalog counts, the v2.4.4 compatibility list, and a Misc Agents row. - artwork/agent-covers/gacha-forge.png (512×512 catalog cover). - ## Package and security impact - Affected package IDs: gacha-forge (new). - Engine compatibility impact: >=2.4.4 <4.0.0; built and tested against Engine 2.4.4 (staging @ ddc712b). No other package changes. - New or changed permissions/entrypoints: server.mjs + client.js entrypoints (new package). Permissions, each with its consumer: - routes — the package's own game routes (28 in this slice), registered through the capability runtime; all privileged by the Engine's standard capability-route guard. - network — loopback HTTP to the Engine's own APIs for portrait/banner-art generation and lorebook reads (/api/characters/avatar-generation, /api/global-gallery/upload, /api/lorebooks); nothing leaves the machine. - storage — world/session state as capability documents; generated art is stored in the Global Gallery with global-gallery:<id> references so the Engine's cleanup never orphans it. - ui — the Home browser tab client. - No chat-read/chat-write: the package never touches chats. - Restart, storage, update, or uninstall impact: install and uninstall require a restart (server entrypoint). Uninstalling removes the tab and its routes; world documents follow the Engine's capability-document lifecycle. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Tested on a clean Marinara Engine staging checkout (2.4.4 @ ddc712b) with a fresh profile — no pre-existing worlds, portraits, or art, so first-run branches actually ran. - Full flow played end to end: world creation from lorebooks (cast slots honored), founding banner splash painted automatically at the end of world creation, featured banner art painted on first sight, pulls with pity, portraits generated per unit, Units browser and unit sheets, Home scene with background and unit pickers. - Full Agents → Download Agents lifecycle exercised against the exact catalog entry and artifact zip from this branch (served through a throwaway catalog override): update to 1.0.0 with checksum verification and restart prompt; uninstall with cleanup verified after restart (package absent from health, client route 404, Home tab gone); fresh install from the catalog with the package active and its client served again. - Existing game worlds survived the uninstall → reinstall cycle intact — world state lives in the Engine's capability-document storage, not in the package payload, so removing the package never destroys player data. - ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <img width="1911" height="939" alt="image" src="https://github.com/user-attachments/assets/65602e02-0aed-4413-927d-8f0cec0cf56d" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Gacha Forge for creating gacha-style worlds, pulling banners, and collecting characters. - Access Gacha Forge from the Home tab. - Supports Conversation, Roleplay, and Game modes. - Includes a Collection view for exploring gathered characters and content. - **Documentation** - Added installation, navigation, usage, and package guidance. - **Catalog** - Updated the catalog to include Gacha Forge, bringing the total to 37 first-party packages. - **Installation** - Requires an application restart after installation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:33:16 +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#1017
No description provided.