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
- A gateway's branch authority is its configured branches, each an entry pairing a name with a value.
- An entry whose name is not a non-empty string MUST be discarded before any matching.
- 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.
- A gateway MUST NOT emit a branch name that no port of the node carries.
- 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:
{"value": true, "branches": [{"name": "Yes", "value": true}, {"name": "No", "value": false}]}["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.