[PR #1695] [MERGED] feat(gacha-forge): seasonal story events and limited rewards #1943

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

📋 Pull Request Information

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

Base: staging ← Head: feat/gacha-seasonal-story-events


📝 Commits (10+)

  • 90ad7e9 docs(gacha-forge): define seasonal story event scope
  • cb3bb0a feat(gacha-forge): add optional seasonal story events
  • 949182c build(gacha-forge): include seasonal event package archive
  • 37e4eee fix(gacha-forge): retire inactive seasonal progress safely
  • c1ca6b0 fix(gacha-forge): recover seasonal media and setup states
  • 44d9c31 fix(gacha-forge): refresh seasonal chapter archives
  • 9cf8aa7 test(gacha-forge): exercise installed seasonal event flows
  • 592b1b4 fix(gacha-forge): share seasonal story admission
  • 5bfd533 ci(gacha-forge): discover browser suites with native Bash
  • 9b9d0f0 fix(gacha-forge): preserve seasonal ledger and test failure bounds

📊 Changes

43 files changed (+5533 additions, -159 deletions)

View changed files

➕ .github/workflows/gacha-forge-browser.yml (+87 -0)
📝 .github/workflows/pull-request-checks.yml (+6 -0)
➕ artifacts/gacha-forge-1.18.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+9 -9)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+9 -9)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+9 -9)
📝 packages/gacha-forge/CHANGELOG.md (+27 -0)
📝 packages/gacha-forge/README.md (+13 -2)
📝 packages/gacha-forge/bundle-patches.json (+150 -0)
📝 packages/gacha-forge/client.js (+357 -18)
➕ packages/gacha-forge/docs/seasonal-story-events.md (+21 -0)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+1231 -38)
📝 packages/gacha-forge/src/animation-client.mjs (+11 -7)
📝 packages/gacha-forge/src/animation-server.mjs (+7 -2)
📝 packages/gacha-forge/src/audio-client.mjs (+4 -0)
📝 packages/gacha-forge/src/audio-prompts.mjs (+14 -2)

...and 23 more files

📄 Description

Pull request

Linked issue

Closes #1693

Owner: @SpicyMarinara / Codex. Separate from Formation combat PR #1696.

Why this change

Worlds need substantial optional events with their own limited run, cast, story, battles, media and rewards. Preparing an event's identity ahead of time should not write its plot against stale story context, and expiry or replay must not duplicate rewards or erase scenes the player already played.

What changed

  • Add opt-in Seasonal events beside compact Player choices in world setup and Story Continuity. Existing worlds remain opted out. The controls retain full touch targets and stay aligned when a heading wraps.
  • Persist one 21-local-calendar-day event window. Prepare its overview, known cast and bounded reward schedule before play; skip missed windows without generating a paid backlog. Failed preparation requires an explicit retry.
  • Write the event's confined ten-node story/combat chapter only when the player opts in at a main-story boundary. Recheck that boundary transactionally after generation; open events hold new main-story progress until completed, expired or disabled.
  • Reuse story narration, choices, artwork, chapter rendering, party selection, combat, verified server action replay and canonical memory. Use current authored Description, Personality, Backstory and Appearance and the event guest's full saved canon. Unowned/unseen pool entries are not familiar event cast.
  • Grant validated Funds, Insight, Aether, four-star characters or themed outfits transactionally once. Preserve played-scene replay after expiry or opt-out; deny new progress, rewards and paid scene starts when unavailable. A grant conflict rolls back progress and inventory together.
  • Reuse generated banner images, explicit animation recovery and audio controllers. The event soundtrack has its own cue and no summon/five-star unlock. Honor image/audio/animation settings and reduced motion. Fix the existing animation request allowlist to accept inert timezone metadata sent by the real client while still rejecting unknown fields.
  • Rebuild Gacha Forge 1.18.0 through its reversible source ledger, manifest, ZIP and catalog lanes. Preserve the existing banner box gacha and minigames.

Package and security impact

  • Package: gacha-forge 1.18.0. Existing Engine compatibility, capability API, permissions and entrypoints remain.
  • New package-owned story-event documents, with event plans/beats/combat using existing document kinds and progress storage. World deletion includes event metadata. Installation/update does not opt in, reset chapters or convert combat.
  • Rewards use fixed allowed kinds and bounded quantities; stored reward definitions are validated again before grant. Main-story boundary, live window, setting, node order, story revision, cached replay and verified combat outcomes are server-enforced.
  • Provider proof uses controlled local responses and synthetic content; no paid provider, physical-phone or personal-world claim.

