def outcome.of
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
729# how the command ends: the first refusal, or success
730def outcome.of(vs: List<&2, Verdict>) -> P.Outcome:
731 match vs:
732 case []:
733 P.Success{}
734 case v <> t:
735 match v:
736 case Stop{why}:
737 P.Refused{why}
738 case _:
739 outcome.of(t)