Skip to content

A workflow never exposes a port hidden on its node

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:

An exposure entry for a node's type-hidden outputrefused
{ "name": "err", "node_id": "s", "port": "error" }

The same entry, once the node instance turns that output back on:

The instance override that legalises the same entryaccepted
{ "ports": { "outputs": [{ "id": "error", "exposed": true }] } }

Why

Recorded under OPEN-2, OPEN-25, OPEN-27, OPEN-30, OPEN-31, OPEN-33.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · R10 · changed in spec 1.0