An edge is gated only when the source actually made a branch decision
Gateways decide which paths stay alive, but most edges in a workflow are not branch edges at all. This rule says exactly when a branch decision is allowed to stop an edge, so that everything else keeps flowing.
The rule
Normative: this is the rule
- An edge MUST be subject to branch gating only when all three of these hold: it leaves a named source port, the source's output carries an active-branch member, and that port is a branch port rather than a value port (BR-2).
- Where they hold, the edge MUST be followed if and only if the port's name appears in the active-branch list, both sides compared after trimming surrounding whitespace and lower-casing.
- An empty list names no branch, so no branch edge leaving that source is followed.
- In every other case the edge MUST be followed.
Why
Fixtures
Test cases whose outcome this rule decides. A case compares absent, null and empty members exactly; the fixtures README defines each operation. Where a case and the rule disagree, the rule is right.
A named branch is matched after trimming and lower-casing gate-edge
{ "given": { "branches": [ "yes", "no" ], "output": { "active_branches": [ " Yes " ] }, "port": "yes" }, "expect": { "follow": true } }An empty active-branch list is a decision that follows no branch gate-edge
{ "given": { "branches": [ "yes", "no" ], "output": { "active_branches": [] }, "port": "yes" }, "expect": { "follow": false } }A source that emits no active-branch member gates nothing gate-edge
{ "given": { "branches": [ "yes", "no" ], "output": { "value": 1 }, "port": "yes" }, "expect": { "follow": true } }
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-1 · changed in spec 1.0