--- id: DYN-1 family: GR-DYN level: extended profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-dyn/dyn-1 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # DYN-1 — Dynamic ports are opt-in, and a node that does not opt in has none *GR-DYN (Part I) · level: extended · profiles: storage-api · added in 1.0* Dynamic ports let an author add parameters and outputs to one node instance beyond what its processor declares. Nothing gets them by accident: a node type has to ask for them, and the definitions start empty. ## The rule > **Normative.** This is the rule. > > 1. A node type opts a node in to dynamic ports by declaring two reserved parameters: `dynamicParameters`, holding the node's dynamic parameter definitions, and `dynamicOutputs`, holding its dynamic output port definitions. > > 2. Each of the two MUST be an array. > > 3. The default of each MUST be the empty array. > > 4. A node that has not opted in MUST NOT have dynamic ports. > > 5. A dynamic parameter that is connectable is a dynamic input; one that is configurable is a dynamic setting; it can be both. ## What it means Opting in adds two keys to a node type's declared parameters, each holding an array of port definitions with an empty default. A node type that never opts in never carries those keys, so a node built from it cannot have a dynamic port at all — there is nothing to add one to. What a stored definition looks like when it is not usable matters as much as what it looks like when correctly authored: a value that is not an array at all reads back as an empty array rather than surfacing the malformed content or refusing the node outright. ## Example A node's stored definitions are not lists — one is a string, one a number: ```json title="Stored definitions that are not arrays" verdict="unusable" { "dynamicParameters": "not-an-array", "dynamicOutputs": 42 } ``` ```json title="What reading them back returns" verdict="empty" [[], []] ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-31](https://flowdrop.io/spec/rulings/open-31). ## Related rules - Referenced by: DYN-8 --- 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.