{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-control-flow-def-onf-merge-selected",
  "title": "Merge selected branch",
  "section": "Library asset reference",
  "description": "Explicit branch coordination; unfinished branches keep running.",
  "kind": "node",
  "url": "/wiki/reference-app-control-flow-def-onf-merge-selected/",
  "markdown": "/wiki/reference-app-control-flow-def-onf-merge-selected/index.md",
  "json": "/wiki/reference-app-control-flow-def-onf-merge-selected/index.json",
  "headings": [
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "app-control-flow",
  "contract": {
    "key": "app.control-flow.def_onf_merge_selected",
    "slug": "app-control-flow-def-onf-merge-selected",
    "name": "Merge selected branch",
    "kind": "node",
    "family": "app-control-flow",
    "packId": null,
    "category": "Control flow",
    "description": "Explicit branch coordination; unfinished branches keep running.",
    "inputs": [
      {
        "id": "branch1",
        "name": "branch1",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value1",
        "name": "value1",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch2",
        "name": "branch2",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value2",
        "name": "value2",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch3",
        "name": "branch3",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value3",
        "name": "value3",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch4",
        "name": "branch4",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value4",
        "name": "value4",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch5",
        "name": "branch5",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value5",
        "name": "value5",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch6",
        "name": "branch6",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value6",
        "name": "value6",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch7",
        "name": "branch7",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value7",
        "name": "value7",
        "type": "any",
        "typeName": "Any",
        "required": false
      },
      {
        "id": "branch8",
        "name": "branch8",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value8",
        "name": "value8",
        "type": "any",
        "typeName": "Any",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "value",
        "type": "any",
        "typeName": "Any",
        "required": true
      },
      {
        "id": "branch",
        "name": "branch",
        "type": "number",
        "typeName": "Number",
        "required": true
      },
      {
        "id": "winnerNodeId",
        "name": "winnerNodeId",
        "type": "string",
        "typeName": "Text",
        "required": true
      }
    ],
    "configSchema": {},
    "documentation": "Pair each branchN control with valueN from that alternative. The first completed selected pair supplies value; absent outputs from other branches do not block it. Multiple eligible pairs use recorded completion order, then branch number. Use a typed merge asset for an exact custom contract. Unfinished branches continue; this operation never cancels or rolls back actions.",
    "runtimeOperation": "merge.selected",
    "tags": [
      "builtin",
      "node"
    ],
    "source": "app-builtin-catalog"
  }
}
