Skip to main content
This chapter continues the workflow manual.

Typed references

Typed references reduce fragile, handwritten Jinja paths.

One answer

Use answer() when a source step has one relevant submission:
This renders a path under workflow.answers.

All answers from a fan-out step

Use outputs() when every submission matters:
This renders a list of values under workflow.outputs.

Identity-preserving submissions

Some mechanisms need both identity and answers:
The rendered structure is conceptually:
Use this only when identity is genuinely required. Anonymous synthesis should usually consume outputs() instead.

Fallback references

A branch may produce either an original or revised artifact:
The fallback is evaluated during survey rendering. It does not execute Python at workflow runtime.

Conditions and branching

Conditions are serializable predicates. A step runs only when its when 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

Chance is deterministic for one (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 is all_assigned(). For early fan-in, use quorum:
Once two submissions complete, outstanding unaccepted work items become 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.