Typed references
Typed references reduce fragile, handwritten Jinja paths.One answer
Useanswer() when a source step has one relevant submission:
workflow.answers.
All answers from a fan-out step
Useoutputs() when every submission matters:
workflow.outputs.
Identity-preserving submissions
Some mechanisms need both identity and answers:outputs() instead.
Fallback references
A branch may produce either an original or revised artifact:Conditions and branching
Conditions are serializable predicates. A step runs only when itswhen
condition evaluates true after all condition dependencies settle.
Answer equality
if_(condition) returns complementary then and otherwise conditions:
Boolean composition
all_of and any_of require at least one argument.
Aggregate predicates
Stable chance
(random_seed, key) pair. The stored seed
defaults to the instance ID. Pass coordinator.launch(..., random_seed="replicate-1")
to reproduce randomization across new instances. Reevaluation and process restart
cannot change the draw. This does not control LLM sampling.
Completion policies and quorum
The default completion policy isall_assigned().
For early fan-in, use quorum:
superseded. Already accepted responses finish their effects before the step
settles; quorum is a minimum rather than a strict response cap. Ordinary after
dependencies then proceed, and votes.completed is true. A quorum larger than
the number of matching participants is rejected during launch.
Quorum does not presently express weighted votes, role-specific quotas, or
deadline-based partial completion.