{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://compute.agiscorecard.com/input.schema.json",
  "title": "Compute Lens input structure",
  "description": "Structural contract. The engine additionally validates ranges, dates, amounts, uniqueness and cross-field constraints; passing this schema is not a complete validation.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "workload",
    "model",
    "currency",
    "minimumPassRate",
    "runs"
  ],
  "properties": {
    "workload": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "minimumPassRate": {
      "type": "number"
    },
    "runs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "provider",
          "workload",
          "model",
          "currency",
          "hourlyCost",
          "setupSeconds",
          "runSeconds",
          "storageCost",
          "egressCost",
          "accepted",
          "attempts",
          "memoryGB",
          "availableMemoryGB"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "workload": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "hourlyCost": {
            "type": "string"
          },
          "setupSeconds": {
            "type": "number"
          },
          "runSeconds": {
            "type": "number"
          },
          "storageCost": {
            "type": "string"
          },
          "egressCost": {
            "type": "string"
          },
          "accepted": {
            "type": "number"
          },
          "attempts": {
            "type": "number"
          },
          "memoryGB": {
            "type": "number"
          },
          "availableMemoryGB": {
            "type": "number"
          }
        }
      }
    }
  }
}
