{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shaft.axonpack.dev/docs/schema/settings.json",
  "title": "Axon Shaft settings",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "model": {
      "description": "The Claude model a run uses. `auto` picks one by the size of the change, a family name takes its newest model, or give a full model ID.",
      "default": "auto",
      "pattern": "^(auto|opus|sonnet|haiku|claude-[a-z0-9.-]+)$",
      "maxLength": 100,
      "type": "string"
    },
    "effort": {
      "description": "How hard the model thinks. `auto` picks by the size of the change.",
      "default": "auto",
      "anyOf": [
        {
          "const": "auto",
          "type": "string"
        },
        {
          "const": "low",
          "type": "string"
        },
        {
          "const": "medium",
          "type": "string"
        },
        {
          "const": "high",
          "type": "string"
        },
        {
          "const": "xhigh",
          "type": "string"
        },
        {
          "const": "max",
          "type": "string"
        }
      ]
    },
    "rules": {
      "description": "The repo's own review rules, in plain words. A project's rules are added after the account's.",
      "default": null,
      "maxLength": 10000,
      "type": "string"
    },
    "skip": {
      "description": "Globs of files the review leaves out.",
      "default": ["**/*.lock", "**/package-lock.json", "**/pnpm-lock.yaml", "**/dist/**", "**/*.min.js", "**/*.snap"],
      "maxItems": 100,
      "type": "array",
      "items": {
        "minLength": 1,
        "maxLength": 500,
        "type": "string"
      }
    },
    "focus": {
      "description": "Globs of files the review looks at most closely.",
      "default": [],
      "maxItems": 100,
      "type": "array",
      "items": {
        "minLength": 1,
        "maxLength": 500,
        "type": "string"
      }
    },
    "pushMode": {
      "description": "Where `/fix` and `/axonshaft` may push: `disabled` nowhere, `restricted` only to the pull request's own branch, `enabled` any branch but the default one.",
      "default": "restricted",
      "anyOf": [
        {
          "const": "disabled",
          "type": "string"
        },
        {
          "const": "restricted",
          "type": "string"
        },
        {
          "const": "enabled",
          "type": "string"
        }
      ]
    },
    "env": {
      "description": "Names of the runner's environment variables the model gets on top of its own short list.",
      "default": [],
      "maxItems": 50,
      "type": "array",
      "items": {
        "pattern": "^(?!ACTIONS_|INPUT_|ANTHROPIC_|CLAUDE_|GITHUB_TOKEN$)[A-Za-z_][A-Za-z0-9_]{0,99}$",
        "type": "string"
      }
    },
    "gates": {
      "description": "Merge gates: plain-language requirements, such as \"A migration has a rollback\". Each review reports each gate, and the `Axon Shaft / gates` check fails when one isn't met. A project's own list replaces the account's, and an empty one turns the account's off.",
      "default": [],
      "maxItems": 10,
      "type": "array",
      "items": {
        "minLength": 1,
        "maxLength": 200,
        "type": "string"
      }
    },
    "monthlyCap": {
      "description": "The most a month's runs may cost, in whole US dollars. Only runs on an API key count. Once it's reached, runs end with the `spending_cap` notice until the 1st (UTC). Empty means no cap.",
      "default": null,
      "minimum": 1,
      "maximum": 100000,
      "anyOf": [
        {
          "format": "integer",
          "default": 0,
          "type": "string"
        },
        {
          "minimum": 1,
          "maximum": 100000,
          "type": "integer"
        }
      ]
    },
    "advisories": {
      "description": "Which repos' blocking security findings go into a private draft security advisory instead of the public comment: `off`, `public` repos, or `all` repos.",
      "default": "public",
      "anyOf": [
        {
          "const": "off",
          "type": "string"
        },
        {
          "const": "public",
          "type": "string"
        },
        {
          "const": "all",
          "type": "string"
        }
      ]
    },
    "maxTurns": {
      "description": "The most turns a review may take before it stops.",
      "default": 30,
      "minimum": 1,
      "maximum": 200,
      "anyOf": [
        {
          "format": "integer",
          "default": 0,
          "type": "string"
        },
        {
          "minimum": 1,
          "maximum": 200,
          "type": "integer"
        }
      ]
    },
    "timeLimit": {
      "description": "The most minutes a run may take before it stops.",
      "default": 15,
      "minimum": 1,
      "maximum": 120,
      "anyOf": [
        {
          "format": "integer",
          "default": 0,
          "type": "string"
        },
        {
          "minimum": 1,
          "maximum": 120,
          "type": "integer"
        }
      ]
    }
  }
}
