Skip to content

A node whose triggers are all unsatisfied is skipped, not executed

This is the line the whole branching design rests on: an untaken branch does not merely fail to fire, it terminates cleanly, visibly, and without failing the run.

The rule

Normative: this is the rule
  1. A node with at least one incoming trigger edge and no satisfied trigger MUST be skipped.
  2. It MUST NOT be executed.
  3. The skip MUST be announced with the machine-readable reason BRANCH_NOT_ACTIVE, on the node-level skip event, on the real-time status update, and on the run's snapshot.
  4. The node's identifier MUST appear once among the run's skipped nodes in the response metadata when any of its jobs was skipped, whether or not its other jobs ran.
  5. The skipped count there MUST count skipped jobs.
  6. A node with no incoming trigger edge MUST NOT be skipped for want of a satisfied trigger; when it runs is decided by DATA-4.
  7. At the end of a run, every job that has not reached a terminal status and was never handed out for execution (idle or pending, PIPE-10) MUST be collected as skipped and announced the same way, whether or not it had already been promoted to ready, with a reason that says why.
  8. A job that was handed out takes its final status from PIPE-10, not from this rule.
  9. A job that was not yet ready when its run completed MUST carry BRANCH_NOT_ACTIVE: nothing it waited for came.
  10. Every other job collected, one that was ready or one of a run that failed or was cancelled, MUST carry RUN_ENDED: the run ended before the job's turn.
  11. A job already skipped MUST NOT be collected or announced a second time.

What it means

The reason code BRANCH_NOT_ACTIVE names one observable fact — nothing on the node fired a trigger — not one specific cause. A reader could assume it only ever means "an untaken gateway branch," but the same code, on the same three announcements, also covers a node whose only would-be source never ran at all; nothing in the skip record itself lets a caller tell the two apart.

A skip is not a lesser kind of failure: the node simply never executes, the run is not failed by it, and the identifier is folded into the same count and list every time, whatever caused it. That is the opposite case from a node with no incoming trigger edge at all — such a node is never skipped for want of a trigger, because its readiness never depended on one. It can still go unexecuted because a data source never completed (DATA-4), or because a required parameter marked skip had nothing to resolve (CFG-21), and the end-of-run sweep records it as skipped.

Inside a loop a node has one job per round, so skips are counted per job. The skipped count counts skipped jobs, while a node's identifier is listed once among the skipped nodes as soon as any of its jobs was skipped, even if it ran on other rounds. The end-of-run collection gives each job the reason that fits it. A job still waiting for inputs when the run completed never got them, which is what an untaken branch looks like, so it carries BRANCH_NOT_ACTIVE. A job that was ready, or any job left over when the run failed or was cancelled, had nothing to do with branches: the run simply ended first, and it carries RUN_ENDED. The collection takes only jobs that were never handed out for execution: one that was handed out takes its final status from PIPE-10 instead. A job already skipped, for example with SG-21's SUPERSEDED_ROUND, is never collected or announced again.

Example

A gateway resolves to its false branch, so the node wired to the untaken true branch is skipped rather than executed.

The nodes_skipped count in the run's response metadatacounted
1
The skip_reason on the node's snapshot recordskipped
"BRANCH_NOT_ACTIVE"

skipped_node_ids in the same metadata names false_branch_node, and the snapshot record's status is skipped. The same BRANCH_NOT_ACTIVE code also rides the node-level skip event and the real-time status update for that node — three separate announcements agreeing on one fixed reason, whatever unexecuted trigger source produced it.

Why

Recorded under OPEN-25, OPEN-50, OPEN-60, OPEN-63.

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-7 · changed in spec 1.1