yasuki_core.engine.rules.log.cancel_and_log#

cancel_and_log(game, log)[source]#

Cancel the pending decision and, on success, record it. A decision that cannot be cancelled raises out of flow.cancel before anything is recorded, so the tape holds only accepted inputs.

Raise RuntimeError if no decision is pending.