Validation

  • Required npm run check, catalog lanes, package locales, full catalog validation, release notes and git diff --check: passed. Check reports zero errors and 812 existing warnings.
  • Focused seasonal domain proof: old-world defaults, bounded metadata, Warsaw DST across a 21-day window, concurrent preparation, deferred detailed generation, chapter-boundary rejection, a provider result racing a newly opened main chapter, opt-out, charge-once starts, verified battle requirement, concurrent once-only rewards, expiry archive and offline-gap handling passed.
  • Actual shipped SDK and HTTP proof completed all ten nodes including three deterministic battles, submitted real action logs to server replay, and verified current card/guest prompt fields, known-only overview input, stable four-star grant, outfit grant/rollback/replay, canonical event memory, stale-version rejection and animation timezone/unknown-key cases.
  • Existing player-choice (44 cases), memory integration, audio and animation regressions passed. Reversible rebuild covers every new maintained module. The final official builder rerun reproduced all 301 compared package/catalog files, including all 247 payloads and the 8,262,963-byte ZIP (5b8037067b8a2bae5ffa7c8d19ebdf1b8f3245eb5e49d8d61188835236111002). The published 1.17 ledger prefix is unchanged.
  • Independent actual-factory review repairs and regressions cover inactive global BIG-choice blockers, expiry/opt-out cleanup of an owned pending event fight, no paid unplayed animation after opt-out, cached-only played archive animation reuse, the banner-to-outfit opt-out race, one guarded expired-cache refresh, rejected fetch recovery and consistent 320-Aether fallback for unprepared optional outfits. Selected BIG-choice canon and ready outfit grants remain intact.
  • Earlier installed-package browser proof passed eight cases on the ed027948… archive: dark/light desktop and mobile landscape Chromium/WebKit, compact controls, persisted seasonal toggle, real SDK state/Events rail selection, banner, deferred Play, narration, expiry archive and reread. The unchanged 390px alignment assertions also pass with a wider font; four additional mobile Chromium/WebKit cases assert unequal heading text heights and line counts before checking aligned 44px targets and 24px visuals. PNGs and raw geometry JSON were inspected. Portrait proof covers underlying geometry only; the existing Landscape-only overlay remains. The geometry helper queries and measures the current group in one synchronous browser task so a concurrent state refresh cannot produce a detached-node snapshot; all size/alignment assertions and timeouts are unchanged. Original failures and traces are retained. The final clock-skew repair changes client expiry handling without changing layout; its current client regression and shipped SDK tests pass, while the final combined installed-browser replay remains a separate integration gate.
  • The real manager preserved ten exact synthetic save documents through integrity-checked 1.17.0 → the prior 0bf7677c… 1.18.0 candidate update, process restart, all-network-refused offline activation, uninstall and offline no-resurrection. Wrong expected hashes and corrupt archives were rejected; the offline client hash matches the new manifest. That lifecycle archive was tested on frozen compiled Engine 334c052d1904; no Engine rebuild or ordinary published-package claim.
  • The actual public file-backed persistence host rechecked the final service/adapter and proved a mid-outfit-grant conflict rolls back inventory and progress together, the rollback survives reopening storage, and a successful retry/replay grants only once. No real providers or personal worlds were used.
  • A final actual SDK admission regression proves main/Character Story versus event planning in both provider orderings through the existing shared generation queue. A queued denied planner spends no second provider request; cached-but-unopened Character Story admission is blocked, while completed cached rereading remains free.
  • Four Dottore findings were reproduced and repaired: cached inactive completions remain free while new progress is denied; long prepared music themes and saved briefs stay within 1,000 characters without another provider request; legacy memory survives optional source failures; replay excludes same-boundary side stories opened later or at unknown/equal times, including the actual bundled fallback. All 21 maintained Gacha Node suites pass, including 24 core and 40 integration cases plus seven actual bundled legacy replay cases. Two additional checkpoint controls resume old partial detail and overview work. The memory proof additionally preserves exact archived fingerprints/details/embeddings; only an overview with changed source sequence rebuilds, while later append reuses its prefix. Runtime opening metadata stays out of prompts and persisted identities.
  • A later cross-PR review reproduced a browser/server clock-skew expiry reload loop. Event responses now provide their authoritative time; the client reconciles expiry once, retains server live/archive state, and refreshes again at the real deadline. A handled-window guard bounds stale or missing-time responses. Three runnable client regressions cover skew, authoritative rollover, explicit retry and world/settings fencing.
  • Local CodeRabbit review found two valid issues (unprepared outfit fallback and rejected list fetch); both were traced and repaired. A later review found an unbounded test-provider wait, now bounded with gated-request cleanup; its deliberate failure reports within five seconds. Subsequent committed reviews completed with zero findings. The paired-control review also requested an explicit wrap witness; heading text heights and line counts are now asserted, and the final committed follow-up completed with zero findings. The final four-repair committed review and the later clock-skew committed review both completed with zero findings. The narrow browser workflow discovers existing seasonal/Formation suites with native Bash and runs the installed-package helper with at most two workers. It uploads PNG/geometry proof on success and retains failure traces.

