def build
import bendvy-ecs-core@0.1.0.4/schedule.bend as Scheduleimport Base
56# Validate that each System id occurs in the supplied catalog and appears at most
57# once in steps. Return Invalid with owners otherwise. Condition slots and catalog
58# provenance are trusted setup here; this is not a scheduler conflict analysis.
59def build(~S: Data,~C: Type,~R: Type,~E: Data,~H: Type,+namespace: U32,+name: String,+steps: List<&2,Step>,catalog: List<&2,U32>,owners: H) -> Build<S,C,R,E,H>:
60 build_checked(~S,~C,~R,~E,~H,valid(steps,catalog,[]),namespace,name,steps,owners)