[PR #1838] [MERGED] fix(gacha-forge): let characters equip their designated weapons #1992

Closed
opened 2026-11-07 16:38:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/1835-classic-signature-weapons


📝 Commits (5)

  • d24c604 test(gacha-forge): reproduce designated weapon type rejection
  • 586f451 fix(gacha-forge): honor designated weapon ownership when equipping
  • 39cf6d5 test(gacha-forge): exercise the selected weapon in mobile landscape
  • 9a12f9d fix(gacha-forge): keep Gear actions reachable in short landscape views
  • 78e9ec0 build(gacha-forge): regenerate the Gear layout fix from the current baseline

📊 Changes

18 files changed (+402 additions, -58 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+2 -1)
➕ artifacts/gacha-forge-1.27.3.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 (+5 -0)
📝 packages/gacha-forge/bundle-patches.json (+42 -0)
📝 packages/gacha-forge/client.js (+3 -3)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+21 -3)
➕ packages/gacha-forge/src/weapon-eligibility.mjs (+16 -0)
📝 tests/gacha-forge-bundle-rebuild.regression.mjs (+1 -0)
📝 tests/gacha-forge-upgrade-assists.regression.mjs (+76 -4)
➕ tests/package-gacha-forge-signature-weapons.e2e.ts (+188 -0)
📝 tests/playwright.gacha-forge.config.ts (+1 -0)

📄 Description

Pull request

Linked issue

Closes #1835

Why this change

Equipment selection and the Equip action rejected a character's designated weapon when its saved weapon type differed from the character's role. The signature-skill logic recognized the owner, but the weapon was filtered out and could not be equipped. Browser verification also reproduced a clipped Choose button on short mobile landscape screens.

What changed

  • Share the existing signature-owner rules between the equipment list, Equip action and granted skill: a saved owner ID takes precedence; older weapons use a trimmed, case-insensitive character name. A designated weapon is available to its owner regardless of its saved type. Other characters retain normal type requirements.
  • Keep Gear detail cards at their content height so the panel scrolls and Choose/Change actions remain clickable in short landscape views.
  • Rebuild Gacha Forge 1.27.3, its manifest, deterministic ZIP, catalog lanes, release notes and What's new. The branch is based on staging after #1837 and preserves that prompt update.
  • Add SDK regression cases, a desktop/mobile browser Equip flow, and registration of the browser proof in the Gacha Forge CI suite.

Package and security impact

  • Affected package IDs: gacha-forge, 1.27.2 → 1.27.3.
  • Engine compatibility impact: unchanged; Engine >=2.5.1 <4.0.0 and capability API 1.385.
  • New or changed permissions/entrypoints: none.
  • Existing saved weapons work without regeneration or a data migration. Package update/restart follows the existing lifecycle; uninstall behavior is unchanged.
  • Other packages' catalog entries, artifacts and release notes are unchanged.

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

Tested revision: 78e9ec0a20c4b08b7bc31d56ef3fd9eebbe3187f, based on staging d663126ef62c6dc92537e567b8e7d037a04905cf.

Agent-run local validation:

  • npm ci and npm run check: passed. The repository's existing lint warnings remain; there are no lint errors.
  • Catalog lanes, package locales, catalog/archive validation, release-notes regression and diff whitespace checks: passed.
  • All 610 Gacha Forge regression cases passed with no failures or skips, including bundle replay and SDK equipment cases for Classic and Formation.
  • The equipment regression failed against the original package before the fix. It now covers ID-first ownership, legacy names, unrelated wrong types, generic weapons, active owner skills, unequip, unchanged wallet, unowned/cross-run/wrong-kind rejection, free-only occupancy and a competing save.
  • Desktop Chromium, mobile landscape Chromium and iPhone-sized landscape WebKit browser flows passed (3/3), with normal pointer clicks and no force/skip/timeout increase. The browser uses the rebuilt client and actual SDK /roster, /unit and /equip handlers over an isolated fixture. It verifies the saved equipment, active signature skill, unrelated weapon exclusion and zero model requests.
  • Repeated official rebuild is byte-identical; ZIP payloads match the manifest and checkout; non-Gacha catalog rows and generatedAt are unchanged.
  • The complete authored-change and final generated-output CodeRabbit reviews reported no code findings. An earlier workflow reminder about running baseline commands is satisfied by the checks above; the human checklist boxes remain unchecked.

Manual verification notes

  • Manually verify an affected saved Classic character can see and equip its designated weapon after updating Gacha Forge.
  • Manually verify the standard Download Agents update/restart flow and uninstall cleanup in a real user installation. Browser testing installs the artifact into an isolated Engine fixture, not through the Download Agents UI.
  • Browser proof uses Engine checkout 4bd94f0a6 and synthetic records. No physical phone, reporter save, paid provider, or destructive world operation was used.

Documentation impact

Package release notes and What's new describe both fixes. No Engine docs or translations changed.

UI evidence (if applicable)

Successful desktop and mobile screenshots are saved locally under test-results/package-gacha-forge-signat-8dcb0-on-despite-a-different-type-{desktop-chromium,mobile-chromium}/classic-designated-weapon-equipped.png. The Gacha Forge browser workflow now runs the same test and uploads browser proof artifacts. Hosted checks and Dottore review have not yet completed for this final revision.


