[PR #904] [MERGED] feat(gacha-forge): 1.8.2 — buffs and debuffs name their stat, and four fixes players reported #1186

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 148b1ce feat(gacha-forge): 1.8.2 — buffs and debuffs name their stat, and four fixes players reported

📊 Changes

12 files changed (+371 additions, -339 deletions)

View changed files

➕ artifacts/gacha-forge-1.8.2.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/gacha-forge/CHANGELOG.md (+8 -0)
📝 packages/gacha-forge/README.md (+2 -0)
📝 packages/gacha-forge/client.js (+200 -200)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+114 -110)

📄 Description

Linked issue

Closes #903

Why this change

staging carries Gacha Forge 1.8.1. One design problem a player named, and four bugs reported by
other players — one of them a loop that pays a model call and an image per unit on every visit.

Every unit buffed or nerfed the same way. Measured on three real worlds: 22 of 24 passives were ATK
up, DEF down or a shield, and 24 of 24 characters carried one. In the fight a buff was ATK up and
nothing else and a debuff DEF down and nothing else, and the prompts that write units gave the model
thirteen bare effect names.

An outfit rotation with a Theme-library theme minted itself forever. Its document was only created in
the invented-theme branch; with a library theme every outfit was painted, the save read doc.revision
on null and threw, nothing was stored, and the featured banner's clock ran it again on every visit.

What changed

  • The stat axis (buffStat in the simulator): buff takes atk | def | spd | crit, debuff takes
    def | atk | spd, as an optional stat; absent means what it always meant, and the validator does not
    write the field for the default. The unit's effective multipliers are raise × drop, raises pile up to
    their ceiling (crit in points), drops hold one stack per source down to their floor, SPD moves the turn
    order, a cleanse and Radiance lift every lowered stat, an aura on DEF/SPD/crit stands the whole fight.
    12 of 12 fights with legacy kits are byte-identical on the old and the new simulator, so nothing
    already minted, and no difficulty calibrated on it, moved. The sheet names the stat, the fight draws SPD
    and crit chips, the power score places each stat on the three shares it already summed (SPD by theory,
    one knob), and a Facet's line reads "Your SPD buff…".
  • The prompts: every prompt that writes a unit or an enemy carries the effect gloss, a passive gloss
    (what each effect does on which trigger), a target gloss, the granted-trigger gloss (off the simulator's
    own cooldown), the power bands written once and the secondary stats derived from their table — the
    featured prompt never offered them. The "already in this cast" list travels with each kit, the featured
    call gets a census of the world's effects and what was never used, and the example passive is no longer
    a buff. In a pipe row the stat rides the effect token (buff:spd); in JSON it is stat.
  • Outfit rotation: the document exists whoever wrote the theme; the save creates or updates, is
    checked and retried once; a mint that throws twice in a row stops until the server restarts.
  • Scenes: the reader's line is kept per scene in the tab's sessionStorage; a reload resumes at it
    silently, and a chosen exit, completion and "Start over" clear it.
  • Connections notice: failureOf() reads the Engine's status and error; world creation and Settings say
    it and write it inside the dropdown, which opened as an empty strip.
  • Record parser: a stray stat= column in an ability row is lifted out; an empty record block is
    skipped. Both came from a real forge's ledger, and the probe's fixture now carries both.
  • Theme library import: the file is weighed before FileReader touches it (2 MB), a set over 2,000
    rows is refused on both sides, control characters and bidi overrides are stripped, idempotently.

Generated outputs

packages/gacha-forge/client.js, server.mjs, manifest.json, the artifact zip, the catalog family and
the release-notes sidecars were re-derived by node scripts/build-gacha-forge-package.mjs from the
committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the tree
clean (same zip hash, same diff).

Package and security impact

  • capabilityApi stays at 1.10; engine range, permissions, contribution slots, assets,
    builtAgainst and restartRequired are unchanged. The only manifest field that moved is version,
    verified by diffing against the staging manifest with the hash lines filtered out.
  • Routes: 113, none added, none removed.
  • No new external services. The reader's line uses sessionStorage (one small key per scene, removed
    when the scene ends).
  • The Theme library's import was reviewed as untrusted input: JSON.parse only, a whitelist of two
    string fields cut to 48 and 2,000 characters, ids minted by the server, a library cap of 200, Map/Set
    for collisions, every render site escaped, and an export that carries titles and descriptions only. This
    release adds the size caps and the control-character strip.
  • Payload: client.js 1.41 MB (1,405,969 → 1,412,419 bytes), server.mjs 478 KB → 484 KB
    (477,646 → 483,868), artifact 7.42 MiB → 7.44 MiB (7,783,772 → 7,796,444).

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.8.2 is not published, so it cannot be installed through the
Engine's download path. The stat axis and the prompt work were installed by sideload into a staging
Engine (2.4.5, c64efcb6) and a new world was minted and measured with them; the four fixes that
followed are covered by the package's probes, not by a second install.

