{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "issues"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "opened",
              "edited",
              "closed",
              "reopened",
              "labeled",
              "unlabeled"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "pull_request"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "opened",
              "edited",
              "closed",
              "reopened",
              "synchronize",
              "labeled",
              "unlabeled",
              "ready_for_review"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "issue_comment"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "created",
              "edited"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "pull_request_review"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "submitted",
              "edited",
              "dismissed"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "pull_request_review_comment"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "created",
              "edited"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "pull_request_review_thread"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "resolved",
              "unresolved"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "push"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "pushed"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "check_run"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "completed",
              "rerequested"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "workflow_run"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "completed",
              "requested"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "harness": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "sandbox": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,63}$"
        },
        "agentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "initialPrompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "const": "github"
        },
        "repository": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
        },
        "repos": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9_.-]+$"
          }
        },
        "assignees": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "reviewerTeams": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "prNumbers": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "keywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "paths": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "baseBranches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "base_branches": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pr_numbers": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "reviewer_teams": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "review_states": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "mentioned": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "skip_bots": {
          "type": "boolean"
        },
        "concurrency": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "repository",
                "subject",
                "commit",
                "event"
              ]
            },
            "limit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "scope",
            "limit"
          ],
          "additionalProperties": false
        },
        "labelOperator": {
          "default": "has_any",
          "type": "string",
          "enum": [
            "has_any",
            "has_all",
            "has_none",
            "is_empty"
          ]
        },
        "labelScope": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "changed"
          ]
        },
        "labels": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commentKeywords": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "mentionedLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "commands": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "actorLogins": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "authorAssociations": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "OWNER",
              "MEMBER",
              "COLLABORATOR",
              "CONTRIBUTOR",
              "FIRST_TIME_CONTRIBUTOR",
              "FIRST_TIMER",
              "NONE",
              "MANNEQUIN"
            ]
          }
        },
        "checkNames": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "checkApps": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseTags": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "releaseKinds": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stable",
              "prerelease",
              "draft"
            ]
          }
        },
        "matchAllComments": {
          "default": false,
          "type": "boolean"
        },
        "commentScopes": {
          "default": [
            "issue",
            "pull_request"
          ],
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "issue",
              "pull_request"
            ]
          }
        },
        "branches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "sourceBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "targetBranches": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "pathPrefixes": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "conclusions": {
          "default": [],
          "maxItems": 9,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "neutral",
              "cancelled",
              "timed_out",
              "action_required",
              "stale",
              "skipped",
              "startup_failure"
            ]
          }
        },
        "reviewStates": {
          "default": [],
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "approved",
              "changes_requested",
              "commented",
              "dismissed"
            ]
          }
        },
        "merged": {
          "type": "boolean"
        },
        "workflows": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\.github\\/workflows\\/[^/]+\\.ya?ml$"
          }
        },
        "pushBranchesOnly": {
          "default": false,
          "type": "boolean"
        },
        "ignoreBots": {
          "default": false,
          "type": "boolean"
        },
        "ignoreDrafts": {
          "default": false,
          "type": "boolean"
        },
        "eventType": {
          "type": "string",
          "const": "release"
        },
        "actions": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "published",
              "created",
              "prereleased"
            ]
          }
        }
      },
      "required": [
        "key",
        "name",
        "harness",
        "sandbox",
        "agentId",
        "initialPrompt",
        "provider",
        "repository",
        "eventType",
        "actions"
      ],
      "additionalProperties": false
    }
  ]
}
