{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nonobench-com/json-schema/nonobench-com-puzzle-results-schema.json",
  "title": "PuzzleResults",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nonobench-com-openapi.json#/components/schemas/PuzzleResults",
  "type": "object",
  "properties": {
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "puzzleId": {
      "type": "string"
    },
    "index": {
      "type": "integer"
    },
    "size": {
      "type": "string"
    },
    "attempts": {
      "type": "integer"
    },
    "solved": {
      "type": "integer"
    },
    "runs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "effort": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "success",
              "timeout"
            ]
          },
          "correct": {
            "type": "boolean"
          },
          "answer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only present when include_answers=true."
          },
          "answerIssue": {
            "type": "string",
            "enum": [
              "no-solution-claimed",
              "empty",
              "no-grid",
              "wrong-size"
            ],
            "description": "Present when no usable answer grid was extracted."
          },
          "answerCells": {
            "type": "integer",
            "description": "Cell count for a wrong-size answer, when known."
          },
          "tokens": {
            "type": "integer"
          },
          "cost": {
            "type": "number"
          },
          "durationMs": {
            "type": "number"
          }
        }
      }
    }
  }
}