{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Rocky Tested rerun submission v1",
 "type": "object",
 "required": [
  "review",
  "bundle_version",
  "hardware",
  "runs",
  "changes",
  "summary"
 ],
 "properties": {
  "review": {
   "type": "string",
   "description": "review slug, e.g. lyogavin-airllm"
  },
  "bundle_version": {
   "type": "string",
   "description": "the 'bundle_version' from README.md"
  },
  "submitter": {
   "type": "object",
   "properties": {
    "x_handle": {
     "type": "string"
    },
    "github": {
     "type": "string"
    }
   },
   "description": "optional, public handles only"
  },
  "hardware": {
   "type": "object",
   "required": [
    "gpu",
    "gpu_memory_gb",
    "system_ram_gb"
   ],
   "properties": {
    "gpu": {
     "type": "string"
    },
    "gpu_memory_gb": {
     "type": "number"
    },
    "unified_memory": {
     "type": "boolean"
    },
    "system_ram_gb": {
     "type": "number"
    },
    "disk": {
     "type": "string"
    },
    "os": {
     "type": "string"
    }
   }
  },
  "software": {
   "type": "object",
   "description": "repo commit, library versions, driver/CUDA version"
  },
  "runs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "label",
     "raw"
    ],
    "properties": {
     "label": {
      "type": "string"
     },
     "raw": {
      "type": "object",
      "description": "the JSON line the bundle's script printed, unedited"
     },
     "output_text": {
      "type": "string"
     }
    }
   }
  },
  "changes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "every change made to scripts/flags, or empty"
  },
  "comparison": {
   "type": "string",
   "description": "how the numbers differ from expected.json"
  },
  "summary": {
   "type": "string"
  },
  "screenshots": {
   "type": "array",
   "items": {
    "type": "string",
    "format": "uri"
   }
  }
 }
}