🔄 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/1838 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/1835-classic-signature-weapons` --- ### 📝 Commits (5) - [`d24c604`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d24c6041857f6f088797b25e528e28e250605414) test(gacha-forge): reproduce designated weapon type rejection - [`586f451`](https://github.com/Pasta-Devs/Marinara-Agents/commit/586f45187425b5267a36b3b0f5cdfe9222159f72) fix(gacha-forge): honor designated weapon ownership when equipping - [`39cf6d5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/39cf6d5eea86daf0e605f36c85f483853265abcd) test(gacha-forge): exercise the selected weapon in mobile landscape - [`9a12f9d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9a12f9d2a64f184d1b98e207585b330ef9c278cc) fix(gacha-forge): keep Gear actions reachable in short landscape views - [`78e9ec0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/78e9ec0a20c4b08b7bc31d56ef3fd9eebbe3187f) build(gacha-forge): regenerate the Gear layout fix from the current baseline ### 📊 Changes **18 files changed** (+402 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+2 -1) ➕ `artifacts/gacha-forge-1.27.3.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` (+5 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+42 -0) 📝 `packages/gacha-forge/client.js` (+3 -3) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+21 -3) ➕ `packages/gacha-forge/src/weapon-eligibility.mjs` (+16 -0) 📝 `tests/gacha-forge-bundle-rebuild.regression.mjs` (+1 -0) 📝 `tests/gacha-forge-upgrade-assists.regression.mjs` (+76 -4) ➕ `tests/package-gacha-forge-signature-weapons.e2e.ts` (+188 -0) 📝 `tests/playwright.gacha-forge.config.ts` (+1 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #1835 ## Why this change Equipment selection and the Equip action rejected a character's designated weapon when its saved weapon type differed from the character's role. The signature-skill logic recognized the owner, but the weapon was filtered out and could not be equipped. Browser verification also reproduced a clipped Choose button on short mobile landscape screens. ## What changed - Share the existing signature-owner rules between the equipment list, Equip action and granted skill: a saved owner ID takes precedence; older weapons use a trimmed, case-insensitive character name. A designated weapon is available to its owner regardless of its saved type. Other characters retain normal type requirements. - Keep Gear detail cards at their content height so the panel scrolls and Choose/Change actions remain clickable in short landscape views. - Rebuild Gacha Forge 1.27.3, its manifest, deterministic ZIP, catalog lanes, release notes and What's new. The branch is based on staging after #1837 and preserves that prompt update. - Add SDK regression cases, a desktop/mobile browser Equip flow, and registration of the browser proof in the Gacha Forge CI suite. ## Package and security impact - Affected package IDs: gacha-forge, 1.27.2 → 1.27.3. - Engine compatibility impact: unchanged; Engine >=2.5.1 <4.0.0 and capability API 1.385. - New or changed permissions/entrypoints: none. - Existing saved weapons work without regeneration or a data migration. Package update/restart follows the existing lifecycle; uninstall behavior is unchanged. - Other packages' catalog entries, artifacts and release notes are unchanged. ## 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` Tested revision: `78e9ec0a20c4b08b7bc31d56ef3fd9eebbe3187f`, based on staging `d663126ef62c6dc92537e567b8e7d037a04905cf`. Agent-run local validation: - `npm ci` and `npm run check`: passed. The repository's existing lint warnings remain; there are no lint errors. - Catalog lanes, package locales, catalog/archive validation, release-notes regression and diff whitespace checks: passed. - All 610 Gacha Forge regression cases passed with no failures or skips, including bundle replay and SDK equipment cases for Classic and Formation. - The equipment regression failed against the original package before the fix. It now covers ID-first ownership, legacy names, unrelated wrong types, generic weapons, active owner skills, unequip, unchanged wallet, unowned/cross-run/wrong-kind rejection, free-only occupancy and a competing save. - Desktop Chromium, mobile landscape Chromium and iPhone-sized landscape WebKit browser flows passed (3/3), with normal pointer clicks and no force/skip/timeout increase. The browser uses the rebuilt client and actual SDK /roster, /unit and /equip handlers over an isolated fixture. It verifies the saved equipment, active signature skill, unrelated weapon exclusion and zero model requests. - Repeated official rebuild is byte-identical; ZIP payloads match the manifest and checkout; non-Gacha catalog rows and generatedAt are unchanged. - The complete authored-change and final generated-output CodeRabbit reviews reported no code findings. An earlier workflow reminder about running baseline commands is satisfied by the checks above; the human checklist boxes remain unchecked. ### Manual verification notes - Manually verify an affected saved Classic character can see and equip its designated weapon after updating Gacha Forge. - Manually verify the standard Download Agents update/restart flow and uninstall cleanup in a real user installation. Browser testing installs the artifact into an isolated Engine fixture, not through the Download Agents UI. - Browser proof uses Engine checkout 4bd94f0a6 and synthetic records. No physical phone, reporter save, paid provider, or destructive world operation was used. ## Documentation impact Package release notes and What's new describe both fixes. No Engine docs or translations changed. ## UI evidence (if applicable) Successful desktop and mobile screenshots are saved locally under `test-results/package-gacha-forge-signat-8dcb0-on-despite-a-different-type-{desktop-chromium,mobile-chromium}/classic-designated-weapon-equipped.png`. The Gacha Forge browser workflow now runs the same test and uploads browser proof artifacts. Hosted checks and Dottore review have not yet completed for this final revision. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:35 +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#1992
No description provided.