def seal
import ezx@1.11.0.0/src/add/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
594# a plan that refuses has no effect at all; its reason is how it ends
595def seal(es: List<&2, P.Effect>, outcome: P.Outcome) -> P.Plan:
596 match outcome:
597 case P.Success{}:
598 P.Plan{es, P.Success{}}
599 case P.Refused{why}:
600 P.Plan{[], P.Refused{why}}