--- id: CFG-7 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-7 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # CFG-7 — An explicit null at a higher priority wins *GR-CFG (Part I) · level: core · profiles: storage-api · added in 1.0* Sending null is a decision, not a silence. A node that emits null on a wire has said something, and what it said beats whatever the author saved. ## The rule > **Normative.** This is the rule. > > 1. At every priority, a value MUST count as supplied when a key of the parameter's name is present, whatever that key's value. > > 2. An explicit `null` therefore MUST win over any lower priority: a `null` delivered on a wire beats the author's saved config, and a `null` in the saved config beats the schema default. > > 3. This MUST hold identically however a workflow is executed. ## What it means An assumption a careless reader might carry over from ordinary code is that null means "nothing here" and so falls through to whatever comes next. This rule refuses that: presence is what counts, not the value behind it. A wire, the saved config, and the schema default are each checked the same way — does a key of the parameter's name exist at all — and an explicit null at a higher priority satisfies that check exactly as any other value would. A null delivered on a wire therefore beats the author's saved config outright, and a null saved in config beats the schema default, in both cases exactly as if a non-null value had arrived. ## Example A node's output for the wired port is explicitly null: ```json title="A node's output, explicitly null" verdict="produced" {"out": null} ``` ```json title="What the wired input receives" verdict="delivered" {"data": null} ``` The key survives as a present, null entry rather than disappearing — which is what lets priority 1 claim it instead of falling through to the saved config. ## 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 null in the saved config beats the default (`resolve-parameters`): fixtures/presence/cfg-config-null-beats-default.json - A null is supplied, so a skip parameter does not skip (`resolve-parameters`): fixtures/presence/cfg-skip-null-is-supplied.json - A null on the wire beats the author's saved value (`resolve-parameters`): fixtures/presence/cfg-wire-null-beats-config.json ## Related rules - Names: CFG-4, CFG-5, CFG-6 - Referenced by: CFG-3, CFG-4, CFG-5, CFG-21, 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.