Skip to content

Several sources on one port resolve to a single latest value

A merge point in a workflow is not a collector. A port fed by three edges is still one port, and what a node reads there is one value.

The rule

Normative: this is the rule
  1. A port fed by several edges MUST receive exactly one value, and MUST NOT receive an array of the values.
  2. The value MUST be the one produced by the most recent execution among the sources.
  3. A source carrying a later execution order MUST win.
  4. A source carrying an execution order MUST win over one carrying none.
  5. Where neither carries one, the source node identifier MUST decide, lexicographically.
  6. A collision between sources on one port MUST be reported as a warning, and MUST NOT fail the run.

What it means

A port fed by several edges never accumulates an array; it resolves to exactly one value, and the resolution has a strict order of preference. A source that completed later wins over one that completed earlier. Only when neither source recorded a completion order at all does the tie-break fall to the source node's own identifier — and that fallback is a genuine lexicographic sort, not the order the edges happen to be drawn in a workflow: which edge was drawn first has no bearing on which source wins.

Example

Two sources, node_early and node_late, both wire into the same port. Each completes with its own execution order recorded.

Resolved by completion orderresolved
{"data": "second"}

The same port, fed by node_a and node_b, neither of which recorded a completion order — and the edge from node_b is drawn first in the workflow, ahead of node_a's:

Resolved by source node identifierresolved
{"data": "from_a"}

node_a wins on the alphabetical sort even though its edge was declared second.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · DATA-2 · changed in spec 1.0