[PR #1710] [MERGED] fix(gacha-forge): explain banner animation failures safely #1703

Closed
opened 2026-10-27 06:05:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-banner-animation-diagnostics


📝 Commits (10+)

  • 0360754 chore: start banner animation diagnostics
  • 2513895 fix(gacha-forge): retain safe banner animation diagnostics
  • cd1d7c3 fix(gacha-forge): explain invalid video URL failures
  • 77ca415 fix(gacha-forge): classify invalid video content URLs safely
  • e876ed4 Merge commit '7d92f5183c' into fix/gacha-banner-animation-diagnostics
  • c3a10d3 Merge commit '9d5efd802b' into fix/gacha-banner-animation-diagnostics
  • 8160c57 fix(gacha): publish safe banner animation diagnostics
  • 339faaa ci(gacha): include animation diagnostics in browser proofs
  • 61600e6 ci(gacha): partition core and audio browser coverage
  • 80a4947 ci(gacha): allow the audio fixtures local provider

📊 Changes

20 files changed (+527 additions, -110 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+16 -5)
📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/gacha-forge-1.21.1.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/README.md (+6 -0)
📝 packages/gacha-forge/bundle-patches.json (+10 -0)
📝 packages/gacha-forge/client.js (+28 -9)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+57 -20)
📝 packages/gacha-forge/src/animation-client.mjs (+19 -8)
📝 packages/gacha-forge/src/animation-en.mjs (+8 -0)
📝 packages/gacha-forge/src/animation-server.mjs (+57 -20)
➕ tests/gacha-forge-animation-diagnostics.regression.mjs (+232 -0)
📝 tests/package-gacha-forge-audio.e2e.ts (+41 -1)

📄 Description

Linked issue

Closes #1713. Refs #1706. Related Engine video URL fix: Marinara-Engine#8338, already merged.

Why this change

Banner animation failures currently collapse into “Banner animation unavailable,” leaving the player without a useful next step. Show safe recovery guidance for missing source images, connection setup, provider failures, unreadable responses and local storage failures.

Issue #1713 tracks the completed failure-visibility work separately from the unresolved dispatch report in #1706. Mari’s original Seedance 2.5/OpenRouter “Vidya” failure still needs a real-provider retest. No paid provider requests or user data were used for this change.

What changed

  • Render canonical recovery messages and allowlisted HTTP status numbers. Discard raw provider response bodies, private URLs and credentials from displayed or persisted diagnostics.
  • Classify failures committing a valid returned clip as storage errors. Save safe failure details across reopening; pending/failed attempts require explicit retry and failed replacements retain the previous saved clip.
  • Publish Gacha Forge 1.21.1 through the official builder. Preserve the published 1.21.0 archive and existing artwork, proactive-message and generation-budget behavior.
  • Run the complete audio/browser file in CI. Separate the unchanged 40 core cases and 48 audio cases into independent jobs, with unchanged assertions and 15-minute limits.

Package and security impact

  • Package: gacha-forge; capability API 1.385, inherited from 1.21.0.
  • The audio CI branch enables the existing loopback-provider fixture flag for its synthetic local endpoint.
  • Permissions, entrypoints and existing routes are unchanged. Failure response/status fields are additive; existing markers and clips remain readable.
  • Normal package update/restart behavior applies. World saves remain after uninstall.
  • Artifact SHA-256: 8db4b8cd90fad81283238214363ad78185d60d49c56d26aa8b321020f59f1d97 (8,685,844 bytes).

Validation

Completed automated proof:

  • Final-head hosted checks passed: all 7 required contexts, 95/95 catalog/gate commands, and 87 browser cases passed with 1 intentional skip (core 39 + 1 skip; audio 48). Both browser jobs checked out Engine staging c5a3368936ad5d56f0f87516943c26334cdf6d79.

  • Genuine Dottore verification at 3cace3ab is Viable, With Notes, with 0 defects and 0 notes; the confirmed storage finding is resolved.

  • Current follow-up: npm run check passed with 0 errors and 812 existing warnings. Diagnostics/native filesystem failures, existing animations, bundle rebuild, catalog/lane/locale/release-note and diff checks passed. The broader 59-suite Gacha run passed at 61600e69, before the bounded server-only storage repair.

  • Official no-op rebuild was byte-identical: 265 declared payloads, exact archive members, package and catalog bytes. Historical catalog archives were Git/hash-verified through temporary hardlinks; published 1.21.0 bytes and patch history are unchanged.

  • API 1.385 installed UI: 15/15 focused animation cases across desktop Chromium, mobile Chromium and WebKit, including dark/light diagnostics. Complete hosted-project audio file: 48/48, 4.1 minutes with one worker. These results carry through the backend follow-up by verified identical executable client and English bytes.

  • API 1.385 real manager: install 1.21.0 → update → fresh offline activation → uninstall → fresh offline activation passed. All 13 save records, including artwork unlocks, proactive pacing, conversations and Formation data, survived; checksum/corrupt-archive controls passed.

  • Supplemental API 1.386 public-runtime test, containing the merged Engine URL fix: synthetic Seedance requests proved relative polling, CDN downloads without the API key, safe HTTP 400/503 and invalid-response errors, restart without automatic resubmission, explicit retry, and retained clip bytes. Fresh native rename collisions now return and persist storage, with no second request after reopening. Native filesystem and one-shot ENOSPC controls reproduce the prior classification defect.

  • Local CodeRabbit: the full package and focused CI reviews completed with 0 findings. The final storage/CI repair review also completed with 0 findings. Dottore’s confirmed storage-classification LOW was repaired with a bounded commit-phase flag; independent repair review passed. Binary archive integrity was verified separately.

  • All 5,371 files in the leased Engine compiled-output inventory remained unchanged. Browser dependency caches stayed untouched; fixture servers were stopped.

