--- id: CFG-4 family: GR-CFG level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-cfg/cfg-4 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # CFG-4 — Priority 1, a value delivered on a wire *GR-CFG (Part I) · level: core · profiles: storage-api · added in 1.0* The first place a parameter's value can come from is the run itself: a value another node sent down a wire, or a value the launch payload supplied. ## The rule > **Normative.** This is the rule. > > 1. A parameter MUST take its value from the runtime inputs when the parameter is internal, or is both connectable and exposed, and the runtime inputs contain a key of that name. > > 2. A key present with a `null` value MUST count as supplied (CFG-7). > > 3. A parameter that fails this test MUST fall through to priority 2 (CFG-5). ## What it means Priority 1 does not just ask whether a value showed up on a wire; it asks whether the parameter was allowed to receive one. An internal parameter always qualifies; an ordinary one needs both gate flags open — connectable and exposed — before a wire or a launch value can reach it at all. Once the runtime carries a key of that name and the gate is open, that value wins even though the author's saved config also holds one for the same parameter: the config is never consulted once priority 1 succeeds. Presence, not truthiness, decides whether the key counts as supplied (CFG-7), so an explicit null on the wire wins here too. Where the test fails — no key, or the gate closed — resolution falls through to CFG-5. ## Example A node's `value` parameter is connectable and exposed. The workflow's own saved config holds `from-config` for it, and a wire also delivers a value when the node runs: ```json title="The value delivered on the wire" verdict="resolved" {"value": "from-runtime"} ``` The saved `from-config` value is never read: priority 1 already supplied one. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Fixtures Test cases whose outcome this rule decides (fixtures/README.md defines each operation): - A parameter absent from the wire falls through to the saved value (`resolve-parameters`): fixtures/presence/cfg-wire-absent-falls-to-config.json - An empty string on the wire is a value, and beats the saved one (`resolve-parameters`): fixtures/presence/cfg-wire-empty-beats-config.json - A null on the wire beats the author's saved value (`resolve-parameters`): fixtures/presence/cfg-wire-null-beats-config.json - A value on the wire beats the author's saved value (`resolve-parameters`): fixtures/presence/cfg-wire-value-beats-config.json ## Related rules - Names: CFG-5, CFG-6, CFG-7, EXPO-10 - Referenced by: CFG-5, CFG-6, CFG-7, CFG-8, CFG-16, CFG-17, EXPO-10, DATA-7 --- 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.