def refuses.plan
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
888# whether a plan ends in a refusal
889def refuses.plan(pl: P.Plan) -> Bool:
890 P.Plan{_es, outcome} = pl
891 match outcome:
892 case P.Success{}:
893 False{}
894 case P.Refused{_why}:
895 True{}