--- id: R3 family: GR-VAL level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-val/r3 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # R3 — Every edge carries a unique id *GR-VAL (Part I) · level: core · profiles: storage-api · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. Every edge in a workflow MUST carry an `id`, and edge `id`s MUST be unique within the workflow. > > 2. An edge with no `id` MUST be refused with `R3_EDGE_MISSING_ID`, and a repeated `id` with `R3_EDGE_DUPLICATE_ID`. > > 3. In either case the save MUST NOT take effect. > > 4. An implementation MAY mint an id for an edge that lacks one when it reads an already-stored definition. > > 5. 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`: ```json title="Two edges over different ports, one id repeated" verdict="refused" [ { "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: ```json title="An edge with no id" verdict="refused" { "source": "s", "target": "t" } ``` ## Why Recorded under [OPEN-5](https://flowdrop.io/spec/rulings/open-5), [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: R2 - Referenced by: R2 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.