--- id: SCH-44 family: GR-SCHEMA level: extended profiles: [storage-api, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-schema/sch-44 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # SCH-44 — A shape refines another declaration of its lane; four ids are reserved *GR-SCHEMA (Part I) · level: extended · profiles: storage-api, editor-client · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. Where two sources declare the same lane id, the site's own declaration MUST win over a code-declared shape, and both MUST win over the shipped entry. > > 2. The winner MUST replace the entry whole rather than key by key, its declared compatibility rules included (SCH-10.a), because a partial shape is a deliberate redefinition. > > 3. A collision with a shipped id is therefore not a break: the lane MUST stay in the vocabulary, stay self-compatible, and keep its derived rules. > > 4. Precedence is resolved in one place, so which declaration wins MUST NOT depend on load order. > > 5. The ids `trigger`, `tool` and `mixed` are reserved (every generated compatibility rule in the payload is built from them), and a shape naming one MUST be ignored rather than treated as fatal, since paths that reach around a form exist and one bad shape would otherwise unwire every canvas. ## What it means Where a site and a component both declare the same lane id, precedence resolves in one place rather than by load order: the site's own declaration wins over one declared in code, and either wins over an entry the implementation ships built in. The win is total, not merged field by field — a site that names a lane a component already declared replaces its schema and its compatibility rules in one move, carrying nothing forward from the earlier declaration, because a partial redefinition would leave a reader unable to tell which fields survived. Four lane ids are excluded from this entirely: naming one of them is not an error, it is simply ignored, because every generated compatibility rule already depends on those four staying exactly what they are. ## Example A component already declares the lane `order_probe` with two required fields and a rule widening it into another lane; the site then declares its own shape for the same id. ```json title="The site's declaration for the order_probe lane" verdict="stored" { "id": "order_probe", "label": "Purchase Order", "description": "The site knows better what an order is.", "color": "rebeccapurple", "category": "complex", "enabled": true, "schema": { "type": "object", "properties": { "po_number": { "type": "string" } } }, "compatibility": [] } ``` ```json title="The properties order_probe declares afterwards" verdict="replaced" ["po_number"] ``` ```json title="The compatibility rules order_probe declares afterwards" verdict="replaced" [] ``` Neither the earlier declaration's two fields nor its widening rule survive: the site's shape did not restate them, and a whole replacement does not carry forward what it left unsaid. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-34](https://flowdrop.io/spec/rulings/open-34), [OPEN-35](https://flowdrop.io/spec/rulings/open-35). ## Related rules - Names: SCH-10.a, SCH-41, SCH-42 - Referenced by: SCH-10.a, SCH-42, SCH-45 --- 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.