Skip to content

An outcome matching no branch is loud, never a silent gate-off

A gateway whose configured branches do not cover the value it produced used to emit a branch name no port carried, gating off everything downstream with nothing said. The target is that this cannot happen quietly.

The rule

Normative: this is the rule
  1. A gateway's branch authority is its configured branches, each an entry pairing a name with a value.
  2. An entry whose name is not a non-empty string MUST be discarded before any matching.
  3. An outcome MUST match a branch if and only if the outcome and the branch's configured value are equal as the conventions define equal values, with no conversion between types and none between letter cases.
  4. A gateway MUST NOT emit a branch name that no port of the node carries.
  5. Where no configured branch matches the outcome, one of two things MUST happen: the gateway declares a default branch port that receives it, or the node fails with an error output that an error edge can route (ERR-7).

What it means

A gateway's configured branches, not the value it happens to emit, decide which output port is real: an entry without a usable name is dropped before any comparison runs, so it can never be matched or emitted. Matching an outcome against what survives uses the conventions' equal values, the same comparison JSON Schema's const makes: true matches only a branch configured with true, never 1 or "true", and "Yes" matches only "Yes", never "yes". No conversion is made, so every implementation, in every language, picks the same branch.

Where nothing configured matches, the gateway is not free to fall back to whatever it would have said with no configuration at all: the outcome ends up on a default branch that receives it, or on a routable error. A name that answers to no port silently gates off everything downstream, with nothing said.

Example

A gateway configured with branches named Yes and No, given a true outcome:

The gateway's inputs: the outcome and its configured branchesconfigured
{"value": true, "branches": [{"name": "Yes", "value": true}, {"name": "No", "value": false}]}
The active_branches outputemitted
["Yes"]

The renamed port, not a hardcoded true, is what leaves the gateway — an edge drawn from Yes is the only one that can be reached.

Why

Recorded under OPEN-15, OPEN-25, OPEN-29, OPEN-37.

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