Manual verification notes

  • Branch hygiene. Branched from the current origin/staging (646eaa39); git ls-files --eol | grep -c w/crlf → 0; git diff --check "origin/staging...HEAD" clean; the build is reproducible.
  • Repo checks run locally, in the workflow's order (19 steps after npm ci), 18 green: npm run check
    (0 errors), typecheck:packages, the SwarmUI, Memory Nag, Pixelforge and Beholder regressions,
    test-catalog-lanes, ui-translation-retention, validate-package-locales,
    validate-package-locale-keys, validate-catalog (38 packages, 24 agents, 14 features),
    catalog-generatedat-determinism, catalog-release-notes, the World Maps and Long-Term Memory UI
    contracts, validate-pr-triage, test-owner-approval. ⚠️ npm run test:security fails on Windows for
    a reason unrelated to this change (catalog-path-safety.regression.mjs expects a POSIX path and gets
    D:\tmp\…); it fails identically on a clean staging checkout.
  • Package's own suite: eleven probes plus a 132-script bench compared run to run, all green. Every
    change carries a check verified failing with the bug reintroduced. The stat axis is measured by running
    the fight: for each of the seven stat effects, as an Ultimate and as a passive, the sheet's figure
    against the status chip the fight moves, and only that chip; an aura that stands with no clock; a
    cleanse lifting a lowered ATK.
  • Measured in a real world minted with this build: six different Ultimates in six characters (the same
    cast had debuff three times before), passives on the old axis 3 of 5 against 5 of 5, and buff:def,
    debuff:spd and debuff:atk named; cleanse and energy appeared for the first time.

Documentation impact

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

packages/gacha-forge/README.md gains the 1.8.2 paragraph; packages/gacha-forge/CHANGELOG.md gains
1.8.2. The repository README is unchanged.

UI evidence (if applicable)

Summary by CodeRabbit

  • New Features

    • Buffs and debuffs now identify the affected stat, including attack, defense, speed, and critical chance.
    • New characters and enemies distribute relevant effects more appropriately among cast members.
  • Bug Fixes

    • Improved outfit rotation saving and retry handling.
    • Preserved scene lines after tab reloads.
    • Added clearer connection-list error messages.
    • Improved theme-set import validation and cleanup.
    • Prevented unnecessary retries during world creation.
  • Release

    • Updated Gacha Forge to version 1.8.2.

