--- id: EDGE-1 family: GR-EDGE level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-edge/edge-1 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # EDGE-1 — A handle encodes the node, the direction and the port *GR-EDGE (Part I) · level: core · profiles: storage-api · added in 1.0* A wire carries no declared type. Everything the system deduces about it, it deduces from the two handles, so how a handle is spelled and split is grammar, not detail. ## The rule > **Normative.** This is the rule. > > 1. A port handle MUST be spelled `{nodeId}-{input|output}-{portName}`. > > 2. The port name is everything following the first `-input-` or `-output-` marker in the handle. > > 3. A port name MAY itself contain a direction marker. > > 4. Classification by port MUST be an exact suffix match, never a substring match. > > 5. A handle that merely contains a reserved port suffix MUST NOT be classified by it unless the handle ends with it. ## What it means A handle is split at the first `-input-` or `-output-` marker it contains, not the last. Everything after that first marker is the port name, verbatim — including a second direction marker, if the port itself happens to be named with one. Reading a handle by counting segments from the end, or by searching for the marker nearest the port name, misparses exactly the cases where a node identifier or a port name contains one of the reserved words itself. ## Example A handle whose port name itself repeats the marker that split it: ```json title="A handle whose port name itself contains a direction marker" verdict="declared" "a-output-b-output-c" ``` ```json title="Its port name, split at the first marker" verdict="extracted" "b-output-c" ``` A handle whose node identifier, not its port name, carries the opposite direction's marker: ```json title="A handle whose node identifier repeats the opposite marker" verdict="declared" "weird-input-node-output-text" ``` ```json title="Its port name, read for the output side" verdict="extracted" "text" ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: EDGE-3, EDGE-4 - Referenced by: R16, EDGE-3, EDGE-4, EDGE-6 --- 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.