Raw schema
{
"type": "object",
"properties": {
"input": {
"type": "object",
"additionalProperties": false,
"required": [
"sources"
],
"properties": {
"requireAllSources": {
"type": "boolean",
"description": "Preserve the exact billing policy from the original request, including omission."
},
"sources": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"quotes"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2048
},
"quotes": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": {
"type": "string",
"minLength": 12,
"maxLength": 400
}
}
}
}
}
}
},
"before": {
"type": "object",
"additionalProperties": true,
"required": [
"inputHash",
"evidence"
],
"description": "Saved inputHash plus a bounded version-1 evidence body. Other client-result fields are ignored; no payment/authenticity claim is inferred.",
"properties": {
"inputHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"evidence": {
"type": "object",
"required": [
"version",
"results",
"usableSources",
"allResultsUnusable",
"warnings"
],
"description": "At most 65536 canonical UTF-8 bytes. Detailed status/match consistency is enforced by the runtime.",
"properties": {
"version": {
"const": "1"
},
"processingProfile": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"results": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"items": {
"type": "object"
}
},
"usableSources": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"allResultsUnusable": {
"type": "boolean"
},
"warnings": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 2000
}
}
}
}
}
},
"after": {
"type": "object",
"additionalProperties": true,
"required": [
"inputHash",
"evidence"
],
"description": "Saved inputHash plus a bounded version-1 evidence body. Other client-result fields are ignored; no payment/authenticity claim is inferred.",
"properties": {
"inputHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"evidence": {
"type": "object",
"required": [
"version",
"results",
"usableSources",
"allResultsUnusable",
"warnings"
],
"description": "At most 65536 canonical UTF-8 bytes. Detailed status/match consistency is enforced by the runtime.",
"properties": {
"version": {
"const": "1"
},
"processingProfile": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"results": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"items": {
"type": "object"
}
},
"usableSources": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"allResultsUnusable": {
"type": "boolean"
},
"warnings": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 2000
}
}
}
}
}
}
},
"required": [
"input",
"before",
"after"
],
"title": "Compare two saved citation evidence snapshots",
"additionalProperties": false,
"description": "Pure offline comparison; no source fetching or payment. Both inputHash values must equal SHA-256 of the canonical input. Old or different processing profiles and non-increasing/unknown timestamps receive review-only observations.",
"x-max-utf8-bytes": 196608,
"x-output-max-utf8-bytes-exclusive": 32768
}