{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://goldendata.app/data/bot-status.schema.json",
  "title": "Grok Bot status board (public-safe)",
  "type": "object",
  "required": ["generated_at", "tz", "bots"],
  "properties": {
    "generated_at": { "type": "string", "format": "date-time", "description": "ISO 8601 with the America/Denver offset" },
    "tz": { "const": "America/Denver" },
    "bots": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "role", "status"],
        "properties": {
          "name": { "type": "string", "minLength": 1 },
          "role": { "type": "string", "minLength": 1, "description": "One line" },
          "status": { "enum": ["active", "waiting", "idle", "blocked"] },
          "current_focus": { "type": "string", "description": "Short and public-safe" },
          "recent_wins": {
            "type": "array",
            "maxItems": 3,
            "items": {
              "type": "object",
              "required": ["date", "text"],
              "properties": {
                "date": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
                "text": { "type": "string", "minLength": 1 }
              },
              "additionalProperties": false
            }
          },
          "needs_paul_count": { "type": "integer", "minimum": 0 },
          "private": { "type": "boolean", "description": "If true, only name, role and status are shown" }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
