[PR #648] [CLOSED] feat(gacha-forge): 1.6.0 — key images, canon clothing, and a cast tha… #1069

Closed
opened 2026-10-21 05:02:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/648
Author: @SonaGat3
Created: 8/28/2026
Status: ❌ Closed

Base: staging ← Head: feat/gacha-forge-1.6.0


📝 Commits (2)

  • cc032fc feat(gacha-forge): 1.6.0 — key images, canon clothing, and a cast that takes turns
  • 6689c8c fix(gacha-forge): keep the world description off the loading screen

📊 Changes

8 files changed (+405 additions, -284 deletions)

View changed files

➕ artifacts/gacha-forge-1.6.0.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 packages/gacha-forge/README.md (+22 -1)
📝 packages/gacha-forge/client.js (+252 -165)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+102 -89)

📄 Description

Linked issue

Closes #646

Why this change

  • Gacha Forge tells its story as a visual novel but had no pictures of its own — a beat could paint the place, never the moment, so every beat read as the same weight as every other.
  • The forge refused model answers that were correct: measured against 32 legitimate ways of writing the same character sheet it accepted 22, and two enum fields were the only ones still compared as exact strings. A failure showed the player a dead screen with no reason on it.
  • Chapters spoiled themselves: the planner's hook and unreached node titles were drawn before they were earned.
  • The story crowded every scene. Measured on a real seven-hero world: heroes took 61% of all dialogue against 7% for everyone else, and one beat could hold the whole roster. The cap that existed for this was being used as a target rather than a ceiling.

What changed

Affected package: gacha-forge (1.5.1 → 1.6.0). staging carries 1.5.1, so this PR carries everything from 1.5.2 onward.

  • Key images (CGs). A beat may mark one moment as illustrated; the picture replaces the scene's background for the span it covers and the cast sprites hide, because they are in the image. Cadence is a per-world slider (off → every beat). Rarity is enforced at both ends: the prompt only offers the field while the window is open, and the validator discards one that arrives outside it. The beat names who is in the frame (a witness is not a subject), what each body is doing, and what someone wears only when the scene changes it.
  • A character's clothes are canon. Minting writes one prose appearance; a small translation derives the tag lists from it — permanent traits, the clothes normally worn, and the same person seen from behind. A key image dresses a character the way they always are unless the scene says otherwise, and one drawn from behind travels without the face they cannot show. An equipped outfit counts as story canon only if the world opts in (off by default).
  • Image prompts are always English. The rule was written eight times and the weakest copy decided; it is one constant with ten call sites, and a scene written in the world's language is translated rather than silently dropped.
  • World creation tolerates other models. 22 of 32 answer shapes accepted → 30 of 32. Failures now say why, the cancel responds, and a half-made world offers to continue instead of restarting.
  • Chapters keep their surprises, the chapter cast is half the roster with ceilings per node and per chapter, and already-compressed chapters can be combined again, recursively.
  • Home. The background picker gains a Story CG category (newest first) and both pickers page ten at a time instead of drawing every picture a world ever painted.

It also reworks screens already in staging

The package README summarises these; in full:

  • Home (1.0.0): the picker gains Story CG and pagination; deleting a world now takes its key images and outfits with it (two document types leaked before); and resolving the chosen background is one read rather than three whole catalogues — that ran on every state refresh and grew with the story.
  • Story and the VN (1.2.0): the chapter hook and unreached node titles stay hidden; the chapter cast is capped per node and per chapter; the beat writes only who its guide named; the loading screen names the place it is painting; and a beat that carries a key image hides the sprites for its span.
  • Materials / progression (1.1.0): levelling with no Funds no longer consumes Insight — the route refuses before writing, and the button no longer invites a click that cannot land. The screen shows what the level costs, not only the wallet.
  • Events (1.3.0): the seasonal event pays 100 Aether a stack instead of 50.
  • Settings and the changelog (1.3.0): the key-images slider fills its row and keeps the number the player set; the changelog opens five versions at a time.
  • Model plumbing: reasoning models are given output headroom on top of every measured text budget, so one that thinks no longer runs out of room mid-answer.

Generated outputs

