{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/santosautomation-com/json-schema/santosautomation-com-website-intelligence-schema.json",
  "title": "WebsiteIntelligence",
  "description": "Additive presentation-layer synthesis. Historical score fields retain their established semantics.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/santosautomation-com-openapi.json#/components/schemas/WebsiteIntelligence",
  "type": "object",
  "required": [
    "schema_version",
    "score",
    "dimensions",
    "applicability",
    "coverage",
    "scoring_note"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "1.0.0"
    },
    "score": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "dimensions": {
      "type": "object",
      "required": [
        "discoverable",
        "understandable",
        "callable",
        "trustworthy"
      ],
      "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
        }
      }
    },
    "applicability": {
      "type": "object",
      "properties": {
        "callable": {
          "type": "string",
          "enum": [
            "tested",
            "not_applicable",
            "unknown"
          ],
          "description": "unknown when the Agent Readiness module failed."
        }
      }
    },
    "incomplete": {
      "type": "object",
      "description": "Present when a required module failed; score and dimensions are then null rather than computed from partial evidence.",
      "properties": {
        "missing_modules": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "coverage": {
      "type": "object",
      "properties": {
        "tests_available": {
          "type": "integer",
          "minimum": 0
        },
        "tests_executed": {
          "type": "integer",
          "minimum": 0
        },
        "tests_not_applicable": {
          "type": "integer",
          "minimum": 0
        },
        "tests_skipped": {
          "type": "integer",
          "minimum": 0
        },
        "tested_percent": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        }
      }
    },
    "confidence": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1
    },
    "priority_fixes": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "scoring_note": {
      "type": "string"
    }
  }
}