--- id: OCX-5 family: RT-OCX level: extended profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-ocx/ocx-5 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # OCX-5 — A trigger's condition set is a closed vocabulary *RT-OCX (Part II) · level: extended · profiles: runtime · added in 1.0* A connector with its own data to carry has one place to put it, so a reader can tell a declared condition from a connector's private key. ## The rule > **Normative.** This is the rule. > > 1. A trigger's conditions are a closed vocabulary, so that a connector with its own data to carry has one place to put it and a reader can tell a declared condition from a connector's private key. > > 2. A trigger's conditions MUST carry only the condition keys this specification declares. > > 3. Event-type-specific data a connector needs to carry MUST be written under the designated extension key, whose contents this specification does not constrain. > > 4. A connector writing its own keys beside the declared ones is writing an invalid condition set. ## What it means A reader inspecting a trigger's conditions has to be able to tell a declared condition from whatever a connector decided to carry alongside it, without knowing which connector wrote the record. That is only possible if every connector's own data lands in the same one place rather than each writing its own top-level keys, which is why the vocabulary is closed: the declared condition keys, one designated key for everything else, and nothing beside them. ## Example An event type's own condition data, carried entirely under the one designated key: ```json title="A trigger's conditions" verdict="valid" { "custom": { "payload_schema": { "type": "object", "additionalProperties": true, "properties": { "title": { "type": "string", "title": "Title" } } }, "required_fields": ["title"] } } ``` Nothing here is declared beside `custom`: `payload_schema` and `required_fields` are the connector's own data, and both sit inside it rather than alongside it. ## Why Recorded under [OPEN-22](https://flowdrop.io/spec/rulings/open-22), [OPEN-25](https://flowdrop.io/spec/rulings/open-25). --- 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.