{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roar-ai-com/json-schema/roar-ai-com-app-progress-schema.json",
  "title": "AppProgress",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roar-ai-com-openapi.json#/components/schemas/AppProgress",
  "type": "object",
  "required": [
    "phase",
    "runState",
    "deployment",
    "domain",
    "url",
    "serviceStatus",
    "error",
    "fix",
    "canAutoFix",
    "autoFixExhausted",
    "failureKind",
    "autoFixSummary",
    "canRetry",
    "skippedPush",
    "securingReason",
    "resourceWarning",
    "memoryLimitMb",
    "cpuLimit",
    "updatedAt"
  ],
  "properties": {
    "phase": {
      "type": "string",
      "enum": [
        "queued",
        "building",
        "deploying",
        "securing",
        "live",
        "failed"
      ],
      "description": "How the last DEPLOY went. `live` means it finished and its address was confirmed serving — not that the app is running now, which a later pause does not change. Read `runState` for that."
    },
    "runState": {
      "type": "string",
      "enum": [
        "running",
        "starting",
        "paused",
        "crashed",
        "unknown"
      ],
      "description": "Whether the app is running right now. `paused` is an owner having stopped it — its URL is still reported, because that is the address it comes back on, but nothing answers there until it is started again."
    },
    "deployment": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "id",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "domain": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "domain",
        "status"
      ],
      "properties": {
        "domain": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The app's public address, once a deploy has been confirmed serving on it."
    },
    "serviceStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plain-language failure reason while `phase` is `failed`."
    },
    "fix": {
      "type": [
        "string",
        "null"
      ],
      "description": "A suggested fix for that failure, when we have one."
    },
    "canAutoFix": {
      "type": "boolean"
    },
    "autoFixExhausted": {
      "type": "boolean",
      "description": "The fixer handles this failure, but the attempt budget for this episode is spent. Distinct from canAutoFix:false, which also covers failures we never fix."
    },
    "failureKind": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "start",
        "code",
        "settings",
        "transient",
        "platform",
        "unsupported",
        "unknown",
        null
      ],
      "description": "What the failure needs: a start command, a code fix, a setting, a retry, us, or an unsupported app. Null while not failed."
    },
    "autoFixSummary": {
      "type": [
        "string",
        "null"
      ]
    },
    "canRetry": {
      "type": "boolean",
      "description": "Whether a failed app is far enough provisioned for a redeploy to be worth trying."
    },
    "skippedPush": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "branch",
        "commitSha",
        "at",
        "kind",
        "until"
      ],
      "description": "A push that arrived and was deliberately not deployed: the app was paused, or the account had used its deploys from API keys and GitHub pushes for the day. Null once anything has deployed since.",
      "properties": {
        "branch": {
          "type": "string"
        },
        "commitSha": {
          "type": [
            "string",
            "null"
          ]
        },
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "kind": {
          "type": "string",
          "enum": [
            "paused",
            "deploy_limit"
          ]
        },
        "until": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "For `deploy_limit`: when pushes deploy again. Null otherwise."
        }
      }
    },
    "securingReason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why the address is taking longer than the normal window. Null inside it."
    },
    "resourceWarning": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plain-language note about the app's own resource use — today, that it was killed for running out of memory."
    },
    "memoryLimitMb": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The most memory the app may use, in MB — a ceiling set automatically from the server it runs on, not a reservation and not a setting. Until an account first adds credit, each app is held to a lower ceiling (4 GB by default). Billing is on what the app actually uses. Null until the app has been placed on a server."
    },
    "cpuLimit": {
      "type": [
        "number",
        "null"
      ],
      "description": "The most CPU the app may use, in vCPU — set automatically, like memoryLimitMb. Null until the app has been placed on a server."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}