def seal
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
741# a plan that refuses has no effect at all; its reason is how it ends
742def seal(es: List<&2, P.Effect>, outcome: P.Outcome) -> P.Plan:
743 match outcome:
744 case P.Success{}:
745 P.Plan{es, P.Success{}}
746 case P.Refused{why}:
747 P.Plan{[], P.Refused{why}}