DAG-specific validation and rules for @cook-step/graph with cycle detection and multiplicity constraints