Skip to content

A workflow's launch inputs are declared, never inferred

The launch surface is the author's decision, written down. If it were derived from what the nodes happen to expose, adding a parameter to a node would widen what the outside world can send.

The rule

Normative: this is the rule
  1. The inputs a caller can supply when launching a workflow MUST be a manifest the author declared on the workflow.
  2. They MUST NOT be derived from port exposure.
  3. A declared entry MUST be built into the workflow's contract even when the instance hides the port it names.
  4. A port that is exposed but that no manifest entry binds MUST NOT reach the contract.

What it means

The launch-input manifest is an array the author wrote, not a computation over the workflow's nodes. That cuts both ways, and the second direction is the one that bites. A node's parameter can be hidden on the instance and still sit in the manifest — the entry still reaches the contract, because hiding a port is an instance setting, not an edit to what the author declared. And a node's parameter can be exposed, wired, fully visible in the editor, and never reach the contract at all, because nothing in the manifest names it.

The consequence: adding a parameter to a node type, or exposing one that used to be hidden, never by itself changes what a caller may send. Only an edit to the manifest itself does that (MAN-2, MAN-3).

Example

The node type declares two parameters, key and other. The instance hides key and exposes other — the opposite of what the manifest entry below declares.

The manifest names key, the port the instance hides
{ "name": "lookup_key", "node_id": "n1", "port": "key" }
What the workflow publishes as its contract
{ "properties": { "lookup_key": { "type": "string", "x-data-type": "string" } } }

other is exposed on the instance and never appears. lookup_key is hidden on the instance and appears anyway, because the manifest named it.

Why

Recorded under OPEN-25, OPEN-30.

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