--- id: R10 family: GR-VAL level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-val/r10 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # R10 — A workflow never exposes a port hidden on its node *GR-VAL (Part I) · level: core · profiles: storage-api · added in 1.0* Hidden means hidden in both directions. R7 stops an edge reaching a hidden port; R10 stops the workflow's public surface reaching one. ## The rule > **Normative.** This is the rule. > > 1. A bound workflow exposure entry MUST name a port that is exposed on the target node instance, as EXPO-2 resolves it. > > 2. An entry naming a hidden port MUST be refused with `R10_EXPOSURE_HIDDEN_PORT`, and the error MUST name the workflow port, the node and the node's port. > > 3. R10 and R7 are disjoint by construction (R7 judges edges, R10 judges exposure entries), so one hidden port never earns one exposure entry two reports. > > 4. An unbound entry has no port, and R10 does not apply to it. ## What it means An exposure entry is judged against the port's exposure as it stands after the instance override is applied, not against the node type's own default in isolation. A port the node type hides by default is not permanently out of reach: an instance that turns it back on legalises every exposure entry naming it, exactly as R7.c resolves the same chain for edges. The reverse also holds — an instance can hide a port the node type exposes by default — so neither the type's default nor the presence of an exposure entry, on its own, says whether the entry is refused. An unbound entry names no port, so there is nothing for this rule to judge. ## Example A node type declares its `error` output hidden by default, and the workflow exposes it anyway: ```json title="An exposure entry for a node's type-hidden output" verdict="refused" { "name": "err", "node_id": "s", "port": "error" } ``` The same entry, once the node instance turns that output back on: ```json title="The instance override that legalises the same entry" verdict="accepted" { "ports": { "outputs": [{ "id": "error", "exposed": true }] } } ``` ## Why Recorded under [OPEN-2](https://flowdrop.io/spec/rulings/open-2), [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-27](https://flowdrop.io/spec/rulings/open-27), [OPEN-30](https://flowdrop.io/spec/rulings/open-30), [OPEN-31](https://flowdrop.io/spec/rulings/open-31), [OPEN-33](https://flowdrop.io/spec/rulings/open-33). ## Related rules - Names: R7.c, R7.d, R4.d - Referenced by: R7.c, R7.d, R4.d --- 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.