Manual verification notes

  • Manually verify compact setup/Continuity controls, Events banners, expiry messages and archived Chapters in desktop and mobile views.
  • Manually verify generated image/animation/music quality with configured providers.
  • Manually install/update Gacha Forge through Download Agents and verify activation, restart, offline state and uninstall preservation.
  • Manually verify on a physical mobile device.

Documentation impact

Update the package README, 1.18.0 changelog and seasonal-story-event scope document. Runtime strings use semantic canonical English UI keys.

UI evidence and integration

The Gacha Forge feature browser check publishes a seven-day gacha-forge-browser-proof artifact with setup, compact Continuity controls, Events, story and archive PNGs. Fixtures contain synthetic content and controlled provider responses. Local proof additionally covers WebKit.

PR #1696 is intentionally separate and shares generated package/catalog outputs. After one lands, refresh and rebuild the other through the official builder rather than resolving generated hunks by hand.


🔄 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/1695 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gacha-seasonal-story-events` --- ### 📝 Commits (10+) - [`90ad7e9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/90ad7e97048c85018b8b9f2f32d706ebe1221c7b) docs(gacha-forge): define seasonal story event scope - [`cb3bb0a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cb3bb0a05acf1f83e39b3740323e88a6a79de852) feat(gacha-forge): add optional seasonal story events - [`949182c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/949182c3548f96e339f8d736bbe9f4d29e36045e) build(gacha-forge): include seasonal event package archive - [`37e4eee`](https://github.com/Pasta-Devs/Marinara-Agents/commit/37e4eee07eea85bbcf2ad7645be16fec98c7ce20) fix(gacha-forge): retire inactive seasonal progress safely - [`c1ca6b0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c1ca6b0d65f77704ba8aaf9d4a7017767c3c19cb) fix(gacha-forge): recover seasonal media and setup states - [`44d9c31`](https://github.com/Pasta-Devs/Marinara-Agents/commit/44d9c311db29b4bbf1b774aac540c518cb9d3a74) fix(gacha-forge): refresh seasonal chapter archives - [`9cf8aa7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9cf8aa7ba31fe307f6770be16f4e1deb3eb2fd57) test(gacha-forge): exercise installed seasonal event flows - [`592b1b4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/592b1b4e900d8a8de75a2f14c41df223488fc2e7) fix(gacha-forge): share seasonal story admission - [`5bfd533`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5bfd5335451dcc0aadafffc9bbbef5aab0842c7a) ci(gacha-forge): discover browser suites with native Bash - [`9b9d0f0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9b9d0f05422e078aa2837f2f45baf467911c15f6) fix(gacha-forge): preserve seasonal ledger and test failure bounds ### 📊 Changes **43 files changed** (+5533 additions, -159 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/gacha-forge-browser.yml` (+87 -0) 📝 `.github/workflows/pull-request-checks.yml` (+6 -0) ➕ `artifacts/gacha-forge-1.18.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+9 -9) 📝 `packages/gacha-forge/CHANGELOG.md` (+27 -0) 📝 `packages/gacha-forge/README.md` (+13 -2) 📝 `packages/gacha-forge/bundle-patches.json` (+150 -0) 📝 `packages/gacha-forge/client.js` (+357 -18) ➕ `packages/gacha-forge/docs/seasonal-story-events.md` (+21 -0) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+1231 -38) 📝 `packages/gacha-forge/src/animation-client.mjs` (+11 -7) 📝 `packages/gacha-forge/src/animation-server.mjs` (+7 -2) 📝 `packages/gacha-forge/src/audio-client.mjs` (+4 -0) 📝 `packages/gacha-forge/src/audio-prompts.mjs` (+14 -2) _...and 23 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1693 Owner: @SpicyMarinara / Codex. Separate from Formation combat PR #1696. ## Why this change Worlds need substantial optional events with their own limited run, cast, story, battles, media and rewards. Preparing an event's identity ahead of time should not write its plot against stale story context, and expiry or replay must not duplicate rewards or erase scenes the player already played. ## What changed - Add opt-in Seasonal events beside compact Player choices in world setup and Story Continuity. Existing worlds remain opted out. The controls retain full touch targets and stay aligned when a heading wraps. - Persist one 21-local-calendar-day event window. Prepare its overview, known cast and bounded reward schedule before play; skip missed windows without generating a paid backlog. Failed preparation requires an explicit retry. - Write the event's confined ten-node story/combat chapter only when the player opts in at a main-story boundary. Recheck that boundary transactionally after generation; open events hold new main-story progress until completed, expired or disabled. - Reuse story narration, choices, artwork, chapter rendering, party selection, combat, verified server action replay and canonical memory. Use current authored Description, Personality, Backstory and Appearance and the event guest's full saved canon. Unowned/unseen pool entries are not familiar event cast. - Grant validated Funds, Insight, Aether, four-star characters or themed outfits transactionally once. Preserve played-scene replay after expiry or opt-out; deny new progress, rewards and paid scene starts when unavailable. A grant conflict rolls back progress and inventory together. - Reuse generated banner images, explicit animation recovery and audio controllers. The event soundtrack has its own cue and no summon/five-star unlock. Honor image/audio/animation settings and reduced motion. Fix the existing animation request allowlist to accept inert timezone metadata sent by the real client while still rejecting unknown fields. - Rebuild Gacha Forge 1.18.0 through its reversible source ledger, manifest, ZIP and catalog lanes. Preserve the existing banner box gacha and minigames. ## Package and security impact - Package: `gacha-forge` 1.18.0. Existing Engine compatibility, capability API, permissions and entrypoints remain. - New package-owned `story-event` documents, with event plans/beats/combat using existing document kinds and progress storage. World deletion includes event metadata. Installation/update does not opt in, reset chapters or convert combat. - Rewards use fixed allowed kinds and bounded quantities; stored reward definitions are validated again before grant. Main-story boundary, live window, setting, node order, story revision, cached replay and verified combat outcomes are server-enforced. - Provider proof uses controlled local responses and synthetic content; no paid provider, physical-phone or personal-world claim. ## Validation - Required `npm run check`, catalog lanes, package locales, full catalog validation, release notes and `git diff --check`: passed. Check reports zero errors and 812 existing warnings. - Focused seasonal domain proof: old-world defaults, bounded metadata, Warsaw DST across a 21-day window, concurrent preparation, deferred detailed generation, chapter-boundary rejection, a provider result racing a newly opened main chapter, opt-out, charge-once starts, verified battle requirement, concurrent once-only rewards, expiry archive and offline-gap handling passed. - Actual shipped SDK and HTTP proof completed all ten nodes including three deterministic battles, submitted real action logs to server replay, and verified current card/guest prompt fields, known-only overview input, stable four-star grant, outfit grant/rollback/replay, canonical event memory, stale-version rejection and animation timezone/unknown-key cases. - Existing player-choice (44 cases), memory integration, audio and animation regressions passed. Reversible rebuild covers every new maintained module. The final official builder rerun reproduced all 301 compared package/catalog files, including all 247 payloads and the 8,262,963-byte ZIP (`5b8037067b8a2bae5ffa7c8d19ebdf1b8f3245eb5e49d8d61188835236111002`). The published 1.17 ledger prefix is unchanged. - Independent actual-factory review repairs and regressions cover inactive global BIG-choice blockers, expiry/opt-out cleanup of an owned pending event fight, no paid unplayed animation after opt-out, cached-only played archive animation reuse, the banner-to-outfit opt-out race, one guarded expired-cache refresh, rejected fetch recovery and consistent 320-Aether fallback for unprepared optional outfits. Selected BIG-choice canon and ready outfit grants remain intact. - Earlier installed-package browser proof passed eight cases on the `ed027948…` archive: dark/light desktop and mobile landscape Chromium/WebKit, compact controls, persisted seasonal toggle, real SDK state/Events rail selection, banner, deferred Play, narration, expiry archive and reread. The unchanged 390px alignment assertions also pass with a wider font; four additional mobile Chromium/WebKit cases assert unequal heading text heights and line counts before checking aligned 44px targets and 24px visuals. PNGs and raw geometry JSON were inspected. Portrait proof covers underlying geometry only; the existing Landscape-only overlay remains. The geometry helper queries and measures the current group in one synchronous browser task so a concurrent state refresh cannot produce a detached-node snapshot; all size/alignment assertions and timeouts are unchanged. Original failures and traces are retained. The final clock-skew repair changes client expiry handling without changing layout; its current client regression and shipped SDK tests pass, while the final combined installed-browser replay remains a separate integration gate. - The real manager preserved ten exact synthetic save documents through integrity-checked 1.17.0 → the prior `0bf7677c…` 1.18.0 candidate update, process restart, all-network-refused offline activation, uninstall and offline no-resurrection. Wrong expected hashes and corrupt archives were rejected; the offline client hash matches the new manifest. That lifecycle archive was tested on frozen compiled Engine `334c052d1904`; no Engine rebuild or ordinary published-package claim. - The actual public file-backed persistence host rechecked the final service/adapter and proved a mid-outfit-grant conflict rolls back inventory and progress together, the rollback survives reopening storage, and a successful retry/replay grants only once. No real providers or personal worlds were used. - A final actual SDK admission regression proves main/Character Story versus event planning in both provider orderings through the existing shared generation queue. A queued denied planner spends no second provider request; cached-but-unopened Character Story admission is blocked, while completed cached rereading remains free. - Four Dottore findings were reproduced and repaired: cached inactive completions remain free while new progress is denied; long prepared music themes and saved briefs stay within 1,000 characters without another provider request; legacy memory survives optional source failures; replay excludes same-boundary side stories opened later or at unknown/equal times, including the actual bundled fallback. All 21 maintained Gacha Node suites pass, including 24 core and 40 integration cases plus seven actual bundled legacy replay cases. Two additional checkpoint controls resume old partial detail and overview work. The memory proof additionally preserves exact archived fingerprints/details/embeddings; only an overview with changed source sequence rebuilds, while later append reuses its prefix. Runtime opening metadata stays out of prompts and persisted identities. - A later cross-PR review reproduced a browser/server clock-skew expiry reload loop. Event responses now provide their authoritative time; the client reconciles expiry once, retains server live/archive state, and refreshes again at the real deadline. A handled-window guard bounds stale or missing-time responses. Three runnable client regressions cover skew, authoritative rollover, explicit retry and world/settings fencing. - Local CodeRabbit review found two valid issues (unprepared outfit fallback and rejected list fetch); both were traced and repaired. A later review found an unbounded test-provider wait, now bounded with gated-request cleanup; its deliberate failure reports within five seconds. Subsequent committed reviews completed with zero findings. The paired-control review also requested an explicit wrap witness; heading text heights and line counts are now asserted, and the final committed follow-up completed with zero findings. The final four-repair committed review and the later clock-skew committed review both completed with zero findings. The narrow browser workflow discovers existing seasonal/Formation suites with native Bash and runs the installed-package helper with at most two workers. It uploads PNG/geometry proof on success and retains failure traces. ### Manual verification notes - [ ] Manually verify compact setup/Continuity controls, Events banners, expiry messages and archived Chapters in desktop and mobile views. - [ ] Manually verify generated image/animation/music quality with configured providers. - [ ] Manually install/update Gacha Forge through Download Agents and verify activation, restart, offline state and uninstall preservation. - [ ] Manually verify on a physical mobile device. ## Documentation impact Update the package README, 1.18.0 changelog and seasonal-story-event scope document. Runtime strings use semantic canonical English UI keys. ## UI evidence and integration The Gacha Forge feature browser check publishes a seven-day `gacha-forge-browser-proof` artifact with setup, compact Continuity controls, Events, story and archive PNGs. Fixtures contain synthetic content and controlled provider responses. Local proof additionally covers WebKit. PR #1696 is intentionally separate and shares generated package/catalog outputs. After one lands, refresh and rebuild the other through the official builder rather than resolving generated hunks by hand. --- <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:11 +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#1943
No description provided.