edges: [
{ from: "fetch_a", to: "join" },
{ from: "fetch_b", to: "join" },
{ from: "join", to: "write" },
]edges = [
{"from": "fetch_a", "to": "join"},
{"from": "fetch_b", "to": "join"},
{"from": "join", "to": "write"},
]The two rules
| Rule | Why |
|---|---|
| At least two incoming edges | Merging one thing is not merging. |
At most one next out | A merge is a junction, not another fan-out. |
Its output is a marker
{{steps.join.output.merged}} // true"{{steps.join.output.merged}}" # TrueRead the branches, not the merge
It does not gather anything. Steps after it read the upstream steps directly — {{steps.fetch_a.output.…}} — which is why it carries nothing but a marker.
It is how a fan-out ends
Several edges from one step on the same branch run in parallel; a merge is where they come back to one path. Without it each branch would end on its own.
After a condition, mind what exists
A branch not taken leaves its steps unrun, so a template reading one of them reads nothing. For a value available either way, compute it before the split or after the merge from a step both paths passed through.