{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "0A6FABCC-9FB9-432F-BC62-FDC7238B6A18",
    "name": "traceroot: new signal to its owning team"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -69.21985815602837,
        "y": 0.2836879432624144,
        "zoom": 0.99
      },
      "autoSave": false,
      "descriptions": {
        "flow": "For each new traceroot signal, reads the signal with its recent traces and the detector behind it, files a Linear issue for the team that owns the detector, and posts urgent ones to the on-call channel in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "For each new traceroot signal, reads the signal with its recent traces and the detector behind it, files a Linear issue for the team that owns the detector, and posts urgent ones to the on-call channel in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 523,
            "y": 219
          }
        },
        "flowElementId": "3130F0CA-2111-412C-AEC7-3FCEBE88CEC2",
        "groupId": null,
        "id": "3BC99D3B-FD3F-4578-93C2-ACC3CFDA3030",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "9de9eadb-231a-48c0-9dca-da6221b7e4d4",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Owner",
                      "subPathSegments": [
                        {
                          "key": "urgent",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "yes"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "9de9eadb-231a-48c0-9dca-da6221b7e4d4"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Urgent",
          "storeResult": false,
          "thenComponent": {
            "componentId": "B1319337-6CDA-496C-BA09-3B93D73E1842",
            "componentType": "ELEMENT"
          }
        },
        "name": "Urgent detector?",
        "nextElementIds": [
          "B1319337-6CDA-496C-BA09-3B93D73E1842"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new issue in a Linear team. Requires a team and a title; optionally set description (Markdown), assignee, priority, workflow state (status), labels, project, and due date. Returns the created issue with its identifier and URL.",
          "elementId": "EXTENSION:::SHARED:::default:::linear:::createIssue",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File the signal in Linear Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::linear:::createIssue",
          "legacyElementId": "JS###v1###Linear###createIssue",
          "methodName": "createIssue",
          "position": {
            "x": 868,
            "y": 210
          }
        },
        "flowElementId": "AA5BF028-FFC4-42D5-BF1B-7DDA19655E0C",
        "groupId": null,
        "id": "D75F3301-0FFF-4EC3-8322-1AA4CF828E51",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "teamId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "teamId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "title",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "description",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "description",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "assigneeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "priority",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "priority",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "stateId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createIssue",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Linear issue",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "linear",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File the signal in Linear",
        "nextElementIds": [
          "3BC99D3B-FD3F-4578-93C2-ACC3CFDA3030"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Gets one detector's full configuration: prompt, output schema, sample rate, root cause analysis and trigger conditions.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::getDetector",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the detector behind it Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::getDetector",
          "legacyElementId": null,
          "methodName": "getDetector",
          "position": {
            "x": 853,
            "y": 40
          }
        },
        "flowElementId": "4D228C8E-97BA-46A3-B118-56B3761DB8BE",
        "groupId": null,
        "id": "4B0AA037-7199-440D-B094-6ACFB7E04897",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "detectorId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New signal",
                    "subPathSegments": [
                      {
                        "key": "detector_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "3BBCAAA2-3062-431A-9DEF-EA3968F0B2C8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getDetector",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Detector",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the detector behind it",
        "nextElementIds": [
          "EA1095D5-7EF3-4BAD-8D79-48945AC04503"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Gets one signal with up to 20 of its most recent traces. A merged signal names the signal it moved to.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::getSignal",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the signal and its traces Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::getSignal",
          "legacyElementId": null,
          "methodName": "getSignal",
          "position": {
            "x": 492,
            "y": 40
          }
        },
        "flowElementId": "752C4802-E7D5-44E9-9493-04F6B1827F01",
        "groupId": null,
        "id": "6B32F44D-9EB5-4127-90A5-47BDBA04A288",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "signalId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New signal",
                    "subPathSegments": [
                      {
                        "key": "signal_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "3BBCAAA2-3062-431A-9DEF-EA3968F0B2C8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getSignal",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Signal",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the signal and its traces",
        "nextElementIds": [
          "4B0AA037-7199-440D-B094-6ACFB7E04897"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Returns the project, workspace and key scope the connected API key belongs to. Useful to check a connection.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::getConnectionInfo",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the traceroot project Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::getConnectionInfo",
          "legacyElementId": null,
          "methodName": "getConnectionInfo",
          "position": {
            "x": 1200,
            "y": 40
          }
        },
        "flowElementId": "52D7D5F4-91F9-4969-B3F1-63E78A9DAE80",
        "groupId": null,
        "id": "EA1095D5-7EF3-4BAD-8D79-48945AC04503",
        "metaInfo": {
          "bodyParams": [],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getConnectionInfo",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Project",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the traceroot project",
        "nextElementIds": [
          "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires for each new signal: a recurring problem a detector starts tracking. Watches the 200 newest signals in every status.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::onNewSignal",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::traceroot:::onNewSignal",
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::onNewSignal",
          "legacyElementId": null,
          "methodName": "onNewSignal",
          "position": {
            "x": 150,
            "y": 40
          }
        },
        "flowElementId": "4B710A99-5233-4DC7-B33B-5786699B0A10",
        "groupId": null,
        "id": "3BBCAAA2-3062-431A-9DEF-EA3968F0B2C8",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewSignal",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New signal",
          "serviceId": "traceroot",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New traceroot signal",
        "nextElementIds": [
          "6B32F44D-9EB5-4127-90A5-47BDBA04A288"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the on-call engineer in Slack Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 110,
            "y": 210
          }
        },
        "flowElementId": "44D5660C-4BAB-4B13-8A52-BA60B6328ED7",
        "groupId": null,
        "id": "B1319337-6CDA-496C-BA09-3B93D73E1842",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*Urgent: new traceroot signal from "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "detectorName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signal",
                    "subPathSegments": [
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6B32F44D-9EB5-4127-90A5-47BDBA04A288"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Seen "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "hitCount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " times so far. <"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner",
                    "subPathSegments": [
                      {
                        "key": "firstTrace",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "|Open the latest trace in traceroot>"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Filed in Linear as <"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Linear issue",
                    "subPathSegments": [
                      {
                        "key": "issue",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D75F3301-0FFF-4EC3-8322-1AA4CF828E51"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "|"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Linear issue",
                    "subPathSegments": [
                      {
                        "key": "issue",
                        "optional": false
                      },
                      {
                        "key": "identifier",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D75F3301-0FFF-4EC3-8322-1AA4CF828E51"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ">, priority Urgent."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "On-call message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the on-call engineer in Slack",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the owning team Result"
          },
          "position": {
            "x": 1216,
            "y": 219
          }
        },
        "flowElementId": "561452F1-C349-4E6A-990C-9B31DA454F4A",
        "groupId": null,
        "id": "F67F4FC0-FEA7-4167-8F3A-A74B80DA5D3C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "signal",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signal",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "6B32F44D-9EB5-4127-90A5-47BDBA04A288"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "detector",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Detector",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "4B0AA037-7199-440D-B094-6ACFB7E04897"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "project",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Project",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "EA1095D5-7EF3-4BAD-8D79-48945AC04503"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "owners",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Detector owners",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Detector owners"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "defaultTeam",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Default Linear team ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Default Linear team ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "urgentList",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Urgent detectors",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Urgent detectors"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const parse = (v, fallback) => { if (typeof v === 'string') { try { return JSON.parse(v); } catch (e) { return fallback; } } return v == null ? fallback : v; };\nconst detectorName = detector.name || signal.detector_name || 'traceroot detector';\nconst map = parse(owners, {}) || {};\nconst key = Object.keys(map).find(k => k.trim().toLowerCase() === detectorName.trim().toLowerCase());\nconst teamId = key ? map[key] : defaultTeam;\nconst urgentNames = (Array.isArray(parse(urgentList, [])) ? parse(urgentList, []) : []).map(n => String(n).trim().toLowerCase());\nconst urgent = urgentNames.includes(detectorName.trim().toLowerCase());\nconst base = (project.ui_base_url || project.host || 'https://app.traceroot.ai').replace(/\\/+$/, '');\nconst traceLink = (id) => `${base}/projects/${project.project_id}/traces/${id}`;\nconst hits = Array.isArray(signal.recent_hits) ? signal.recent_hits : [];\nconst title = `${signal.title || 'New recurring problem'} (${detectorName})`.slice(0, 250);\nconst lines = [\n  `traceroot started tracking a new signal from the detector **${detectorName}**.`,\n  '',\n  `**Signal:** ${signal.title || ''}`,\n  `**Seen:** ${signal.hit_count || hits.length} times, first ${signal.first_seen_at || ''}, last ${signal.last_seen_at || ''}`,\n  `**What the detector looks for:** ${detector.prompt || 'see the detector in traceroot'}`,\n  `**Root cause analysis:** ${signal.rca_state || 'not run'}`,\n  '',\n  '**Recent traces**',\n  ...hits.slice(0, 10).map(h => `- [${h.trace_start_time || h.trace_id}](${traceLink(h.trace_id)})`),\n];\nreturn {\n  detectorName,\n  teamId,\n  urgent: urgent ? 'yes' : 'no',\n  priority: urgent ? '1' : '3',\n  title,\n  description: lines.join('\\n'),\n  firstTrace: hits.length ? traceLink(hits[0].trace_id) : '',\n  hitCount: signal.hit_count || hits.length,\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Owner",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Find the owning team",
        "nextElementIds": [
          "D75F3301-0FFF-4EC3-8322-1AA4CF828E51"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "3BBCAAA2-3062-431A-9DEF-EA3968F0B2C8",
    "groups": [],
    "id": "99D8AA42-99BE-4485-8CE6-FE476F8C6C5E",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "Which Linear team owns each detector: the detector name as it reads in traceroot, then that team's ID in Linear.",
          "error": null,
          "name": "Detector owners",
          "type": "OBJECT",
          "value": ""
        },
        {
          "description": "The Linear team that gets signals from detectors not listed in Detector owners.",
          "error": null,
          "name": "Default Linear team ID",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Detector names whose new signals are urgent. They are filed as Urgent in Linear and posted to the on-call channel in Slack.",
          "error": null,
          "name": "Urgent detectors",
          "type": "ARRAY",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:43:44.587Z"
}