If even the failure-marker write cannot reach disk, the earlier pending marker still prevents automatic retry; the detailed reason itself is best effort until storage works again.

Human verification remains unchecked:

  • Manually retry Vidya/Seedance 2.5 after updating Engine and Gacha Forge, and report the visible safe status if generation still fails.
  • Manually verify saved clip playback and retry on a physical iPhone.
  • Read and verify the package guidance and release notes.

Documentation impact

Updated the package README and 1.21.1 changelog entry. Generated catalog notes come from that changelog.

UI evidence

Final hosted captures and traces: audio proof, core proof. Local browser proof uses emulation; it does not establish physical-device or paid-provider behavior. Hosted jobs use an actual Marinara Engine staging checkout.


🔄 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/1710 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-banner-animation-diagnostics` --- ### 📝 Commits (10+) - [`0360754`](https://github.com/Pasta-Devs/Marinara-Agents/commit/03607544fce8e52d0f9f00f01fdf23f92dd36abe) chore: start banner animation diagnostics - [`2513895`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2513895c029dd7eaea7ce68ea581cd64b3119692) fix(gacha-forge): retain safe banner animation diagnostics - [`cd1d7c3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cd1d7c320deac506933a16201fca4f420fd38182) fix(gacha-forge): explain invalid video URL failures - [`77ca415`](https://github.com/Pasta-Devs/Marinara-Agents/commit/77ca4154bee15e23b9394d34bb3c1cce6e3afc03) fix(gacha-forge): classify invalid video content URLs safely - [`e876ed4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e876ed484673ba2953d2583c240dba972215ae45) Merge commit '7d92f5183c6c9d339a9a04c2f2c0c31acaee37ae' into fix/gacha-banner-animation-diagnostics - [`c3a10d3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c3a10d3a1719c06369b2c9db3b0c8f8b49952410) Merge commit '9d5efd802bb5f6d722b1dc6654b5e3330fca06e9' into fix/gacha-banner-animation-diagnostics - [`8160c57`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8160c57cd0294e0bbe0615680ee398b0929b499f) fix(gacha): publish safe banner animation diagnostics - [`339faaa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/339faaae4fe5f0dde82d7a7e232f308d7a630a94) ci(gacha): include animation diagnostics in browser proofs - [`61600e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/61600e697f2799b25eb6abc5ab90e43355331c74) ci(gacha): partition core and audio browser coverage - [`80a4947`](https://github.com/Pasta-Devs/Marinara-Agents/commit/80a4947c856feac97651ff4252b57f287efce8ec) ci(gacha): allow the audio fixtures local provider ### 📊 Changes **20 files changed** (+527 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+16 -5) 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/gacha-forge-1.21.1.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/README.md` (+6 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+10 -0) 📝 `packages/gacha-forge/client.js` (+28 -9) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+57 -20) 📝 `packages/gacha-forge/src/animation-client.mjs` (+19 -8) 📝 `packages/gacha-forge/src/animation-en.mjs` (+8 -0) 📝 `packages/gacha-forge/src/animation-server.mjs` (+57 -20) ➕ `tests/gacha-forge-animation-diagnostics.regression.mjs` (+232 -0) 📝 `tests/package-gacha-forge-audio.e2e.ts` (+41 -1) </details> ### 📄 Description ## Linked issue Closes #1713. Refs #1706. Related Engine video URL fix: [Marinara-Engine#8338](https://github.com/Pasta-Devs/Marinara-Engine/pull/8338), already merged. ## Why this change Banner animation failures currently collapse into “Banner animation unavailable,” leaving the player without a useful next step. Show safe recovery guidance for missing source images, connection setup, provider failures, unreadable responses and local storage failures. Issue #1713 tracks the completed failure-visibility work separately from the unresolved dispatch report in #1706. Mari’s original Seedance 2.5/OpenRouter “Vidya” failure still needs a real-provider retest. No paid provider requests or user data were used for this change. ## What changed - Render canonical recovery messages and allowlisted HTTP status numbers. Discard raw provider response bodies, private URLs and credentials from displayed or persisted diagnostics. - Classify failures committing a valid returned clip as storage errors. Save safe failure details across reopening; pending/failed attempts require explicit retry and failed replacements retain the previous saved clip. - Publish Gacha Forge **1.21.1** through the official builder. Preserve the published 1.21.0 archive and existing artwork, proactive-message and generation-budget behavior. - Run the complete audio/browser file in CI. Separate the unchanged 40 core cases and 48 audio cases into independent jobs, with unchanged assertions and 15-minute limits. ## Package and security impact - Package: `gacha-forge`; capability API **1.385**, inherited from 1.21.0. - The audio CI branch enables the existing loopback-provider fixture flag for its synthetic local endpoint. - Permissions, entrypoints and existing routes are unchanged. Failure response/status fields are additive; existing markers and clips remain readable. - Normal package update/restart behavior applies. World saves remain after uninstall. - Artifact SHA-256: `8db4b8cd90fad81283238214363ad78185d60d49c56d26aa8b321020f59f1d97` (8,685,844 bytes). ## Validation Completed automated proof: - Final-head hosted checks passed: all **7 required contexts**, **95/95 catalog/gate commands**, and **87 browser cases passed with 1 intentional skip** (core 39 + 1 skip; audio 48). Both browser jobs checked out Engine staging `c5a3368936ad5d56f0f87516943c26334cdf6d79`. - Genuine Dottore verification at `3cace3ab` is **Viable, With Notes**, with **0 defects and 0 notes**; the confirmed storage finding is resolved. - Current follow-up: `npm run check` passed with 0 errors and 812 existing warnings. Diagnostics/native filesystem failures, existing animations, bundle rebuild, catalog/lane/locale/release-note and diff checks passed. The broader **59-suite Gacha run** passed at `61600e69`, before the bounded server-only storage repair. - Official no-op rebuild was byte-identical: **265 declared payloads**, exact archive members, package and catalog bytes. Historical catalog archives were Git/hash-verified through temporary hardlinks; published 1.21.0 bytes and patch history are unchanged. - API 1.385 installed UI: **15/15** focused animation cases across desktop Chromium, mobile Chromium and WebKit, including dark/light diagnostics. Complete hosted-project audio file: **48/48**, 4.1 minutes with one worker. These results carry through the backend follow-up by verified identical executable client and English bytes. - API 1.385 real manager: install 1.21.0 → update → fresh offline activation → uninstall → fresh offline activation passed. All **13 save records**, including artwork unlocks, proactive pacing, conversations and Formation data, survived; checksum/corrupt-archive controls passed. - Supplemental API 1.386 public-runtime test, containing the merged Engine URL fix: synthetic Seedance requests proved relative polling, CDN downloads without the API key, safe HTTP 400/503 and invalid-response errors, restart without automatic resubmission, explicit retry, and retained clip bytes. Fresh native rename collisions now return and persist `storage`, with no second request after reopening. Native filesystem and one-shot ENOSPC controls reproduce the prior classification defect. - Local CodeRabbit: the full package and focused CI reviews completed with **0 findings**. The final storage/CI repair review also completed with **0 findings**. Dottore’s confirmed storage-classification LOW was repaired with a bounded commit-phase flag; independent repair review passed. Binary archive integrity was verified separately. - All 5,371 files in the leased Engine compiled-output inventory remained unchanged. Browser dependency caches stayed untouched; fixture servers were stopped. If even the failure-marker write cannot reach disk, the earlier pending marker still prevents automatic retry; the detailed reason itself is best effort until storage works again. Human verification remains unchecked: - [ ] Manually retry Vidya/Seedance 2.5 after updating Engine and Gacha Forge, and report the visible safe status if generation still fails. - [ ] Manually verify saved clip playback and retry on a physical iPhone. - [ ] Read and verify the package guidance and release notes. ## Documentation impact Updated the package README and 1.21.1 changelog entry. Generated catalog notes come from that changelog. ## UI evidence Final hosted captures and traces: [audio proof](https://github.com/Pasta-Devs/Marinara-Agents/actions/runs/40252703931/artifacts/12621710933), [core proof](https://github.com/Pasta-Devs/Marinara-Agents/actions/runs/40252703931/artifacts/12621865233). Local browser proof uses emulation; it does not establish physical-device or paid-provider behavior. Hosted jobs use an actual Marinara Engine staging checkout. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:05:59 +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#1703
No description provided.