🔄 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/904 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/17/2026 **Status:** ✅ Merged **Merged:** 9/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/gacha-forge-1.8.2` --- ### 📝 Commits (1) - [`148b1ce`](https://github.com/Pasta-Devs/Marinara-Agents/commit/148b1cec266490faa3de841cb917b10855c1b6e5) feat(gacha-forge): 1.8.2 — buffs and debuffs name their stat, and four fixes players reported ### 📊 Changes **12 files changed** (+371 additions, -339 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.8.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/gacha-forge/CHANGELOG.md` (+8 -0) 📝 `packages/gacha-forge/README.md` (+2 -0) 📝 `packages/gacha-forge/client.js` (+200 -200) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+114 -110) </details> ### 📄 Description ## Linked issue Closes #903 ## Why this change `staging` carries Gacha Forge **1.8.1**. One design problem a player named, and four bugs reported by other players — one of them a loop that pays a model call and an image per unit on every visit. **Every unit buffed or nerfed the same way.** Measured on three real worlds: 22 of 24 passives were ATK up, DEF down or a shield, and 24 of 24 characters carried one. In the fight a `buff` was ATK up and nothing else and a `debuff` DEF down and nothing else, and the prompts that write units gave the model thirteen bare effect names. **An outfit rotation with a Theme-library theme minted itself forever.** Its document was only created in the invented-theme branch; with a library theme every outfit was painted, the save read `doc.revision` on `null` and threw, nothing was stored, and the featured banner's clock ran it again on every visit. ## What changed - **The stat axis** (`buffStat` in the simulator): `buff` takes `atk | def | spd | crit`, `debuff` takes `def | atk | spd`, as an optional `stat`; absent means what it always meant, and the validator does not write the field for the default. The unit's effective multipliers are raise × drop, raises pile up to their ceiling (crit in points), drops hold one stack per source down to their floor, SPD moves the turn order, a cleanse and Radiance lift every lowered stat, an aura on DEF/SPD/crit stands the whole fight. **12 of 12 fights with legacy kits are byte-identical on the old and the new simulator**, so nothing already minted, and no difficulty calibrated on it, moved. The sheet names the stat, the fight draws SPD and crit chips, the power score places each stat on the three shares it already summed (SPD by theory, one knob), and a Facet's line reads "Your SPD buff…". - **The prompts**: every prompt that writes a unit or an enemy carries the effect gloss, a passive gloss (what each effect does on which trigger), a target gloss, the granted-trigger gloss (off the simulator's own cooldown), the power bands written once and the secondary stats derived from their table — the featured prompt never offered them. The "already in this cast" list travels with each kit, the featured call gets a census of the world's effects and what was never used, and the example passive is no longer a `buff`. In a pipe row the stat rides the effect token (`buff:spd`); in JSON it is `stat`. - **Outfit rotation**: the document exists whoever wrote the theme; the save creates or updates, is checked and retried once; a mint that throws twice in a row stops until the server restarts. - **Scenes**: the reader's line is kept per scene in the tab's `sessionStorage`; a reload resumes at it silently, and a chosen exit, completion and "Start over" clear it. - **Connections notice**: `failureOf()` reads the Engine's status and error; world creation and Settings say it and write it inside the dropdown, which opened as an empty strip. - **Record parser**: a stray `stat=` column in an ability row is lifted out; an empty record block is skipped. Both came from a real forge's ledger, and the probe's fixture now carries both. - **Theme library import**: the file is weighed before `FileReader` touches it (2 MB), a set over 2,000 rows is refused on both sides, control characters and bidi overrides are stripped, idempotently. ### Generated outputs `packages/gacha-forge/client.js`, `server.mjs`, `manifest.json`, the artifact zip, the catalog family and the release-notes sidecars were **re-derived** by `node scripts/build-gacha-forge-package.mjs` from the committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the tree clean (same zip hash, same diff). ## Package and security impact - **`capabilityApi` stays at 1.10**; `engine` range, permissions, contribution slots, assets, `builtAgainst` and `restartRequired` are unchanged. The only manifest field that moved is `version`, verified by diffing against the `staging` manifest with the hash lines filtered out. - **Routes: 113, none added, none removed.** - **No new external services.** The reader's line uses `sessionStorage` (one small key per scene, removed when the scene ends). - **The Theme library's import was reviewed as untrusted input**: `JSON.parse` only, a whitelist of two string fields cut to 48 and 2,000 characters, ids minted by the server, a library cap of 200, `Map`/`Set` for collisions, every render site escaped, and an export that carries titles and descriptions only. This release adds the size caps and the control-character strip. - **Payload:** `client.js` 1.41 MB (1,405,969 → 1,412,419 bytes), `server.mjs` 478 KB → 484 KB (477,646 → 483,868), artifact 7.42 MiB → 7.44 MiB (7,783,772 → 7,796,444). ## 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` > ⚠️ **Why the fourth box is unticked.** 1.8.2 is not published, so it cannot be installed *through* the > Engine's download path. The stat axis and the prompt work were installed by sideload into a `staging` > Engine (2.4.5, `c64efcb6`) and a new world was minted and measured with them; the four fixes that > followed are covered by the package's probes, not by a second install. ### Manual verification notes - **Branch hygiene.** Branched from the current `origin/staging` (`646eaa39`); `git ls-files --eol | grep -c w/crlf` → **0**; `git diff --check "origin/staging...HEAD"` clean; the build is reproducible. - **Repo checks run locally, in the workflow's order (19 steps after `npm ci`), 18 green:** `npm run check` (0 errors), `typecheck:packages`, the SwarmUI, Memory Nag, Pixelforge and Beholder regressions, `test-catalog-lanes`, `ui-translation-retention`, `validate-package-locales`, `validate-package-locale-keys`, `validate-catalog` (38 packages, 24 agents, 14 features), `catalog-generatedat-determinism`, `catalog-release-notes`, the World Maps and Long-Term Memory UI contracts, `validate-pr-triage`, `test-owner-approval`. ⚠️ `npm run test:security` fails on Windows for a reason unrelated to this change (`catalog-path-safety.regression.mjs` expects a POSIX path and gets `D:\tmp\…`); it fails identically on a clean `staging` checkout. - **Package's own suite:** eleven probes plus a 132-script bench compared run to run, all green. Every change carries a check verified failing with the bug reintroduced. The stat axis is measured by running the fight: for each of the seven stat effects, as an Ultimate and as a passive, the sheet's figure against the status chip the fight moves, and only that chip; an aura that stands with no clock; a cleanse lifting a lowered ATK. - **Measured in a real world minted with this build:** six different Ultimates in six characters (the same cast had `debuff` three times before), passives on the old axis 3 of 5 against 5 of 5, and `buff:def`, `debuff:spd` and `debuff:atk` named; `cleanse` and `energy` appeared for the first time. ## Documentation impact - [x] Updated this README catalog and package guidance - [ ] No documentation changes needed - [ ] Updated linked Marinara Engine documentation `packages/gacha-forge/README.md` gains the 1.8.2 paragraph; `packages/gacha-forge/CHANGELOG.md` gains 1.8.2. The repository README is unchanged. ## UI evidence (if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Buffs and debuffs now identify the affected stat, including attack, defense, speed, and critical chance. - New characters and enemies distribute relevant effects more appropriately among cast members. - **Bug Fixes** - Improved outfit rotation saving and retry handling. - Preserved scene lines after tab reloads. - Added clearer connection-list error messages. - Improved theme-set import validation and cleanup. - Prevented unnecessary retries during world creation. - **Release** - Updated Gacha Forge to version 1.8.2. <!-- 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:04:54 +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#1186
No description provided.