packages/gacha-forge/{manifest.json,client.js,server.mjs}, packages/gacha-forge/README.md, artifacts/gacha-forge-1.6.0.zip, and the three catalog/preview/* lanes — all produced by node scripts/build-gacha-forge-package.mjs on a branch reset onto the current staging, so the catalog is regenerated, never hand-merged.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: unchanged — engine.min 2.4.4, maxExclusive 4.0.0. No new Engine API is used.
  • New or changed permissions/entrypoints: none. Same entrypoints (server.mjs, client.js, agents.json) and the same single home-browser-tab contribution. One new privileged route, POST /cg-art (75 total), registered the same way as the rest.
  • Restart, storage, update, or uninstall impact: installing still requires a restart, as before. Storage grows by one document type — run:cg:: — which is swept by /run/delete along with the images it references; this release also fixes two document types (cg, outfits) that the world purge used to leak. New per-world settings fields (images.cgEvery, images.outfitCanon) default to values that leave existing worlds behaving exactly as they did. Uninstall behaviour is unchanged.
  • No new external services. Everything generated goes through the Engine profile's own model and image connections over loopback. A world with no image connection pays for none of the new derivations: they are lazy and gated on the connection.

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

Why the fourth box is unticked. 1.6.0 is not published, so it cannot be installed through the Engine's download path. It was installed by sideload into a staging Engine and played, which covers activation, the routes and the bundle — but not download or checksum verification, so the box stays honest.

Manual verification notes

  • Branch hygiene. Reset onto the current staging (git checkout -B … origin/staging) so the catalog is regenerated rather than merged; git ls-files --eol | grep -c w/crlf → 0 before and after building.
  • Repo checks run locally: validate-catalog (36 packages, preview overlay valid with gacha-forge as the only staging-only entry), validate-package-locales (38 canonical English catalogues), catalog-generatedat-determinism.regression, npm run check (0 errors; the 68 warnings are pre-existing and all in slurp), and git diff --check against origin/staging. ⚠️ npm run test:security was not run: it fails on Windows for a reason unrelated to this change (catalog-path-safety.regression.mjs:15 compares resolve("/tmp/…"), which gains a drive letter, against join).
  • Package's own suite: the three package probes (client, server, manifest) plus the slice contract probe, all green, and the ~89-script test bench with 0 broken. Every behaviour described above has a check, and each new check was verified failing with the bug reintroduced — for the release as a whole that is 60+ such discriminations, named individually in the commit history.
  • Played, not only tested. The release was exercised in two real worlds across chapters 1-5: key images forged and painted, outfits equipped, levelling with and without Funds, the seasonal event, world deletion, and creation against a second model provider.
  • Measured in the browser for anything with a layout: 1440×960, both axes, the five HUD styles and the five text scales, against the worst legal case rather than a comfortable one.

Documentation impact

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

UI evidence (if applicable)

image image

Summary by CodeRabbit

  • New Features

    • Added key-image generation and display.
    • Added canon-based character clothing and perspective data.
    • Added paginated Story CG and background pickers.
    • Improved world creation flexibility and spoiler-safe chapter presentation.
    • Reduced chapter cast selection and added recursive compression.
  • Updates

    • Updated Gacha Forge to version 1.6.0.
    • Refreshed downloadable package information and integrity checks.
    • Improved cleanup, economy, model, and image-prompting behavior.
    • Improved resource handling, deletion cleanup, changelog pagination, and loading-screen display.

🔄 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/648 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 8/28/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feat/gacha-forge-1.6.0` --- ### 📝 Commits (2) - [`cc032fc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cc032fcf2ca8539db7e096a00b6c2154847b0bf3) feat(gacha-forge): 1.6.0 — key images, canon clothing, and a cast that takes turns - [`6689c8c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6689c8c686613751fb15e25bf61f050e5f81dd72) fix(gacha-forge): keep the world description off the loading screen ### 📊 Changes **8 files changed** (+405 additions, -284 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.6.0.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `packages/gacha-forge/README.md` (+22 -1) 📝 `packages/gacha-forge/client.js` (+252 -165) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+102 -89) </details> ### 📄 Description ## Linked issue Closes #646 ## Why this change - Gacha Forge tells its story as a visual novel but had no pictures of its own — a beat could paint the place, never the moment, so every beat read as the same weight as every other. - The forge refused model answers that were correct: measured against 32 legitimate ways of writing the same character sheet it accepted 22, and two enum fields were the only ones still compared as exact strings. A failure showed the player a dead screen with no reason on it. - Chapters spoiled themselves: the planner's hook and unreached node titles were drawn before they were earned. - The story crowded every scene. Measured on a real seven-hero world: heroes took 61% of all dialogue against 7% for everyone else, and one beat could hold the whole roster. The cap that existed for this was being used as a target rather than a ceiling. ## What changed Affected package: gacha-forge (1.5.1 → 1.6.0). staging carries 1.5.1, so this PR carries everything from 1.5.2 onward. - Key images (CGs). A beat may mark one moment as illustrated; the picture replaces the scene's background for the span it covers and the cast sprites hide, because they are in the image. Cadence is a per-world slider (off → every beat). Rarity is enforced at both ends: the prompt only offers the field while the window is open, and the validator discards one that arrives outside it. The beat names who is in the frame (a witness is not a subject), what each body is doing, and what someone wears only when the scene changes it. - A character's clothes are canon. Minting writes one prose appearance; a small translation derives the tag lists from it — permanent traits, the clothes normally worn, and the same person seen from behind. A key image dresses a character the way they always are unless the scene says otherwise, and one drawn from behind travels without the face they cannot show. An equipped outfit counts as story canon only if the world opts in (off by default). - Image prompts are always English. The rule was written eight times and the weakest copy decided; it is one constant with ten call sites, and a scene written in the world's language is translated rather than silently dropped. - World creation tolerates other models. 22 of 32 answer shapes accepted → 30 of 32. Failures now say why, the cancel responds, and a half-made world offers to continue instead of restarting. - Chapters keep their surprises, the chapter cast is half the roster with ceilings per node and per chapter, and already-compressed chapters can be combined again, recursively. - Home. The background picker gains a Story CG category (newest first) and both pickers page ten at a time instead of drawing every picture a world ever painted. **It also reworks screens already in staging** The package README summarises these; in full: - Home (1.0.0): the picker gains Story CG and pagination; deleting a world now takes its key images and outfits with it (two document types leaked before); and resolving the chosen background is one read rather than three whole catalogues — that ran on every state refresh and grew with the story. - Story and the VN (1.2.0): the chapter hook and unreached node titles stay hidden; the chapter cast is capped per node and per chapter; the beat writes only who its guide named; the loading screen names the place it is painting; and a beat that carries a key image hides the sprites for its span. - Materials / progression (1.1.0): levelling with no Funds no longer consumes Insight — the route refuses before writing, and the button no longer invites a click that cannot land. The screen shows what the level costs, not only the wallet. - Events (1.3.0): the seasonal event pays 100 Aether a stack instead of 50. - Settings and the changelog (1.3.0): the key-images slider fills its row and keeps the number the player set; the changelog opens five versions at a time. - Model plumbing: reasoning models are given output headroom on top of every measured text budget, so one that thinks no longer runs out of room mid-answer. **Generated outputs** packages/gacha-forge/{manifest.json,client.js,server.mjs}, packages/gacha-forge/README.md, artifacts/gacha-forge-1.6.0.zip, and the three catalog/preview/* lanes — all produced by node scripts/build-gacha-forge-package.mjs on a branch reset onto the current staging, so the catalog is regenerated, never hand-merged. ## Package and security impact - Affected package IDs: gacha-forge - Engine compatibility impact: unchanged — engine.min 2.4.4, maxExclusive 4.0.0. No new Engine API is used. - New or changed permissions/entrypoints: none. Same entrypoints (server.mjs, client.js, agents.json) and the same single home-browser-tab contribution. One new privileged route, POST /cg-art (75 total), registered the same way as the rest. - Restart, storage, update, or uninstall impact: installing still requires a restart, as before. Storage grows by one document type — run:cg:<chapter>:<node> — which is swept by /run/delete along with the images it references; this release also fixes two document types (cg, outfits) that the world purge used to leak. New per-world settings fields (images.cgEvery, images.outfitCanon) default to values that leave existing worlds behaving exactly as they did. Uninstall behaviour is unchanged. - No new external services. Everything generated goes through the Engine profile's own model and image connections over loopback. A world with no image connection pays for none of the new derivations: they are lazy and gated on the connection. ## 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 - [ ] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` Why the fourth box is unticked. 1.6.0 is not published, so it cannot be installed through the Engine's download path. It was installed by sideload into a staging Engine and played, which covers activation, the routes and the bundle — but not download or checksum verification, so the box stays honest. ### Manual verification notes - Branch hygiene. Reset onto the current staging (git checkout -B … origin/staging) so the catalog is regenerated rather than merged; git ls-files --eol | grep -c w/crlf → 0 before and after building. - Repo checks run locally: validate-catalog (36 packages, preview overlay valid with gacha-forge as the only staging-only entry), validate-package-locales (38 canonical English catalogues), catalog-generatedat-determinism.regression, npm run check (0 errors; the 68 warnings are pre-existing and all in slurp), and git diff --check against origin/staging. ⚠️ npm run test:security was not run: it fails on Windows for a reason unrelated to this change (catalog-path-safety.regression.mjs:15 compares resolve("/tmp/…"), which gains a drive letter, against join). - Package's own suite: the three package probes (client, server, manifest) plus the slice contract probe, all green, and the ~89-script test bench with 0 broken. Every behaviour described above has a check, and each new check was verified failing with the bug reintroduced — for the release as a whole that is 60+ such discriminations, named individually in the commit history. - Played, not only tested. The release was exercised in two real worlds across chapters 1-5: key images forged and painted, outfits equipped, levelling with and without Funds, the seasonal event, world deletion, and creation against a second model provider. - Measured in the browser for anything with a layout: 1440×960, both axes, the five HUD styles and the five text scales, against the worst legal case rather than a comfortable one. ## 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="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/f499ad8c-8dfd-453a-a87c-799381652f51" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/7856a62b-5d59-4000-82ff-4cea19c851b2" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added key-image generation and display. * Added canon-based character clothing and perspective data. * Added paginated Story CG and background pickers. * Improved world creation flexibility and spoiler-safe chapter presentation. * Reduced chapter cast selection and added recursive compression. * **Updates** * Updated Gacha Forge to version 1.6.0. * Refreshed downloadable package information and integrity checks. * Improved cleanup, economy, model, and image-prompting behavior. * Improved resource handling, deletion cleanup, changelog pagination, and loading-screen display. <!-- 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-21 05:02:02 +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#1069
No description provided.