[PR #1823] [MERGED] feat(gacha-forge): 1.27.0 Hard and Very Hard for finished story events #1985

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

📋 Pull Request Information

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

Base: staging ← Head: feat/gacha-forge-event-difficulty


📝 Commits (3)

  • be7e61b feat(gacha-forge): 1.27.0 Hard and Very Hard for finished story events (#1822)
  • d01a687 test(gacha-forge): give the event-end test a margin a slow runner can't miss
  • f675be3 Merge remote-tracking branch 'origin/staging' into feat/gacha-forge-event-difficulty

📊 Changes

26 files changed (+1396 additions, -210 deletions)

View changed files

➕ artifacts/gacha-forge-1.27.0.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 (+6 -0)
📝 packages/gacha-forge/README.md (+8 -0)
📝 packages/gacha-forge/bundle-patches.json (+22 -0)
📝 packages/gacha-forge/client.js (+89 -18)
📝 packages/gacha-forge/docs/seasonal-story-events.md (+1 -1)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+153 -39)
📝 packages/gacha-forge/src/seasonal-events-adapter.mjs (+58 -11)
📝 packages/gacha-forge/src/seasonal-events-client.mjs (+77 -14)
📝 packages/gacha-forge/src/seasonal-events-en.mjs (+8 -0)
📝 packages/gacha-forge/src/seasonal-events-server.mjs (+95 -28)
📝 tests/gacha-forge-event-choice.regression.mjs (+234 -15)
📝 tests/gacha-forge-seasonal-admission.regression.mjs (+71 -1)

...and 6 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1822

Why this change

After finishing a seasonal story event, the maintainer tried to play its fights on Hard (#1813). Story events have only ever been Normal-only, so 1.26.3 (#1814) removed pills that could never start a fight. Asked whether events should get real Hard and Very Hard, the maintainer answered "Yes, add real Hard". A finished event now keeps something to play, as a main chapter does.

What changed

Gacha Forge 1.27.0:

  • Unlocks: Hard opens once the event is done (Normal 10/10). Very Hard opens once every Hard fight is won, using the plan's real fight count. These are main chapters' rules, with the bundle's own clamp reused.
  • The fights: a Hard or Very Hard map lists only the event's fights, as a main chapter's does.
    • Each is the fight Normal saved, scaled like a main chapter numbered after the event, with the same difficulty multipliers.
    • No fight is designed, so the fight itself makes no model call.
  • Cost and pay: 5 Vigor per fight. Each first win on a difficulty pays exactly what a main chapter's Hard or Very Hard fight pays: Funds, Aether, rank XP and the clear counts. A cleared fight on a difficulty is refused at load and at start, so it pays once.
  • Progress: progress["event-N"] becomes {normal, hard, veryhard}, and every write merges. Saves since 1.18.0 need no migration.
  • Refusals: a locked difficulty is refused with locked-difficulty at load, start and complete; it is never clamped into a different fight. The 1.26.3 refusal screen shows it with Retry and Back.
  • When: Hard and Very Hard play only while the event runs and Seasonal events is on, like Normal's new progress. When the event ends, its progress stays visible and its fights close.
  • UI:
    • In Chapters, a finished event shows its N, H and V marks, and Enter event while its Hard fights are open.
    • Events → Story events counts Hard and Very Hard wins.
    • The event map's difficulty pills are back for finished events.
  • Fixes along the way:
    • An event's Normal map no longer lists a chapter's Funds, Aether and rank, which an event never paid.
    • A played event's stored map opens without waiting behind a scene being written elsewhere.
    • Hard stays closed after an event ends, even when the refresh at its end is dropped.
  • Release: manifest, What's new (1.26.3 pinned), CHANGELOG, README, docs/seasonal-story-events.md, catalog and artifact.
  • Tests: new and extended cases in the event choice, battle and admission regressions, plus the seasonal-events browser spec. Each regression fails with its fix undone.

Choices made for the maintainer to confirm

  • Pay mirrors main chapters' Hard and Very Hard fights exactly. Winning an event fight raises no bond, as a main fight does not either.
  • Hard and Very Hard close when the event ends or Seasonal events is turned off; the progress stays.
  • In a world with no signature weapon yet, the shared party builder may still ask the model for one before a Hard event fight, exactly as main Hard does.
  • The N, H and V marks show completion by colour. The Events pane gives the same counts as text.

Internal review

  • Design critic: before implementation, the critic checked every main-chapter rule the spec mirrors against the bundles. It found three gaps, all fixed: stale Hard availability right after the last Normal node, a bad-request guard that would have refused every Hard fight, and the Normal map's false pay.
  • Reviewers: two reviewers found four low problems. The two confirmed ones are fixed with regressions: the stored-map regression, and Hard closing when the end refresh is dropped.

Package and security impact

  • Affected package IDs: gacha-forge (1.27.0).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: event progress gains hard and veryhard counts. Older saves read them as 0.

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

Agent-side checks, on the tree merged with current staging:

  • node --test tests/gacha-forge-*.regression.mjs: 603 tests pass, including the bundle rebuild proof.
  • npm run check, both locale validators, test-catalog-lanes and git diff --check are clean.
  • Rebuilds are byte-identical.
  • The seasonal-events browser spec passes on the real Engine.

Please verify by hand:

  • Manually verify, with a finished story event that is still running, that its map offers Hard, and a Hard fight starts, plays and pays once.
  • Manually verify Very Hard opens only after every Hard fight is won.
  • Manually verify a Hard fight in a Formation world and in a Classic world.
  • Manually verify that after the event ends (or with Seasonal events off), Hard closes but its marks stay in Chapters.

🤖 Generated with Claude Code


🔄 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/1823 **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:** `feat/gacha-forge-event-difficulty` --- ### 📝 Commits (3) - [`be7e61b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/be7e61b800f8892cb977b5b166204442be4155b6) feat(gacha-forge): 1.27.0 Hard and Very Hard for finished story events (#1822) - [`d01a687`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d01a6878e5f87eb8f07c3a37e981d227486876cc) test(gacha-forge): give the event-end test a margin a slow runner can't miss - [`f675be3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f675be3f22d1cced8d5832ec5bafee3e05b487eb) Merge remote-tracking branch 'origin/staging' into feat/gacha-forge-event-difficulty ### 📊 Changes **26 files changed** (+1396 additions, -210 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.27.0.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` (+6 -0) 📝 `packages/gacha-forge/README.md` (+8 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+22 -0) 📝 `packages/gacha-forge/client.js` (+89 -18) 📝 `packages/gacha-forge/docs/seasonal-story-events.md` (+1 -1) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+153 -39) 📝 `packages/gacha-forge/src/seasonal-events-adapter.mjs` (+58 -11) 📝 `packages/gacha-forge/src/seasonal-events-client.mjs` (+77 -14) 📝 `packages/gacha-forge/src/seasonal-events-en.mjs` (+8 -0) 📝 `packages/gacha-forge/src/seasonal-events-server.mjs` (+95 -28) 📝 `tests/gacha-forge-event-choice.regression.mjs` (+234 -15) 📝 `tests/gacha-forge-seasonal-admission.regression.mjs` (+71 -1) _...and 6 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1822 ## Why this change After finishing a seasonal story event, the maintainer tried to play its fights on Hard (#1813). Story events have only ever been Normal-only, so 1.26.3 (#1814) removed pills that could never start a fight. Asked whether events should get real Hard and Very Hard, the maintainer answered "Yes, add real Hard". A finished event now keeps something to play, as a main chapter does. ## What changed Gacha Forge 1.27.0: - **Unlocks:** Hard opens once the event is done (Normal 10/10). Very Hard opens once every Hard fight is won, using the plan's real fight count. These are main chapters' rules, with the bundle's own clamp reused. - **The fights:** a Hard or Very Hard map lists only the event's fights, as a main chapter's does. - Each is the fight Normal saved, scaled like a main chapter numbered after the event, with the same difficulty multipliers. - No fight is designed, so the fight itself makes no model call. - **Cost and pay:** 5 Vigor per fight. Each first win on a difficulty pays exactly what a main chapter's Hard or Very Hard fight pays: Funds, Aether, rank XP and the clear counts. A cleared fight on a difficulty is refused at load and at start, so it pays once. - **Progress:** `progress["event-N"]` becomes `{normal, hard, veryhard}`, and every write merges. Saves since 1.18.0 need no migration. - **Refusals:** a locked difficulty is refused with `locked-difficulty` at load, start and complete; it is never clamped into a different fight. The 1.26.3 refusal screen shows it with Retry and Back. - **When:** Hard and Very Hard play only while the event runs and Seasonal events is on, like Normal's new progress. When the event ends, its progress stays visible and its fights close. - **UI:** - In Chapters, a finished event shows its N, H and V marks, and **Enter event** while its Hard fights are open. - Events → Story events counts Hard and Very Hard wins. - The event map's difficulty pills are back for finished events. - **Fixes along the way:** - An event's Normal map no longer lists a chapter's Funds, Aether and rank, which an event never paid. - A played event's stored map opens without waiting behind a scene being written elsewhere. - Hard stays closed after an event ends, even when the refresh at its end is dropped. - **Release:** manifest, What's new (1.26.3 pinned), CHANGELOG, README, `docs/seasonal-story-events.md`, catalog and artifact. - **Tests:** new and extended cases in the event choice, battle and admission regressions, plus the seasonal-events browser spec. Each regression fails with its fix undone. ### Choices made for the maintainer to confirm - Pay mirrors main chapters' Hard and Very Hard fights exactly. Winning an event fight raises no bond, as a main fight does not either. - Hard and Very Hard close when the event ends or Seasonal events is turned off; the progress stays. - In a world with no signature weapon yet, the shared party builder may still ask the model for one before a Hard event fight, exactly as main Hard does. - The N, H and V marks show completion by colour. The Events pane gives the same counts as text. ### Internal review - **Design critic:** before implementation, the critic checked every main-chapter rule the spec mirrors against the bundles. It found three gaps, all fixed: stale Hard availability right after the last Normal node, a bad-request guard that would have refused every Hard fight, and the Normal map's false pay. - **Reviewers:** two reviewers found four low problems. The two confirmed ones are fixed with regressions: the stored-map regression, and Hard closing when the end refresh is dropped. ## Package and security impact - Affected package IDs: `gacha-forge` (1.27.0). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: event progress gains `hard` and `veryhard` counts. Older saves read them as 0. ## 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 Agent-side checks, on the tree merged with current `staging`: - `node --test tests/gacha-forge-*.regression.mjs`: 603 tests pass, including the bundle rebuild proof. - `npm run check`, both locale validators, `test-catalog-lanes` and `git diff --check` are clean. - Rebuilds are byte-identical. - The seasonal-events browser spec passes on the real Engine. Please verify by hand: - [ ] Manually verify, with a finished story event that is still running, that its map offers Hard, and a Hard fight starts, plays and pays once. - [ ] Manually verify Very Hard opens only after every Hard fight is won. - [ ] Manually verify a Hard fight in a Formation world and in a Classic world. - [ ] Manually verify that after the event ends (or with Seasonal events off), Hard closes but its marks stay in Chapters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:31 +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#1985
No description provided.