SPB Git

Repository Public License

automation.v1.schema.json 181.3 KB 3,881 lines json

1{2  "$id" : "https://orix.ai/schemas/automation.v1.schema.json",3  "$schema" : "https://json-schema.org/draft/2020-12/schema",4  "additionalProperties" : false,5  "description" : "Canonical form of an ORIX automation document, as written by the code view. Uses only type, properties, required, additionalProperties, items, enum, pattern and numeric/length bounds. Without $ref, nested steps are described in full for 2 container levels under spec.steps (1 under spec.onError) and accepted as any object beyond; cross-field rules (exactly one step kind, DAG of needs, expressions, permissions) are enforced by the ORIX validator, not by this schema.",6  "properties" : {7    "apiVersion" : {8      "enum" : [9        "orix.ai/v1"10      ],11      "type" : "string"12    },13    "kind" : {14      "enum" : [15        "Automation"16      ],17      "type" : "string"18    },19    "metadata" : {20      "additionalProperties" : false,21      "properties" : {22        "description" : {23          "type" : "string"24        },25        "id" : {26          "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",27          "type" : "string"28        },29        "name" : {30          "minLength" : 1,31          "type" : "string"32        },33        "tags" : {34          "items" : {35            "type" : "string"36          },37          "type" : "array"38        }39      },40      "required" : [41        "id",42        "name"43      ],44      "type" : "object"45    },46    "spec" : {47      "additionalProperties" : false,48      "properties" : {49        "budget" : {50          "additionalProperties" : false,51          "properties" : {52            "maxDurationSeconds" : {53              "type" : "number"54            },55            "maxProviderCostUSD" : {56              "minimum" : 0,57              "type" : "number"58            },59            "maxTokens" : {60              "minimum" : 1,61              "type" : "integer"62            },63            "maxToolCalls" : {64              "minimum" : 1,65              "type" : "integer"66            }67          },68          "type" : "object"69        },70        "layout" : {71          "additionalProperties" : {72            "additionalProperties" : false,73            "properties" : {74              "x" : {75                "type" : "number"76              },77              "y" : {78                "type" : "number"79              }80            },81            "required" : [82              "x",83              "y"84            ],85            "type" : "object"86          },87          "description" : "Visual editor node positions keyed by step id.",88          "type" : "object"89        },90        "onError" : {91          "description" : "Handler steps run when the workflow fails.",92          "items" : {93            "additionalProperties" : false,94            "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",95            "properties" : {96              "agent" : {97                "additionalProperties" : false,98                "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",99                "properties" : {100                  "instructions" : {101                    "type" : "string"102                  },103                  "model" : {104                    "description" : "provider/model",105                    "type" : "string"106                  },107                  "tools" : {108                    "description" : "Tool ids or family.* patterns.",109                    "items" : {110                      "type" : "string"111                    },112                    "type" : "array"113                  }114                },115                "required" : [116                  "instructions"117                ],118                "type" : [119                  "string",120                  "object"121                ]122              },123              "approval" : {124                "description" : "approval step: message shown to the person.",125                "type" : "string"126              },127              "artifacts" : {128                "description" : "output step: paths recorded as run artifacts.",129                "items" : {130                  "type" : "string"131                },132                "type" : "array"133              },134              "as" : {135                "description" : "foreach step: loop variable name (default item).",136                "type" : "string"137              },138              "cases" : {139                "items" : {140                  "additionalProperties" : false,141                  "properties" : {142                    "steps" : {143                      "items" : {144                        "type" : "string"145                      },146                      "type" : "array"147                    },148                    "value" : {149                      "description" : "Value compared with the switch expression."150                    }151                  },152                  "required" : [153                    "steps",154                    "value"155                  ],156                  "type" : "object"157                },158                "type" : "array"159              },160              "collect" : {161                "description" : "foreach step: body step whose output is collected per iteration.",162                "type" : "string"163              },164              "concurrency" : {165                "description" : "foreach step: iterations run at once (default 1).",166                "minimum" : 1,167                "type" : "integer"168              },169              "continueOnError" : {170                "type" : "boolean"171              },172              "default" : {173                "description" : "switch step: ids that run when no case matches.",174                "items" : {175                  "type" : "string"176                },177                "type" : "array"178              },179              "delay" : {180                "description" : "delay step: seconds, or an expression yielding seconds.",181                "type" : [182                  "number",183                  "string"184                ]185              },186              "else" : {187                "description" : "condition step: ids that run when the condition is falsy.",188                "items" : {189                  "type" : "string"190                },191                "type" : "array"192              },193              "expect" : {194                "description" : "agent step: file postconditions checked by the runtime.",195                "items" : {196                  "additionalProperties" : false,197                  "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",198                  "properties" : {199                    "dirNonEmpty" : {200                      "description" : "Path of a directory that must contain at least one entry.",201                      "type" : "string"202                    },203                    "equals" : {204                      "description" : "Two values that must be equal after interpolation.",205                      "maxItems" : 2,206                      "minItems" : 2,207                      "type" : "array"208                    },209                    "fileContains" : {210                      "description" : "Path of a file that must contain `text`.",211                      "type" : "string"212                    },213                    "fileExists" : {214                      "description" : "Path that must exist.",215                      "type" : "string"216                    },217                    "fileNonEmpty" : {218                      "description" : "Path of a file that must exist and be larger than zero bytes.",219                      "type" : "string"220                    },221                    "stepSucceeded" : {222                      "description" : "Id of an upstream step that must have succeeded.",223                      "type" : "string"224                    },225                    "text" : {226                      "description" : "Text searched by fileContains.",227                      "type" : "string"228                    },229                    "truthy" : {230                      "description" : "Expression (or value) that must be truthy."231                    }232                  },233                  "type" : "object"234                },235                "type" : "array"236              },237              "fail" : {238                "description" : "fail step: failure message.",239                "type" : "string"240              },241              "foreach" : {242                "description" : "foreach step: expression yielding a list, or a literal list.",243                "type" : [244                  "string",245                  "array"246                ]247              },248              "id" : {249                "description" : "Unique in the whole document, nested steps included.",250                "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",251                "type" : "string"252              },253              "if" : {254                "description" : "condition step: expression.",255                "type" : "string"256              },257              "inputs" : {258                "description" : "agent / subworkflow step: input values.",259                "type" : "object"260              },261              "into" : {262                "description" : "transform step: variable that also receives the value.",263                "type" : "string"264              },265              "maxIterations" : {266                "description" : "loop step: mandatory upper bound.",267                "minimum" : 1,268                "type" : "integer"269              },270              "name" : {271                "description" : "Display name.",272                "type" : "string"273              },274              "needs" : {275                "description" : "Ids of steps of the same list that must finish first.",276                "items" : {277                  "type" : "string"278                },279                "type" : "array"280              },281              "notify" : {282                "description" : "notify step: message.",283                "type" : "string"284              },285              "objective" : {286                "description" : "agent step: what the agent must achieve.",287                "type" : "string"288              },289              "onError" : {290                "description" : "Id of a handler step of the same list.",291                "type" : "string"292              },293              "output" : {294                "description" : "output step: workflow outputs.",295                "type" : "object"296              },297              "parallel" : {298                "description" : "parallel step: branches, joined implicitly.",299                "items" : {300                  "additionalProperties" : false,301                  "properties" : {302                    "name" : {303                      "description" : "Branch name.",304                      "type" : "string"305                    },306                    "steps" : {307                      "description" : "Nested steps (their own `needs` namespace).",308                      "items" : {309                        "additionalProperties" : false,310                        "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",311                        "properties" : {312                          "agent" : {313                            "additionalProperties" : false,314                            "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",315                            "properties" : {316                              "instructions" : {317                                "type" : "string"318                              },319                              "model" : {320                                "description" : "provider/model",321                                "type" : "string"322                              },323                              "tools" : {324                                "description" : "Tool ids or family.* patterns.",325                                "items" : {326                                  "type" : "string"327                                },328                                "type" : "array"329                              }330                            },331                            "required" : [332                              "instructions"333                            ],334                            "type" : [335                              "string",336                              "object"337                            ]338                          },339                          "approval" : {340                            "description" : "approval step: message shown to the person.",341                            "type" : "string"342                          },343                          "artifacts" : {344                            "description" : "output step: paths recorded as run artifacts.",345                            "items" : {346                              "type" : "string"347                            },348                            "type" : "array"349                          },350                          "as" : {351                            "description" : "foreach step: loop variable name (default item).",352                            "type" : "string"353                          },354                          "cases" : {355                            "items" : {356                              "additionalProperties" : false,357                              "properties" : {358                                "steps" : {359                                  "items" : {360                                    "type" : "string"361                                  },362                                  "type" : "array"363                                },364                                "value" : {365                                  "description" : "Value compared with the switch expression."366                                }367                              },368                              "required" : [369                                "steps",370                                "value"371                              ],372                              "type" : "object"373                            },374                            "type" : "array"375                          },376                          "collect" : {377                            "description" : "foreach step: body step whose output is collected per iteration.",378                            "type" : "string"379                          },380                          "concurrency" : {381                            "description" : "foreach step: iterations run at once (default 1).",382                            "minimum" : 1,383                            "type" : "integer"384                          },385                          "continueOnError" : {386                            "type" : "boolean"387                          },388                          "default" : {389                            "description" : "switch step: ids that run when no case matches.",390                            "items" : {391                              "type" : "string"392                            },393                            "type" : "array"394                          },395                          "delay" : {396                            "description" : "delay step: seconds, or an expression yielding seconds.",397                            "type" : [398                              "number",399                              "string"400                            ]401                          },402                          "else" : {403                            "description" : "condition step: ids that run when the condition is falsy.",404                            "items" : {405                              "type" : "string"406                            },407                            "type" : "array"408                          },409                          "expect" : {410                            "description" : "agent step: file postconditions checked by the runtime.",411                            "items" : {412                              "additionalProperties" : false,413                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",414                              "properties" : {415                                "dirNonEmpty" : {416                                  "description" : "Path of a directory that must contain at least one entry.",417                                  "type" : "string"418                                },419                                "equals" : {420                                  "description" : "Two values that must be equal after interpolation.",421                                  "maxItems" : 2,422                                  "minItems" : 2,423                                  "type" : "array"424                                },425                                "fileContains" : {426                                  "description" : "Path of a file that must contain `text`.",427                                  "type" : "string"428                                },429                                "fileExists" : {430                                  "description" : "Path that must exist.",431                                  "type" : "string"432                                },433                                "fileNonEmpty" : {434                                  "description" : "Path of a file that must exist and be larger than zero bytes.",435                                  "type" : "string"436                                },437                                "stepSucceeded" : {438                                  "description" : "Id of an upstream step that must have succeeded.",439                                  "type" : "string"440                                },441                                "text" : {442                                  "description" : "Text searched by fileContains.",443                                  "type" : "string"444                                },445                                "truthy" : {446                                  "description" : "Expression (or value) that must be truthy."447                                }448                              },449                              "type" : "object"450                            },451                            "type" : "array"452                          },453                          "fail" : {454                            "description" : "fail step: failure message.",455                            "type" : "string"456                          },457                          "foreach" : {458                            "description" : "foreach step: expression yielding a list, or a literal list.",459                            "type" : [460                              "string",461                              "array"462                            ]463                          },464                          "id" : {465                            "description" : "Unique in the whole document, nested steps included.",466                            "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",467                            "type" : "string"468                          },469                          "if" : {470                            "description" : "condition step: expression.",471                            "type" : "string"472                          },473                          "inputs" : {474                            "description" : "agent / subworkflow step: input values.",475                            "type" : "object"476                          },477                          "into" : {478                            "description" : "transform step: variable that also receives the value.",479                            "type" : "string"480                          },481                          "maxIterations" : {482                            "description" : "loop step: mandatory upper bound.",483                            "minimum" : 1,484                            "type" : "integer"485                          },486                          "name" : {487                            "description" : "Display name.",488                            "type" : "string"489                          },490                          "needs" : {491                            "description" : "Ids of steps of the same list that must finish first.",492                            "items" : {493                              "type" : "string"494                            },495                            "type" : "array"496                          },497                          "notify" : {498                            "description" : "notify step: message.",499                            "type" : "string"500                          },501                          "objective" : {502                            "description" : "agent step: what the agent must achieve.",503                            "type" : "string"504                          },505                          "onError" : {506                            "description" : "Id of a handler step of the same list.",507                            "type" : "string"508                          },509                          "output" : {510                            "description" : "output step: workflow outputs.",511                            "type" : "object"512                          },513                          "parallel" : {514                            "description" : "parallel step: branches, joined implicitly.",515                            "items" : {516                              "additionalProperties" : false,517                              "properties" : {518                                "name" : {519                                  "description" : "Branch name.",520                                  "type" : "string"521                                },522                                "steps" : {523                                  "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",524                                  "items" : {525                                    "type" : "object"526                                  },527                                  "type" : "array"528                                }529                              },530                              "required" : [531                                "name",532                                "steps"533                              ],534                              "type" : "object"535                            },536                            "type" : "array"537                          },538                          "retry" : {539                            "additionalProperties" : false,540                            "properties" : {541                              "backoffMultiplier" : {542                                "minimum" : 1,543                                "type" : "number"544                              },545                              "backoffSeconds" : {546                                "minimum" : 0,547                                "type" : "number"548                              },549                              "force" : {550                                "description" : "Retry even when the step is not idempotent.",551                                "type" : "boolean"552                              },553                              "maxAttempts" : {554                                "minimum" : 1,555                                "type" : "integer"556                              }557                            },558                            "required" : [559                              "maxAttempts"560                            ],561                            "type" : "object"562                          },563                          "set" : {564                            "description" : "set step: variables to assign.",565                            "type" : "object"566                          },567                          "steps" : {568                            "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",569                            "items" : {570                              "type" : "object"571                            },572                            "type" : "array"573                          },574                          "subworkflow" : {575                            "description" : "subworkflow step: id or name of the workflow to run.",576                            "type" : "string"577                          },578                          "switch" : {579                            "description" : "switch step: expression whose value selects a case.",580                            "type" : "string"581                          },582                          "then" : {583                            "description" : "condition step: ids that run when the condition is truthy.",584                            "items" : {585                              "type" : "string"586                            },587                            "type" : "array"588                          },589                          "timeoutSeconds" : {590                            "type" : "number"591                          },592                          "title" : {593                            "description" : "notify step: title.",594                            "type" : "string"595                          },596                          "tool" : {597                            "description" : "tool step: canonical tool identifier, for example filesystem.list.",598                            "type" : "string"599                          },600                          "transform" : {601                            "description" : "transform step: expression whose value becomes the step output.",602                            "type" : "string"603                          },604                          "verify" : {605                            "description" : "verify step: assertions checked by the runtime.",606                            "items" : {607                              "additionalProperties" : false,608                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",609                              "properties" : {610                                "dirNonEmpty" : {611                                  "description" : "Path of a directory that must contain at least one entry.",612                                  "type" : "string"613                                },614                                "equals" : {615                                  "description" : "Two values that must be equal after interpolation.",616                                  "maxItems" : 2,617                                  "minItems" : 2,618                                  "type" : "array"619                                },620                                "fileContains" : {621                                  "description" : "Path of a file that must contain `text`.",622                                  "type" : "string"623                                },624                                "fileExists" : {625                                  "description" : "Path that must exist.",626                                  "type" : "string"627                                },628                                "fileNonEmpty" : {629                                  "description" : "Path of a file that must exist and be larger than zero bytes.",630                                  "type" : "string"631                                },632                                "stepSucceeded" : {633                                  "description" : "Id of an upstream step that must have succeeded.",634                                  "type" : "string"635                                },636                                "text" : {637                                  "description" : "Text searched by fileContains.",638                                  "type" : "string"639                                },640                                "truthy" : {641                                  "description" : "Expression (or value) that must be truthy."642                                }643                              },644                              "type" : "object"645                            },646                            "type" : "array"647                          },648                          "when" : {649                            "description" : "Expression; the step is skipped when it is falsy.",650                            "type" : "string"651                          },652                          "while" : {653                            "description" : "loop step: expression evaluated before every iteration.",654                            "type" : "string"655                          },656                          "with" : {657                            "description" : "tool step: arguments. Strings may contain ${{ … }}.",658                            "type" : "object"659                          }660                        },661                        "required" : [662                          "id"663                        ],664                        "type" : "object"665                      },666                      "type" : "array"667                    }668                  },669                  "required" : [670                    "name",671                    "steps"672                  ],673                  "type" : "object"674                },675                "type" : "array"676              },677              "retry" : {678                "additionalProperties" : false,679                "properties" : {680                  "backoffMultiplier" : {681                    "minimum" : 1,682                    "type" : "number"683                  },684                  "backoffSeconds" : {685                    "minimum" : 0,686                    "type" : "number"687                  },688                  "force" : {689                    "description" : "Retry even when the step is not idempotent.",690                    "type" : "boolean"691                  },692                  "maxAttempts" : {693                    "minimum" : 1,694                    "type" : "integer"695                  }696                },697                "required" : [698                  "maxAttempts"699                ],700                "type" : "object"701              },702              "set" : {703                "description" : "set step: variables to assign.",704                "type" : "object"705              },706              "steps" : {707                "description" : "Nested steps (their own `needs` namespace).",708                "items" : {709                  "additionalProperties" : false,710                  "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",711                  "properties" : {712                    "agent" : {713                      "additionalProperties" : false,714                      "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",715                      "properties" : {716                        "instructions" : {717                          "type" : "string"718                        },719                        "model" : {720                          "description" : "provider/model",721                          "type" : "string"722                        },723                        "tools" : {724                          "description" : "Tool ids or family.* patterns.",725                          "items" : {726                            "type" : "string"727                          },728                          "type" : "array"729                        }730                      },731                      "required" : [732                        "instructions"733                      ],734                      "type" : [735                        "string",736                        "object"737                      ]738                    },739                    "approval" : {740                      "description" : "approval step: message shown to the person.",741                      "type" : "string"742                    },743                    "artifacts" : {744                      "description" : "output step: paths recorded as run artifacts.",745                      "items" : {746                        "type" : "string"747                      },748                      "type" : "array"749                    },750                    "as" : {751                      "description" : "foreach step: loop variable name (default item).",752                      "type" : "string"753                    },754                    "cases" : {755                      "items" : {756                        "additionalProperties" : false,757                        "properties" : {758                          "steps" : {759                            "items" : {760                              "type" : "string"761                            },762                            "type" : "array"763                          },764                          "value" : {765                            "description" : "Value compared with the switch expression."766                          }767                        },768                        "required" : [769                          "steps",770                          "value"771                        ],772                        "type" : "object"773                      },774                      "type" : "array"775                    },776                    "collect" : {777                      "description" : "foreach step: body step whose output is collected per iteration.",778                      "type" : "string"779                    },780                    "concurrency" : {781                      "description" : "foreach step: iterations run at once (default 1).",782                      "minimum" : 1,783                      "type" : "integer"784                    },785                    "continueOnError" : {786                      "type" : "boolean"787                    },788                    "default" : {789                      "description" : "switch step: ids that run when no case matches.",790                      "items" : {791                        "type" : "string"792                      },793                      "type" : "array"794                    },795                    "delay" : {796                      "description" : "delay step: seconds, or an expression yielding seconds.",797                      "type" : [798                        "number",799                        "string"800                      ]801                    },802                    "else" : {803                      "description" : "condition step: ids that run when the condition is falsy.",804                      "items" : {805                        "type" : "string"806                      },807                      "type" : "array"808                    },809                    "expect" : {810                      "description" : "agent step: file postconditions checked by the runtime.",811                      "items" : {812                        "additionalProperties" : false,813                        "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",814                        "properties" : {815                          "dirNonEmpty" : {816                            "description" : "Path of a directory that must contain at least one entry.",817                            "type" : "string"818                          },819                          "equals" : {820                            "description" : "Two values that must be equal after interpolation.",821                            "maxItems" : 2,822                            "minItems" : 2,823                            "type" : "array"824                          },825                          "fileContains" : {826                            "description" : "Path of a file that must contain `text`.",827                            "type" : "string"828                          },829                          "fileExists" : {830                            "description" : "Path that must exist.",831                            "type" : "string"832                          },833                          "fileNonEmpty" : {834                            "description" : "Path of a file that must exist and be larger than zero bytes.",835                            "type" : "string"836                          },837                          "stepSucceeded" : {838                            "description" : "Id of an upstream step that must have succeeded.",839                            "type" : "string"840                          },841                          "text" : {842                            "description" : "Text searched by fileContains.",843                            "type" : "string"844                          },845                          "truthy" : {846                            "description" : "Expression (or value) that must be truthy."847                          }848                        },849                        "type" : "object"850                      },851                      "type" : "array"852                    },853                    "fail" : {854                      "description" : "fail step: failure message.",855                      "type" : "string"856                    },857                    "foreach" : {858                      "description" : "foreach step: expression yielding a list, or a literal list.",859                      "type" : [860                        "string",861                        "array"862                      ]863                    },864                    "id" : {865                      "description" : "Unique in the whole document, nested steps included.",866                      "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",867                      "type" : "string"868                    },869                    "if" : {870                      "description" : "condition step: expression.",871                      "type" : "string"872                    },873                    "inputs" : {874                      "description" : "agent / subworkflow step: input values.",875                      "type" : "object"876                    },877                    "into" : {878                      "description" : "transform step: variable that also receives the value.",879                      "type" : "string"880                    },881                    "maxIterations" : {882                      "description" : "loop step: mandatory upper bound.",883                      "minimum" : 1,884                      "type" : "integer"885                    },886                    "name" : {887                      "description" : "Display name.",888                      "type" : "string"889                    },890                    "needs" : {891                      "description" : "Ids of steps of the same list that must finish first.",892                      "items" : {893                        "type" : "string"894                      },895                      "type" : "array"896                    },897                    "notify" : {898                      "description" : "notify step: message.",899                      "type" : "string"900                    },901                    "objective" : {902                      "description" : "agent step: what the agent must achieve.",903                      "type" : "string"904                    },905                    "onError" : {906                      "description" : "Id of a handler step of the same list.",907                      "type" : "string"908                    },909                    "output" : {910                      "description" : "output step: workflow outputs.",911                      "type" : "object"912                    },913                    "parallel" : {914                      "description" : "parallel step: branches, joined implicitly.",915                      "items" : {916                        "additionalProperties" : false,917                        "properties" : {918                          "name" : {919                            "description" : "Branch name.",920                            "type" : "string"921                          },922                          "steps" : {923                            "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",924                            "items" : {925                              "type" : "object"926                            },927                            "type" : "array"928                          }929                        },930                        "required" : [931                          "name",932                          "steps"933                        ],934                        "type" : "object"935                      },936                      "type" : "array"937                    },938                    "retry" : {939                      "additionalProperties" : false,940                      "properties" : {941                        "backoffMultiplier" : {942                          "minimum" : 1,943                          "type" : "number"944                        },945                        "backoffSeconds" : {946                          "minimum" : 0,947                          "type" : "number"948                        },949                        "force" : {950                          "description" : "Retry even when the step is not idempotent.",951                          "type" : "boolean"952                        },953                        "maxAttempts" : {954                          "minimum" : 1,955                          "type" : "integer"956                        }957                      },958                      "required" : [959                        "maxAttempts"960                      ],961                      "type" : "object"962                    },963                    "set" : {964                      "description" : "set step: variables to assign.",965                      "type" : "object"966                    },967                    "steps" : {968                      "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",969                      "items" : {970                        "type" : "object"971                      },972                      "type" : "array"973                    },974                    "subworkflow" : {975                      "description" : "subworkflow step: id or name of the workflow to run.",976                      "type" : "string"977                    },978                    "switch" : {979                      "description" : "switch step: expression whose value selects a case.",980                      "type" : "string"981                    },982                    "then" : {983                      "description" : "condition step: ids that run when the condition is truthy.",984                      "items" : {985                        "type" : "string"986                      },987                      "type" : "array"988                    },989                    "timeoutSeconds" : {990                      "type" : "number"991                    },992                    "title" : {993                      "description" : "notify step: title.",994                      "type" : "string"995                    },996                    "tool" : {997                      "description" : "tool step: canonical tool identifier, for example filesystem.list.",998                      "type" : "string"999                    },1000                    "transform" : {1001                      "description" : "transform step: expression whose value becomes the step output.",1002                      "type" : "string"1003                    },1004                    "verify" : {1005                      "description" : "verify step: assertions checked by the runtime.",1006                      "items" : {1007                        "additionalProperties" : false,1008                        "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",1009                        "properties" : {1010                          "dirNonEmpty" : {1011                            "description" : "Path of a directory that must contain at least one entry.",1012                            "type" : "string"1013                          },1014                          "equals" : {1015                            "description" : "Two values that must be equal after interpolation.",1016                            "maxItems" : 2,1017                            "minItems" : 2,1018                            "type" : "array"1019                          },1020                          "fileContains" : {1021                            "description" : "Path of a file that must contain `text`.",1022                            "type" : "string"1023                          },1024                          "fileExists" : {1025                            "description" : "Path that must exist.",1026                            "type" : "string"1027                          },1028                          "fileNonEmpty" : {1029                            "description" : "Path of a file that must exist and be larger than zero bytes.",1030                            "type" : "string"1031                          },1032                          "stepSucceeded" : {1033                            "description" : "Id of an upstream step that must have succeeded.",1034                            "type" : "string"1035                          },1036                          "text" : {1037                            "description" : "Text searched by fileContains.",1038                            "type" : "string"1039                          },1040                          "truthy" : {1041                            "description" : "Expression (or value) that must be truthy."1042                          }1043                        },1044                        "type" : "object"1045                      },1046                      "type" : "array"1047                    },1048                    "when" : {1049                      "description" : "Expression; the step is skipped when it is falsy.",1050                      "type" : "string"1051                    },1052                    "while" : {1053                      "description" : "loop step: expression evaluated before every iteration.",1054                      "type" : "string"1055                    },1056                    "with" : {1057                      "description" : "tool step: arguments. Strings may contain ${{ … }}.",1058                      "type" : "object"1059                    }1060                  },1061                  "required" : [1062                    "id"1063                  ],1064                  "type" : "object"1065                },1066                "type" : "array"1067              },1068              "subworkflow" : {1069                "description" : "subworkflow step: id or name of the workflow to run.",1070                "type" : "string"1071              },1072              "switch" : {1073                "description" : "switch step: expression whose value selects a case.",1074                "type" : "string"1075              },1076              "then" : {1077                "description" : "condition step: ids that run when the condition is truthy.",1078                "items" : {1079                  "type" : "string"1080                },1081                "type" : "array"1082              },1083              "timeoutSeconds" : {1084                "type" : "number"1085              },1086              "title" : {1087                "description" : "notify step: title.",1088                "type" : "string"1089              },1090              "tool" : {1091                "description" : "tool step: canonical tool identifier, for example filesystem.list.",1092                "type" : "string"1093              },1094              "transform" : {1095                "description" : "transform step: expression whose value becomes the step output.",1096                "type" : "string"1097              },1098              "verify" : {1099                "description" : "verify step: assertions checked by the runtime.",1100                "items" : {1101                  "additionalProperties" : false,1102                  "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",1103                  "properties" : {1104                    "dirNonEmpty" : {1105                      "description" : "Path of a directory that must contain at least one entry.",1106                      "type" : "string"1107                    },1108                    "equals" : {1109                      "description" : "Two values that must be equal after interpolation.",1110                      "maxItems" : 2,1111                      "minItems" : 2,1112                      "type" : "array"1113                    },1114                    "fileContains" : {1115                      "description" : "Path of a file that must contain `text`.",1116                      "type" : "string"1117                    },1118                    "fileExists" : {1119                      "description" : "Path that must exist.",1120                      "type" : "string"1121                    },1122                    "fileNonEmpty" : {1123                      "description" : "Path of a file that must exist and be larger than zero bytes.",1124                      "type" : "string"1125                    },1126                    "stepSucceeded" : {1127                      "description" : "Id of an upstream step that must have succeeded.",1128                      "type" : "string"1129                    },1130                    "text" : {1131                      "description" : "Text searched by fileContains.",1132                      "type" : "string"1133                    },1134                    "truthy" : {1135                      "description" : "Expression (or value) that must be truthy."1136                    }1137                  },1138                  "type" : "object"1139                },1140                "type" : "array"1141              },1142              "when" : {1143                "description" : "Expression; the step is skipped when it is falsy.",1144                "type" : "string"1145              },1146              "while" : {1147                "description" : "loop step: expression evaluated before every iteration.",1148                "type" : "string"1149              },1150              "with" : {1151                "description" : "tool step: arguments. Strings may contain ${{ … }}.",1152                "type" : "object"1153              }1154            },1155            "required" : [1156              "id"1157            ],1158            "type" : "object"1159          },1160          "type" : "array"1161        },1162        "parameters" : {1163          "items" : {1164            "additionalProperties" : false,1165            "properties" : {1166              "default" : {1167                "description" : "Default value."1168              },1169              "description" : {1170                "type" : "string"1171              },1172              "name" : {1173                "pattern" : "^[A-Za-z_][A-Za-z0-9_]*$",1174                "type" : "string"1175              },1176              "required" : {1177                "type" : "boolean"1178              },1179              "type" : {1180                "enum" : [1181                  "string",1182                  "number",1183                  "integer",1184                  "boolean",1185                  "path",1186                  "array",1187                  "object"1188                ],1189                "type" : "string"1190              }1191            },1192            "required" : [1193              "name",1194              "type"1195            ],1196            "type" : "object"1197          },1198          "type" : "array"1199        },1200        "permissions" : {1201          "additionalProperties" : false,1202          "properties" : {1203            "apps" : {1204              "additionalProperties" : false,1205              "description" : "Bundle identifiers.",1206              "properties" : {1207                "accessibility" : {1208                  "items" : {1209                    "type" : "string"1210                  },1211                  "type" : "array"1212                },1213                "automation" : {1214                  "items" : {1215                    "type" : "string"1216                  },1217                  "type" : "array"1218                },1219                "control" : {1220                  "items" : {1221                    "type" : "string"1222                  },1223                  "type" : "array"1224                }1225              },1226              "type" : "object"1227            },1228            "browser" : {1229              "description" : "Hosts the browser tools may open.",1230              "items" : {1231                "type" : "string"1232              },1233              "type" : "array"1234            },1235            "clipboard" : {1236              "additionalProperties" : false,1237              "properties" : {1238                "read" : {1239                  "type" : "boolean"1240                },1241                "write" : {1242                  "type" : "boolean"1243                }1244              },1245              "type" : "object"1246            },1247            "filesystem" : {1248              "additionalProperties" : false,1249              "description" : "Absolute or ~/ paths; entries may use ${{ params.<name> }}.",1250              "properties" : {1251                "delete" : {1252                  "items" : {1253                    "type" : "string"1254                  },1255                  "type" : "array"1256                },1257                "read" : {1258                  "items" : {1259                    "type" : "string"1260                  },1261                  "type" : "array"1262                },1263                "write" : {1264                  "items" : {1265                    "type" : "string"1266                  },1267                  "type" : "array"1268                }1269              },1270              "type" : "object"1271            },1272            "network" : {1273              "description" : "Hosts for outbound requests.",1274              "items" : {1275                "type" : "string"1276              },1277              "type" : "array"1278            },1279            "notifications" : {1280              "type" : "boolean"1281            },1282            "processes" : {1283              "description" : "Executables the workflow may run.",1284              "items" : {1285                "type" : "string"1286              },1287              "type" : "array"1288            },1289            "screen" : {1290              "description" : "Capture scopes: display, window:<bundleID>, region.",1291              "items" : {1292                "type" : "string"1293              },1294              "type" : "array"1295            },1296            "scripts" : {1297              "description" : "Script runtimes: bash, python, swift, javascript, applescript, jxa.",1298              "items" : {1299                "type" : "string"1300              },1301              "type" : "array"1302            },1303            "secrets" : {1304              "description" : "Keychain secret reference names.",1305              "items" : {1306                "type" : "string"1307              },1308              "type" : "array"1309            }1310          },1311          "type" : "object"1312        },1313        "steps" : {1314          "items" : {1315            "additionalProperties" : false,1316            "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",1317            "properties" : {1318              "agent" : {1319                "additionalProperties" : false,1320                "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",1321                "properties" : {1322                  "instructions" : {1323                    "type" : "string"1324                  },1325                  "model" : {1326                    "description" : "provider/model",1327                    "type" : "string"1328                  },1329                  "tools" : {1330                    "description" : "Tool ids or family.* patterns.",1331                    "items" : {1332                      "type" : "string"1333                    },1334                    "type" : "array"1335                  }1336                },1337                "required" : [1338                  "instructions"1339                ],1340                "type" : [1341                  "string",1342                  "object"1343                ]1344              },1345              "approval" : {1346                "description" : "approval step: message shown to the person.",1347                "type" : "string"1348              },1349              "artifacts" : {1350                "description" : "output step: paths recorded as run artifacts.",1351                "items" : {1352                  "type" : "string"1353                },1354                "type" : "array"1355              },1356              "as" : {1357                "description" : "foreach step: loop variable name (default item).",1358                "type" : "string"1359              },1360              "cases" : {1361                "items" : {1362                  "additionalProperties" : false,1363                  "properties" : {1364                    "steps" : {1365                      "items" : {1366                        "type" : "string"1367                      },1368                      "type" : "array"1369                    },1370                    "value" : {1371                      "description" : "Value compared with the switch expression."1372                    }1373                  },1374                  "required" : [1375                    "steps",1376                    "value"1377                  ],1378                  "type" : "object"1379                },1380                "type" : "array"1381              },1382              "collect" : {1383                "description" : "foreach step: body step whose output is collected per iteration.",1384                "type" : "string"1385              },1386              "concurrency" : {1387                "description" : "foreach step: iterations run at once (default 1).",1388                "minimum" : 1,1389                "type" : "integer"1390              },1391              "continueOnError" : {1392                "type" : "boolean"1393              },1394              "default" : {1395                "description" : "switch step: ids that run when no case matches.",1396                "items" : {1397                  "type" : "string"1398                },1399                "type" : "array"1400              },1401              "delay" : {1402                "description" : "delay step: seconds, or an expression yielding seconds.",1403                "type" : [1404                  "number",1405                  "string"1406                ]1407              },1408              "else" : {1409                "description" : "condition step: ids that run when the condition is falsy.",1410                "items" : {1411                  "type" : "string"1412                },1413                "type" : "array"1414              },1415              "expect" : {1416                "description" : "agent step: file postconditions checked by the runtime.",1417                "items" : {1418                  "additionalProperties" : false,1419                  "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",1420                  "properties" : {1421                    "dirNonEmpty" : {1422                      "description" : "Path of a directory that must contain at least one entry.",1423                      "type" : "string"1424                    },1425                    "equals" : {1426                      "description" : "Two values that must be equal after interpolation.",1427                      "maxItems" : 2,1428                      "minItems" : 2,1429                      "type" : "array"1430                    },1431                    "fileContains" : {1432                      "description" : "Path of a file that must contain `text`.",1433                      "type" : "string"1434                    },1435                    "fileExists" : {1436                      "description" : "Path that must exist.",1437                      "type" : "string"1438                    },1439                    "fileNonEmpty" : {1440                      "description" : "Path of a file that must exist and be larger than zero bytes.",1441                      "type" : "string"1442                    },1443                    "stepSucceeded" : {1444                      "description" : "Id of an upstream step that must have succeeded.",1445                      "type" : "string"1446                    },1447                    "text" : {1448                      "description" : "Text searched by fileContains.",1449                      "type" : "string"1450                    },1451                    "truthy" : {1452                      "description" : "Expression (or value) that must be truthy."1453                    }1454                  },1455                  "type" : "object"1456                },1457                "type" : "array"1458              },1459              "fail" : {1460                "description" : "fail step: failure message.",1461                "type" : "string"1462              },1463              "foreach" : {1464                "description" : "foreach step: expression yielding a list, or a literal list.",1465                "type" : [1466                  "string",1467                  "array"1468                ]1469              },1470              "id" : {1471                "description" : "Unique in the whole document, nested steps included.",1472                "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",1473                "type" : "string"1474              },1475              "if" : {1476                "description" : "condition step: expression.",1477                "type" : "string"1478              },1479              "inputs" : {1480                "description" : "agent / subworkflow step: input values.",1481                "type" : "object"1482              },1483              "into" : {1484                "description" : "transform step: variable that also receives the value.",1485                "type" : "string"1486              },1487              "maxIterations" : {1488                "description" : "loop step: mandatory upper bound.",1489                "minimum" : 1,1490                "type" : "integer"1491              },1492              "name" : {1493                "description" : "Display name.",1494                "type" : "string"1495              },1496              "needs" : {1497                "description" : "Ids of steps of the same list that must finish first.",1498                "items" : {1499                  "type" : "string"1500                },1501                "type" : "array"1502              },1503              "notify" : {1504                "description" : "notify step: message.",1505                "type" : "string"1506              },1507              "objective" : {1508                "description" : "agent step: what the agent must achieve.",1509                "type" : "string"1510              },1511              "onError" : {1512                "description" : "Id of a handler step of the same list.",1513                "type" : "string"1514              },1515              "output" : {1516                "description" : "output step: workflow outputs.",1517                "type" : "object"1518              },1519              "parallel" : {1520                "description" : "parallel step: branches, joined implicitly.",1521                "items" : {1522                  "additionalProperties" : false,1523                  "properties" : {1524                    "name" : {1525                      "description" : "Branch name.",1526                      "type" : "string"1527                    },1528                    "steps" : {1529                      "description" : "Nested steps (their own `needs` namespace).",1530                      "items" : {1531                        "additionalProperties" : false,1532                        "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",1533                        "properties" : {1534                          "agent" : {1535                            "additionalProperties" : false,1536                            "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",1537                            "properties" : {1538                              "instructions" : {1539                                "type" : "string"1540                              },1541                              "model" : {1542                                "description" : "provider/model",1543                                "type" : "string"1544                              },1545                              "tools" : {1546                                "description" : "Tool ids or family.* patterns.",1547                                "items" : {1548                                  "type" : "string"1549                                },1550                                "type" : "array"1551                              }1552                            },1553                            "required" : [1554                              "instructions"1555                            ],1556                            "type" : [1557                              "string",1558                              "object"1559                            ]1560                          },1561                          "approval" : {1562                            "description" : "approval step: message shown to the person.",1563                            "type" : "string"1564                          },1565                          "artifacts" : {1566                            "description" : "output step: paths recorded as run artifacts.",1567                            "items" : {1568                              "type" : "string"1569                            },1570                            "type" : "array"1571                          },1572                          "as" : {1573                            "description" : "foreach step: loop variable name (default item).",1574                            "type" : "string"1575                          },1576                          "cases" : {1577                            "items" : {1578                              "additionalProperties" : false,1579                              "properties" : {1580                                "steps" : {1581                                  "items" : {1582                                    "type" : "string"1583                                  },1584                                  "type" : "array"1585                                },1586                                "value" : {1587                                  "description" : "Value compared with the switch expression."1588                                }1589                              },1590                              "required" : [1591                                "steps",1592                                "value"1593                              ],1594                              "type" : "object"1595                            },1596                            "type" : "array"1597                          },1598                          "collect" : {1599                            "description" : "foreach step: body step whose output is collected per iteration.",1600                            "type" : "string"1601                          },1602                          "concurrency" : {1603                            "description" : "foreach step: iterations run at once (default 1).",1604                            "minimum" : 1,1605                            "type" : "integer"1606                          },1607                          "continueOnError" : {1608                            "type" : "boolean"1609                          },1610                          "default" : {1611                            "description" : "switch step: ids that run when no case matches.",1612                            "items" : {1613                              "type" : "string"1614                            },1615                            "type" : "array"1616                          },1617                          "delay" : {1618                            "description" : "delay step: seconds, or an expression yielding seconds.",1619                            "type" : [1620                              "number",1621                              "string"1622                            ]1623                          },1624                          "else" : {1625                            "description" : "condition step: ids that run when the condition is falsy.",1626                            "items" : {1627                              "type" : "string"1628                            },1629                            "type" : "array"1630                          },1631                          "expect" : {1632                            "description" : "agent step: file postconditions checked by the runtime.",1633                            "items" : {1634                              "additionalProperties" : false,1635                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",1636                              "properties" : {1637                                "dirNonEmpty" : {1638                                  "description" : "Path of a directory that must contain at least one entry.",1639                                  "type" : "string"1640                                },1641                                "equals" : {1642                                  "description" : "Two values that must be equal after interpolation.",1643                                  "maxItems" : 2,1644                                  "minItems" : 2,1645                                  "type" : "array"1646                                },1647                                "fileContains" : {1648                                  "description" : "Path of a file that must contain `text`.",1649                                  "type" : "string"1650                                },1651                                "fileExists" : {1652                                  "description" : "Path that must exist.",1653                                  "type" : "string"1654                                },1655                                "fileNonEmpty" : {1656                                  "description" : "Path of a file that must exist and be larger than zero bytes.",1657                                  "type" : "string"1658                                },1659                                "stepSucceeded" : {1660                                  "description" : "Id of an upstream step that must have succeeded.",1661                                  "type" : "string"1662                                },1663                                "text" : {1664                                  "description" : "Text searched by fileContains.",1665                                  "type" : "string"1666                                },1667                                "truthy" : {1668                                  "description" : "Expression (or value) that must be truthy."1669                                }1670                              },1671                              "type" : "object"1672                            },1673                            "type" : "array"1674                          },1675                          "fail" : {1676                            "description" : "fail step: failure message.",1677                            "type" : "string"1678                          },1679                          "foreach" : {1680                            "description" : "foreach step: expression yielding a list, or a literal list.",1681                            "type" : [1682                              "string",1683                              "array"1684                            ]1685                          },1686                          "id" : {1687                            "description" : "Unique in the whole document, nested steps included.",1688                            "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",1689                            "type" : "string"1690                          },1691                          "if" : {1692                            "description" : "condition step: expression.",1693                            "type" : "string"1694                          },1695                          "inputs" : {1696                            "description" : "agent / subworkflow step: input values.",1697                            "type" : "object"1698                          },1699                          "into" : {1700                            "description" : "transform step: variable that also receives the value.",1701                            "type" : "string"1702                          },1703                          "maxIterations" : {1704                            "description" : "loop step: mandatory upper bound.",1705                            "minimum" : 1,1706                            "type" : "integer"1707                          },1708                          "name" : {1709                            "description" : "Display name.",1710                            "type" : "string"1711                          },1712                          "needs" : {1713                            "description" : "Ids of steps of the same list that must finish first.",1714                            "items" : {1715                              "type" : "string"1716                            },1717                            "type" : "array"1718                          },1719                          "notify" : {1720                            "description" : "notify step: message.",1721                            "type" : "string"1722                          },1723                          "objective" : {1724                            "description" : "agent step: what the agent must achieve.",1725                            "type" : "string"1726                          },1727                          "onError" : {1728                            "description" : "Id of a handler step of the same list.",1729                            "type" : "string"1730                          },1731                          "output" : {1732                            "description" : "output step: workflow outputs.",1733                            "type" : "object"1734                          },1735                          "parallel" : {1736                            "description" : "parallel step: branches, joined implicitly.",1737                            "items" : {1738                              "additionalProperties" : false,1739                              "properties" : {1740                                "name" : {1741                                  "description" : "Branch name.",1742                                  "type" : "string"1743                                },1744                                "steps" : {1745                                  "description" : "Nested steps (their own `needs` namespace).",1746                                  "items" : {1747                                    "additionalProperties" : false,1748                                    "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",1749                                    "properties" : {1750                                      "agent" : {1751                                        "additionalProperties" : false,1752                                        "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",1753                                        "properties" : {1754                                          "instructions" : {1755                                            "type" : "string"1756                                          },1757                                          "model" : {1758                                            "description" : "provider/model",1759                                            "type" : "string"1760                                          },1761                                          "tools" : {1762                                            "description" : "Tool ids or family.* patterns.",1763                                            "items" : {1764                                              "type" : "string"1765                                            },1766                                            "type" : "array"1767                                          }1768                                        },1769                                        "required" : [1770                                          "instructions"1771                                        ],1772                                        "type" : [1773                                          "string",1774                                          "object"1775                                        ]1776                                      },1777                                      "approval" : {1778                                        "description" : "approval step: message shown to the person.",1779                                        "type" : "string"1780                                      },1781                                      "artifacts" : {1782                                        "description" : "output step: paths recorded as run artifacts.",1783                                        "items" : {1784                                          "type" : "string"1785                                        },1786                                        "type" : "array"1787                                      },1788                                      "as" : {1789                                        "description" : "foreach step: loop variable name (default item).",1790                                        "type" : "string"1791                                      },1792                                      "cases" : {1793                                        "items" : {1794                                          "additionalProperties" : false,1795                                          "properties" : {1796                                            "steps" : {1797                                              "items" : {1798                                                "type" : "string"1799                                              },1800                                              "type" : "array"1801                                            },1802                                            "value" : {1803                                              "description" : "Value compared with the switch expression."1804                                            }1805                                          },1806                                          "required" : [1807                                            "steps",1808                                            "value"1809                                          ],1810                                          "type" : "object"1811                                        },1812                                        "type" : "array"1813                                      },1814                                      "collect" : {1815                                        "description" : "foreach step: body step whose output is collected per iteration.",1816                                        "type" : "string"1817                                      },1818                                      "concurrency" : {1819                                        "description" : "foreach step: iterations run at once (default 1).",1820                                        "minimum" : 1,1821                                        "type" : "integer"1822                                      },1823                                      "continueOnError" : {1824                                        "type" : "boolean"1825                                      },1826                                      "default" : {1827                                        "description" : "switch step: ids that run when no case matches.",1828                                        "items" : {1829                                          "type" : "string"1830                                        },1831                                        "type" : "array"1832                                      },1833                                      "delay" : {1834                                        "description" : "delay step: seconds, or an expression yielding seconds.",1835                                        "type" : [1836                                          "number",1837                                          "string"1838                                        ]1839                                      },1840                                      "else" : {1841                                        "description" : "condition step: ids that run when the condition is falsy.",1842                                        "items" : {1843                                          "type" : "string"1844                                        },1845                                        "type" : "array"1846                                      },1847                                      "expect" : {1848                                        "description" : "agent step: file postconditions checked by the runtime.",1849                                        "items" : {1850                                          "additionalProperties" : false,1851                                          "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",1852                                          "properties" : {1853                                            "dirNonEmpty" : {1854                                              "description" : "Path of a directory that must contain at least one entry.",1855                                              "type" : "string"1856                                            },1857                                            "equals" : {1858                                              "description" : "Two values that must be equal after interpolation.",1859                                              "maxItems" : 2,1860                                              "minItems" : 2,1861                                              "type" : "array"1862                                            },1863                                            "fileContains" : {1864                                              "description" : "Path of a file that must contain `text`.",1865                                              "type" : "string"1866                                            },1867                                            "fileExists" : {1868                                              "description" : "Path that must exist.",1869                                              "type" : "string"1870                                            },1871                                            "fileNonEmpty" : {1872                                              "description" : "Path of a file that must exist and be larger than zero bytes.",1873                                              "type" : "string"1874                                            },1875                                            "stepSucceeded" : {1876                                              "description" : "Id of an upstream step that must have succeeded.",1877                                              "type" : "string"1878                                            },1879                                            "text" : {1880                                              "description" : "Text searched by fileContains.",1881                                              "type" : "string"1882                                            },1883                                            "truthy" : {1884                                              "description" : "Expression (or value) that must be truthy."1885                                            }1886                                          },1887                                          "type" : "object"1888                                        },1889                                        "type" : "array"1890                                      },1891                                      "fail" : {1892                                        "description" : "fail step: failure message.",1893                                        "type" : "string"1894                                      },1895                                      "foreach" : {1896                                        "description" : "foreach step: expression yielding a list, or a literal list.",1897                                        "type" : [1898                                          "string",1899                                          "array"1900                                        ]1901                                      },1902                                      "id" : {1903                                        "description" : "Unique in the whole document, nested steps included.",1904                                        "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",1905                                        "type" : "string"1906                                      },1907                                      "if" : {1908                                        "description" : "condition step: expression.",1909                                        "type" : "string"1910                                      },1911                                      "inputs" : {1912                                        "description" : "agent / subworkflow step: input values.",1913                                        "type" : "object"1914                                      },1915                                      "into" : {1916                                        "description" : "transform step: variable that also receives the value.",1917                                        "type" : "string"1918                                      },1919                                      "maxIterations" : {1920                                        "description" : "loop step: mandatory upper bound.",1921                                        "minimum" : 1,1922                                        "type" : "integer"1923                                      },1924                                      "name" : {1925                                        "description" : "Display name.",1926                                        "type" : "string"1927                                      },1928                                      "needs" : {1929                                        "description" : "Ids of steps of the same list that must finish first.",1930                                        "items" : {1931                                          "type" : "string"1932                                        },1933                                        "type" : "array"1934                                      },1935                                      "notify" : {1936                                        "description" : "notify step: message.",1937                                        "type" : "string"1938                                      },1939                                      "objective" : {1940                                        "description" : "agent step: what the agent must achieve.",1941                                        "type" : "string"1942                                      },1943                                      "onError" : {1944                                        "description" : "Id of a handler step of the same list.",1945                                        "type" : "string"1946                                      },1947                                      "output" : {1948                                        "description" : "output step: workflow outputs.",1949                                        "type" : "object"1950                                      },1951                                      "parallel" : {1952                                        "description" : "parallel step: branches, joined implicitly.",1953                                        "items" : {1954                                          "additionalProperties" : false,1955                                          "properties" : {1956                                            "name" : {1957                                              "description" : "Branch name.",1958                                              "type" : "string"1959                                            },1960                                            "steps" : {1961                                              "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",1962                                              "items" : {1963                                                "type" : "object"1964                                              },1965                                              "type" : "array"1966                                            }1967                                          },1968                                          "required" : [1969                                            "name",1970                                            "steps"1971                                          ],1972                                          "type" : "object"1973                                        },1974                                        "type" : "array"1975                                      },1976                                      "retry" : {1977                                        "additionalProperties" : false,1978                                        "properties" : {1979                                          "backoffMultiplier" : {1980                                            "minimum" : 1,1981                                            "type" : "number"1982                                          },1983                                          "backoffSeconds" : {1984                                            "minimum" : 0,1985                                            "type" : "number"1986                                          },1987                                          "force" : {1988                                            "description" : "Retry even when the step is not idempotent.",1989                                            "type" : "boolean"1990                                          },1991                                          "maxAttempts" : {1992                                            "minimum" : 1,1993                                            "type" : "integer"1994                                          }1995                                        },1996                                        "required" : [1997                                          "maxAttempts"1998                                        ],1999                                        "type" : "object"2000                                      },2001                                      "set" : {2002                                        "description" : "set step: variables to assign.",2003                                        "type" : "object"2004                                      },2005                                      "steps" : {2006                                        "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",2007                                        "items" : {2008                                          "type" : "object"2009                                        },2010                                        "type" : "array"2011                                      },2012                                      "subworkflow" : {2013                                        "description" : "subworkflow step: id or name of the workflow to run.",2014                                        "type" : "string"2015                                      },2016                                      "switch" : {2017                                        "description" : "switch step: expression whose value selects a case.",2018                                        "type" : "string"2019                                      },2020                                      "then" : {2021                                        "description" : "condition step: ids that run when the condition is truthy.",2022                                        "items" : {2023                                          "type" : "string"2024                                        },2025                                        "type" : "array"2026                                      },2027                                      "timeoutSeconds" : {2028                                        "type" : "number"2029                                      },2030                                      "title" : {2031                                        "description" : "notify step: title.",2032                                        "type" : "string"2033                                      },2034                                      "tool" : {2035                                        "description" : "tool step: canonical tool identifier, for example filesystem.list.",2036                                        "type" : "string"2037                                      },2038                                      "transform" : {2039                                        "description" : "transform step: expression whose value becomes the step output.",2040                                        "type" : "string"2041                                      },2042                                      "verify" : {2043                                        "description" : "verify step: assertions checked by the runtime.",2044                                        "items" : {2045                                          "additionalProperties" : false,2046                                          "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2047                                          "properties" : {2048                                            "dirNonEmpty" : {2049                                              "description" : "Path of a directory that must contain at least one entry.",2050                                              "type" : "string"2051                                            },2052                                            "equals" : {2053                                              "description" : "Two values that must be equal after interpolation.",2054                                              "maxItems" : 2,2055                                              "minItems" : 2,2056                                              "type" : "array"2057                                            },2058                                            "fileContains" : {2059                                              "description" : "Path of a file that must contain `text`.",2060                                              "type" : "string"2061                                            },2062                                            "fileExists" : {2063                                              "description" : "Path that must exist.",2064                                              "type" : "string"2065                                            },2066                                            "fileNonEmpty" : {2067                                              "description" : "Path of a file that must exist and be larger than zero bytes.",2068                                              "type" : "string"2069                                            },2070                                            "stepSucceeded" : {2071                                              "description" : "Id of an upstream step that must have succeeded.",2072                                              "type" : "string"2073                                            },2074                                            "text" : {2075                                              "description" : "Text searched by fileContains.",2076                                              "type" : "string"2077                                            },2078                                            "truthy" : {2079                                              "description" : "Expression (or value) that must be truthy."2080                                            }2081                                          },2082                                          "type" : "object"2083                                        },2084                                        "type" : "array"2085                                      },2086                                      "when" : {2087                                        "description" : "Expression; the step is skipped when it is falsy.",2088                                        "type" : "string"2089                                      },2090                                      "while" : {2091                                        "description" : "loop step: expression evaluated before every iteration.",2092                                        "type" : "string"2093                                      },2094                                      "with" : {2095                                        "description" : "tool step: arguments. Strings may contain ${{ … }}.",2096                                        "type" : "object"2097                                      }2098                                    },2099                                    "required" : [2100                                      "id"2101                                    ],2102                                    "type" : "object"2103                                  },2104                                  "type" : "array"2105                                }2106                              },2107                              "required" : [2108                                "name",2109                                "steps"2110                              ],2111                              "type" : "object"2112                            },2113                            "type" : "array"2114                          },2115                          "retry" : {2116                            "additionalProperties" : false,2117                            "properties" : {2118                              "backoffMultiplier" : {2119                                "minimum" : 1,2120                                "type" : "number"2121                              },2122                              "backoffSeconds" : {2123                                "minimum" : 0,2124                                "type" : "number"2125                              },2126                              "force" : {2127                                "description" : "Retry even when the step is not idempotent.",2128                                "type" : "boolean"2129                              },2130                              "maxAttempts" : {2131                                "minimum" : 1,2132                                "type" : "integer"2133                              }2134                            },2135                            "required" : [2136                              "maxAttempts"2137                            ],2138                            "type" : "object"2139                          },2140                          "set" : {2141                            "description" : "set step: variables to assign.",2142                            "type" : "object"2143                          },2144                          "steps" : {2145                            "description" : "Nested steps (their own `needs` namespace).",2146                            "items" : {2147                              "additionalProperties" : false,2148                              "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",2149                              "properties" : {2150                                "agent" : {2151                                  "additionalProperties" : false,2152                                  "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",2153                                  "properties" : {2154                                    "instructions" : {2155                                      "type" : "string"2156                                    },2157                                    "model" : {2158                                      "description" : "provider/model",2159                                      "type" : "string"2160                                    },2161                                    "tools" : {2162                                      "description" : "Tool ids or family.* patterns.",2163                                      "items" : {2164                                        "type" : "string"2165                                      },2166                                      "type" : "array"2167                                    }2168                                  },2169                                  "required" : [2170                                    "instructions"2171                                  ],2172                                  "type" : [2173                                    "string",2174                                    "object"2175                                  ]2176                                },2177                                "approval" : {2178                                  "description" : "approval step: message shown to the person.",2179                                  "type" : "string"2180                                },2181                                "artifacts" : {2182                                  "description" : "output step: paths recorded as run artifacts.",2183                                  "items" : {2184                                    "type" : "string"2185                                  },2186                                  "type" : "array"2187                                },2188                                "as" : {2189                                  "description" : "foreach step: loop variable name (default item).",2190                                  "type" : "string"2191                                },2192                                "cases" : {2193                                  "items" : {2194                                    "additionalProperties" : false,2195                                    "properties" : {2196                                      "steps" : {2197                                        "items" : {2198                                          "type" : "string"2199                                        },2200                                        "type" : "array"2201                                      },2202                                      "value" : {2203                                        "description" : "Value compared with the switch expression."2204                                      }2205                                    },2206                                    "required" : [2207                                      "steps",2208                                      "value"2209                                    ],2210                                    "type" : "object"2211                                  },2212                                  "type" : "array"2213                                },2214                                "collect" : {2215                                  "description" : "foreach step: body step whose output is collected per iteration.",2216                                  "type" : "string"2217                                },2218                                "concurrency" : {2219                                  "description" : "foreach step: iterations run at once (default 1).",2220                                  "minimum" : 1,2221                                  "type" : "integer"2222                                },2223                                "continueOnError" : {2224                                  "type" : "boolean"2225                                },2226                                "default" : {2227                                  "description" : "switch step: ids that run when no case matches.",2228                                  "items" : {2229                                    "type" : "string"2230                                  },2231                                  "type" : "array"2232                                },2233                                "delay" : {2234                                  "description" : "delay step: seconds, or an expression yielding seconds.",2235                                  "type" : [2236                                    "number",2237                                    "string"2238                                  ]2239                                },2240                                "else" : {2241                                  "description" : "condition step: ids that run when the condition is falsy.",2242                                  "items" : {2243                                    "type" : "string"2244                                  },2245                                  "type" : "array"2246                                },2247                                "expect" : {2248                                  "description" : "agent step: file postconditions checked by the runtime.",2249                                  "items" : {2250                                    "additionalProperties" : false,2251                                    "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2252                                    "properties" : {2253                                      "dirNonEmpty" : {2254                                        "description" : "Path of a directory that must contain at least one entry.",2255                                        "type" : "string"2256                                      },2257                                      "equals" : {2258                                        "description" : "Two values that must be equal after interpolation.",2259                                        "maxItems" : 2,2260                                        "minItems" : 2,2261                                        "type" : "array"2262                                      },2263                                      "fileContains" : {2264                                        "description" : "Path of a file that must contain `text`.",2265                                        "type" : "string"2266                                      },2267                                      "fileExists" : {2268                                        "description" : "Path that must exist.",2269                                        "type" : "string"2270                                      },2271                                      "fileNonEmpty" : {2272                                        "description" : "Path of a file that must exist and be larger than zero bytes.",2273                                        "type" : "string"2274                                      },2275                                      "stepSucceeded" : {2276                                        "description" : "Id of an upstream step that must have succeeded.",2277                                        "type" : "string"2278                                      },2279                                      "text" : {2280                                        "description" : "Text searched by fileContains.",2281                                        "type" : "string"2282                                      },2283                                      "truthy" : {2284                                        "description" : "Expression (or value) that must be truthy."2285                                      }2286                                    },2287                                    "type" : "object"2288                                  },2289                                  "type" : "array"2290                                },2291                                "fail" : {2292                                  "description" : "fail step: failure message.",2293                                  "type" : "string"2294                                },2295                                "foreach" : {2296                                  "description" : "foreach step: expression yielding a list, or a literal list.",2297                                  "type" : [2298                                    "string",2299                                    "array"2300                                  ]2301                                },2302                                "id" : {2303                                  "description" : "Unique in the whole document, nested steps included.",2304                                  "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",2305                                  "type" : "string"2306                                },2307                                "if" : {2308                                  "description" : "condition step: expression.",2309                                  "type" : "string"2310                                },2311                                "inputs" : {2312                                  "description" : "agent / subworkflow step: input values.",2313                                  "type" : "object"2314                                },2315                                "into" : {2316                                  "description" : "transform step: variable that also receives the value.",2317                                  "type" : "string"2318                                },2319                                "maxIterations" : {2320                                  "description" : "loop step: mandatory upper bound.",2321                                  "minimum" : 1,2322                                  "type" : "integer"2323                                },2324                                "name" : {2325                                  "description" : "Display name.",2326                                  "type" : "string"2327                                },2328                                "needs" : {2329                                  "description" : "Ids of steps of the same list that must finish first.",2330                                  "items" : {2331                                    "type" : "string"2332                                  },2333                                  "type" : "array"2334                                },2335                                "notify" : {2336                                  "description" : "notify step: message.",2337                                  "type" : "string"2338                                },2339                                "objective" : {2340                                  "description" : "agent step: what the agent must achieve.",2341                                  "type" : "string"2342                                },2343                                "onError" : {2344                                  "description" : "Id of a handler step of the same list.",2345                                  "type" : "string"2346                                },2347                                "output" : {2348                                  "description" : "output step: workflow outputs.",2349                                  "type" : "object"2350                                },2351                                "parallel" : {2352                                  "description" : "parallel step: branches, joined implicitly.",2353                                  "items" : {2354                                    "additionalProperties" : false,2355                                    "properties" : {2356                                      "name" : {2357                                        "description" : "Branch name.",2358                                        "type" : "string"2359                                      },2360                                      "steps" : {2361                                        "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",2362                                        "items" : {2363                                          "type" : "object"2364                                        },2365                                        "type" : "array"2366                                      }2367                                    },2368                                    "required" : [2369                                      "name",2370                                      "steps"2371                                    ],2372                                    "type" : "object"2373                                  },2374                                  "type" : "array"2375                                },2376                                "retry" : {2377                                  "additionalProperties" : false,2378                                  "properties" : {2379                                    "backoffMultiplier" : {2380                                      "minimum" : 1,2381                                      "type" : "number"2382                                    },2383                                    "backoffSeconds" : {2384                                      "minimum" : 0,2385                                      "type" : "number"2386                                    },2387                                    "force" : {2388                                      "description" : "Retry even when the step is not idempotent.",2389                                      "type" : "boolean"2390                                    },2391                                    "maxAttempts" : {2392                                      "minimum" : 1,2393                                      "type" : "integer"2394                                    }2395                                  },2396                                  "required" : [2397                                    "maxAttempts"2398                                  ],2399                                  "type" : "object"2400                                },2401                                "set" : {2402                                  "description" : "set step: variables to assign.",2403                                  "type" : "object"2404                                },2405                                "steps" : {2406                                  "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",2407                                  "items" : {2408                                    "type" : "object"2409                                  },2410                                  "type" : "array"2411                                },2412                                "subworkflow" : {2413                                  "description" : "subworkflow step: id or name of the workflow to run.",2414                                  "type" : "string"2415                                },2416                                "switch" : {2417                                  "description" : "switch step: expression whose value selects a case.",2418                                  "type" : "string"2419                                },2420                                "then" : {2421                                  "description" : "condition step: ids that run when the condition is truthy.",2422                                  "items" : {2423                                    "type" : "string"2424                                  },2425                                  "type" : "array"2426                                },2427                                "timeoutSeconds" : {2428                                  "type" : "number"2429                                },2430                                "title" : {2431                                  "description" : "notify step: title.",2432                                  "type" : "string"2433                                },2434                                "tool" : {2435                                  "description" : "tool step: canonical tool identifier, for example filesystem.list.",2436                                  "type" : "string"2437                                },2438                                "transform" : {2439                                  "description" : "transform step: expression whose value becomes the step output.",2440                                  "type" : "string"2441                                },2442                                "verify" : {2443                                  "description" : "verify step: assertions checked by the runtime.",2444                                  "items" : {2445                                    "additionalProperties" : false,2446                                    "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2447                                    "properties" : {2448                                      "dirNonEmpty" : {2449                                        "description" : "Path of a directory that must contain at least one entry.",2450                                        "type" : "string"2451                                      },2452                                      "equals" : {2453                                        "description" : "Two values that must be equal after interpolation.",2454                                        "maxItems" : 2,2455                                        "minItems" : 2,2456                                        "type" : "array"2457                                      },2458                                      "fileContains" : {2459                                        "description" : "Path of a file that must contain `text`.",2460                                        "type" : "string"2461                                      },2462                                      "fileExists" : {2463                                        "description" : "Path that must exist.",2464                                        "type" : "string"2465                                      },2466                                      "fileNonEmpty" : {2467                                        "description" : "Path of a file that must exist and be larger than zero bytes.",2468                                        "type" : "string"2469                                      },2470                                      "stepSucceeded" : {2471                                        "description" : "Id of an upstream step that must have succeeded.",2472                                        "type" : "string"2473                                      },2474                                      "text" : {2475                                        "description" : "Text searched by fileContains.",2476                                        "type" : "string"2477                                      },2478                                      "truthy" : {2479                                        "description" : "Expression (or value) that must be truthy."2480                                      }2481                                    },2482                                    "type" : "object"2483                                  },2484                                  "type" : "array"2485                                },2486                                "when" : {2487                                  "description" : "Expression; the step is skipped when it is falsy.",2488                                  "type" : "string"2489                                },2490                                "while" : {2491                                  "description" : "loop step: expression evaluated before every iteration.",2492                                  "type" : "string"2493                                },2494                                "with" : {2495                                  "description" : "tool step: arguments. Strings may contain ${{ … }}.",2496                                  "type" : "object"2497                                }2498                              },2499                              "required" : [2500                                "id"2501                              ],2502                              "type" : "object"2503                            },2504                            "type" : "array"2505                          },2506                          "subworkflow" : {2507                            "description" : "subworkflow step: id or name of the workflow to run.",2508                            "type" : "string"2509                          },2510                          "switch" : {2511                            "description" : "switch step: expression whose value selects a case.",2512                            "type" : "string"2513                          },2514                          "then" : {2515                            "description" : "condition step: ids that run when the condition is truthy.",2516                            "items" : {2517                              "type" : "string"2518                            },2519                            "type" : "array"2520                          },2521                          "timeoutSeconds" : {2522                            "type" : "number"2523                          },2524                          "title" : {2525                            "description" : "notify step: title.",2526                            "type" : "string"2527                          },2528                          "tool" : {2529                            "description" : "tool step: canonical tool identifier, for example filesystem.list.",2530                            "type" : "string"2531                          },2532                          "transform" : {2533                            "description" : "transform step: expression whose value becomes the step output.",2534                            "type" : "string"2535                          },2536                          "verify" : {2537                            "description" : "verify step: assertions checked by the runtime.",2538                            "items" : {2539                              "additionalProperties" : false,2540                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2541                              "properties" : {2542                                "dirNonEmpty" : {2543                                  "description" : "Path of a directory that must contain at least one entry.",2544                                  "type" : "string"2545                                },2546                                "equals" : {2547                                  "description" : "Two values that must be equal after interpolation.",2548                                  "maxItems" : 2,2549                                  "minItems" : 2,2550                                  "type" : "array"2551                                },2552                                "fileContains" : {2553                                  "description" : "Path of a file that must contain `text`.",2554                                  "type" : "string"2555                                },2556                                "fileExists" : {2557                                  "description" : "Path that must exist.",2558                                  "type" : "string"2559                                },2560                                "fileNonEmpty" : {2561                                  "description" : "Path of a file that must exist and be larger than zero bytes.",2562                                  "type" : "string"2563                                },2564                                "stepSucceeded" : {2565                                  "description" : "Id of an upstream step that must have succeeded.",2566                                  "type" : "string"2567                                },2568                                "text" : {2569                                  "description" : "Text searched by fileContains.",2570                                  "type" : "string"2571                                },2572                                "truthy" : {2573                                  "description" : "Expression (or value) that must be truthy."2574                                }2575                              },2576                              "type" : "object"2577                            },2578                            "type" : "array"2579                          },2580                          "when" : {2581                            "description" : "Expression; the step is skipped when it is falsy.",2582                            "type" : "string"2583                          },2584                          "while" : {2585                            "description" : "loop step: expression evaluated before every iteration.",2586                            "type" : "string"2587                          },2588                          "with" : {2589                            "description" : "tool step: arguments. Strings may contain ${{ … }}.",2590                            "type" : "object"2591                          }2592                        },2593                        "required" : [2594                          "id"2595                        ],2596                        "type" : "object"2597                      },2598                      "type" : "array"2599                    }2600                  },2601                  "required" : [2602                    "name",2603                    "steps"2604                  ],2605                  "type" : "object"2606                },2607                "type" : "array"2608              },2609              "retry" : {2610                "additionalProperties" : false,2611                "properties" : {2612                  "backoffMultiplier" : {2613                    "minimum" : 1,2614                    "type" : "number"2615                  },2616                  "backoffSeconds" : {2617                    "minimum" : 0,2618                    "type" : "number"2619                  },2620                  "force" : {2621                    "description" : "Retry even when the step is not idempotent.",2622                    "type" : "boolean"2623                  },2624                  "maxAttempts" : {2625                    "minimum" : 1,2626                    "type" : "integer"2627                  }2628                },2629                "required" : [2630                  "maxAttempts"2631                ],2632                "type" : "object"2633              },2634              "set" : {2635                "description" : "set step: variables to assign.",2636                "type" : "object"2637              },2638              "steps" : {2639                "description" : "Nested steps (their own `needs` namespace).",2640                "items" : {2641                  "additionalProperties" : false,2642                  "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",2643                  "properties" : {2644                    "agent" : {2645                      "additionalProperties" : false,2646                      "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",2647                      "properties" : {2648                        "instructions" : {2649                          "type" : "string"2650                        },2651                        "model" : {2652                          "description" : "provider/model",2653                          "type" : "string"2654                        },2655                        "tools" : {2656                          "description" : "Tool ids or family.* patterns.",2657                          "items" : {2658                            "type" : "string"2659                          },2660                          "type" : "array"2661                        }2662                      },2663                      "required" : [2664                        "instructions"2665                      ],2666                      "type" : [2667                        "string",2668                        "object"2669                      ]2670                    },2671                    "approval" : {2672                      "description" : "approval step: message shown to the person.",2673                      "type" : "string"2674                    },2675                    "artifacts" : {2676                      "description" : "output step: paths recorded as run artifacts.",2677                      "items" : {2678                        "type" : "string"2679                      },2680                      "type" : "array"2681                    },2682                    "as" : {2683                      "description" : "foreach step: loop variable name (default item).",2684                      "type" : "string"2685                    },2686                    "cases" : {2687                      "items" : {2688                        "additionalProperties" : false,2689                        "properties" : {2690                          "steps" : {2691                            "items" : {2692                              "type" : "string"2693                            },2694                            "type" : "array"2695                          },2696                          "value" : {2697                            "description" : "Value compared with the switch expression."2698                          }2699                        },2700                        "required" : [2701                          "steps",2702                          "value"2703                        ],2704                        "type" : "object"2705                      },2706                      "type" : "array"2707                    },2708                    "collect" : {2709                      "description" : "foreach step: body step whose output is collected per iteration.",2710                      "type" : "string"2711                    },2712                    "concurrency" : {2713                      "description" : "foreach step: iterations run at once (default 1).",2714                      "minimum" : 1,2715                      "type" : "integer"2716                    },2717                    "continueOnError" : {2718                      "type" : "boolean"2719                    },2720                    "default" : {2721                      "description" : "switch step: ids that run when no case matches.",2722                      "items" : {2723                        "type" : "string"2724                      },2725                      "type" : "array"2726                    },2727                    "delay" : {2728                      "description" : "delay step: seconds, or an expression yielding seconds.",2729                      "type" : [2730                        "number",2731                        "string"2732                      ]2733                    },2734                    "else" : {2735                      "description" : "condition step: ids that run when the condition is falsy.",2736                      "items" : {2737                        "type" : "string"2738                      },2739                      "type" : "array"2740                    },2741                    "expect" : {2742                      "description" : "agent step: file postconditions checked by the runtime.",2743                      "items" : {2744                        "additionalProperties" : false,2745                        "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2746                        "properties" : {2747                          "dirNonEmpty" : {2748                            "description" : "Path of a directory that must contain at least one entry.",2749                            "type" : "string"2750                          },2751                          "equals" : {2752                            "description" : "Two values that must be equal after interpolation.",2753                            "maxItems" : 2,2754                            "minItems" : 2,2755                            "type" : "array"2756                          },2757                          "fileContains" : {2758                            "description" : "Path of a file that must contain `text`.",2759                            "type" : "string"2760                          },2761                          "fileExists" : {2762                            "description" : "Path that must exist.",2763                            "type" : "string"2764                          },2765                          "fileNonEmpty" : {2766                            "description" : "Path of a file that must exist and be larger than zero bytes.",2767                            "type" : "string"2768                          },2769                          "stepSucceeded" : {2770                            "description" : "Id of an upstream step that must have succeeded.",2771                            "type" : "string"2772                          },2773                          "text" : {2774                            "description" : "Text searched by fileContains.",2775                            "type" : "string"2776                          },2777                          "truthy" : {2778                            "description" : "Expression (or value) that must be truthy."2779                          }2780                        },2781                        "type" : "object"2782                      },2783                      "type" : "array"2784                    },2785                    "fail" : {2786                      "description" : "fail step: failure message.",2787                      "type" : "string"2788                    },2789                    "foreach" : {2790                      "description" : "foreach step: expression yielding a list, or a literal list.",2791                      "type" : [2792                        "string",2793                        "array"2794                      ]2795                    },2796                    "id" : {2797                      "description" : "Unique in the whole document, nested steps included.",2798                      "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",2799                      "type" : "string"2800                    },2801                    "if" : {2802                      "description" : "condition step: expression.",2803                      "type" : "string"2804                    },2805                    "inputs" : {2806                      "description" : "agent / subworkflow step: input values.",2807                      "type" : "object"2808                    },2809                    "into" : {2810                      "description" : "transform step: variable that also receives the value.",2811                      "type" : "string"2812                    },2813                    "maxIterations" : {2814                      "description" : "loop step: mandatory upper bound.",2815                      "minimum" : 1,2816                      "type" : "integer"2817                    },2818                    "name" : {2819                      "description" : "Display name.",2820                      "type" : "string"2821                    },2822                    "needs" : {2823                      "description" : "Ids of steps of the same list that must finish first.",2824                      "items" : {2825                        "type" : "string"2826                      },2827                      "type" : "array"2828                    },2829                    "notify" : {2830                      "description" : "notify step: message.",2831                      "type" : "string"2832                    },2833                    "objective" : {2834                      "description" : "agent step: what the agent must achieve.",2835                      "type" : "string"2836                    },2837                    "onError" : {2838                      "description" : "Id of a handler step of the same list.",2839                      "type" : "string"2840                    },2841                    "output" : {2842                      "description" : "output step: workflow outputs.",2843                      "type" : "object"2844                    },2845                    "parallel" : {2846                      "description" : "parallel step: branches, joined implicitly.",2847                      "items" : {2848                        "additionalProperties" : false,2849                        "properties" : {2850                          "name" : {2851                            "description" : "Branch name.",2852                            "type" : "string"2853                          },2854                          "steps" : {2855                            "description" : "Nested steps (their own `needs` namespace).",2856                            "items" : {2857                              "additionalProperties" : false,2858                              "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",2859                              "properties" : {2860                                "agent" : {2861                                  "additionalProperties" : false,2862                                  "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",2863                                  "properties" : {2864                                    "instructions" : {2865                                      "type" : "string"2866                                    },2867                                    "model" : {2868                                      "description" : "provider/model",2869                                      "type" : "string"2870                                    },2871                                    "tools" : {2872                                      "description" : "Tool ids or family.* patterns.",2873                                      "items" : {2874                                        "type" : "string"2875                                      },2876                                      "type" : "array"2877                                    }2878                                  },2879                                  "required" : [2880                                    "instructions"2881                                  ],2882                                  "type" : [2883                                    "string",2884                                    "object"2885                                  ]2886                                },2887                                "approval" : {2888                                  "description" : "approval step: message shown to the person.",2889                                  "type" : "string"2890                                },2891                                "artifacts" : {2892                                  "description" : "output step: paths recorded as run artifacts.",2893                                  "items" : {2894                                    "type" : "string"2895                                  },2896                                  "type" : "array"2897                                },2898                                "as" : {2899                                  "description" : "foreach step: loop variable name (default item).",2900                                  "type" : "string"2901                                },2902                                "cases" : {2903                                  "items" : {2904                                    "additionalProperties" : false,2905                                    "properties" : {2906                                      "steps" : {2907                                        "items" : {2908                                          "type" : "string"2909                                        },2910                                        "type" : "array"2911                                      },2912                                      "value" : {2913                                        "description" : "Value compared with the switch expression."2914                                      }2915                                    },2916                                    "required" : [2917                                      "steps",2918                                      "value"2919                                    ],2920                                    "type" : "object"2921                                  },2922                                  "type" : "array"2923                                },2924                                "collect" : {2925                                  "description" : "foreach step: body step whose output is collected per iteration.",2926                                  "type" : "string"2927                                },2928                                "concurrency" : {2929                                  "description" : "foreach step: iterations run at once (default 1).",2930                                  "minimum" : 1,2931                                  "type" : "integer"2932                                },2933                                "continueOnError" : {2934                                  "type" : "boolean"2935                                },2936                                "default" : {2937                                  "description" : "switch step: ids that run when no case matches.",2938                                  "items" : {2939                                    "type" : "string"2940                                  },2941                                  "type" : "array"2942                                },2943                                "delay" : {2944                                  "description" : "delay step: seconds, or an expression yielding seconds.",2945                                  "type" : [2946                                    "number",2947                                    "string"2948                                  ]2949                                },2950                                "else" : {2951                                  "description" : "condition step: ids that run when the condition is falsy.",2952                                  "items" : {2953                                    "type" : "string"2954                                  },2955                                  "type" : "array"2956                                },2957                                "expect" : {2958                                  "description" : "agent step: file postconditions checked by the runtime.",2959                                  "items" : {2960                                    "additionalProperties" : false,2961                                    "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",2962                                    "properties" : {2963                                      "dirNonEmpty" : {2964                                        "description" : "Path of a directory that must contain at least one entry.",2965                                        "type" : "string"2966                                      },2967                                      "equals" : {2968                                        "description" : "Two values that must be equal after interpolation.",2969                                        "maxItems" : 2,2970                                        "minItems" : 2,2971                                        "type" : "array"2972                                      },2973                                      "fileContains" : {2974                                        "description" : "Path of a file that must contain `text`.",2975                                        "type" : "string"2976                                      },2977                                      "fileExists" : {2978                                        "description" : "Path that must exist.",2979                                        "type" : "string"2980                                      },2981                                      "fileNonEmpty" : {2982                                        "description" : "Path of a file that must exist and be larger than zero bytes.",2983                                        "type" : "string"2984                                      },2985                                      "stepSucceeded" : {2986                                        "description" : "Id of an upstream step that must have succeeded.",2987                                        "type" : "string"2988                                      },2989                                      "text" : {2990                                        "description" : "Text searched by fileContains.",2991                                        "type" : "string"2992                                      },2993                                      "truthy" : {2994                                        "description" : "Expression (or value) that must be truthy."2995                                      }2996                                    },2997                                    "type" : "object"2998                                  },2999                                  "type" : "array"3000                                },3001                                "fail" : {3002                                  "description" : "fail step: failure message.",3003                                  "type" : "string"3004                                },3005                                "foreach" : {3006                                  "description" : "foreach step: expression yielding a list, or a literal list.",3007                                  "type" : [3008                                    "string",3009                                    "array"3010                                  ]3011                                },3012                                "id" : {3013                                  "description" : "Unique in the whole document, nested steps included.",3014                                  "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",3015                                  "type" : "string"3016                                },3017                                "if" : {3018                                  "description" : "condition step: expression.",3019                                  "type" : "string"3020                                },3021                                "inputs" : {3022                                  "description" : "agent / subworkflow step: input values.",3023                                  "type" : "object"3024                                },3025                                "into" : {3026                                  "description" : "transform step: variable that also receives the value.",3027                                  "type" : "string"3028                                },3029                                "maxIterations" : {3030                                  "description" : "loop step: mandatory upper bound.",3031                                  "minimum" : 1,3032                                  "type" : "integer"3033                                },3034                                "name" : {3035                                  "description" : "Display name.",3036                                  "type" : "string"3037                                },3038                                "needs" : {3039                                  "description" : "Ids of steps of the same list that must finish first.",3040                                  "items" : {3041                                    "type" : "string"3042                                  },3043                                  "type" : "array"3044                                },3045                                "notify" : {3046                                  "description" : "notify step: message.",3047                                  "type" : "string"3048                                },3049                                "objective" : {3050                                  "description" : "agent step: what the agent must achieve.",3051                                  "type" : "string"3052                                },3053                                "onError" : {3054                                  "description" : "Id of a handler step of the same list.",3055                                  "type" : "string"3056                                },3057                                "output" : {3058                                  "description" : "output step: workflow outputs.",3059                                  "type" : "object"3060                                },3061                                "parallel" : {3062                                  "description" : "parallel step: branches, joined implicitly.",3063                                  "items" : {3064                                    "additionalProperties" : false,3065                                    "properties" : {3066                                      "name" : {3067                                        "description" : "Branch name.",3068                                        "type" : "string"3069                                      },3070                                      "steps" : {3071                                        "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",3072                                        "items" : {3073                                          "type" : "object"3074                                        },3075                                        "type" : "array"3076                                      }3077                                    },3078                                    "required" : [3079                                      "name",3080                                      "steps"3081                                    ],3082                                    "type" : "object"3083                                  },3084                                  "type" : "array"3085                                },3086                                "retry" : {3087                                  "additionalProperties" : false,3088                                  "properties" : {3089                                    "backoffMultiplier" : {3090                                      "minimum" : 1,3091                                      "type" : "number"3092                                    },3093                                    "backoffSeconds" : {3094                                      "minimum" : 0,3095                                      "type" : "number"3096                                    },3097                                    "force" : {3098                                      "description" : "Retry even when the step is not idempotent.",3099                                      "type" : "boolean"3100                                    },3101                                    "maxAttempts" : {3102                                      "minimum" : 1,3103                                      "type" : "integer"3104                                    }3105                                  },3106                                  "required" : [3107                                    "maxAttempts"3108                                  ],3109                                  "type" : "object"3110                                },3111                                "set" : {3112                                  "description" : "set step: variables to assign.",3113                                  "type" : "object"3114                                },3115                                "steps" : {3116                                  "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",3117                                  "items" : {3118                                    "type" : "object"3119                                  },3120                                  "type" : "array"3121                                },3122                                "subworkflow" : {3123                                  "description" : "subworkflow step: id or name of the workflow to run.",3124                                  "type" : "string"3125                                },3126                                "switch" : {3127                                  "description" : "switch step: expression whose value selects a case.",3128                                  "type" : "string"3129                                },3130                                "then" : {3131                                  "description" : "condition step: ids that run when the condition is truthy.",3132                                  "items" : {3133                                    "type" : "string"3134                                  },3135                                  "type" : "array"3136                                },3137                                "timeoutSeconds" : {3138                                  "type" : "number"3139                                },3140                                "title" : {3141                                  "description" : "notify step: title.",3142                                  "type" : "string"3143                                },3144                                "tool" : {3145                                  "description" : "tool step: canonical tool identifier, for example filesystem.list.",3146                                  "type" : "string"3147                                },3148                                "transform" : {3149                                  "description" : "transform step: expression whose value becomes the step output.",3150                                  "type" : "string"3151                                },3152                                "verify" : {3153                                  "description" : "verify step: assertions checked by the runtime.",3154                                  "items" : {3155                                    "additionalProperties" : false,3156                                    "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",3157                                    "properties" : {3158                                      "dirNonEmpty" : {3159                                        "description" : "Path of a directory that must contain at least one entry.",3160                                        "type" : "string"3161                                      },3162                                      "equals" : {3163                                        "description" : "Two values that must be equal after interpolation.",3164                                        "maxItems" : 2,3165                                        "minItems" : 2,3166                                        "type" : "array"3167                                      },3168                                      "fileContains" : {3169                                        "description" : "Path of a file that must contain `text`.",3170                                        "type" : "string"3171                                      },3172                                      "fileExists" : {3173                                        "description" : "Path that must exist.",3174                                        "type" : "string"3175                                      },3176                                      "fileNonEmpty" : {3177                                        "description" : "Path of a file that must exist and be larger than zero bytes.",3178                                        "type" : "string"3179                                      },3180                                      "stepSucceeded" : {3181                                        "description" : "Id of an upstream step that must have succeeded.",3182                                        "type" : "string"3183                                      },3184                                      "text" : {3185                                        "description" : "Text searched by fileContains.",3186                                        "type" : "string"3187                                      },3188                                      "truthy" : {3189                                        "description" : "Expression (or value) that must be truthy."3190                                      }3191                                    },3192                                    "type" : "object"3193                                  },3194                                  "type" : "array"3195                                },3196                                "when" : {3197                                  "description" : "Expression; the step is skipped when it is falsy.",3198                                  "type" : "string"3199                                },3200                                "while" : {3201                                  "description" : "loop step: expression evaluated before every iteration.",3202                                  "type" : "string"3203                                },3204                                "with" : {3205                                  "description" : "tool step: arguments. Strings may contain ${{ … }}.",3206                                  "type" : "object"3207                                }3208                              },3209                              "required" : [3210                                "id"3211                              ],3212                              "type" : "object"3213                            },3214                            "type" : "array"3215                          }3216                        },3217                        "required" : [3218                          "name",3219                          "steps"3220                        ],3221                        "type" : "object"3222                      },3223                      "type" : "array"3224                    },3225                    "retry" : {3226                      "additionalProperties" : false,3227                      "properties" : {3228                        "backoffMultiplier" : {3229                          "minimum" : 1,3230                          "type" : "number"3231                        },3232                        "backoffSeconds" : {3233                          "minimum" : 0,3234                          "type" : "number"3235                        },3236                        "force" : {3237                          "description" : "Retry even when the step is not idempotent.",3238                          "type" : "boolean"3239                        },3240                        "maxAttempts" : {3241                          "minimum" : 1,3242                          "type" : "integer"3243                        }3244                      },3245                      "required" : [3246                        "maxAttempts"3247                      ],3248                      "type" : "object"3249                    },3250                    "set" : {3251                      "description" : "set step: variables to assign.",3252                      "type" : "object"3253                    },3254                    "steps" : {3255                      "description" : "Nested steps (their own `needs` namespace).",3256                      "items" : {3257                        "additionalProperties" : false,3258                        "description" : "A step. Exactly one kind key: tool, agent, if, switch, foreach, parallel, while, approval, delay, set, transform, verify, subworkflow, notify, fail, output.",3259                        "properties" : {3260                          "agent" : {3261                            "additionalProperties" : false,3262                            "description" : "agent step: profile name, or inline {instructions, model?, tools?}.",3263                            "properties" : {3264                              "instructions" : {3265                                "type" : "string"3266                              },3267                              "model" : {3268                                "description" : "provider/model",3269                                "type" : "string"3270                              },3271                              "tools" : {3272                                "description" : "Tool ids or family.* patterns.",3273                                "items" : {3274                                  "type" : "string"3275                                },3276                                "type" : "array"3277                              }3278                            },3279                            "required" : [3280                              "instructions"3281                            ],3282                            "type" : [3283                              "string",3284                              "object"3285                            ]3286                          },3287                          "approval" : {3288                            "description" : "approval step: message shown to the person.",3289                            "type" : "string"3290                          },3291                          "artifacts" : {3292                            "description" : "output step: paths recorded as run artifacts.",3293                            "items" : {3294                              "type" : "string"3295                            },3296                            "type" : "array"3297                          },3298                          "as" : {3299                            "description" : "foreach step: loop variable name (default item).",3300                            "type" : "string"3301                          },3302                          "cases" : {3303                            "items" : {3304                              "additionalProperties" : false,3305                              "properties" : {3306                                "steps" : {3307                                  "items" : {3308                                    "type" : "string"3309                                  },3310                                  "type" : "array"3311                                },3312                                "value" : {3313                                  "description" : "Value compared with the switch expression."3314                                }3315                              },3316                              "required" : [3317                                "steps",3318                                "value"3319                              ],3320                              "type" : "object"3321                            },3322                            "type" : "array"3323                          },3324                          "collect" : {3325                            "description" : "foreach step: body step whose output is collected per iteration.",3326                            "type" : "string"3327                          },3328                          "concurrency" : {3329                            "description" : "foreach step: iterations run at once (default 1).",3330                            "minimum" : 1,3331                            "type" : "integer"3332                          },3333                          "continueOnError" : {3334                            "type" : "boolean"3335                          },3336                          "default" : {3337                            "description" : "switch step: ids that run when no case matches.",3338                            "items" : {3339                              "type" : "string"3340                            },3341                            "type" : "array"3342                          },3343                          "delay" : {3344                            "description" : "delay step: seconds, or an expression yielding seconds.",3345                            "type" : [3346                              "number",3347                              "string"3348                            ]3349                          },3350                          "else" : {3351                            "description" : "condition step: ids that run when the condition is falsy.",3352                            "items" : {3353                              "type" : "string"3354                            },3355                            "type" : "array"3356                          },3357                          "expect" : {3358                            "description" : "agent step: file postconditions checked by the runtime.",3359                            "items" : {3360                              "additionalProperties" : false,3361                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",3362                              "properties" : {3363                                "dirNonEmpty" : {3364                                  "description" : "Path of a directory that must contain at least one entry.",3365                                  "type" : "string"3366                                },3367                                "equals" : {3368                                  "description" : "Two values that must be equal after interpolation.",3369                                  "maxItems" : 2,3370                                  "minItems" : 2,3371                                  "type" : "array"3372                                },3373                                "fileContains" : {3374                                  "description" : "Path of a file that must contain `text`.",3375                                  "type" : "string"3376                                },3377                                "fileExists" : {3378                                  "description" : "Path that must exist.",3379                                  "type" : "string"3380                                },3381                                "fileNonEmpty" : {3382                                  "description" : "Path of a file that must exist and be larger than zero bytes.",3383                                  "type" : "string"3384                                },3385                                "stepSucceeded" : {3386                                  "description" : "Id of an upstream step that must have succeeded.",3387                                  "type" : "string"3388                                },3389                                "text" : {3390                                  "description" : "Text searched by fileContains.",3391                                  "type" : "string"3392                                },3393                                "truthy" : {3394                                  "description" : "Expression (or value) that must be truthy."3395                                }3396                              },3397                              "type" : "object"3398                            },3399                            "type" : "array"3400                          },3401                          "fail" : {3402                            "description" : "fail step: failure message.",3403                            "type" : "string"3404                          },3405                          "foreach" : {3406                            "description" : "foreach step: expression yielding a list, or a literal list.",3407                            "type" : [3408                              "string",3409                              "array"3410                            ]3411                          },3412                          "id" : {3413                            "description" : "Unique in the whole document, nested steps included.",3414                            "pattern" : "^[A-Za-z_][A-Za-z0-9_-]*$",3415                            "type" : "string"3416                          },3417                          "if" : {3418                            "description" : "condition step: expression.",3419                            "type" : "string"3420                          },3421                          "inputs" : {3422                            "description" : "agent / subworkflow step: input values.",3423                            "type" : "object"3424                          },3425                          "into" : {3426                            "description" : "transform step: variable that also receives the value.",3427                            "type" : "string"3428                          },3429                          "maxIterations" : {3430                            "description" : "loop step: mandatory upper bound.",3431                            "minimum" : 1,3432                            "type" : "integer"3433                          },3434                          "name" : {3435                            "description" : "Display name.",3436                            "type" : "string"3437                          },3438                          "needs" : {3439                            "description" : "Ids of steps of the same list that must finish first.",3440                            "items" : {3441                              "type" : "string"3442                            },3443                            "type" : "array"3444                          },3445                          "notify" : {3446                            "description" : "notify step: message.",3447                            "type" : "string"3448                          },3449                          "objective" : {3450                            "description" : "agent step: what the agent must achieve.",3451                            "type" : "string"3452                          },3453                          "onError" : {3454                            "description" : "Id of a handler step of the same list.",3455                            "type" : "string"3456                          },3457                          "output" : {3458                            "description" : "output step: workflow outputs.",3459                            "type" : "object"3460                          },3461                          "parallel" : {3462                            "description" : "parallel step: branches, joined implicitly.",3463                            "items" : {3464                              "additionalProperties" : false,3465                              "properties" : {3466                                "name" : {3467                                  "description" : "Branch name.",3468                                  "type" : "string"3469                                },3470                                "steps" : {3471                                  "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",3472                                  "items" : {3473                                    "type" : "object"3474                                  },3475                                  "type" : "array"3476                                }3477                              },3478                              "required" : [3479                                "name",3480                                "steps"3481                              ],3482                              "type" : "object"3483                            },3484                            "type" : "array"3485                          },3486                          "retry" : {3487                            "additionalProperties" : false,3488                            "properties" : {3489                              "backoffMultiplier" : {3490                                "minimum" : 1,3491                                "type" : "number"3492                              },3493                              "backoffSeconds" : {3494                                "minimum" : 0,3495                                "type" : "number"3496                              },3497                              "force" : {3498                                "description" : "Retry even when the step is not idempotent.",3499                                "type" : "boolean"3500                              },3501                              "maxAttempts" : {3502                                "minimum" : 1,3503                                "type" : "integer"3504                              }3505                            },3506                            "required" : [3507                              "maxAttempts"3508                            ],3509                            "type" : "object"3510                          },3511                          "set" : {3512                            "description" : "set step: variables to assign.",3513                            "type" : "object"3514                          },3515                          "steps" : {3516                            "description" : "Nested steps. At this depth the schema accepts any object; the ORIX validator still checks them.",3517                            "items" : {3518                              "type" : "object"3519                            },3520                            "type" : "array"3521                          },3522                          "subworkflow" : {3523                            "description" : "subworkflow step: id or name of the workflow to run.",3524                            "type" : "string"3525                          },3526                          "switch" : {3527                            "description" : "switch step: expression whose value selects a case.",3528                            "type" : "string"3529                          },3530                          "then" : {3531                            "description" : "condition step: ids that run when the condition is truthy.",3532                            "items" : {3533                              "type" : "string"3534                            },3535                            "type" : "array"3536                          },3537                          "timeoutSeconds" : {3538                            "type" : "number"3539                          },3540                          "title" : {3541                            "description" : "notify step: title.",3542                            "type" : "string"3543                          },3544                          "tool" : {3545                            "description" : "tool step: canonical tool identifier, for example filesystem.list.",3546                            "type" : "string"3547                          },3548                          "transform" : {3549                            "description" : "transform step: expression whose value becomes the step output.",3550                            "type" : "string"3551                          },3552                          "verify" : {3553                            "description" : "verify step: assertions checked by the runtime.",3554                            "items" : {3555                              "additionalProperties" : false,3556                              "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",3557                              "properties" : {3558                                "dirNonEmpty" : {3559                                  "description" : "Path of a directory that must contain at least one entry.",3560                                  "type" : "string"3561                                },3562                                "equals" : {3563                                  "description" : "Two values that must be equal after interpolation.",3564                                  "maxItems" : 2,3565                                  "minItems" : 2,3566                                  "type" : "array"3567                                },3568                                "fileContains" : {3569                                  "description" : "Path of a file that must contain `text`.",3570                                  "type" : "string"3571                                },3572                                "fileExists" : {3573                                  "description" : "Path that must exist.",3574                                  "type" : "string"3575                                },3576                                "fileNonEmpty" : {3577                                  "description" : "Path of a file that must exist and be larger than zero bytes.",3578                                  "type" : "string"3579                                },3580                                "stepSucceeded" : {3581                                  "description" : "Id of an upstream step that must have succeeded.",3582                                  "type" : "string"3583                                },3584                                "text" : {3585                                  "description" : "Text searched by fileContains.",3586                                  "type" : "string"3587                                },3588                                "truthy" : {3589                                  "description" : "Expression (or value) that must be truthy."3590                                }3591                              },3592                              "type" : "object"3593                            },3594                            "type" : "array"3595                          },3596                          "when" : {3597                            "description" : "Expression; the step is skipped when it is falsy.",3598                            "type" : "string"3599                          },3600                          "while" : {3601                            "description" : "loop step: expression evaluated before every iteration.",3602                            "type" : "string"3603                          },3604                          "with" : {3605                            "description" : "tool step: arguments. Strings may contain ${{ … }}.",3606                            "type" : "object"3607                          }3608                        },3609                        "required" : [3610                          "id"3611                        ],3612                        "type" : "object"3613                      },3614                      "type" : "array"3615                    },3616                    "subworkflow" : {3617                      "description" : "subworkflow step: id or name of the workflow to run.",3618                      "type" : "string"3619                    },3620                    "switch" : {3621                      "description" : "switch step: expression whose value selects a case.",3622                      "type" : "string"3623                    },3624                    "then" : {3625                      "description" : "condition step: ids that run when the condition is truthy.",3626                      "items" : {3627                        "type" : "string"3628                      },3629                      "type" : "array"3630                    },3631                    "timeoutSeconds" : {3632                      "type" : "number"3633                    },3634                    "title" : {3635                      "description" : "notify step: title.",3636                      "type" : "string"3637                    },3638                    "tool" : {3639                      "description" : "tool step: canonical tool identifier, for example filesystem.list.",3640                      "type" : "string"3641                    },3642                    "transform" : {3643                      "description" : "transform step: expression whose value becomes the step output.",3644                      "type" : "string"3645                    },3646                    "verify" : {3647                      "description" : "verify step: assertions checked by the runtime.",3648                      "items" : {3649                        "additionalProperties" : false,3650                        "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",3651                        "properties" : {3652                          "dirNonEmpty" : {3653                            "description" : "Path of a directory that must contain at least one entry.",3654                            "type" : "string"3655                          },3656                          "equals" : {3657                            "description" : "Two values that must be equal after interpolation.",3658                            "maxItems" : 2,3659                            "minItems" : 2,3660                            "type" : "array"3661                          },3662                          "fileContains" : {3663                            "description" : "Path of a file that must contain `text`.",3664                            "type" : "string"3665                          },3666                          "fileExists" : {3667                            "description" : "Path that must exist.",3668                            "type" : "string"3669                          },3670                          "fileNonEmpty" : {3671                            "description" : "Path of a file that must exist and be larger than zero bytes.",3672                            "type" : "string"3673                          },3674                          "stepSucceeded" : {3675                            "description" : "Id of an upstream step that must have succeeded.",3676                            "type" : "string"3677                          },3678                          "text" : {3679                            "description" : "Text searched by fileContains.",3680                            "type" : "string"3681                          },3682                          "truthy" : {3683                            "description" : "Expression (or value) that must be truthy."3684                          }3685                        },3686                        "type" : "object"3687                      },3688                      "type" : "array"3689                    },3690                    "when" : {3691                      "description" : "Expression; the step is skipped when it is falsy.",3692                      "type" : "string"3693                    },3694                    "while" : {3695                      "description" : "loop step: expression evaluated before every iteration.",3696                      "type" : "string"3697                    },3698                    "with" : {3699                      "description" : "tool step: arguments. Strings may contain ${{ … }}.",3700                      "type" : "object"3701                    }3702                  },3703                  "required" : [3704                    "id"3705                  ],3706                  "type" : "object"3707                },3708                "type" : "array"3709              },3710              "subworkflow" : {3711                "description" : "subworkflow step: id or name of the workflow to run.",3712                "type" : "string"3713              },3714              "switch" : {3715                "description" : "switch step: expression whose value selects a case.",3716                "type" : "string"3717              },3718              "then" : {3719                "description" : "condition step: ids that run when the condition is truthy.",3720                "items" : {3721                  "type" : "string"3722                },3723                "type" : "array"3724              },3725              "timeoutSeconds" : {3726                "type" : "number"3727              },3728              "title" : {3729                "description" : "notify step: title.",3730                "type" : "string"3731              },3732              "tool" : {3733                "description" : "tool step: canonical tool identifier, for example filesystem.list.",3734                "type" : "string"3735              },3736              "transform" : {3737                "description" : "transform step: expression whose value becomes the step output.",3738                "type" : "string"3739              },3740              "verify" : {3741                "description" : "verify step: assertions checked by the runtime.",3742                "items" : {3743                  "additionalProperties" : false,3744                  "description" : "One assertion: exactly one of fileExists, fileNonEmpty, fileContains (+ text), dirNonEmpty, equals, truthy, stepSucceeded.",3745                  "properties" : {3746                    "dirNonEmpty" : {3747                      "description" : "Path of a directory that must contain at least one entry.",3748                      "type" : "string"3749                    },3750                    "equals" : {3751                      "description" : "Two values that must be equal after interpolation.",3752                      "maxItems" : 2,3753                      "minItems" : 2,3754                      "type" : "array"3755                    },3756                    "fileContains" : {3757                      "description" : "Path of a file that must contain `text`.",3758                      "type" : "string"3759                    },3760                    "fileExists" : {3761                      "description" : "Path that must exist.",3762                      "type" : "string"3763                    },3764                    "fileNonEmpty" : {3765                      "description" : "Path of a file that must exist and be larger than zero bytes.",3766                      "type" : "string"3767                    },3768                    "stepSucceeded" : {3769                      "description" : "Id of an upstream step that must have succeeded.",3770                      "type" : "string"3771                    },3772                    "text" : {3773                      "description" : "Text searched by fileContains.",3774                      "type" : "string"3775                    },3776                    "truthy" : {3777                      "description" : "Expression (or value) that must be truthy."3778                    }3779                  },3780                  "type" : "object"3781                },3782                "type" : "array"3783              },3784              "when" : {3785                "description" : "Expression; the step is skipped when it is falsy.",3786                "type" : "string"3787              },3788              "while" : {3789                "description" : "loop step: expression evaluated before every iteration.",3790                "type" : "string"3791              },3792              "with" : {3793                "description" : "tool step: arguments. Strings may contain ${{ … }}.",3794                "type" : "object"3795              }3796            },3797            "required" : [3798              "id"3799            ],3800            "type" : "object"3801          },3802          "type" : "array"3803        },3804        "triggers" : {3805          "items" : {3806            "additionalProperties" : false,3807            "properties" : {3808              "at" : {3809                "description" : "once: ISO 8601 date-time.",3810                "type" : "string"3811              },3812              "bundleID" : {3813                "description" : "appLaunch: bundle identifier.",3814                "type" : "string"3815              },3816              "cron" : {3817                "description" : "schedule: five-field cron expression.",3818                "type" : "string"3819              },3820              "debounceSeconds" : {3821                "description" : "fileChange: quiet period before the run starts.",3822                "minimum" : 0,3823                "type" : "number"3824              },3825              "glob" : {3826                "description" : "fileChange: file name pattern.",3827                "type" : "string"3828              },3829              "path" : {3830                "description" : "fileChange: watched path.",3831                "type" : "string"3832              },3833              "seconds" : {3834                "description" : "interval: period in seconds.",3835                "type" : "number"3836              },3837              "timezone" : {3838                "description" : "schedule: IANA time zone.",3839                "type" : "string"3840              },3841              "type" : {3842                "enum" : [3843                  "manual",3844                  "schedule",3845                  "once",3846                  "interval",3847                  "fileChange",3848                  "login",3849                  "appLaunch"3850                ],3851                "type" : "string"3852              }3853            },3854            "required" : [3855              "type"3856            ],3857            "type" : "object"3858          },3859          "type" : "array"3860        },3861        "variables" : {3862          "description" : "Initial variables.",3863          "type" : "object"3864        }3865      },3866      "required" : [3867        "steps"3868      ],3869      "type" : "object"3870    }3871  },3872  "required" : [3873    "apiVersion",3874    "kind",3875    "metadata",3876    "spec"3877  ],3878  "title" : "ORIX OS Automation workflow (orix.ai/v1)",3879  "type" : "object"3880}3881
Files main
Menu

Theme