Validates the structural configuration of an in-turn or durable ForEach / While loop
operation (mutual exclusion of action / steps / subAgent / prompt, non-empty steps[],
unique step.id, JSON-object step.outputMapping, and step.condition syntax, roots, and
prior-step references steps.<prevId>).
Shared by ValidateTaskGraphSpec and BaseAgent so both engines enforce one identical contract.
Validates the structural configuration of an in-turn or durable
ForEach/Whileloop operation (mutual exclusion ofaction/steps/subAgent/prompt, non-emptysteps[], uniquestep.id, JSON-objectstep.outputMapping, andstep.conditionsyntax, roots, and prior-step referencessteps.<prevId>).Shared by
ValidateTaskGraphSpecandBaseAgentso both engines enforce one identical contract.