{
  "type" : "object",
  "title" : "pipeline",
  "additionalProperties" : false,
  "required" : [ "pipeline" ],
  "properties" : {
    "version" : {
      "type" : "number",
      "enum" : [ 1 ]
    },
    "pipeline" : {
      "$ref" : "#/definitions/pipeline/pipeline"
    }
  },
  "$schema" : "http://json-schema.org/draft-07/schema#",
  "definitions" : {
    "pipeline" : {
      "pipeline" : {
        "type" : "object",
        "title" : "pipeline",
        "additionalProperties" : false,
        "properties" : {
          "id" : {
            "type" : "string",
            "pattern" : "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
          },
          "name" : {
            "type" : "string",
            "pattern" : "^[a-zA-Z_0-9-.][-0-9a-zA-Z_\\s.]{0,127}$"
          },
          "description" : {
            "type" : "string",
            "description" : "Description of the pipeline."
          },
          "clone" : {
            "$ref" : "#/definitions/pipeline/Clone"
          },
          "inputs" : {
            "$ref" : "#/definitions/pipeline/common/NGVariableV1Wrapper"
          },
          "timeout" : {
            "type" : "string",
            "description" : "Defines pipeline timeout",
            "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
          },
          "allow-stage-executions" : {
            "type" : "boolean",
            "description" : "Allows stage executions."
          },
          "fixed-inputs-on-rerun" : {
            "type" : "boolean",
            "description" : "Fixed inputs on rerun."
          },
          "delegate" : {
            "$ref" : "#/definitions/pipeline/common/Delegate"
          },
          "env" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "Provides the default environment variables."
          },
          "repo" : {
            "description" : "Configures the default repository.",
            "$ref" : "#/definitions/pipeline/Repository"
          },
          "barriers" : {
            "type" : "array",
            "description" : "Barriers provides optional pipeline barriers.",
            "items" : {
              "type" : "string"
            }
          },
          "if" : {
            "type" : "string",
            "description" : "If provides conditional pipeline execution logic. If the condition resolves to false, the pipeline is skipped."
          },
          "on" : {
            "$ref" : "#/definitions/pipeline/On"
          },
          "notifications" : {
            "type" : "array",
            "description" : "Notifications provides optional pipeline notifications.",
            "items" : {
              "$ref" : "#/definitions/pipeline/NotificationRules"
            }
          },
          "tags" : {
            "type" : "object",
            "description" : "Tags for the pipeline.",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "template" : {
            "description" : "Pipeline template reference.",
            "$ref" : "#/definitions/pipeline/common/TemplateRef"
          },
          "stages" : {
            "type" : "array",
            "description" : "Pipeline stages - can contain stages, groups, or parallel executions.",
            "items" : {
              "$ref" : "#/definitions/pipeline/stages/unified/StageItems"
            },
            "maxItems" : 256,
            "minItems" : 1
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "Clone" : {
        "title" : "Clone",
        "type" : "object",
        "additionalProperties" : false,
        "description" : "Clone defines the default clone behavior.",
        "properties" : {
          "depth" : {
            "description" : "Depth defines the clone depth.",
            "oneOf" : [ {
              "type" : "integer",
              "format" : "int32"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "enabled" : {
            "description" : "Enables or disables the default clone step.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "insecure" : {
            "description" : "Insecure disables ssl verification.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "lfs" : {
            "description" : "Lfs enables cloning lfs files.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "strategy" : {
            "description" : "Strategy configures the PR clone strategy.",
            "type" : "string",
            "enum" : [ "source-branch", "merge" ]
          },
          "submodules" : {
            "description" : "Submodules enables cloning all submodules. Accepts boolean, string (true/false/recursive), or expression.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "string",
              "enum" : [ "true", "false", "recursive" ]
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "tags" : {
            "description" : "Tags enables cloning all tags.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "trace" : {
            "description" : "Trace enables trace logging.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "ref" : {
            "description" : "Reference defines the clone ref.",
            "oneOf" : [ {
              "$ref" : "#/definitions/pipeline/Reference"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "repo" : {
            "description" : "Repo defines the repository name or URL.",
            "type" : "string",
            "minLength" : 1
          },
          "connector" : {
            "description" : "Connector defines the connector reference.",
            "type" : "string",
            "minLength" : 1
          },
          "clonedir" : {
            "description" : "Clonedir defines the clone directory path.",
            "type" : "string",
            "minLength" : 1
          },
          "resources" : {
            "description" : "Resources defines container resource limits.",
            "$ref" : "#/definitions/pipeline/Resource"
          },
          "user" : {
            "description" : "User ID to run the clone container as. Supports expressions.",
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "string"
            } ]
          },
          "sparse-checkout" : {
            "description" : "SparseCheckout defines paths to limit the clone to specific directories.",
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "pre-fetch" : {
            "description" : "PreFetch defines a command to run before the clone operation.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          },
          "persist-credentials" : {
            "description" : "PersistCredentials configures git credentials to persist after clone so subsequent git operations in the workspace can authenticate.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ]
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "common" : {
        "Expression" : {
          "title" : "Expression",
          "description" : "String value matching a Harness pipeline expression or template placeholder (e.g., <+something> or ${{ ... }}).",
          "type" : "string",
          "pattern" : "(\\$\\{\\{.+\\}\\}|<\\+.+>.*)",
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "NGVariableV1Wrapper" : {
          "title" : "NGVariableV1Wrapper",
          "description" : "Wrapper for stage/pipeline-level input variables. Keys are variable names, values define variable configuration.",
          "type" : "object",
          "additionalProperties" : {
            "oneOf" : [ {
              "$ref" : "#/definitions/pipeline/common/StringNGVariableV1"
            }, {
              "$ref" : "#/definitions/pipeline/common/NumberVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/BooleanVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/ArrayVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/ObjectVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/SecretVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/StepVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/StageVariable"
            }, {
              "$ref" : "#/definitions/pipeline/common/ConnectorVariable"
            } ]
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "StringNGVariableV1" : {
          "title" : "StringNGVariableV1",
          "description" : "String variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "string" ]
              },
              "value" : {
                "description" : "Variable value. Supports expressions.",
                "type" : "string"
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "string"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "options" : {
                "description" : "Defines a list of accepted input values. Alias for enum (GitHub compatibility).",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "Variable" : {
          "title" : "Variable",
          "type" : "object",
          "discriminator" : "type",
          "description" : "Variable defines a variable object",
          "properties" : {
            "type" : {
              "description" : "Type defines the variable type.",
              "type" : "string",
              "enum" : [ "string", "number", "boolean", "array", "object", "secret", "step", "stage", "connector" ]
            },
            "description" : {
              "type" : "string",
              "description" : "Description of the variable."
            },
            "required" : {
              "type" : "boolean",
              "description" : "Required indicates the variable is required."
            },
            "execution_input" : {
              "description" : "A boolean that defines whether the value is an execution input.",
              "type" : "boolean",
              "default" : false
            },
            "items" : {
              "description" : "Defines the item type for array variables.",
              "type" : "array"
            },
            "options" : {
              "description" : "Defines a list of accepted input values. Alias for enum (GitHub compatibility).",
              "type" : "array"
            },
            "enum" : {
              "description" : "Defines a list of accepted input values.",
              "type" : "array"
            },
            "pattern" : {
              "description" : "Regex pattern for variable value validation.",
              "type" : "string"
            },
            "mask" : {
              "description" : "Indicates the input should be masked.",
              "type" : "boolean",
              "deprecated" : true
            },
            "ui" : {
              "description" : "UI configuration for variable rendering in forms.",
              "type" : "object",
              "additionalProperties" : true
            }
          }
        },
        "NumberVariable" : {
          "title" : "NumberVariable",
          "description" : "Number variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "number" ]
              },
              "value" : {
                "description" : "Variable value. Supports expressions.",
                "oneOf" : [ {
                  "type" : "number",
                  "format" : "double"
                }, {
                  "type" : "string",
                  "pattern" : "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
                } ],
                "metadata" : {
                  "inputProperties" : {
                    "dependsOn" : [ "type" ]
                  }
                }
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "number",
                "format" : "double"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "oneOf" : [ {
                    "type" : "number",
                    "format" : "double"
                  }, {
                    "type" : "string",
                    "pattern" : "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
                  } ]
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "BooleanVariable" : {
          "title" : "BooleanVariable",
          "description" : "Boolean variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "boolean" ]
              },
              "value" : {
                "description" : "Variable value.",
                "type" : "boolean"
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "boolean"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "boolean"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ArrayVariable" : {
          "title" : "ArrayVariable",
          "description" : "Array variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "array" ]
              },
              "value" : {
                "description" : "Variable value.",
                "type" : "array"
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "array"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "array"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ObjectVariable" : {
          "title" : "ObjectVariable",
          "description" : "Object variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "object" ]
              },
              "value" : {
                "description" : "Variable value.",
                "type" : "object"
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "object"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "object"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "SecretVariable" : {
          "title" : "SecretVariable",
          "description" : "Secret variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "secret" ]
              },
              "value" : {
                "description" : "Variable value (secret reference).",
                "type" : "string",
                "metadata" : {
                  "inputProperties" : {
                    "dependsOn" : [ "type" ]
                  }
                }
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "string"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "StepVariable" : {
          "title" : "StepVariable",
          "description" : "Step variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "step" ]
              },
              "value" : {
                "description" : "Variable value. Supports expressions.",
                "type" : "object",
                "metadata" : {
                  "inputProperties" : {
                    "dependsOn" : [ "type" ]
                  }
                }
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "object"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "object"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "StageVariable" : {
          "title" : "StageVariable",
          "description" : "Stage variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "stage" ]
              },
              "value" : {
                "description" : "Variable value. Supports expressions.",
                "type" : "object",
                "metadata" : {
                  "inputProperties" : {
                    "dependsOn" : [ "type" ]
                  }
                }
              },
              "default" : {
                "description" : "Default value for the variable.",
                "type" : "object"
              },
              "enum" : {
                "description" : "Defines a list of accepted input values.",
                "type" : "array",
                "items" : {
                  "type" : "object"
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ConnectorVariable" : {
          "title" : "ConnectorVariable",
          "description" : "Connector variable definition.",
          "allOf" : [ {
            "$ref" : "#/definitions/pipeline/common/Variable"
          }, {
            "type" : "object",
            "required" : [ "type" ],
            "properties" : {
              "type" : {
                "description" : "Variable type.",
                "type" : "string",
                "enum" : [ "connector" ]
              },
              "value" : {
                "description" : "Connector reference value. Supports expressions.",
                "type" : "string"
              },
              "default" : {
                "description" : "Default connector reference.",
                "type" : "string"
              },
              "oneof" : {
                "description" : "List of allowed connector types.",
                "type" : "array",
                "items" : {
                  "type" : "string",
                  "enum" : [ "gitlab", "github", "bitbucket", "gcp", "aws", "docker", "kubernetes", "artifactory", "azure", "jenkins", "jira", "servicenow" ]
                }
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "Delegate" : {
          "title" : "Delegate",
          "description" : "Delegate defines the delegate matching logic. Supports expressions.",
          "oneOf" : [ {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }, {
            "type" : "string"
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "TemplateRef" : {
          "title" : "TemplateRef",
          "description" : "Template identifier and input configuration.",
          "type" : "object",
          "additionalProperties" : false,
          "required" : [ "uses" ],
          "properties" : {
            "uses" : {
              "description" : "Template identifier reference.",
              "type" : "string"
            },
            "with" : {
              "description" : "Template input overrides.",
              "$ref" : "#/definitions/pipeline/common/WithInputs"
            },
            "gitBranch" : {
              "description" : "Git branch for remote template resolution.",
              "type" : "string"
            },
            "container" : {
              "description" : "Caller-side container overrides merged into the resolved template step. Applied for any V1 step template whose spec contains run, run-test, or background (including git-clone and build-and-push templates that wrap those steps).\n",
              "$ref" : "#/definitions/pipeline/common/TemplateContainerOverlay"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "WithInputs" : {
          "title" : "WithInputs",
          "description" : "Input overrides for service, environment, or infrastructure.",
          "type" : "object",
          "properties" : {
            "overlay" : {
              "description" : "Overlay configuration for merging inputs.",
              "type" : "object",
              "additionalProperties" : true
            }
          },
          "additionalProperties" : true,
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "TemplateContainerOverlay" : {
          "title" : "TemplateContainerOverlay",
          "description" : "Caller-side container overrides on a V1 template step (`template.container`). Mirrors TemplateMergeServiceHelper.CONTAINER_PROPAGATION_ALLOWLIST. Applied to resolved run, run-test, and background containers (including nested group/parallel). Image, connector, and entrypoint stay on the template and are not overridable here.\n",
          "type" : "object",
          "additionalProperties" : false,
          "properties" : {
            "user" : {
              "description" : "User ID to run as. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer"
              }, {
                "type" : "string"
              } ]
            },
            "group" : {
              "description" : "Group to run as.",
              "type" : "string"
            },
            "cpu" : {
              "description" : "CPU limit. Ignored when resources.limits.cpu is set.",
              "type" : "string"
            },
            "memory" : {
              "description" : "Memory limit. Ignored when resources.limits.memory is set.",
              "type" : "string"
            },
            "resources" : {
              "description" : "Container resource limits and requests. Takes precedence over the flat cpu/memory fields.",
              "$ref" : "#/definitions/pipeline/Resource"
            },
            "shm-size" : {
              "description" : "Shared memory size.",
              "type" : "string"
            },
            "privileged" : {
              "description" : "Run in privileged mode. Supports expressions.",
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "StrategyConfigV1" : {
          "title" : "StrategyConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Strategy defines execution strategy configuration (matrix, for, while, repeat).",
          "properties" : {
            "max-parallel" : {
              "description" : "Maximum number of parallel executions. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "fail-fast" : {
              "description" : "Whether to fail fast on first failure. Supports expressions.",
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "if" : {
              "description" : "Conditional expression to determine whether the strategy should execute. Supports expressions.",
              "type" : "string"
            },
            "matrix" : {
              "description" : "Matrix strategy for parallel execution across dimensions. Supports expressions.",
              "oneOf" : [ {
                "$ref" : "#/definitions/pipeline/common/MatrixConfigV1"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "for" : {
              "description" : "For-loop strategy configuration. Supports expressions.",
              "oneOf" : [ {
                "$ref" : "#/definitions/pipeline/common/ForConfigV1"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "while" : {
              "description" : "While-loop strategy configuration. Supports expressions.",
              "oneOf" : [ {
                "$ref" : "#/definitions/pipeline/common/WhileConfigV1"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "repeat" : {
              "description" : "Repeat strategy configuration for iterating over items. Supports expressions.",
              "oneOf" : [ {
                "$ref" : "#/definitions/pipeline/common/RepeatConfigV1"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            }
          },
          "oneOf" : [ {
            "required" : [ "matrix" ]
          }, {
            "required" : [ "for" ]
          }, {
            "required" : [ "while" ]
          }, {
            "required" : [ "repeat" ]
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "MatrixConfigV1" : {
          "title" : "MatrixConfigV1",
          "type" : "object",
          "description" : "Matrix strategy configuration for parallel execution across multiple dimensions.",
          "properties" : {
            "exclude" : {
              "description" : "Combinations to exclude from the matrix. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "additionalProperties" : true
                }
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "include" : {
              "description" : "Additional combinations to include in the matrix. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "additionalProperties" : true
                }
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "node-name" : {
              "description" : "Custom naming pattern for matrix nodes. Supports expressions.",
              "type" : "string"
            }
          },
          "additionalProperties" : {
            "description" : "Matrix axes - key is axis name, value is array of values or expression.",
            "oneOf" : [ {
              "type" : "array"
            }, {
              "type" : "string"
            } ]
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ForConfigV1" : {
          "title" : "ForConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "For loop strategy configuration.",
          "properties" : {
            "iterations" : {
              "description" : "Number of iterations to execute. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 0
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "node-name" : {
              "description" : "Custom naming pattern for loop nodes. Supports expressions.",
              "type" : "string"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "WhileConfigV1" : {
          "title" : "WhileConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "While loop strategy configuration.",
          "properties" : {
            "iterations" : {
              "description" : "Maximum number of iterations. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 0
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "condition" : {
              "description" : "Condition expression to evaluate for continuing the loop. Supports expressions.",
              "type" : "string"
            },
            "node-name" : {
              "description" : "Custom naming pattern for loop nodes. Supports expressions.",
              "type" : "string"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "RepeatConfigV1" : {
          "title" : "RepeatConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Repeat strategy configuration for iterating over items.",
          "properties" : {
            "iterations" : {
              "description" : "Number of iterations (alternative to items). Supports expressions.",
              "oneOf" : [ {
                "type" : "integer"
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "items" : {
              "description" : "List of items to iterate over. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "node-name" : {
              "description" : "Custom naming pattern for repeat nodes. Supports expressions.",
              "type" : "string"
            },
            "partition-size" : {
              "description" : "Size of each partition when splitting items. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 0
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "start" : {
              "description" : "Starting index for iteration. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 0
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "end" : {
              "description" : "Ending index for iteration. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 0
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "unit" : {
              "description" : "Unit for partition-size (percentage or count).",
              "type" : "string",
              "enum" : [ "percentage", "count" ]
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "OnFailure" : {
          "title" : "OnFailure",
          "description" : "Failure strategy configuration. Supports single value or array. Supports expressions.",
          "oneOf" : [ {
            "$ref" : "#/definitions/pipeline/common/FailureConfigV1"
          }, {
            "type" : "array",
            "items" : {
              "$ref" : "#/definitions/pipeline/common/FailureConfigV1"
            }
          }, {
            "$ref" : "#/definitions/pipeline/common/Expression"
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "FailureConfigV1" : {
          "title" : "FailureConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Failure strategy configuration for handling errors.",
          "required" : [ "errors", "action" ],
          "properties" : {
            "errors" : {
              "description" : "List of error types to handle. Supports single value or array. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "$ref" : "#/definitions/pipeline/common/NGFailureTypeV1"
                }
              }, {
                "$ref" : "#/definitions/pipeline/common/NGFailureTypeV1"
              } ]
            },
            "action" : {
              "$ref" : "#/definitions/pipeline/common/FailureStrategyActionConfigV1"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "NGFailureTypeV1" : {
          "title" : "NGFailureTypeV1",
          "description" : "Failure error types for failure strategy configuration.",
          "type" : "string",
          "enum" : [ "unknown", "all", "authentication", "connectivity", "timeout", "authorization", "verification", "delegate-provisioning", "policy-evaluation", "input-timeout", "approval-rejection", "delegate-restart", "user-mark-fail", "proceed-with-default" ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "FailureStrategyActionConfigV1" : {
          "title" : "FailureStrategyActionConfigV1",
          "description" : "Action configuration for failure strategy. Can be a string shorthand or a detailed object.",
          "oneOf" : [ {
            "type" : "string",
            "enum" : [ "abort", "ignore", "success", "stage-rollback", "pipeline-rollback", "fail", "proceed-with-default" ]
          }, {
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "retry" : {
                "$ref" : "#/definitions/pipeline/common/RetryFailureSpecConfigV1"
              },
              "manual-intervention" : {
                "$ref" : "#/definitions/pipeline/common/ManualFailureSpecConfigV1"
              },
              "abort" : {
                "description" : "Abort the execution.",
                "type" : "object"
              },
              "ignore" : {
                "description" : "Ignore the failure and continue.",
                "type" : "object"
              },
              "success" : {
                "description" : "Mark the execution as success.",
                "type" : "object"
              },
              "stage-rollback" : {
                "description" : "Rollback the stage.",
                "type" : "object"
              },
              "pipeline-rollback" : {
                "description" : "Rollback the pipeline.",
                "type" : "object"
              },
              "fail" : {
                "description" : "Mark the execution as failed.",
                "type" : "object"
              },
              "retry-step-group" : {
                "$ref" : "#/definitions/pipeline/common/RetryStepGroupFailureSpecConfigV1"
              },
              "proceed-with-default" : {
                "description" : "Proceed with default values.",
                "type" : "object"
              },
              "fail-all" : {
                "description" : "Fail all running stages/steps.",
                "type" : "boolean"
              }
            }
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "RetryFailureSpecConfigV1" : {
          "title" : "RetryFailureSpecConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Retry configuration for failure strategy.",
          "properties" : {
            "attempts" : {
              "description" : "Number of retry attempts. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 1
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "interval" : {
              "description" : "Interval between retries. Can be single value or array of timeouts. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }, {
                "type" : "string"
              } ]
            },
            "failure-action" : {
              "description" : "Action to take after all retries are exhausted.",
              "$ref" : "#/definitions/pipeline/common/FailureStrategyActionConfigV1"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ManualFailureSpecConfigV1" : {
          "title" : "ManualFailureSpecConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Manual intervention configuration for failure strategy.",
          "properties" : {
            "timeout" : {
              "description" : "Timeout for manual intervention. Supports expressions.",
              "type" : "string"
            },
            "timeout-action" : {
              "description" : "Action to take when timeout is reached.",
              "$ref" : "#/definitions/pipeline/common/FailureStrategyActionConfigV1"
            },
            "available-actions" : {
              "description" : "List of available actions for manual intervention.",
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/pipeline/common/FailureStrategyActionConfigV1"
              }
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "RetryStepGroupFailureSpecConfigV1" : {
          "title" : "RetryStepGroupFailureSpecConfigV1",
          "type" : "object",
          "additionalProperties" : false,
          "description" : "Retry step group configuration for failure strategy.",
          "properties" : {
            "attempts" : {
              "description" : "Number of retry attempts. Supports expressions.",
              "oneOf" : [ {
                "type" : "integer",
                "minimum" : 1
              }, {
                "$ref" : "#/definitions/pipeline/common/Expression"
              } ]
            },
            "interval" : {
              "description" : "Interval between retries. Can be single value or array of timeouts. Supports expressions.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }, {
                "type" : "string"
              } ]
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "OutputV1" : {
          "title" : "OutputV1",
          "description" : "Output variable definition for capturing step outputs.",
          "type" : "object",
          "additionalProperties" : false,
          "required" : [ "name" ],
          "properties" : {
            "name" : {
              "description" : "Name of the output variable.",
              "type" : "string"
            },
            "alias" : {
              "description" : "Alias for the output variable.",
              "type" : "string"
            },
            "mask" : {
              "description" : "Whether to mask the output variable value in logs.",
              "type" : "boolean",
              "default" : false
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "ObjectOrExpression" : {
          "title" : "ObjectOrExpression",
          "description" : "Object or expression value. Supports expressions.",
          "oneOf" : [ {
            "type" : "object",
            "additionalProperties" : true
          }, {
            "$ref" : "#/definitions/pipeline/common/Expression"
          } ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "UnifiedTemplate" : {
          "title" : "UnifiedTemplate",
          "description" : "Template reference for steps, stages, or pipelines.",
          "type" : "object",
          "additionalProperties" : false,
          "properties" : {
            "id" : {
              "type" : "string",
              "description" : "Identifier for the template-referenced item."
            },
            "name" : {
              "type" : "string",
              "description" : "Display name for the template-referenced item."
            },
            "template" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "agent" : {
              "description" : "Alias for `template`, used to reference an agent template.",
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "action" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "deploy" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "build" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "test" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "chaos" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "idp" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "iacm" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "sto" : {
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            },
            "ai-eval" : {
              "description" : "Alias for AI evaluation step template.",
              "$ref" : "#/definitions/pipeline/common/TemplateRef"
            }
          },
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "CIResourceClass" : {
          "title" : "CIResourceClass",
          "description" : "Cloud runner machine size enumeration (maps to io.harness.beans.yaml.extended.CIResourceClass).",
          "type" : "string",
          "enum" : [ "xsmall", "flex", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge" ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        },
        "PullPolicy" : {
          "title" : "PullPolicy",
          "description" : "Image pull policy enumeration (maps to io.harness.beans.yaml.extended.beans.PullPolicy).",
          "type" : "string",
          "enum" : [ "always", "never", "if-not-exists" ],
          "$schema" : "http://json-schema.org/draft-07/schema#"
        }
      },
      "Reference" : {
        "title" : "Reference",
        "description" : "Reference defines a git clone reference.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "name" : {
            "description" : "Name provides ref name (branch name, tag name, or PR number).",
            "type" : "string",
            "minLength" : 1
          },
          "type" : {
            "description" : "Type defines the ref type.",
            "type" : "string",
            "enum" : [ "branch", "tag", "pull-request", "commit" ]
          },
          "sha" : {
            "description" : "Sha provides the commit sha for direct sha-based clone.",
            "type" : "string",
            "minLength" : 1
          },
          "number" : {
            "description" : "Number provides the PR number for pull-request type clone.",
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "string"
            } ]
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "Resource" : {
        "title" : "Resource",
        "type" : "object",
        "additionalProperties" : false,
        "description" : "Resource defines container resource limits and requests.",
        "properties" : {
          "limits" : {
            "description" : "Limits defines the maximum resources the container can use.",
            "$ref" : "#/definitions/pipeline/ResourceLimits"
          },
          "requests" : {
            "description" : "Requests defines the minimum resources reserved for the container.",
            "$ref" : "#/definitions/pipeline/ResourceLimits"
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "ResourceLimits" : {
        "title" : "ResourceLimits",
        "type" : "object",
        "additionalProperties" : false,
        "description" : "ResourceLimits defines CPU and memory constraints.",
        "properties" : {
          "cpu" : {
            "description" : "CPU allocation (e.g., \"100m\", \"0.5\", \"2\").",
            "type" : "string",
            "minLength" : 1
          },
          "memory" : {
            "description" : "Memory allocation (e.g., \"128Mi\", \"1Gi\").",
            "type" : "string",
            "minLength" : 1
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "Repository" : {
        "title" : "Repository",
        "description" : "Repository defines a remote git repository.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "connector" : {
            "description" : "Connector provides the repository connector.",
            "type" : "string"
          },
          "name" : {
            "description" : "Name provides the repository name.",
            "type" : "string"
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "On" : {
        "title" : "On",
        "description" : "On provides conditional pipeline execution logic based on trigger event and action mapping. If the conditional logic resolves to false, the pipeline is skipped.",
        "oneOf" : [ {
          "$ref" : "#/definitions/pipeline/EventType"
        }, {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/pipeline/OnEvent"
          }
        } ],
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "EventType" : {
        "title" : "EventType",
        "description" : "EventType defines the supported trigger event types.",
        "type" : "string",
        "enum" : [ "push", "pull_request" ],
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "OnEvent" : {
        "title" : "OnEvent",
        "description" : "OnEvent represents a single event in the on array - either a string or an object with event configuration.",
        "oneOf" : [ {
          "$ref" : "#/definitions/pipeline/EventType"
        }, {
          "type" : "object",
          "properties" : {
            "push" : {
              "$ref" : "#/definitions/pipeline/BranchFilter"
            },
            "pull_request" : {
              "$ref" : "#/definitions/pipeline/BranchFilter"
            }
          },
          "minProperties" : 1,
          "maxProperties" : 1
        } ],
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "BranchFilter" : {
        "title" : "BranchFilter",
        "description" : "BranchFilter defines branch filtering for push and pull_request events.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "branches" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "NotificationRules" : {
        "title" : "NotificationRules",
        "description" : "NotificationRules defines notification configuration for pipeline events.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Unique identifier for the notification rule."
          },
          "name" : {
            "type" : "string",
            "description" : "Name of the notification rule."
          },
          "disabled" : {
            "type" : "boolean",
            "description" : "Whether the notification rule is disabled."
          },
          "on" : {
            "type" : "array",
            "description" : "Notification events that trigger the notification.",
            "items" : {
              "$ref" : "#/definitions/pipeline/NotificationEvent"
            }
          },
          "uses" : {
            "description" : "Notification channel type.",
            "type" : "string",
            "enum" : [ "email", "webhook", "pager-duty", "ms-teams", "slack", "datadog" ]
          },
          "with" : {
            "description" : "Channel-specific configuration based on 'uses' type.",
            "type" : "object"
          }
        },
        "allOf" : [ {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "email"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsEmailChannel"
              }
            }
          }
        }, {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "slack"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsSlackChannel"
              }
            }
          }
        }, {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "ms-teams"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsMSTeamChannel"
              }
            }
          }
        }, {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "webhook"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsWebhookChannel"
              }
            }
          }
        }, {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "pager-duty"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsPagerDutyChannel"
              }
            }
          }
        }, {
          "if" : {
            "properties" : {
              "uses" : {
                "const" : "datadog"
              }
            }
          },
          "then" : {
            "properties" : {
              "with" : {
                "$ref" : "#/definitions/pipeline/PmsDatadogChannel"
              }
            }
          }
        } ],
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "NotificationEvent" : {
        "title" : "NotificationEvent",
        "description" : "NotificationEvent defines event types that trigger notifications.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "pipeline" : {
            "description" : "Pipeline-level events.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "all", "start", "success", "failed", "end" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "all", "start", "success", "failed", "end" ]
              }
            } ]
          },
          "stage" : {
            "description" : "Stage-level events.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "all" ]
            }, {
              "type" : "array",
              "items" : {
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "all", "start", "success", "failed" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "all" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      } ]
                    },
                    "start" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      } ]
                    },
                    "success" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      } ]
                    },
                    "failed" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      } ]
                    }
                  },
                  "minProperties" : 1,
                  "maxProperties" : 1
                } ]
              }
            } ]
          },
          "step" : {
            "description" : "Step-level events.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "failed" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "failed" ]
              }
            } ]
          },
          "trigger" : {
            "description" : "Trigger-level events.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "failed" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "failed" ]
              }
            } ]
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsEmailChannel" : {
        "title" : "PmsEmailChannel",
        "description" : "Email notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "user-groups" : {
            "description" : "List of user group references.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            } ]
          },
          "recipients" : {
            "description" : "List of email recipients.",
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsSlackChannel" : {
        "title" : "PmsSlackChannel",
        "description" : "Slack notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "user-groups" : {
            "description" : "List of user group references.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            } ]
          },
          "webhook" : {
            "description" : "Slack webhook URL.",
            "type" : "string"
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsMSTeamChannel" : {
        "title" : "PmsMSTeamChannel",
        "description" : "Microsoft Teams notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "keys" : {
            "description" : "List of MS Teams webhook keys.",
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "user-groups" : {
            "description" : "List of user group references.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            } ]
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsWebhookChannel" : {
        "title" : "PmsWebhookChannel",
        "description" : "Webhook notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "url" : {
            "description" : "Webhook URL.",
            "type" : "string"
          },
          "headers" : {
            "description" : "HTTP headers for the webhook request.",
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsPagerDutyChannel" : {
        "title" : "PmsPagerDutyChannel",
        "description" : "PagerDuty notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "user-groups" : {
            "description" : "List of user group references.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            } ]
          },
          "key" : {
            "description" : "PagerDuty integration key.",
            "type" : "string"
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "PmsDatadogChannel" : {
        "title" : "PmsDatadogChannel",
        "description" : "Datadog notification channel configuration.",
        "type" : "object",
        "additionalProperties" : false,
        "properties" : {
          "api-key" : {
            "description" : "Datadog API key.",
            "type" : "string"
          },
          "url" : {
            "description" : "Datadog URL endpoint.",
            "type" : "string"
          },
          "headers" : {
            "description" : "HTTP headers for the request.",
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "delegate" : {
            "description" : "Delegate selectors.",
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "execute-on-delegate" : {
            "description" : "Whether to execute on delegate.",
            "type" : "boolean"
          }
        },
        "$schema" : "http://json-schema.org/draft-07/schema#"
      },
      "stages" : {
        "unified" : {
          "StageItems" : {
            "title" : "StageItems",
            "description" : "Available stage types for pipeline execution.",
            "type" : "object",
            "if" : {
              "anyOf" : [ {
                "required" : [ "steps" ]
              }, {
                "required" : [ "chain" ]
              }, {
                "required" : [ "parallel" ]
              }, {
                "required" : [ "group" ]
              }, {
                "required" : [ "template" ]
              }, {
                "required" : [ "action" ]
              }, {
                "required" : [ "deploy" ]
              }, {
                "required" : [ "build" ]
              }, {
                "required" : [ "test" ]
              }, {
                "required" : [ "chaos" ]
              }, {
                "required" : [ "idp" ]
              }, {
                "required" : [ "iacm" ]
              }, {
                "required" : [ "sto" ]
              }, {
                "required" : [ "dynamic" ]
              } ]
            },
            "then" : {
              "allOf" : [ {
                "if" : {
                  "required" : [ "steps" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/stages/unified/UnifiedStageNodeV1"
                }
              }, {
                "if" : {
                  "required" : [ "chain" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/stages/unified/UnifiedPipelineStageNode"
                }
              }, {
                "if" : {
                  "required" : [ "dynamic" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/stages/unified/DynamicStageNodeV1"
                }
              }, {
                "if" : {
                  "required" : [ "parallel" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/stages/unified/ParallelStages"
                }
              }, {
                "if" : {
                  "required" : [ "group" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/stages/unified/GroupStages"
                }
              }, {
                "if" : {
                  "anyOf" : [ {
                    "required" : [ "template" ]
                  }, {
                    "required" : [ "action" ]
                  }, {
                    "required" : [ "deploy" ]
                  }, {
                    "required" : [ "build" ]
                  }, {
                    "required" : [ "test" ]
                  }, {
                    "required" : [ "chaos" ]
                  }, {
                    "required" : [ "idp" ]
                  }, {
                    "required" : [ "iacm" ]
                  }, {
                    "required" : [ "sto" ]
                  } ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/common/UnifiedTemplate"
                }
              } ]
            },
            "else" : {
              "required" : [ "steps" ]
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedStageNodeV1" : {
            "title" : "UnifiedStageNodeV1",
            "description" : "Unified stage node supporting CI, CD, IaCM and other stage types.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "steps" ],
            "properties" : {
              "id" : {
                "type" : "string",
                "description" : "Unique identifier for the stage."
              },
              "name" : {
                "type" : "string",
                "description" : "Display name of the stage."
              },
              "description" : {
                "type" : "string",
                "description" : "Description of the stage."
              },
              "tags" : {
                "type" : "object",
                "description" : "Tags for the stage.",
                "additionalProperties" : {
                  "type" : "string"
                }
              },
              "if" : {
                "type" : "string",
                "description" : "Conditional execution expression. Stage is skipped if condition resolves to false."
              },
              "inputs" : {
                "description" : "Stage-level input variables.",
                "$ref" : "#/definitions/pipeline/common/NGVariableV1Wrapper"
              },
              "delegate" : {
                "$ref" : "#/definitions/pipeline/common/Delegate"
              },
              "strategy" : {
                "description" : "Execution strategy (matrix, parallelism, etc.). Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/common/StrategyConfigV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "timeout" : {
                "type" : "string",
                "description" : "Stage timeout duration.",
                "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
              },
              "labels" : {
                "type" : "object",
                "description" : "Labels for the stage.",
                "additionalProperties" : {
                  "type" : "string"
                }
              },
              "exports" : {
                "type" : "object",
                "description" : "Export configuration for stage outputs."
              },
              "on-failure" : {
                "$ref" : "#/definitions/pipeline/common/OnFailure"
              },
              "shared-paths" : {
                "description" : "Paths shared across steps within the stage. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "needs" : {
                "description" : "Stage dependencies (stages that must complete before this one).",
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                } ]
              },
              "runs-on" : {
                "type" : "string",
                "description" : "Infrastructure/runner specification."
              },
              "steps" : {
                "type" : "array",
                "description" : "List of steps to execute in the stage.",
                "items" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/StepItems"
                }
              },
              "rollback" : {
                "type" : "array",
                "description" : "Rollback steps to execute on failure.",
                "items" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/StepItems"
                }
              },
              "runtime" : {
                "description" : "Runtime configuration (cloud, VM, Kubernetes).",
                "$ref" : "#/definitions/pipeline/stages/unified/RuntimeV1"
              },
              "clone" : {
                "type" : "object",
                "description" : "Git clone configuration for the stage.",
                "$ref" : "#/definitions/pipeline/Clone"
              },
              "platform" : {
                "description" : "Platform configuration (OS, architecture).",
                "$ref" : "#/definitions/pipeline/steps/common/PlatformV1"
              },
              "service" : {
                "description" : "Service configuration for CD stages.",
                "$ref" : "#/definitions/pipeline/stages/unified/ServiceV1"
              },
              "environment" : {
                "description" : "Environment configuration for CD stages.",
                "$ref" : "#/definitions/pipeline/stages/unified/EnvironmentV1"
              },
              "workspace" : {
                "type" : "string",
                "description" : "IaCM workspace identifier."
              },
              "remote-execution" : {
                "type" : "string",
                "description" : "Remote execution configuration for IaCM."
              },
              "tofu-module" : {
                "type" : "string",
                "description" : "OpenTofu/Terraform module reference."
              },
              "env" : {
                "description" : "Environment variables for the stage. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "cache" : {
                "description" : "Cache intelligence configuration.",
                "$ref" : "#/definitions/pipeline/stages/unified/CachingV1"
              },
              "build-intelligence" : {
                "description" : "Build intelligence configuration for test optimization.",
                "$ref" : "#/definitions/pipeline/stages/unified/BuildIntelligenceV1"
              },
              "volumes" : {
                "description" : "Volume configurations for the stage runtime. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/CIVolumeV1"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "permissions" : {
                "type" : "object",
                "additionalProperties" : true,
                "description" : "scoped permissions definition at stage"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "RuntimeV1" : {
            "title" : "RuntimeV1",
            "description" : "Runtime execution engine configuration. Either a string shorthand (cloud|shell|vm|k8) or an object carrying one of the runtime specs.",
            "$schema" : "http://json-schema.org/draft-07/schema#",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "cloud", "shell", "vm", "k8" ]
            }, {
              "type" : "object",
              "additionalProperties" : false,
              "properties" : {
                "shell" : {
                  "description" : "Shell runtime specification.",
                  "$ref" : "#/definitions/pipeline/stages/unified/ShellRuntimeSpec"
                },
                "cloud" : {
                  "description" : "Cloud runtime specification.",
                  "$ref" : "#/definitions/pipeline/stages/unified/CloudRuntimeSpec"
                },
                "vm" : {
                  "description" : "VM runtime specification.",
                  "$ref" : "#/definitions/pipeline/stages/unified/VMRuntimeSpec"
                },
                "kubernetes" : {
                  "description" : "Kubernetes runtime specification.",
                  "$ref" : "#/definitions/pipeline/stages/unified/K8RuntimeSpec"
                },
                "delegate" : {
                  "description" : "Delegate selectors used for Kubernetes inherit-from-delegate authentication.",
                  "$ref" : "#/definitions/pipeline/common/Delegate"
                }
              }
            } ]
          },
          "ShellRuntimeSpec" : {
            "title" : "ShellRuntimeSpec",
            "description" : "Shell runtime specification. Mirrors io.harness.beans.yaml.extended.runtime.V1.RuntimeV1.ShellRuntimeSpec.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "connector" : {
                "description" : "Override image connector for pulling private Harness plugin images. Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "CloudRuntimeSpec" : {
            "title" : "CloudRuntimeSpec",
            "description" : "Cloud runtime specification. Mirrors io.harness.beans.yaml.extended.runtime.V1.RuntimeV1.CloudRuntimeSpec.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "size" : {
                "description" : "Machine size class for the cloud runner. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/common/CIResourceClass"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "virtualization" : {
                "description" : "Whether nested virtualization is enabled on the runner. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "image" : {
                "description" : "Bring-Your-Own-Image runner image reference. Supports expressions.",
                "type" : "string"
              },
              "connector" : {
                "description" : "Connector reference used to pull the BYOI runner image. Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "VMRuntimeSpec" : {
            "title" : "VMRuntimeSpec",
            "description" : "VM runtime specification. Mirrors io.harness.beans.yaml.extended.runtime.V1.RuntimeV1.VMRuntimeSpec.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "pool" ],
            "properties" : {
              "pool" : {
                "description" : "VM pool identifier. Supports expressions.",
                "type" : "string"
              },
              "os" : {
                "description" : "Operating system for the VM runtime. Supports expressions.",
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "linux", "windows", "macos" ]
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "harness-image-connector" : {
                "description" : "Harness image connector used to pull runner images. Supports expressions.",
                "type" : "string"
              },
              "timeout" : {
                "description" : "VM init timeout duration. Supports expressions.",
                "type" : "string",
                "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "K8RuntimeSpec" : {
            "title" : "K8RuntimeSpec",
            "description" : "Kubernetes runtime specification. Mirrors io.harness.beans.yaml.extended.runtime.V1.RuntimeV1.K8RuntimeSpec.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "namespace" : {
                "description" : "Kubernetes namespace. Supports expressions.",
                "type" : "string"
              },
              "connector" : {
                "description" : "Kubernetes connector reference. Supports expressions.",
                "type" : "string"
              },
              "user" : {
                "description" : "User ID to run container as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "pull" : {
                "description" : "Image pull policy. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/common/PullPolicy"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "harness-image-connector" : {
                "description" : "Harness image connector for pulling images. Supports expressions.",
                "type" : "string"
              },
              "automount-service-token" : {
                "description" : "Whether to automount service account token. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "priority-class" : {
                "description" : "Kubernetes priority class name. Supports expressions.",
                "type" : "string"
              },
              "tolerations" : {
                "description" : "Kubernetes pod tolerations. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/Toleration"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "host" : {
                "description" : "Host aliases for the pod. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "node-selector" : {
                "description" : "Kubernetes node selector. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "timeout" : {
                "description" : "Init timeout duration. Supports expressions.",
                "type" : "string",
                "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
              },
              "service-account" : {
                "description" : "Kubernetes service account name. Supports expressions.",
                "type" : "string"
              },
              "labels" : {
                "description" : "Pod labels. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "annotations" : {
                "description" : "Pod annotations. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "volumes" : {
                "description" : "Volume configurations. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/CIVolumeV1"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "pod-spec-overlay" : {
                "description" : "Pod spec overlay JSON/YAML. Supports expressions.",
                "type" : "string"
              },
              "security-context" : {
                "description" : "Pod security context. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/stages/unified/SecurityContextV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "Toleration" : {
            "title" : "Toleration",
            "description" : "Kubernetes pod toleration.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "effect" : {
                "description" : "Toleration effect. Supports expressions.",
                "type" : "string"
              },
              "key" : {
                "description" : "Toleration key. Supports expressions.",
                "type" : "string"
              },
              "operator" : {
                "description" : "Toleration operator. Supports expressions.",
                "type" : "string"
              },
              "tolerationSeconds" : {
                "description" : "Toleration seconds for NoExecute effect. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string",
                  "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
                } ]
              },
              "value" : {
                "description" : "Toleration value. Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "CIVolumeV1" : {
            "title" : "CIVolumeV1",
            "description" : "CI volume configuration. Type determined by 'uses' property.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "uses", "with" ],
            "properties" : {
              "name" : {
                "description" : "Volume name.",
                "type" : "string"
              },
              "uses" : {
                "description" : "Volume type.",
                "type" : "string",
                "enum" : [ "empty-dir", "persistent-volume-claim", "host-path", "config-map", "secret" ]
              },
              "with" : {
                "description" : "Volume-specific configuration; shape determined by `uses`.",
                "type" : "object"
              }
            },
            "allOf" : [ {
              "if" : {
                "properties" : {
                  "uses" : {
                    "const" : "empty-dir"
                  }
                }
              },
              "then" : {
                "properties" : {
                  "with" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/EmptyDirYamlV1Spec"
                  }
                }
              }
            }, {
              "if" : {
                "properties" : {
                  "uses" : {
                    "const" : "persistent-volume-claim"
                  }
                }
              },
              "then" : {
                "properties" : {
                  "with" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/PersistentVolumeClaimYamlSpecV1"
                  }
                }
              }
            }, {
              "if" : {
                "properties" : {
                  "uses" : {
                    "const" : "host-path"
                  }
                }
              },
              "then" : {
                "properties" : {
                  "with" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/HostPathYamlSpecV1"
                  }
                }
              }
            }, {
              "if" : {
                "properties" : {
                  "uses" : {
                    "const" : "config-map"
                  }
                }
              },
              "then" : {
                "properties" : {
                  "with" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/ConfigMapVolumeYamlSpecV1"
                  }
                }
              }
            }, {
              "if" : {
                "properties" : {
                  "uses" : {
                    "const" : "secret"
                  }
                }
              },
              "then" : {
                "properties" : {
                  "with" : {
                    "$ref" : "#/definitions/pipeline/stages/unified/SecretVolumeYamlSpecV1"
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "EmptyDirYamlV1Spec" : {
            "title" : "EmptyDirYamlV1Spec",
            "description" : "EmptyDir volume specification.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "mount-path" ],
            "properties" : {
              "mount-path" : {
                "description" : "Mount path in the container. Supports expressions.",
                "type" : "string"
              },
              "medium" : {
                "description" : "Storage medium (Memory or default). Supports expressions.",
                "type" : "string"
              },
              "size" : {
                "description" : "Size limit for the volume. Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "PersistentVolumeClaimYamlSpecV1" : {
            "title" : "PersistentVolumeClaimYamlSpecV1",
            "description" : "PersistentVolumeClaim volume specification.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "mount-path", "claim-name" ],
            "properties" : {
              "mount-path" : {
                "description" : "Mount path in the container. Supports expressions.",
                "type" : "string"
              },
              "claim-name" : {
                "description" : "Name of the PersistentVolumeClaim. Supports expressions.",
                "type" : "string"
              },
              "read-only" : {
                "description" : "Whether to mount as read-only. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "HostPathYamlSpecV1" : {
            "title" : "HostPathYamlSpecV1",
            "description" : "HostPath volume specification.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "mount-path", "path" ],
            "properties" : {
              "mount-path" : {
                "description" : "Mount path in the container. Supports expressions.",
                "type" : "string"
              },
              "path" : {
                "description" : "Path on the host. Supports expressions.",
                "type" : "string"
              },
              "type" : {
                "description" : "HostPath type (DirectoryOrCreate, Directory, FileOrCreate, File, Socket, CharDevice, BlockDevice). Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ConfigMapVolumeYamlSpecV1" : {
            "title" : "ConfigMapVolumeYamlSpecV1",
            "description" : "ConfigMap volume specification.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "mount-path", "name" ],
            "properties" : {
              "mount-path" : {
                "description" : "Mount path in the container. Supports expressions.",
                "type" : "string"
              },
              "name" : {
                "description" : "Name of the ConfigMap. Supports expressions.",
                "type" : "string"
              },
              "optional" : {
                "description" : "Whether the ConfigMap must exist. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "SecretVolumeYamlSpecV1" : {
            "title" : "SecretVolumeYamlSpecV1",
            "description" : "Secret volume specification.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "mount-path", "name" ],
            "properties" : {
              "mount-path" : {
                "description" : "Mount path in the container. Supports expressions.",
                "type" : "string"
              },
              "name" : {
                "description" : "Name of the Secret. Supports expressions.",
                "type" : "string"
              },
              "optional" : {
                "description" : "Whether the Secret must exist. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "SecurityContextV1" : {
            "title" : "SecurityContextV1",
            "description" : "Kubernetes pod security context.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "allow-privilege-escalation" : {
                "description" : "Whether to allow privilege escalation. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "proc-mount" : {
                "description" : "Proc mount type. Supports expressions.",
                "type" : "string"
              },
              "privileged" : {
                "description" : "Whether to run in privileged mode. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "read-only-root-file-system" : {
                "description" : "Whether root filesystem is read-only. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "run-as-non-root" : {
                "description" : "Whether to run as non-root user. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "run-as-group" : {
                "description" : "Group ID to run container as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "user" : {
                "description" : "User ID to run container as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "capabilities" : {
                "description" : "Container capabilities configuration. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/stages/unified/Capabilities"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "Capabilities" : {
            "title" : "Capabilities",
            "description" : "Container capabilities configuration.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "add" : {
                "description" : "Capabilities to add. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "drop" : {
                "description" : "Capabilities to drop. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ServiceV1" : {
            "title" : "ServiceV1",
            "description" : "Service configuration for CD stages. Supports multiple formats.",
            "oneOf" : [ {
              "type" : "string",
              "description" : "Service identifier reference."
            }, {
              "type" : "object",
              "required" : [ "id" ],
              "properties" : {
                "type" : {
                  "description" : "Service swimlane hint for the single service.",
                  "$ref" : "#/definitions/pipeline/stages/unified/ServiceType"
                },
                "id" : {
                  "description" : "Service identifier.",
                  "type" : "string"
                },
                "ref" : {
                  "description" : "Git branch for the service configuration.",
                  "type" : "string"
                },
                "with" : {
                  "description" : "Service input overrides.",
                  "$ref" : "#/definitions/pipeline/common/WithInputs"
                }
              },
              "additionalProperties" : false
            }, {
              "type" : "object",
              "required" : [ "items" ],
              "properties" : {
                "type" : {
                  "description" : "Service swimlane hint applied to the multi-service group.",
                  "$ref" : "#/definitions/pipeline/stages/unified/ServiceType"
                },
                "items" : {
                  "description" : "List of services for multi-service deployment. Can be a fixed list or a single runtime input for the whole list.",
                  "oneOf" : [ {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/stages/unified/ServiceItem"
                    }
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                },
                "parallel" : {
                  "description" : "Execute services in parallel (all at once). Defaults to false, so services run one at a time (serially) unless set to true.",
                  "oneOf" : [ {
                    "type" : "boolean",
                    "default" : false
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                }
              },
              "additionalProperties" : false
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ServiceType" : {
            "title" : "ServiceType",
            "description" : "Optional service swimlane hint (e.g. kubernetes, helm). Mandatory when the service is a runtime input so the swimlane can be determined before the service is resolved. Validated against the resolved service type at runtime.",
            "type" : "string",
            "enum" : [ "kubernetes", "helm", "aws-sam", "serverless", "google-cloud-run", "azure-function", "azure-web-app", "ecs", "asg", "aws-lambda", "azure-container-apps", "aws-agent-core", "google-agent-runtime" ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ServiceItem" : {
            "title" : "ServiceItem",
            "description" : "Single service item configuration.",
            "oneOf" : [ {
              "type" : "string",
              "description" : "Service identifier reference."
            }, {
              "type" : "object",
              "required" : [ "id" ],
              "properties" : {
                "id" : {
                  "description" : "Service identifier.",
                  "type" : "string"
                },
                "ref" : {
                  "description" : "Git branch for the service configuration.",
                  "type" : "string"
                },
                "with" : {
                  "description" : "Service input overrides.",
                  "$ref" : "#/definitions/pipeline/common/WithInputs"
                }
              },
              "additionalProperties" : false
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "EnvironmentV1" : {
            "title" : "EnvironmentV1",
            "description" : "Environment configuration for CD stages.",
            "oneOf" : [ {
              "description" : "Harness expression that resolves to the environment configuration.",
              "$ref" : "#/definitions/pipeline/common/Expression"
            }, {
              "type" : "object",
              "required" : [ "id" ],
              "properties" : {
                "id" : {
                  "description" : "Environment identifier.",
                  "type" : "string"
                },
                "all-infra" : {
                  "description" : "Deploy to all infrastructures in the environment. With a `deploy-to` runtime input sibling, every infrastructure is preselected in the run form; with no `deploy-to` sibling, deploys to all without prompting.",
                  "type" : "boolean"
                },
                "deploy-to" : {
                  "description" : "Infrastructure(s) to deploy to.",
                  "$ref" : "#/definitions/pipeline/stages/unified/DeployTo"
                },
                "ref" : {
                  "description" : "Git branch for the environment configuration.",
                  "type" : "string"
                }
              },
              "additionalProperties" : false
            }, {
              "type" : "object",
              "required" : [ "items" ],
              "properties" : {
                "items" : {
                  "description" : "List of environments for multi-environment deployment.",
                  "$ref" : "#/definitions/pipeline/stages/unified/EnvironmentItems"
                },
                "parallel" : {
                  "description" : "Execute environments in parallel (all at once). Defaults to false, so environments run one at a time (serially) unless set to true.",
                  "oneOf" : [ {
                    "type" : "boolean",
                    "default" : false
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                }
              },
              "additionalProperties" : false
            }, {
              "type" : "object",
              "required" : [ "group" ],
              "properties" : {
                "group" : {
                  "description" : "Environment group configuration, or an expression (e.g. <+input>).",
                  "$ref" : "#/definitions/pipeline/stages/unified/EnvironmentGroup"
                },
                "parallel" : {
                  "description" : "Execute environments in parallel (all at once). Defaults to false, so environments run one at a time (serially) unless set to true.",
                  "oneOf" : [ {
                    "type" : "boolean",
                    "default" : false
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                }
              },
              "additionalProperties" : false
            }, {
              "type" : "object",
              "required" : [ "filters" ],
              "properties" : {
                "filters" : {
                  "description" : "Filters for selecting environments and infrastructures.",
                  "$ref" : "#/definitions/pipeline/stages/unified/Filters"
                },
                "parallel" : {
                  "description" : "Execute environments in parallel (all at once). Defaults to false, so environments run one at a time (serially) unless set to true.",
                  "oneOf" : [ {
                    "type" : "boolean",
                    "default" : false
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                }
              },
              "additionalProperties" : false
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "DeployTo" : {
            "title" : "DeployTo",
            "description" : "Infrastructure deployment target configuration.",
            "oneOf" : [ {
              "$ref" : "#/definitions/pipeline/stages/unified/InfraItem"
            }, {
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/pipeline/stages/unified/InfraItem"
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "InfraItem" : {
            "title" : "InfraItem",
            "description" : "Single infrastructure item configuration.",
            "oneOf" : [ {
              "type" : "string",
              "description" : "Infrastructure identifier."
            }, {
              "type" : "object",
              "required" : [ "id" ],
              "properties" : {
                "id" : {
                  "description" : "Infrastructure identifier.",
                  "type" : "string"
                },
                "with" : {
                  "description" : "Infrastructure input overrides.",
                  "$ref" : "#/definitions/pipeline/common/WithInputs"
                }
              },
              "additionalProperties" : false
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "EnvironmentItems" : {
            "title" : "EnvironmentItems",
            "description" : "List of environments for multi-environment deployment, or an expression.",
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/pipeline/stages/unified/EnvironmentItem"
              }
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "EnvironmentItem" : {
            "title" : "EnvironmentItem",
            "description" : "Single environment item configuration.",
            "type" : "object",
            "required" : [ "id" ],
            "properties" : {
              "id" : {
                "description" : "Environment identifier.",
                "type" : "string"
              },
              "ref" : {
                "description" : "Git branch for the environment configuration.",
                "type" : "string"
              },
              "all-infra" : {
                "description" : "Deploy to all infrastructures in the environment. With a `deploy-to` runtime input sibling, every infrastructure is preselected in the run form; with no `deploy-to` sibling, deploys to all without prompting.",
                "type" : "boolean"
              },
              "deploy-to" : {
                "description" : "Infrastructure(s) to deploy to.",
                "$ref" : "#/definitions/pipeline/stages/unified/DeployTo"
              },
              "filters" : {
                "description" : "Filters for selecting infrastructures.",
                "$ref" : "#/definitions/pipeline/stages/unified/Filters"
              }
            },
            "additionalProperties" : false,
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "Filters" : {
            "title" : "Filters",
            "description" : "Filters for selecting environments or infrastructures.",
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "infrastructures" : {
                  "description" : "Infrastructure filters.",
                  "oneOf" : [ {
                    "type" : "string",
                    "enum" : [ "all" ]
                  }, {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                    }
                  }, {
                    "type" : "object",
                    "properties" : {
                      "or" : {
                        "type" : "array",
                        "items" : {
                          "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                        }
                      },
                      "and" : {
                        "type" : "array",
                        "items" : {
                          "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                        }
                      }
                    },
                    "additionalProperties" : false
                  } ]
                },
                "environments" : {
                  "description" : "Environment filters.",
                  "oneOf" : [ {
                    "type" : "string",
                    "enum" : [ "all" ]
                  }, {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                    }
                  }, {
                    "type" : "object",
                    "properties" : {
                      "or" : {
                        "type" : "array",
                        "items" : {
                          "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                        }
                      },
                      "and" : {
                        "type" : "array",
                        "items" : {
                          "$ref" : "#/definitions/pipeline/stages/unified/FilterCondition"
                        }
                      }
                    },
                    "additionalProperties" : false
                  } ]
                }
              },
              "additionalProperties" : false
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "FilterCondition" : {
            "title" : "FilterCondition",
            "description" : "Filter condition for property-based filtering (e.g., tags).",
            "type" : "object",
            "properties" : {
              "tags" : {
                "description" : "Tag-based filter conditions.",
                "type" : "object",
                "oneOf" : [ {
                  "required" : [ "in" ],
                  "properties" : {
                    "in" : {
                      "description" : "Match any of the specified tags (OR).",
                      "anyOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "string"
                      } ]
                    }
                  },
                  "additionalProperties" : false
                }, {
                  "required" : [ "all" ],
                  "properties" : {
                    "all" : {
                      "description" : "Match all of the specified tags (AND).",
                      "anyOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "string"
                      } ]
                    }
                  },
                  "additionalProperties" : false
                } ]
              }
            },
            "additionalProperties" : false,
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "EnvironmentGroup" : {
            "title" : "EnvironmentGroup",
            "description" : "Environment group configuration, or an expression.",
            "oneOf" : [ {
              "type" : "object",
              "required" : [ "id" ],
              "properties" : {
                "id" : {
                  "description" : "Environment group identifier.",
                  "type" : "string"
                },
                "all-env" : {
                  "description" : "Deploy to all environments in the group. With an `items` runtime input sibling, every environment is preselected in the run form; with no `items` sibling, deploys to all without prompting.",
                  "type" : "boolean"
                },
                "parallel" : {
                  "description" : "Execute environments in parallel (all at once). Defaults to false, so environments run one at a time (serially) unless set to true.",
                  "oneOf" : [ {
                    "type" : "boolean",
                    "default" : false
                  }, {
                    "$ref" : "#/definitions/pipeline/common/Expression"
                  } ]
                },
                "items" : {
                  "description" : "List of environments from the group.",
                  "$ref" : "#/definitions/pipeline/stages/unified/EnvironmentItems"
                },
                "filters" : {
                  "description" : "Filters for selecting environments and infrastructures.",
                  "$ref" : "#/definitions/pipeline/stages/unified/Filters"
                }
              },
              "additionalProperties" : false
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "CachingV1" : {
            "title" : "CachingV1",
            "description" : "Cache intelligence configuration.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "enabled" : {
                "description" : "Whether caching is enabled. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "paths" : {
                "description" : "Paths to cache. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "key" : {
                "description" : "Cache key.",
                "type" : "string"
              },
              "override" : {
                "description" : "Whether to override existing cache.",
                "type" : "boolean"
              },
              "policy" : {
                "description" : "Cache policy (pull, push, pull-push).",
                "type" : "string",
                "enum" : [ "pull", "push", "pull-push" ]
              },
              "connector" : {
                "description" : "Cache storage connector. Supports expressions.",
                "type" : "string"
              },
              "region" : {
                "description" : "Cache storage region. Supports expressions.",
                "type" : "string"
              },
              "bucket_name" : {
                "description" : "Cache storage bucket name. Supports expressions.",
                "type" : "string"
              },
              "container_name" : {
                "description" : "Cache storage container name. Supports expressions.",
                "type" : "string"
              },
              "storage_account" : {
                "description" : "Cache storage account name. Supports expressions.",
                "type" : "string"
              },
              "user" : {
                "description" : "User ID to run cache containers as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "resources" : {
                "description" : "Cache container resource limits and requests.",
                "$ref" : "#/definitions/pipeline/Resource"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "BuildIntelligenceV1" : {
            "title" : "BuildIntelligenceV1",
            "description" : "Build intelligence configuration for test optimization.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "enabled" : {
                "description" : "Whether build intelligence is enabled. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "port" : {
                "description" : "Build intelligence cache service port. Supports expressions.",
                "type" : "string"
              },
              "maven-url" : {
                "description" : "Maven repository URL used by build intelligence. Supports expressions.",
                "type" : "string"
              },
              "connector" : {
                "description" : "Build intelligence storage connector. Supports expressions.",
                "type" : "string"
              },
              "region" : {
                "description" : "Build intelligence storage region. Supports expressions.",
                "type" : "string"
              },
              "bucket_name" : {
                "description" : "Build intelligence storage bucket name. Supports expressions.",
                "type" : "string"
              },
              "container_name" : {
                "description" : "Build intelligence storage container name. Supports expressions.",
                "type" : "string"
              },
              "storage_account" : {
                "description" : "Build intelligence storage account name. Supports expressions.",
                "type" : "string"
              },
              "user" : {
                "description" : "User ID to run build intelligence containers as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "resources" : {
                "description" : "Build intelligence container resource limits and requests.",
                "$ref" : "#/definitions/pipeline/Resource"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedPipelineStageNode" : {
            "title" : "UnifiedPipelineStageNode",
            "description" : "Pipeline chain stage node for chaining pipelines.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "chain" ],
              "properties" : {
                "chain" : {
                  "description" : "Pipeline chain configuration.",
                  "type" : "object",
                  "required" : [ "uses" ],
                  "properties" : {
                    "uses" : {
                      "description" : "Reference to the pipeline to be chained.",
                      "type" : "string"
                    },
                    "with" : {
                      "description" : "Parameters for the chained pipeline.",
                      "type" : "object",
                      "properties" : {
                        "inputs" : {
                          "description" : "Input parameters for the chained pipeline. Supports expressions.",
                          "oneOf" : [ {
                            "type" : "object",
                            "additionalProperties" : true
                          }, {
                            "$ref" : "#/definitions/pipeline/common/Expression"
                          } ]
                        },
                        "outputs" : {
                          "description" : "Output mappings from the chained pipeline.",
                          "type" : "array",
                          "items" : {
                            "$ref" : "#/definitions/pipeline/stages/unified/PipelineStageOutputs"
                          }
                        },
                        "input-sets" : {
                          "description" : "Input set references to apply.",
                          "type" : "array",
                          "items" : {
                            "type" : "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "PipelineStageOutputs" : {
            "title" : "PipelineStageOutputs",
            "description" : "Output configuration for pipeline stage.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "name", "value" ],
            "properties" : {
              "name" : {
                "description" : "Output variable name.",
                "type" : "string",
                "pattern" : "^[a-zA-Z_][0-9a-zA-Z_]*$"
              },
              "value" : {
                "description" : "Output value expression. Supports expressions.",
                "type" : "string"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "DynamicStageNodeV1" : {
            "title" : "DynamicStageNodeV1",
            "description" : "Dynamic stage node for executing child pipelines from inline or remote sources.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "dynamic" ],
            "properties" : {
              "id" : {
                "description" : "Unique identifier for the stage.",
                "type" : "string"
              },
              "name" : {
                "description" : "Display name of the stage.",
                "type" : "string"
              },
              "description" : {
                "description" : "Description of the stage.",
                "type" : "string"
              },
              "if" : {
                "description" : "Conditional execution expression. Stage is skipped if condition resolves to false.",
                "type" : "string"
              },
              "on-failure" : {
                "$ref" : "#/definitions/pipeline/common/OnFailure"
              },
              "dynamic" : {
                "description" : "Dynamic stage configuration.",
                "type" : "object",
                "additionalProperties" : false,
                "properties" : {
                  "source" : {
                    "description" : "Base64 encoded inline child pipeline YAML.",
                    "type" : "string",
                    "not" : {
                      "const" : "<+input>"
                    }
                  },
                  "source-config" : {
                    "description" : "Remote source configuration for child pipeline.",
                    "type" : "object",
                    "additionalProperties" : false,
                    "required" : [ "uses", "with" ],
                    "properties" : {
                      "uses" : {
                        "description" : "Source type.",
                        "type" : "string",
                        "enum" : [ "git" ]
                      },
                      "with" : {
                        "description" : "Git source configuration.",
                        "type" : "object",
                        "additionalProperties" : false,
                        "required" : [ "repo", "path" ],
                        "properties" : {
                          "connector" : {
                            "description" : "Git connector reference.",
                            "type" : "string"
                          },
                          "repo" : {
                            "description" : "Repository name.",
                            "type" : "string"
                          },
                          "branch" : {
                            "description" : "Branch name.",
                            "type" : "string"
                          },
                          "commit" : {
                            "description" : "Commit ID.",
                            "type" : "string"
                          },
                          "path" : {
                            "description" : "Path to the child pipeline YAML file.",
                            "type" : "string"
                          }
                        }
                      }
                    }
                  }
                },
                "oneOf" : [ {
                  "required" : [ "source" ]
                }, {
                  "required" : [ "source-config" ]
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ParallelStages" : {
            "title" : "ParallelStages",
            "description" : "Parallel stages execution configuration.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "parallel" ],
            "properties" : {
              "parallel" : {
                "description" : "Stages to execute in parallel.",
                "type" : "object",
                "additionalProperties" : false,
                "required" : [ "stages" ],
                "properties" : {
                  "stages" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/stages/unified/StageItems"
                    },
                    "minItems" : 1
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "GroupStages" : {
            "title" : "GroupStages",
            "description" : "Group of stages executed sequentially.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "group" ],
            "properties" : {
              "group" : {
                "description" : "Group configuration.",
                "type" : "object",
                "additionalProperties" : false,
                "properties" : {
                  "id" : {
                    "description" : "Unique identifier for the group.",
                    "type" : "string"
                  },
                  "name" : {
                    "description" : "Display name of the group.",
                    "type" : "string"
                  },
                  "stages" : {
                    "description" : "Stages within the group.",
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/stages/unified/StageItems"
                    },
                    "minItems" : 1
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          }
        }
      },
      "steps" : {
        "unified" : {
          "StepItems" : {
            "title" : "StepItems",
            "description" : "Available step types for pipeline execution.",
            "type" : "object",
            "if" : {
              "anyOf" : [ {
                "required" : [ "run" ]
              }, {
                "required" : [ "clone" ]
              }, {
                "required" : [ "background" ]
              }, {
                "required" : [ "run-test" ]
              }, {
                "required" : [ "wait" ]
              }, {
                "required" : [ "barrier" ]
              }, {
                "required" : [ "queue" ]
              }, {
                "required" : [ "policy" ]
              }, {
                "required" : [ "change-advisor" ]
              }, {
                "required" : [ "approval" ]
              }, {
                "required" : [ "parallel" ]
              }, {
                "required" : [ "group" ]
              }, {
                "required" : [ "template" ]
              }, {
                "required" : [ "agent" ]
              }, {
                "required" : [ "action" ]
              }, {
                "required" : [ "deploy" ]
              }, {
                "required" : [ "build" ]
              }, {
                "required" : [ "test" ]
              }, {
                "required" : [ "chaos" ]
              }, {
                "required" : [ "idp" ]
              }, {
                "required" : [ "iacm" ]
              }, {
                "required" : [ "sto" ]
              }, {
                "required" : [ "ai-eval" ]
              } ]
            },
            "then" : {
              "allOf" : [ {
                "if" : {
                  "anyOf" : [ {
                    "required" : [ "run" ]
                  }, {
                    "required" : [ "clone" ]
                  }, {
                    "required" : [ "background" ]
                  }, {
                    "required" : [ "run-test" ]
                  } ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/StepNodeV1"
                }
              }, {
                "if" : {
                  "required" : [ "wait" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedWaitStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "barrier" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedBarrierStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "queue" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedQueueStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "policy" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPolicyStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "change-advisor" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedChangeAdvisorStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "approval" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/UnifiedApprovalStepNode"
                }
              }, {
                "if" : {
                  "required" : [ "parallel" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/ParallelSteps"
                }
              }, {
                "if" : {
                  "required" : [ "group" ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/steps/unified/GroupSteps"
                }
              }, {
                "if" : {
                  "anyOf" : [ {
                    "required" : [ "template" ]
                  }, {
                    "required" : [ "agent" ]
                  }, {
                    "required" : [ "action" ]
                  }, {
                    "required" : [ "deploy" ]
                  }, {
                    "required" : [ "build" ]
                  }, {
                    "required" : [ "test" ]
                  }, {
                    "required" : [ "chaos" ]
                  }, {
                    "required" : [ "idp" ]
                  }, {
                    "required" : [ "iacm" ]
                  }, {
                    "required" : [ "sto" ]
                  }, {
                    "required" : [ "ai-eval" ]
                  } ]
                },
                "then" : {
                  "$ref" : "#/definitions/pipeline/common/UnifiedTemplate"
                }
              } ]
            },
            "else" : {
              "required" : [ "run" ]
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "StepNodeV1" : {
            "title" : "StepNodeV1",
            "description" : "Unified step node for CI/CD pipelines.",
            "type" : "object",
            "additionalProperties" : false,
            "anyOf" : [ {
              "required" : [ "run" ]
            }, {
              "required" : [ "clone" ]
            }, {
              "required" : [ "background" ]
            }, {
              "required" : [ "run-test" ]
            } ],
            "properties" : {
              "id" : {
                "description" : "Unique identifier for the step.",
                "type" : "string",
                "pattern" : "^[a-zA-Z_][0-9a-zA-Z_$]{0,127}$"
              },
              "name" : {
                "description" : "Display name of the step.",
                "type" : "string",
                "pattern" : "^[a-zA-Z_][0-9a-zA-Z-_ ]{0,127}$",
                "minLength" : 1,
                "maxLength" : 128
              },
              "description" : {
                "description" : "Description of the step.",
                "type" : "string"
              },
              "if" : {
                "description" : "Conditional execution expression. Step is skipped if condition resolves to false. Supports expressions.",
                "type" : "string"
              },
              "strategy" : {
                "description" : "Execution strategy (matrix, for, while, repeat). Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/common/StrategyConfigV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "enforce" : {
                "description" : "Policy enforcement configuration.",
                "$ref" : "#/definitions/pipeline/steps/unified/PolicyConfig"
              },
              "needs" : {
                "description" : "Step dependencies (steps that must complete before this one).",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "on-failure" : {
                "$ref" : "#/definitions/pipeline/common/OnFailure"
              },
              "timeout" : {
                "description" : "Step timeout duration. Supports expressions.",
                "type" : "string",
                "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
              },
              "run" : {
                "description" : "Run step configuration. Can be a simple command string or a detailed run configuration object.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/steps/unified/RunStepInfoV1"
                }, {
                  "type" : "string"
                } ]
              },
              "run-test" : {
                "description" : "Run tests step configuration. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/steps/unified/RunTestsStepInfoV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "clone" : {
                "description" : "Git clone step configuration.",
                "$ref" : "#/definitions/pipeline/Clone"
              },
              "background" : {
                "description" : "Background service step configuration. Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/steps/unified/RunStepInfoV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "PolicyConfig" : {
            "title" : "PolicyConfig",
            "description" : "Policy enforcement configuration.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "policySets" : {
                "description" : "Policy sets to enforce.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "RunStepInfoV1" : {
            "title" : "RunStepInfoV1",
            "description" : "Run step configuration for executing scripts.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "shell" : {
                "description" : "Shell type to use. Supports expressions.",
                "type" : "string"
              },
              "script" : {
                "description" : "Script to execute. Supports expressions.",
                "type" : "string"
              },
              "uses" : {
                "description" : "Plugin identifier registered with VMS. Supports expressions.",
                "type" : "string"
              },
              "version" : {
                "description" : "Optional plugin version pin. Unset lets VMS resolve. Supports expressions.",
                "type" : "string"
              },
              "container" : {
                "description" : "Container configuration for the step.",
                "$ref" : "#/definitions/pipeline/steps/unified/Container"
              },
              "output" : {
                "description" : "Output variables to capture.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/definitions/pipeline/common/OutputV1"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "report" : {
                "description" : "Test report configuration. Supports expressions.",
                "$ref" : "#/definitions/pipeline/steps/unified/Report"
              },
              "delegate" : {
                "description" : "Delegate selectors.",
                "$ref" : "#/definitions/pipeline/common/Delegate"
              },
              "env" : {
                "description" : "Environment variables. Supports expressions.",
                "$ref" : "#/definitions/pipeline/common/ObjectOrExpression"
              },
              "with" : {
                "description" : "Additional parameters. Supports expressions.",
                "$ref" : "#/definitions/pipeline/common/ObjectOrExpression"
              },
              "download" : {
                "description" : "Download configuration. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : false,
                  "properties" : {
                    "source" : {
                      "description" : "Source URL to download from.",
                      "type" : "string"
                    },
                    "target" : {
                      "description" : "Target path to save the file.",
                      "type" : "string"
                    },
                    "checksum" : {
                      "description" : "Checksum to verify the downloaded file.",
                      "type" : "string"
                    },
                    "fallback" : {
                      "description" : "Fallback URL if primary source fails.",
                      "type" : "string"
                    },
                    "entrypoint" : {
                      "description" : "Entrypoint command and arguments for the downloaded binary.",
                      "type" : "array",
                      "items" : {
                        "type" : "string"
                      }
                    }
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "output-alias" : {
                "description" : "Output alias configuration for exporting variables.",
                "type" : "object",
                "additionalProperties" : false,
                "required" : [ "key", "scope" ],
                "properties" : {
                  "key" : {
                    "description" : "Output variable key. Supports expressions.",
                    "type" : "string"
                  },
                  "scope" : {
                    "description" : "Export scope for the output.",
                    "type" : "string",
                    "enum" : [ "Pipeline", "Stage", "StepGroup" ]
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "Container" : {
            "title" : "Container",
            "description" : "Container configuration for step execution.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "image" : {
                "description" : "Container image to use. Supports expressions.",
                "type" : "string"
              },
              "connector" : {
                "description" : "Image registry connector. Supports expressions.",
                "type" : "string"
              },
              "registry" : {
                "description" : "Harness Artifact Registry reference for the image. Supports expressions.",
                "type" : "string"
              },
              "credentials" : {
                "description" : "Container registry credentials.",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "description" : "Registry username.",
                    "type" : "string"
                  },
                  "password" : {
                    "description" : "Registry password.",
                    "type" : "string"
                  },
                  "aws" : {
                    "description" : "AWS ECR credentials.",
                    "type" : "object",
                    "properties" : {
                      "access-key" : {
                        "description" : "AWS access key.",
                        "type" : "string"
                      },
                      "secret-key" : {
                        "description" : "AWS secret key.",
                        "type" : "string"
                      }
                    }
                  }
                }
              },
              "pull" : {
                "description" : "Image pull policy. Supports expressions.",
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "always", "never", "if-not-exists" ]
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "entrypoint" : {
                "description" : "Container entrypoint. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "args" : {
                "description" : "Container arguments.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "dns" : {
                "description" : "Custom DNS servers.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "env" : {
                "description" : "Environment variables.",
                "type" : "object",
                "additionalProperties" : {
                  "type" : "string"
                }
              },
              "extra-hosts" : {
                "description" : "Extra hosts to add to /etc/hosts.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "network" : {
                "description" : "Docker network name.",
                "type" : "string"
              },
              "network-mode" : {
                "description" : "Docker network mode.",
                "type" : "string"
              },
              "privileged" : {
                "description" : "Run in privileged mode. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "workdir" : {
                "description" : "Working directory.",
                "type" : "string"
              },
              "ports" : {
                "description" : "Ports to expose.",
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              },
              "port-bindings" : {
                "description" : "Port bindings. Supports expressions.",
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "volumes" : {
                "description" : "Volume mounts.",
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "source" : {
                      "description" : "Source path.",
                      "type" : "string"
                    },
                    "target" : {
                      "description" : "Target path in container.",
                      "type" : "string"
                    }
                  }
                }
              },
              "user" : {
                "description" : "User ID to run as. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "group" : {
                "description" : "Group to run as.",
                "type" : "string"
              },
              "cpu" : {
                "description" : "CPU limit. Ignored when resources.limits.cpu is set.",
                "type" : "string"
              },
              "memory" : {
                "description" : "Memory limit. Ignored when resources.limits.memory is set.",
                "type" : "string"
              },
              "resources" : {
                "description" : "Container resource limits and requests. Takes precedence over the flat cpu/memory fields.",
                "$ref" : "#/definitions/pipeline/Resource"
              },
              "shm-size" : {
                "description" : "Shared memory size.",
                "type" : "string"
              },
              "files" : {
                "description" : "Files to inject into container.",
                "type" : "object",
                "additionalProperties" : {
                  "type" : "string"
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "Report" : {
            "title" : "Report",
            "description" : "Test report configuration.",
            "oneOf" : [ {
              "type" : "object",
              "properties" : {
                "paths" : {
                  "description" : "Report file paths. Can be single value or array. Supports expressions.",
                  "oneOf" : [ {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  }, {
                    "type" : "string"
                  } ]
                },
                "type" : {
                  "description" : "Report type.",
                  "type" : "string",
                  "enum" : [ "junit" ]
                }
              }
            }, {
              "$ref" : "#/definitions/pipeline/common/Expression"
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "RunTestsStepInfoV1" : {
            "title" : "RunTestsStepInfoV1",
            "description" : "Run tests step configuration for test intelligence.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "shell" : {
                "description" : "Shell type to use. Supports expressions.",
                "type" : "string"
              },
              "script" : {
                "description" : "Test command to execute. Supports expressions.",
                "type" : "string"
              },
              "match" : {
                "description" : "Test file patterns to match. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "container" : {
                "description" : "Container configuration for the step.",
                "$ref" : "#/definitions/pipeline/steps/unified/Container"
              },
              "output" : {
                "description" : "Output variables to capture.",
                "type" : "array",
                "items" : {
                  "$ref" : "#/definitions/pipeline/common/OutputV1"
                }
              },
              "report" : {
                "description" : "Test report configuration. Supports expressions.",
                "$ref" : "#/definitions/pipeline/steps/unified/Report"
              },
              "delegate" : {
                "description" : "Delegate selectors.",
                "$ref" : "#/definitions/pipeline/common/Delegate"
              },
              "env" : {
                "description" : "Environment variables. Supports expressions.",
                "$ref" : "#/definitions/pipeline/common/ObjectOrExpression"
              },
              "with" : {
                "description" : "Additional parameters. Supports expressions.",
                "$ref" : "#/definitions/pipeline/common/ObjectOrExpression"
              },
              "intelligence" : {
                "description" : "Test intelligence configuration.",
                "type" : "object",
                "additionalProperties" : false,
                "properties" : {
                  "disabled" : {
                    "description" : "Whether test intelligence is disabled. Supports expressions.",
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "$ref" : "#/definitions/pipeline/common/Expression"
                    } ]
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedWaitStepNode" : {
            "title" : "UnifiedWaitStepNode",
            "description" : "Wait step node for pausing pipeline execution.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "wait" ],
              "properties" : {
                "wait" : {
                  "description" : "Wait step configuration.",
                  "type" : "object",
                  "required" : [ "duration" ],
                  "properties" : {
                    "duration" : {
                      "description" : "Duration to wait (e.g., 10s, 5m, 1h). Supports expressions.",
                      "type" : "string",
                      "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedPmsAbstractStepNode" : {
            "title" : "UnifiedPmsAbstractStepNode",
            "description" : "Abstract step node with common properties shared by all step types.",
            "type" : "object",
            "properties" : {
              "id" : {
                "description" : "Unique identifier for the step.",
                "type" : "string"
              },
              "name" : {
                "description" : "Display name of the step.",
                "type" : "string"
              },
              "description" : {
                "description" : "Description of the step.",
                "type" : "string"
              },
              "if" : {
                "description" : "Conditional execution expression. Step is skipped if condition resolves to false. Supports expressions.",
                "type" : "string"
              },
              "strategy" : {
                "description" : "Execution strategy (matrix, for, while, repeat). Supports expressions.",
                "oneOf" : [ {
                  "$ref" : "#/definitions/pipeline/common/StrategyConfigV1"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "enforce" : {
                "description" : "Policy enforcement configuration.",
                "$ref" : "#/definitions/pipeline/steps/unified/PolicyConfig"
              },
              "on-failure" : {
                "$ref" : "#/definitions/pipeline/common/OnFailure"
              },
              "timeout" : {
                "description" : "Step timeout duration. Supports expressions.",
                "type" : "string",
                "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedBarrierStepNode" : {
            "title" : "UnifiedBarrierStepNode",
            "description" : "Barrier step node for synchronizing pipeline execution.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "barrier" ],
              "properties" : {
                "barrier" : {
                  "description" : "Barrier step configuration.",
                  "type" : "object",
                  "required" : [ "name" ],
                  "properties" : {
                    "name" : {
                      "description" : "Reference name of the barrier defined in pipeline barriers.",
                      "type" : "string"
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedQueueStepNode" : {
            "title" : "UnifiedQueueStepNode",
            "description" : "Queue step node for resource constraint management.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "queue" ],
              "properties" : {
                "queue" : {
                  "description" : "Queue step configuration.",
                  "type" : "object",
                  "required" : [ "key", "scope" ],
                  "properties" : {
                    "key" : {
                      "description" : "Resource key for the queue. Supports expressions.",
                      "type" : "string"
                    },
                    "scope" : {
                      "description" : "Scope of the queue holding.",
                      "type" : "string",
                      "enum" : [ "Pipeline", "Stage" ]
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedPolicyStepNode" : {
            "title" : "UnifiedPolicyStepNode",
            "description" : "Policy step node for OPA policy evaluation.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "policy" ],
              "properties" : {
                "policy" : {
                  "description" : "Policy step configuration.",
                  "type" : "object",
                  "required" : [ "sets", "payload" ],
                  "properties" : {
                    "sets" : {
                      "description" : "Policy sets to evaluate. Supports single value or array. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "payload" : {
                      "description" : "JSON payload to evaluate against policies. Supports expressions.",
                      "type" : "string"
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedChangeAdvisorStepNode" : {
            "title" : "UnifiedChangeAdvisorStepNode",
            "description" : "Change Advisor step node for advisory evaluation before deployment.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "change-advisor" ],
              "properties" : {
                "change-advisor" : {
                  "description" : "Change Advisor step configuration.",
                  "type" : "object",
                  "properties" : {
                    "mode" : {
                      "description" : "Advisory mode for the Change Advisor step.",
                      "oneOf" : [ {
                        "type" : "string",
                        "enum" : [ "ADVISORY", "ENFORCING" ]
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "policy-pack" : {
                      "description" : "Policy pack to evaluate the change against (e.g. balanced).",
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "timeout-minutes" : {
                      "description" : "Maximum time in minutes to wait for the advisory call.",
                      "oneOf" : [ {
                        "type" : "integer"
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "presets" : {
                      "description" : "Preset identifiers applied to the advisory evaluation.",
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "env" : {
                      "description" : "Target environment identifier for the change.",
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "user-groups" : {
                      "description" : "User groups for approval when the advisory decision requires gating. Supports single value or array. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "service-accounts" : {
                      "description" : "Service accounts for approval when the advisory decision requires gating. Supports single value or array. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "approvers-min-count" : {
                      "description" : "Minimum number of approvers required when the advisory decision requires gating. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "integer"
                      }, {
                        "type" : "string"
                      } ]
                    },
                    "block-executor" : {
                      "description" : "Block pipeline executor from approving when the advisory decision requires gating. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    }
                  }
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedApprovalStepNode" : {
            "title" : "UnifiedApprovalStepNode",
            "description" : "Approval step node for manual, Jira, ServiceNow, or custom approvals.",
            "allOf" : [ {
              "$ref" : "#/definitions/pipeline/steps/unified/UnifiedPmsAbstractStepNode"
            }, {
              "type" : "object",
              "required" : [ "approval" ],
              "properties" : {
                "approval" : {
                  "description" : "Approval step configuration.",
                  "type" : "object",
                  "required" : [ "uses" ],
                  "properties" : {
                    "uses" : {
                      "description" : "Type of approval.",
                      "type" : "string",
                      "enum" : [ "harness", "jira", "servicenow", "custom" ]
                    },
                    "with" : {
                      "description" : "Approval type-specific configuration.",
                      "type" : "object"
                    }
                  },
                  "allOf" : [ {
                    "if" : {
                      "properties" : {
                        "uses" : {
                          "const" : "harness"
                        }
                      }
                    },
                    "then" : {
                      "properties" : {
                        "with" : {
                          "$ref" : "#/definitions/pipeline/steps/unified/UnifiedManualApprovalStepSpec"
                        }
                      }
                    }
                  }, {
                    "if" : {
                      "properties" : {
                        "uses" : {
                          "const" : "jira"
                        }
                      }
                    },
                    "then" : {
                      "properties" : {
                        "with" : {
                          "$ref" : "#/definitions/pipeline/steps/unified/UnifiedJiraApprovalStepSpec"
                        }
                      }
                    }
                  }, {
                    "if" : {
                      "properties" : {
                        "uses" : {
                          "const" : "servicenow"
                        }
                      }
                    },
                    "then" : {
                      "properties" : {
                        "with" : {
                          "$ref" : "#/definitions/pipeline/steps/unified/UnifiedServiceNowApprovalStepSpec"
                        }
                      }
                    }
                  }, {
                    "if" : {
                      "properties" : {
                        "uses" : {
                          "const" : "custom"
                        }
                      }
                    },
                    "then" : {
                      "properties" : {
                        "with" : {
                          "$ref" : "#/definitions/pipeline/steps/unified/UnifiedCustomApprovalStepSpec"
                        }
                      }
                    }
                  } ]
                }
              }
            } ],
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedManualApprovalStepSpec" : {
            "title" : "UnifiedManualApprovalStepSpec",
            "description" : "Harness manual approval step specification.",
            "type" : "object",
            "properties" : {
              "message" : {
                "description" : "Approval message. Supports expressions.",
                "type" : "string"
              },
              "callback" : {
                "description" : "Callback ID for the approval. Supports expressions.",
                "type" : "string"
              },
              "user-groups" : {
                "description" : "User groups for approval. Supports single value or array. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "service-accounts" : {
                "description" : "Service accounts for approval. Supports single value or array. Supports expressions.",
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "approvers-min-count" : {
                "description" : "Minimum number of approvers required. Supports expressions.",
                "oneOf" : [ {
                  "type" : "integer"
                }, {
                  "type" : "string"
                } ]
              },
              "block-executor" : {
                "description" : "Block pipeline executor from approving. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "execution-details" : {
                "description" : "Include pipeline execution history.",
                "type" : "boolean"
              },
              "auto-reject" : {
                "description" : "Enable automatic rejection on timeout. Supports expressions.",
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "auto-approve" : {
                "description" : "Enable automatic approval.",
                "type" : "boolean"
              },
              "timezone" : {
                "description" : "Timezone for auto-approval deadline. Supports expressions.",
                "type" : "string"
              },
              "deadline" : {
                "description" : "Deadline for auto-approval. Supports expressions.",
                "type" : "string"
              },
              "comments" : {
                "description" : "Comments for auto-approval. Supports expressions.",
                "type" : "string"
              },
              "inputs" : {
                "description" : "Approver input parameters keyed by input variable name.",
                "type" : "object",
                "additionalProperties" : {
                  "type" : "object",
                  "additionalProperties" : false,
                  "properties" : {
                    "description" : {
                      "description" : "Description of the approver input.",
                      "type" : "string"
                    },
                    "pattern" : {
                      "description" : "Regex pattern the approver input value must match. Mutually exclusive with `enum`. Supports expressions.",
                      "type" : "string"
                    },
                    "multi-select" : {
                      "description" : "Allow selecting multiple values from `enum`. Only applicable when `enum` is provided.",
                      "type" : "boolean"
                    },
                    "enum" : {
                      "description" : "Allowed values for the approver input. Mutually exclusive with `pattern`. Supports expressions.",
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "$ref" : "#/definitions/pipeline/common/Expression"
                      } ]
                    },
                    "required" : {
                      "description" : "Whether the approver input is required.",
                      "type" : "boolean"
                    },
                    "default" : {
                      "description" : "Default value for the approver input. Supports expressions.",
                      "type" : "string"
                    }
                  },
                  "not" : {
                    "required" : [ "pattern", "enum" ]
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedJiraApprovalStepSpec" : {
            "title" : "UnifiedJiraApprovalStepSpec",
            "description" : "Jira approval step specification.",
            "type" : "object",
            "additionalProperties" : true,
            "required" : [ "approve" ],
            "properties" : {
              "retry" : {
                "description" : "Retry interval for polling Jira.",
                "type" : "string"
              },
              "approve" : {
                "description" : "Approval criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "reject" : {
                "description" : "Rejection criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "run" : {
                "description" : "Run step configuration for script execution.",
                "$ref" : "#/definitions/pipeline/steps/unified/RunStepInfoV1"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedServiceNowApprovalStepSpec" : {
            "title" : "UnifiedServiceNowApprovalStepSpec",
            "description" : "ServiceNow approval step specification.",
            "type" : "object",
            "additionalProperties" : true,
            "required" : [ "approve" ],
            "properties" : {
              "retry" : {
                "description" : "Retry interval for polling ServiceNow.",
                "type" : "string"
              },
              "approve" : {
                "description" : "Approval criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "reject" : {
                "description" : "Rejection criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "run" : {
                "description" : "Run step configuration for script execution.",
                "$ref" : "#/definitions/pipeline/steps/unified/RunStepInfoV1"
              },
              "change-window" : {
                "description" : "ServiceNow change window configuration.",
                "type" : "object",
                "properties" : {
                  "start" : {
                    "description" : "Start field for change window.",
                    "type" : "string"
                  },
                  "end" : {
                    "description" : "End field for change window.",
                    "type" : "string"
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "UnifiedCustomApprovalStepSpec" : {
            "title" : "UnifiedCustomApprovalStepSpec",
            "description" : "Custom approval step specification.",
            "type" : "object",
            "additionalProperties" : true,
            "required" : [ "retry", "approve" ],
            "properties" : {
              "script-timeout" : {
                "description" : "Timeout for script execution.",
                "type" : "string"
              },
              "retry" : {
                "description" : "Retry interval for polling.",
                "type" : "string"
              },
              "approve" : {
                "description" : "Approval criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "reject" : {
                "description" : "Rejection criteria configuration.",
                "anyOf" : [ {
                  "type" : "object",
                  "additionalProperties" : true
                }, {
                  "type" : "string"
                } ]
              },
              "run" : {
                "description" : "Run step configuration for script execution.",
                "$ref" : "#/definitions/pipeline/steps/unified/RunStepInfoV1"
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "ParallelSteps" : {
            "title" : "ParallelSteps",
            "description" : "Defines a list of steps to be executed in parallel.",
            "type" : "object",
            "additionalProperties" : false,
            "required" : [ "parallel" ],
            "properties" : {
              "parallel" : {
                "type" : "object",
                "additionalProperties" : false,
                "required" : [ "steps" ],
                "properties" : {
                  "steps" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/steps/unified/StepItems"
                    }
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          },
          "GroupSteps" : {
            "title" : "GroupSteps",
            "description" : "Defines a group of steps.",
            "type" : "object",
            "required" : [ "group" ],
            "properties" : {
              "group" : {
                "type" : "object",
                "required" : [ "steps" ],
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "description" : "Unique identifier for the step group.",
                    "pattern" : "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "Display name of the step group."
                  },
                  "description" : {
                    "type" : "string",
                    "description" : "Description of the step group."
                  },
                  "if" : {
                    "type" : "string",
                    "description" : "Conditional execution expression. Group is skipped if condition resolves to false."
                  },
                  "strategy" : {
                    "description" : "Execution strategy (matrix, for, while, repeat). Supports expressions.",
                    "oneOf" : [ {
                      "$ref" : "#/definitions/pipeline/common/StrategyConfigV1"
                    }, {
                      "$ref" : "#/definitions/pipeline/common/Expression"
                    } ]
                  },
                  "on-failure" : {
                    "$ref" : "#/definitions/pipeline/common/OnFailure"
                  },
                  "timeout" : {
                    "type" : "string",
                    "description" : "Step group timeout duration.",
                    "pattern" : "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
                  },
                  "output" : {
                    "description" : "Step group output variables. Each entry is a single key:value pair where the key is the\nSG-published output name and the value is either a plain-string descendant step output\nname to capture, or a Harness expression evaluated at step group completion.\n",
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "minProperties" : 1,
                      "maxProperties" : 1,
                      "additionalProperties" : false,
                      "patternProperties" : {
                        "^[a-zA-Z_][a-zA-Z0-9_]*$" : {
                          "type" : "string"
                        }
                      }
                    }
                  },
                  "steps" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/definitions/pipeline/steps/unified/StepItems"
                    }
                  }
                }
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          }
        },
        "common" : {
          "PlatformV1" : {
            "title" : "PlatformV1",
            "description" : "Platform configuration describing the operating system and CPU architecture for a stage runtime.",
            "type" : "object",
            "additionalProperties" : false,
            "properties" : {
              "os" : {
                "description" : "Operating system for the stage runtime. Supports expressions.",
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "linux", "windows", "macos" ]
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              },
              "arch" : {
                "description" : "CPU architecture for the stage runtime. Supports expressions.",
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "amd64", "arm64" ]
                }, {
                  "$ref" : "#/definitions/pipeline/common/Expression"
                } ]
              }
            },
            "$schema" : "http://json-schema.org/draft-07/schema#"
          }
        }
      }
    }
  }
}