Prohibit cycles in imperative workflows