Every edge carries a unique id
The rule
Normative: this is the rule
- Every edge in a workflow MUST carry an
id, and edgeids MUST be unique within the workflow. - An edge with no
idMUST be refused withR3_EDGE_MISSING_ID, and a repeatedidwithR3_EDGE_DUPLICATE_ID. - In either case the save MUST NOT take effect.
- An implementation MAY mint an id for an edge that lacks one when it reads an already-stored definition.
- That tolerance never relaxes the requirement at save.
What it means
The duplicate check reads the id field itself, not what the edges
connect. Two edges that wire completely different ports still collide if
they carry the same id: sharing that one string is enough, independent of
R13's separate check for edges that connect the same pair of ports twice. An
edge with no id at all is refused the same way, located by its position in
the edges array since it never had an id to name.
Example
Two edges wired to different ports on the target node, sharing one id:
[
{ "id": "e1", "source": "s", "target": "t", "targetHandle": "t-input-a" },
{ "id": "e1", "source": "s", "target": "t", "targetHandle": "t-input-b" }
]An edge carrying no id field at all:
{ "source": "s", "target": "t" }Why
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · R3 · changed in spec 1.0