pub fn validate_workflow(
workflow: &WorkflowDefinition,
) -> Result<(), WorkflowError>Expand description
Validate a parsed workflow definition for structural correctness.
Checks:
- At least one step exists
- No duplicate step IDs
- All template step references point to earlier steps