--- id: CFG-18 family: GR-CFG level: extended profiles: [storage-api, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-cfg/cfg-18 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # CFG-18 — Published config defaults cover configurable parameters only *GR-CFG (Part I) · level: extended · profiles: storage-api, editor-client · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. A node type's published metadata MUST carry a config default for a parameter only where the parameter is configurable and has an effective default (CFG-3), a `null` default included. > > 2. An entry MUST NOT be published for a parameter that is not configurable, or that has no effective default. ## What it means Carrying a default is not enough on its own for a parameter to publish a config default: the parameter also has to be configurable. A parameter that only accepts wired values can still carry a default for the runtime cascade to fall back on, but that default never appears in `configDefaults`, because that bag seeds an authoring surface for a parameter with no such surface at all. The two gates — configurable, and having an effective default at all, a `null` default included — are independent: failing either one, on its own, is enough to keep the entry out. ## Example Two configurable parameters whose schema declares defaults of `schema_loses` and `schema_wins`: one overrides its schema default with a declared default of its own, the other relies on the schema's alone. ```json title="Two configurable parameters, one overriding its schema default" verdict="declared" { "entity_wins": { "configurable": true, "default": "entity_wins" }, "schema_only": { "configurable": true } } ``` ```json title="What configDefaults publishes for both" verdict="published" { "entity_wins": "entity_wins", "schema_only": "schema_wins" } ``` A parameter that is only connectable, never configurable, is left out even when it carries a default of its own: ```json title="A connectable parameter with a default, but not configurable" verdict="declared" { "wire_only": { "connectable": true, "default": "entity_default" } } ``` ```json title="What configDefaults publishes" verdict="empty" [] ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-26](https://flowdrop.io/spec/rulings/open-26). ## Related rules - Names: CFG-1, CFG-3 --- 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.