yasuki_core.engine.rules.flow.cancel#

cancel(game)[source]#

Back out of the pending decision, undoing the action that raised it.

A Recruit’s steps are cancellable, since nothing is committed until the payment is answered — no gold spent, no producer bowed, the card still in its province. Cancelling a payment drops its deferred ResolveRecruit; cancelling an Invest amount drops the choice before the recruit is even announced.

Raise RuntimeError if no decision is pending, or ValueError if the pending decision cannot be cancelled.