[PR #633] [CLOSED] feat: Gacha Forge 1.5.0 adds the economy loops, outfits, a seasonal e… #1063

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

📋 Pull Request Information

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

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


📝 Commits (3)

  • 64d240d feat: Gacha Forge 1.5.0 adds the economy loops, outfits, a seasonal event and the author's directives
  • 7be0b7a docs: say 'core game loop in place', not 'every screen reachable' -- 1.5.0 itself adds the rank-gated tutorial, so the old 1.3.0 phrasing contradicted it seven lines down (CodeRabbit)
  • 87f267c Merge branch 'staging' into feature/gacha-forge-1.5.0

📊 Changes

11 files changed (+2087 additions, -1469 deletions)

View changed files

📝 README.md (+1 -1)
➕ artifacts/gacha-forge-1.5.0.zip (+0 -0)
📝 catalog/preview/catalog.json (+12 -12)
📝 catalog/preview/v2/catalog.json (+12 -12)
📝 catalog/preview/v3/catalog.json (+12 -12)
📝 packages/gacha-forge/README.md (+20 -19)
📝 packages/gacha-forge/agents.json (+1 -1)
📝 packages/gacha-forge/client.js (+1922 -1341)
📝 packages/gacha-forge/locales/en.json (+2 -2)
📝 packages/gacha-forge/manifest.json (+9 -9)
📝 packages/gacha-forge/server.mjs (+96 -60)

📄 Description

Pull request

Linked issue

Closes #632

Why this change

  • 1.3.0 made the mode complete — nothing drawn locked, every screen reachable — and playing it whole is what surfaced this release's problems: 94.3% of pulls granted nothing (a duplicate weapon bought nothing at all), nothing seasonal rotated, the world's author had no standing orders over generation, a new player got a finished interface with no path through it, and several routes that pay were softer than the screens that draw — holes found by play, listed below.
  • This release closes those loops. It is about what a run gives back, not about new screens.

What changed

Affected package: gacha-forge (1.3.0 → 1.5.0).

Glimmer and the Shop — every pull pays something.

  • Duplicates mint Glimmer (a duplicate character still buys its Facet first); the Shop spends it: Vigor potions in three sizes, stored in the bag and used from the Vigor menu — now a centered modal — and outfits from rank 15. Locked slots name what is coming.
  • Routes: /shop/buy, /shop/buy-outfit, /item/use.

Outfits — a wardrobe the world owes its laggards.

  • Each banner rotation mints outfits for units that have been offered and not bought, themed by a per-world author directive; what reaches the Shop is a finished, named look. A unit's sheet gains a wardrobe tab; the Home picker can dress the scene (an explicit Default/Outfits switch inside each rarity). A per-world switch (images.outfits, on by default) turns the system off, and a world that cannot paint never mints — an outfit is generated art.
  • Routes: /outfit/wear, /outfit/redo, /outfit/restore.

A seasonal box gacha, and Achievements.

  • Ten boxes with a fixed inventory instead of probabilities — the tenth repeats as the Aether faucet — funded by three event fights that ride the existing farming pipes, rotating with the featured banner and named after it. Routes: /seasonal/draw (the fights reuse /farm/*).
  • Achievements: ladders over what the player already does, paying Aether, with claim dots that update the moment a rung is reached. Route: /achievements/claim.

The author's four directives — the world's creator keeps the pen.

  • Four per-world texts: chapter plan (what happens), story beat (how it reads), outfit theme (what the wardrobe is about) and story arc (rules that hold across chapters). Each is framed in the prompt as binding orders — who they come from, that they win over the built-in guidance, what they may not touch — and each has a measured length ceiling against its own call, trimmed rather than refused.
  • The arc directive is the only one that governs a sequence, so it comes with a ledger: the planner reads what every previous chapter recorded and writes one line about its own (arcNote, optional, never a reason to refuse a plan), so a rule like "someone dies every three chapters" is counted from the ledger, not guessed from ~36k tokens of prose.

The tutorial, both halves.

  • Screens unlock on a commander-rank schedule (Summon open from the prologue, Events at 5, featured and seasonal at 10), with a 1,600 Aether welcome gift and a Home that always names the next step. An uncollected gift outranks "already seen"; an obeyed step never returns.
  • Routes: /newworld/claim, /prologue-gift, /unlock/seen, /banner/step.

And the rest, briefly.

  • A paginated summon history (/summon/history): ten pulls a page, each recorded with the pity it landed on.
  • Relic sub-stats reveal on level-up, rolls vary around the average, a 5★ reaches +20 in five ticks; the day-7 login relic shows its four rolled subs in a pop-up on claim.
  • Story polish: the prologue is chapter 1's first beat (free by construction); a segment can be a thought and is painted as one; backgrounds follow the scene; the beat loader names the place it is painting; forging a chapter no longer pre-paints its locations.
  • Connections per job: prose (45% of measured spend) and chapter compression can run on a cheaper model per world; world lorebooks can opt into feeding story scenes.
  • The next featured banner is pre-minted a day before the current one ends, so its art is ready the moment it opens — the real window is stamped on advance, so nothing is burned early.

It also reworks screens that already shipped

  • Summon (shipped in 1.0.0). The featured 4★ rate-up picks its target 1/3 of the time; a retired featured joins the permanent pool; the 5★ splash escapes the generated name (an XSS fix — the server's sanitiser trims, it does not strip <>&); a double click can no longer charge twice (summon, ascend and form-up all gained the same guard); and /summon now validates every lock the screen draws — it validated none, so a rank-1 world could pull the featured banner and mint it.
  • Combat (shipped in 1.1.0). Two simulation fixes that deliberately change battle outcomes, both matching what the ability text always promised: hostile passives no longer hit their own team, and poison ignores shields. Enemies spread their attacks instead of obsessing over one unit. The party band now fits a phone in landscape (the stage shrinks below the type floor and every f-measured box did not; the card is now also clamped against the stage), the fullscreen button moved out from over Skip, and the card frame contains its art in all five HUD styles.
  • Materials (shipped in 1.1.0). Tier drops halved and Insight XP doubled, both from measured progression; and the allowed difficulty is clamped server-side per chapter — it used to carry over from the previous chapter, which was an economy leak (Very Hard pays ×2), not a cosmetic. /battle/start charges only for fights /complete would accept.
  • The story and the VN (shipped in 1.2.0). The backlog opens at the bottom; a shortened or surname-first speaker still finds their portrait; the narration-wait footer stopped claiming the narrator is writing while art paints (the story is already written by then).
  • Home and the wizard (shipped in 1.0.0/1.3.0). The scene background survives a banner-art repaint; deleting a world asks first, says what is lost, and now deletes its art (ids are collected before the documents are purged, because afterwards nobody knows which they were); the wizard's payload builder no longer drops a conditional field whose condition reads another category (a render bug and a save bug with one origin).
  • Six unchecked writes across events, relics and combat could lose an already-paid reward on a lost revision race — including a defeat's combatPending, whose loss made /complete pay for the lost fight. They conflict and consume nothing now, and what is granted is written before charging.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: none. engine.min stays 2.4.4, maxExclusive 4.0.0. builtAgainst.engineCommit moves to 3a700bb0 — the staging tip the release was played against.
  • New or changed permissions/entrypoints: none. Permissions stay network, routes, storage, ui; entrypoints unchanged. Thirteen new routes under the existing routes permission: 60 → 73.
  • The manifest description is rewritten (and agents.json and locales/en.json follow, since the builder derives both): the old text claimed worlds come from lorebooks — they are optional, a hand-written scenario is enough — and name-dropped two features where the mode has dozens. The activation sentence stays verbatim, as validate-catalog requires.
  • Restart, storage, update, or uninstall impact: restartRequired stays true — the server entrypoint changed. Storage stays in the package's own capability documents; no schema migration: a world created on 1.3.0 opens on 1.5.0 with the new systems available, missing fields are written lazily on first read, and a plan or beat written before the new fields reads back byte-for-byte (optional fields are only written when present). Uninstall removes the tab and routes after restart and leaves the capability documents alone.
  • Availability: stays staging only. The catalog entry routes to the preview overlay; the three published lanes keep their 36 packages (24 agents, 12 features) untouched.

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

What the fourth box means, and why it is not ticked. 1.5.0 is not published yet, so there is no catalog entry to install it from: the package was installed by sideloading the built payload into a staging Engine clone and restarting it. That exercises activation, the routes, the bundle and the restart prompt, but not the download, checksum or unzip. The catalog listing half was verified live on the merged line: with the package uninstalled, a staging Engine offers gacha-forge in Agents → Download Agents — the preview overlay read behind the channel gate.

Repository checks, in the workflow's own order. Every step of Catalog validation passes locally except npm run test:security, which fails at scripts/tests/catalog-path-safety.regression.mjs where resolve("/tmp/package") gains a drive letter on Windows and join does not — unrelated to this PR, and green in the GitHub CI.

  • npm run check — pass (0 errors; the 68 warnings are pre-existing in other packages' src/)
  • node scripts/test-catalog-lanes.mjs — pass
  • node scripts/validate-package-locales.mjs — pass
  • node scripts/validate-catalog.mjs — pass: 36 packages (24 agents, 12 features); Preview overlay valid: 1 staging-only package(s) (gacha-forge) — hidden from stable users; lanes v2=36, v3=36
  • git diff --check "origin/staging...HEAD" — empty (the three-dot form the workflow runs

The build is reproducible. Re-running node scripts/build-gacha-forge-package.mjs over the committed bytes leaves the tree with zero changes; the artifact sha256 in all three preview lanes matches the committed zip (1,128,100 bytes).

Played, not just built. The whole 1.4.x playtest line (60+ installs) ran in a staging Engine clone at the current staging tip, including from a phone over LAN: worlds created and deleted, both banners plus the seasonal box, chapters forged and played with their combat, farming with the full progression loop, the Shop buying potions and outfits, outfits minted under the author's directive and worn on the Home, the login event, the pass, and the tutorial path followed from a fresh world. The economy holes listed above were found by play, then fixed with regression gates that were each verified to fail with the bug reinstated.

Documentation impact

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

The package README gains a 1.5.0 section and the reworked-screens list, and both READMEs and the manifest description were rewritten to stop claiming worlds require lorebooks (a hand-written scenario is enough) and to describe the mode instead of name-dropping single features.

UI evidence (if applicable)

image image image

Summary by CodeRabbit

  • New Features

    • Gacha Forge supports creating games from world descriptions or lorebooks.
    • Generated experiences include worlds, characters, visual-novel chapters, battles, gear, and events.
    • The mode is available through Home navigation in staging.
  • Documentation

    • Updated Gacha Forge descriptions and release information to reflect the 1.5.0 experience.
    • Refreshed catalog and package details for the latest release.

🔄 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/633 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 8/27/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feature/gacha-forge-1.5.0` --- ### 📝 Commits (3) - [`64d240d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/64d240d4c272f454f8f77d8e38c03ce23c07a038) feat: Gacha Forge 1.5.0 adds the economy loops, outfits, a seasonal event and the author's directives - [`7be0b7a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7be0b7ad0e8194ccb56057ff72a4eb88040e4c36) docs: say 'core game loop in place', not 'every screen reachable' -- 1.5.0 itself adds the rank-gated tutorial, so the old 1.3.0 phrasing contradicted it seven lines down (CodeRabbit) - [`87f267c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/87f267c6ec948540ae58d4e3a60784a914826dfe) Merge branch 'staging' into feature/gacha-forge-1.5.0 ### 📊 Changes **11 files changed** (+2087 additions, -1469 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `artifacts/gacha-forge-1.5.0.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+12 -12) 📝 `catalog/preview/v2/catalog.json` (+12 -12) 📝 `catalog/preview/v3/catalog.json` (+12 -12) 📝 `packages/gacha-forge/README.md` (+20 -19) 📝 `packages/gacha-forge/agents.json` (+1 -1) 📝 `packages/gacha-forge/client.js` (+1922 -1341) 📝 `packages/gacha-forge/locales/en.json` (+2 -2) 📝 `packages/gacha-forge/manifest.json` (+9 -9) 📝 `packages/gacha-forge/server.mjs` (+96 -60) </details> ### 📄 Description # Pull request ## Linked issue Closes #632 ## Why this change - 1.3.0 made the mode complete — nothing drawn locked, every screen reachable — and playing it whole is what surfaced this release's problems: 94.3% of pulls granted nothing (a duplicate weapon bought nothing at all), nothing seasonal rotated, the world's author had no standing orders over generation, a new player got a finished interface with no path through it, and several routes that pay were softer than the screens that draw — holes found by play, listed below. - This release closes those loops. It is about what a run gives back, not about new screens. ## What changed Affected package: gacha-forge (1.3.0 → 1.5.0). **Glimmer and the Shop** — every pull pays something. - Duplicates mint Glimmer (a duplicate character still buys its Facet first); the Shop spends it: Vigor potions in three sizes, stored in the bag and used from the Vigor menu — now a centered modal — and outfits from rank 15. Locked slots name what is coming. - Routes: /shop/buy, /shop/buy-outfit, /item/use. **Outfits** — a wardrobe the world owes its laggards. - Each banner rotation mints outfits for units that have been offered and not bought, themed by a per-world author directive; what reaches the Shop is a finished, named look. A unit's sheet gains a wardrobe tab; the Home picker can dress the scene (an explicit Default/Outfits switch inside each rarity). A per-world switch (images.outfits, on by default) turns the system off, and a world that cannot paint never mints — an outfit is generated art. - Routes: /outfit/wear, /outfit/redo, /outfit/restore. **A seasonal box gacha, and Achievements.** - Ten boxes with a fixed inventory instead of probabilities — the tenth repeats as the Aether faucet — funded by three event fights that ride the existing farming pipes, rotating with the featured banner and named after it. Routes: /seasonal/draw (the fights reuse /farm/*). - Achievements: ladders over what the player already does, paying Aether, with claim dots that update the moment a rung is reached. Route: /achievements/claim. **The author's four directives** — the world's creator keeps the pen. - Four per-world texts: chapter plan (what happens), story beat (how it reads), outfit theme (what the wardrobe is about) and story arc (rules that hold across chapters). Each is framed in the prompt as binding orders — who they come from, that they win over the built-in guidance, what they may not touch — and each has a measured length ceiling against its own call, trimmed rather than refused. - The arc directive is the only one that governs a sequence, so it comes with a ledger: the planner reads what every previous chapter recorded and writes one line about its own (arcNote, optional, never a reason to refuse a plan), so a rule like "someone dies every three chapters" is counted from the ledger, not guessed from ~36k tokens of prose. **The tutorial, both halves.** - Screens unlock on a commander-rank schedule (Summon open from the prologue, Events at 5, featured and seasonal at 10), with a 1,600 Aether welcome gift and a Home that always names the next step. An uncollected gift outranks "already seen"; an obeyed step never returns. - Routes: /newworld/claim, /prologue-gift, /unlock/seen, /banner/step. **And the rest, briefly.** - A paginated summon history (/summon/history): ten pulls a page, each recorded with the pity it landed on. - Relic sub-stats reveal on level-up, rolls vary around the average, a 5★ reaches +20 in five ticks; the day-7 login relic shows its four rolled subs in a pop-up on claim. - Story polish: the prologue is chapter 1's first beat (free by construction); a segment can be a thought and is painted as one; backgrounds follow the scene; the beat loader names the place it is painting; forging a chapter no longer pre-paints its locations. - Connections per job: prose (45% of measured spend) and chapter compression can run on a cheaper model per world; world lorebooks can opt into feeding story scenes. - The next featured banner is pre-minted a day before the current one ends, so its art is ready the moment it opens — the real window is stamped on advance, so nothing is burned early. **It also reworks screens that already shipped** - Summon (shipped in 1.0.0). The featured 4★ rate-up picks its target 1/3 of the time; a retired featured joins the permanent pool; the 5★ splash escapes the generated name (an XSS fix — the server's sanitiser trims, it does not strip <>&); a double click can no longer charge twice (summon, ascend and form-up all gained the same guard); and /summon now validates every lock the screen draws — it validated none, so a rank-1 world could pull the featured banner and mint it. - Combat (shipped in 1.1.0). Two simulation fixes that deliberately change battle outcomes, both matching what the ability text always promised: hostile passives no longer hit their own team, and poison ignores shields. Enemies spread their attacks instead of obsessing over one unit. The party band now fits a phone in landscape (the stage shrinks below the type floor and every f-measured box did not; the card is now also clamped against the stage), the fullscreen button moved out from over Skip, and the card frame contains its art in all five HUD styles. - Materials (shipped in 1.1.0). Tier drops halved and Insight XP doubled, both from measured progression; and the allowed difficulty is clamped server-side per chapter — it used to carry over from the previous chapter, which was an economy leak (Very Hard pays ×2), not a cosmetic. /battle/start charges only for fights /complete would accept. - The story and the VN (shipped in 1.2.0). The backlog opens at the bottom; a shortened or surname-first speaker still finds their portrait; the narration-wait footer stopped claiming the narrator is writing while art paints (the story is already written by then). - Home and the wizard (shipped in 1.0.0/1.3.0). The scene background survives a banner-art repaint; deleting a world asks first, says what is lost, and now deletes its art (ids are collected before the documents are purged, because afterwards nobody knows which they were); the wizard's payload builder no longer drops a conditional field whose condition reads another category (a render bug and a save bug with one origin). - Six unchecked writes across events, relics and combat could lose an already-paid reward on a lost revision race — including a defeat's combatPending, whose loss made /complete pay for the lost fight. They conflict and consume nothing now, and what is granted is written before charging. ## Package and security impact - Affected package IDs: gacha-forge - Engine compatibility impact: none. engine.min stays 2.4.4, maxExclusive 4.0.0. builtAgainst.engineCommit moves to 3a700bb0 — the staging tip the release was played against. - New or changed permissions/entrypoints: none. Permissions stay network, routes, storage, ui; entrypoints unchanged. Thirteen new routes under the existing routes permission: 60 → 73. - The manifest description is rewritten (and agents.json and locales/en.json follow, since the builder derives both): the old text claimed worlds come from lorebooks — they are optional, a hand-written scenario is enough — and name-dropped two features where the mode has dozens. The activation sentence stays verbatim, as validate-catalog requires. - Restart, storage, update, or uninstall impact: restartRequired stays true — the server entrypoint changed. Storage stays in the package's own capability documents; no schema migration: a world created on 1.3.0 opens on 1.5.0 with the new systems available, missing fields are written lazily on first read, and a plan or beat written before the new fields reads back byte-for-byte (optional fields are only written when present). Uninstall removes the tab and routes after restart and leaves the capability documents alone. - Availability: stays staging only. The catalog entry routes to the preview overlay; the three published lanes keep their 36 packages (24 agents, 12 features) untouched. ## Validation - [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` ### Manual verification notes **What the fourth box means, and why it is not ticked**. 1.5.0 is not published yet, so there is no catalog entry to install it from: the package was installed by sideloading the built payload into a staging Engine clone and restarting it. That exercises activation, the routes, the bundle and the restart prompt, but not the download, checksum or unzip. The catalog listing half was verified live on the merged line: with the package uninstalled, a staging Engine offers gacha-forge in Agents → Download Agents — the preview overlay read behind the channel gate. **Repository checks, in the workflow's own order**. Every step of Catalog validation passes locally except npm run test:security, which fails at scripts/tests/catalog-path-safety.regression.mjs where resolve("/tmp/package") gains a drive letter on Windows and join does not — unrelated to this PR, and green in the GitHub CI. - npm run check — pass (0 errors; the 68 warnings are pre-existing in other packages' src/) - node scripts/test-catalog-lanes.mjs — pass - node scripts/validate-package-locales.mjs — pass - node scripts/validate-catalog.mjs — pass: 36 packages (24 agents, 12 features); Preview overlay valid: 1 staging-only package(s) (gacha-forge) — hidden from stable users; lanes v2=36, v3=36 - git diff --check "origin/staging...HEAD" — empty (the three-dot form the workflow runs **The build is reproducible**. Re-running node scripts/build-gacha-forge-package.mjs over the committed bytes leaves the tree with zero changes; the artifact sha256 in all three preview lanes matches the committed zip (1,128,100 bytes). **Played, not just built.** The whole 1.4.x playtest line (60+ installs) ran in a staging Engine clone at the current staging tip, including from a phone over LAN: worlds created and deleted, both banners plus the seasonal box, chapters forged and played with their combat, farming with the full progression loop, the Shop buying potions and outfits, outfits minted under the author's directive and worn on the Home, the login event, the pass, and the tutorial path followed from a fresh world. The economy holes listed above were found by play, then fixed with regression gates that were each verified to fail with the bug reinstated. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package README gains a 1.5.0 section and the reworked-screens list, and both READMEs and the manifest description were rewritten to stop claiming worlds require lorebooks (a hand-written scenario is enough) and to describe the mode instead of name-dropping single features. ## UI evidence (if applicable) <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/828d1178-18c1-487d-9c12-3081d0a1c979" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/092ade76-0f77-4454-b76f-b90d953714c1" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/cf084ada-9d5a-400e-b566-e95f487cc512" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Gacha Forge supports creating games from world descriptions or lorebooks. * Generated experiences include worlds, characters, visual-novel chapters, battles, gear, and events. * The mode is available through Home navigation in staging. * **Documentation** * Updated Gacha Forge descriptions and release information to reflect the 1.5.0 experience. * Refreshed catalog and package details for the latest release. <!-- 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:01:50 +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#1063
No description provided.