{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.santosautomation.com/schemas/agent-readiness-result-1.0.0.json",
  "title": "AgentReadinessResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/santosautomation-com-openapi.json#/components/schemas/AgentReadinessResult",
  "type": "object",
  "required": [
    "schema_version",
    "target",
    "profile",
    "readiness_level",
    "score",
    "grade",
    "confidence",
    "tested_coverage_percent",
    "applicability",
    "subscores",
    "interfaces",
    "findings",
    "recommended_actions",
    "limitations"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "1.0.0"
    },
    "website_intelligence_score": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "website_intelligence": {
      "type": "object",
      "description": "Additive AI Website Intelligence presentation with four dimensions, coverage, confidence, and prioritized fixes.",
      "properties": {
        "schema_version": {
          "type": "string",
          "const": "1.0.0"
        },
        "score": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "dimensions": {
          "type": "object",
          "properties": {
            "discoverable": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 100
            },
            "understandable": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 100
            },
            "callable": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 100
            },
            "trustworthy": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 100
            }
          }
        }
      }
    },
    "target": {
      "type": "object",
      "required": [
        "requested_url",
        "canonical_origin",
        "final_url"
      ],
      "properties": {
        "requested_url": {
          "type": "string"
        },
        "canonical_origin": {
          "type": "string",
          "format": "uri"
        },
        "final_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false
    },
    "profile": {
      "type": "string",
      "enum": [
        "general_website",
        "documentation_site",
        "api_provider",
        "mcp_provider",
        "agent_commerce_provider"
      ]
    },
    "readiness_level": {
      "type": "object",
      "required": [
        "level",
        "name"
      ],
      "properties": {
        "level": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4
        },
        "name": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "grade": {
      "type": "string",
      "enum": [
        "A",
        "B",
        "C",
        "D",
        "F"
      ]
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "tested_coverage_percent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "applicability": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "tested",
          "not_applicable",
          "unknown"
        ]
      }
    },
    "subscores": {
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100
      }
    },
    "interfaces": {
      "type": "object"
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "category",
          "severity",
          "confidence",
          "status",
          "title",
          "recommendation"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "info",
              "low",
              "moderate",
              "high"
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pass",
              "fail",
              "unknown",
              "not_applicable"
            ]
          },
          "title": {
            "type": "string"
          },
          "evidence": {
            "type": "object"
          },
          "recommendation": {
            "type": "string"
          }
        }
      }
    },
    "recommended_actions": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "fetch_budget": {
      "type": "object"
    }
  }
}