{
  "additionalProperties": false,
  "properties": {
    "claims": {
      "additionalProperties": false,
      "properties": {
        "paidDelivery": {
          "const": false
        },
        "semanticTruth": {
          "const": false
        },
        "toolExecution": {
          "const": false
        }
      },
      "required": [
        "semanticTruth",
        "toolExecution",
        "paidDelivery"
      ],
      "type": "object"
    },
    "coverage": {
      "additionalProperties": false,
      "properties": {
        "comparedFields": {
          "maximum": 100000,
          "minimum": 0,
          "type": "integer"
        },
        "comparedRoutePairs": {
          "maximum": 15360,
          "minimum": 0,
          "type": "integer"
        },
        "parsedSources": {
          "maximum": 6,
          "minimum": 0,
          "type": "integer"
        },
        "truncatedFindings": {
          "type": "boolean"
        }
      },
      "required": [
        "parsedSources",
        "comparedRoutePairs",
        "comparedFields",
        "truncatedFindings"
      ],
      "type": "object"
    },
    "documents": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "contentEncoding": {
            "anyOf": [
              {
                "maxLength": 16384,
                "minLength": 0,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "contentType": {
            "anyOf": [
              {
                "maxLength": 16384,
                "minLength": 0,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "declarations": {
            "maximum": 32,
            "minimum": 0,
            "type": "integer"
          },
          "decodedBodySha256": {
            "anyOf": [
              {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "decodedBytes": {
            "anyOf": [
              {
                "maximum": 262144,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "finalUrl": {
            "anyOf": [
              {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "enum": [
              "openapi",
              "llms",
              "x402",
              "catalog",
              "service-info",
              "agent-card"
            ]
          },
          "observedAt": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "type": "string"
          },
          "profile": {
            "anyOf": [
              {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rawBodySha256": {
            "anyOf": [
              {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rawBytes": {
            "anyOf": [
              {
                "maximum": 262144,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "redirects": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "from": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "status": {
                  "maximum": 399,
                  "minimum": 300,
                  "type": "integer"
                },
                "to": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 2,
            "type": "array"
          },
          "requestedUrl": {
            "maxLength": 2048,
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "maximum": 599,
                "minimum": 200,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "requestedUrl",
          "finalUrl",
          "status",
          "rawBodySha256",
          "decodedBodySha256",
          "rawBytes",
          "decodedBytes",
          "contentType",
          "contentEncoding",
          "observedAt",
          "complete",
          "reason",
          "profile",
          "declarations",
          "redirects"
        ],
        "type": "object"
      },
      "maxItems": 6,
      "minItems": 2,
      "type": "array"
    },
    "evidenceId": {
      "pattern": "^sha256:[a-f0-9]{64}$",
      "type": "string"
    },
    "findings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "detail": {
            "maxLength": 384,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "refs": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "label": {
                  "enum": [
                    "DECLARED",
                    "OBSERVED"
                  ]
                },
                "location": {
                  "maxLength": 1024,
                  "minLength": 0,
                  "type": "string"
                },
                "sourceUrl": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "valueSha256": {
                  "anyOf": [
                    {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "sourceUrl",
                "location",
                "label",
                "valueSha256"
              ],
              "type": "object"
            },
            "maxItems": 2,
            "type": "array"
          },
          "verdict": {
            "enum": [
              "PASS",
              "FAIL",
              "INCONCLUSIVE"
            ]
          }
        },
        "required": [
          "id",
          "verdict",
          "code",
          "detail",
          "refs"
        ],
        "type": "object"
      },
      "maxItems": 160,
      "minItems": 1,
      "type": "array"
    },
    "hashSemantics": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    },
    "observedAt": {
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      "type": "string"
    },
    "origin": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    },
    "requestSha256": {
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "ruleSetVersion": {
      "const": "agent-metadata-parity/1.0.0"
    },
    "signature": {
      "type": "null"
    },
    "usage": {
      "additionalProperties": false,
      "properties": {
        "decodedBytes": {
          "maximum": 1048576,
          "minimum": 0,
          "type": "integer"
        },
        "rawBytes": {
          "maximum": 1048576,
          "minimum": 0,
          "type": "integer"
        },
        "redirects": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        },
        "requests": {
          "maximum": 8,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "requests",
        "redirects",
        "rawBytes",
        "decodedBytes"
      ],
      "type": "object"
    },
    "verdict": {
      "enum": [
        "PASS",
        "FAIL",
        "INCONCLUSIVE"
      ]
    },
    "warnings": {
      "items": {
        "maxLength": 256,
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 16,
      "type": "array"
    }
  },
  "required": [
    "ruleSetVersion",
    "origin",
    "requestSha256",
    "observedAt",
    "verdict",
    "documents",
    "findings",
    "coverage",
    "usage",
    "claims",
    "warnings",
    "hashSemantics",
    "signature",
    "evidenceId"
  ],
  "type": "object"
}
