{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seenrelay-com/json-schema/seenrelay-com-readiness-report-schema.json",
  "title": "ReadinessReport",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seenrelay-com-openapi.json#/components/schemas/ReadinessReport",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "scope",
    "target_origin",
    "verdict",
    "headline",
    "evidence",
    "checks",
    "next_steps",
    "limitations",
    "seenrelay_candidate",
    "seenrelay_recommendation"
  ],
  "properties": {
    "schema": {
      "const": "seenrelay-ai-visit-efficiency-quick-audit-v1"
    },
    "scope": {
      "const": "single-root-response"
    },
    "target_origin": {
      "type": "string",
      "format": "uri"
    },
    "verdict": {
      "enum": [
        "NATIVE_READY",
        "NATIVE_FIX_RECOMMENDED",
        "NEEDS_WORKLOAD_EVIDENCE"
      ]
    },
    "headline": {
      "type": "string"
    },
    "evidence": {
      "$ref": "#/$defs/ReadinessEvidence"
    },
    "checks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReadinessCheck"
      }
    },
    "next_steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "seenrelay_candidate": {
      "const": false
    },
    "seenrelay_recommendation": {
      "const": "NOT_DETERMINED_BY_SURFACE_SCAN"
    }
  },
  "$defs": {
    "ReadinessCheck": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "status",
        "label",
        "detail"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "PASS",
            "FIX",
            "INFO"
          ]
        },
        "label": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        }
      }
    },
    "ReadinessEvidence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "requested_origin",
        "status",
        "elapsed_ms",
        "body_bytes_read",
        "body_truncated",
        "content_type",
        "cache_control",
        "etag_present",
        "last_modified_present",
        "vary_accept",
        "machine_link_header_present",
        "redirect_location"
      ],
      "properties": {
        "requested_origin": {
          "type": "string",
          "format": "uri"
        },
        "status": {
          "type": "integer",
          "minimum": 0,
          "maximum": 599
        },
        "elapsed_ms": {
          "type": "number",
          "minimum": 0
        },
        "body_bytes_read": {
          "type": "integer",
          "minimum": 0,
          "maximum": 131072
        },
        "body_truncated": {
          "type": "boolean"
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "cache_control": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "etag_present": {
          "type": "boolean"
        },
        "last_modified_present": {
          "type": "boolean"
        },
        "vary_accept": {
          "type": "boolean"
        },
        "machine_link_header_present": {
          "type": "boolean"
        },
        "redirect_location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}