defineRecipe
Purpose and behavior
Section titled “Purpose and behavior”Parse and validate a local YAML recipe and compile it into a Workflow. Format 1 keeps strings literal; format 2 adds typed scalar inputs and direct dependency references; format 3 adds structured inputs, conditions, callbacks, loops, decisions and isolated tasks. The engine borrows the supplied sandbox: its caller owns integration and cleanup. Isolated tasks own their separate resources. Workflow retries, cancellation and usage accounting apply.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”sourceRequiredstringYAML 1.2 text in recipe format 1 (literal) or 2 (typed inputs and explicit references), bounded to 1 MiB and 1,000 tasks. Unknown fields, unsupported YAML constructs, invalid graphs and references are rejected before execution.bindingsRequiredMixedRecipeBindingsOpen sandbox and optional agent registry borrowed by every recipe task. No resource is allocated or closed by defineRecipe(); the caller keeps ownership.

