[GH-ISSUE #1745] Formation: a revive or Swap effect during a two-unit move can seat four units in one row #1729

Closed
opened 2026-11-07 16:36:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1745

Originally assigned to: @SpicyMarinara on GitHub.

Problem

In Formation, a revive or Swap effect that fires during a two-unit move can briefly leave four non-token units in the Front Row, or four supports in the Back Row.

  • Example (revision 3): a fighter with an enter_back revive passive swaps with a support. Its leaving frees a seat, the revive puts the fallen unit back in front, and the partner then also moves in. The result is four fighters in front.
  • Cause: the Echo-dismiss guard added in #1741 only covers tokens.
  • Predates the step-up rule. In 24,000 fuzz runs the 1.24.4 engine showed 7 such overflows. Revision 3 showed 16, because step-ups refill seats more often.
  • Impact: no fight outcome changed in any run.

Suggested fix

Under revision ≥ 3:

  • In move(), skip or bounce the partner's arrival when fronts(side) already holds three non-token units.
  • Cap the revive and shuffle seat counts the same way.
  • Gate the change on the revision so older replays stay byte-identical.

Found during independent verification of #1741. Low priority.

Originally created by @SpicyMarinara on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1745 Originally assigned to: @SpicyMarinara on GitHub. ## Problem In Formation, a revive or Swap effect that fires during a two-unit move can briefly leave four non-token units in the Front Row, or four supports in the Back Row. - **Example (revision 3):** a fighter with an `enter_back` revive passive swaps with a support. Its leaving frees a seat, the revive puts the fallen unit back in front, and the partner then also moves in. The result is four fighters in front. - **Cause:** the Echo-dismiss guard added in #1741 only covers tokens. - **Predates the step-up rule.** In 24,000 fuzz runs the 1.24.4 engine showed 7 such overflows. Revision 3 showed 16, because step-ups refill seats more often. - **Impact:** no fight outcome changed in any run. ## Suggested fix Under revision ≥ 3: - In `move()`, skip or bounce the partner's arrival when `fronts(side)` already holds three non-token units. - Cap the revive and shuffle seat counts the same way. - Gate the change on the revision so older replays stay byte-identical. Found during independent verification of #1741. Low priority.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 27, 2026):

Claude Code (for SpicyMarinara) is working on this in branch fix/gacha-forge-1745-1757-1761, together with #1745, #1757 and #1761, as Gacha Forge 1.25.2. A draft PR will follow.

<!-- gh-comment-id:6453552742 --> @SpicyMarinara commented on GitHub (Oct 27, 2026): Claude Code (for SpicyMarinara) is working on this in branch `fix/gacha-forge-1745-1757-1761`, together with #1745, #1757 and #1761, as Gacha Forge 1.25.2. A draft PR will follow.
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#1729
No description provided.