loop_back is a value on a ForEach node and a bare signal everywhere else
The rule
- On a ForEach node the reserved
loop_backinput MUST carry the item result of the round just ended, from the tail job whose followed loopback edge created the job (SG-8), standing in for an explicititem_resultinput wherever that is absent. - On every other node type the reserved
loop_backinput MUST only signal that the loop goes round again (SG-7): the value is delivered on the port and read by nobody, since a node with no iteration state has nothing to fold it into. - Where a node type declares its own port for the value, the reserved injection MUST NOT apply.
What it means
loop_back is not one signal with two names. On a ForEach node it carries
data, from the tail job whose loopback edge started the new round (SG-8): whatever arrives on it stands in for the round's item_result when
that port is not otherwise filled, so a loop body that only wires its result
back to loop_back still folds it in. On every other node type the same
port carries nothing readable — a value delivered there is read by nobody,
because a node with no iteration state has nothing to fold a result into. A
node type that wants the value declares its own port under that name, and
that declaration is exactly what stops the reserved, dataless injection.
Example
A ForEach node mid-loop, resumed with a value on loop_back instead of on
item_result:
{"loop_back": "loopback_result"}{"current_item": "b"}The loop advances exactly as it would have if the same value had arrived on
item_result — loop_back supplied the round's result, not a bare
signal to go round again.