type Decision
import cswap-bend-cli@0.1.0.0/policy/types.bend as Typesimport Base
119# `Switch.rec` is the winner's ranking time (reset or recovery) when the mode
120# ranks by one; `bar` is the no-return bar that applied to this pick.
121type Decision is Data:
122 NoSwitch{reason: Reason, detail: String}
123 Switch{to: Nat, trigger: Trigger, reason: String, headroom: Nat, mode: Mode, rec: Maybe<&2, Nat>, bar: Maybe<&2, Nat>}