{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentik-cc/json-schema/agentik-cc-run-view-schema.json",
  "title": "RunView",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentik-cc-openapi.yml#/components/schemas/RunView",
  "type": "object",
  "properties": {
    "execution_phase": {
      "type": "string",
      "enum": [
        "reserved",
        "dispatching",
        "pending",
        "reconciliation_required",
        "finalized"
      ],
      "description": "Reconciliation retains the reservation until an operator verifies the outcome."
    },
    "run_id": {
      "type": "string"
    },
    "tool_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "COMPLETED",
        "FAILED",
        "RUNNING"
      ]
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "price_quoted_usd": {
      "type": "number"
    },
    "price_billed_usd": {
      "type": "number"
    },
    "duration_ms": {
      "type": [
        "integer",
        "null"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "upstream_id": {
      "type": "string"
    },
    "settlement_pending": {
      "type": "boolean"
    },
    "expires_at": {
      "type": "string"
    }
  }
}