QuoteProof: contract
Created by: AgentToolbox (first-party).
Version: 0.1.1. Beta.
Check quotes against supported documentation, with source evidence.
Scope: Literal quotation fidelity · supported documentation hosts · not truth verification
Cost: from $0.01 USDC per published success; buyer-chosen amount, USDC on Base.
Success: At least one decisive quotation result with schema-validated evidence; unknown results remain explicit. Textual fidelity only, never claim truth.
Failure policy: Invalid input, failed criterion or unavailable decisive evidence never settles. Uncertain settlement requires reconciliation; never issue a replacement authorization.
Canonical contract JSON · Buyer guide
Input schema
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"urls": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"maxLength": 512
}
},
"quotes": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"source_index": {
"type": "integer",
"minimum": 0,
"maximum": 4
},
"quote": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"source_index",
"quote"
],
"additionalProperties": false
}
}
},
"required": [
"urls",
"quotes"
],
"additionalProperties": false
}
```
Output schema
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"source_content": {
"type": "string",
"const": "untrusted_data"
},
"scope": {
"type": "string",
"const": "textual_quotation_not_truth"
},
"normalization": {
"type": "string",
"const": "Case-sensitive; collapse Unicode whitespace runs to one ASCII space and trim; no case, punctuation, Unicode composition, or semantic folding. Offsets are UTF-16 code units in the extracted text before whitespace normalization."
},
"sources": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"source_index": {
"type": "integer",
"minimum": 0,
"maximum": 4
},
"url": {
"type": "string",
"maxLength": 512,
"format": "uri"
},
"final_url": {
"type": "string",
"maxLength": 512,
"format": "uri"
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"http_status": {
"anyOf": [
{
"type": "integer",
"minimum": 100,
"maximum": 599
},
{
"type": "null"
}
]
},
"content_type": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
]
},
"source_bytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 100000
},
{
"type": "null"
}
]
},
"content_sha256": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
},
"extraction_sha256": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
},
"extraction": {
"type": "string",
"enum": [
"complete_plain_text",
"static_html",
"unavailable"
]
},
"extracted_chars": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 200000
},
{
"type": "null"
}
]
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"complete_text",
"single_occurrence",
"repeated_occurrence",
"html_absence_unverifiable",
"source_too_large",
"empty_source",
"robots_unavailable",
"source_disallows_access",
"source_disallows_excerpts",
"unsupported_redirect",
"redirect_limit",
"source_unavailable",
"unsupported_content_type",
"unsupported_encoding",
"extraction_uncertain",
"html_runtime_unavailable",
"deadline_exceeded"
]
},
{
"type": "null"
}
]
}
},
"required": [
"source_index",
"url",
"final_url",
"fetched_at",
"http_status",
"content_type",
"source_bytes",
"content_sha256",
"extraction_sha256",
"extraction",
"extracted_chars",
"reason"
],
"additionalProperties": false
}
},
"results": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"quote_index": {
"type": "integer",
"minimum": 0,
"maximum": 9
},
"source_index": {
"type": "integer",
"minimum": 0,
"maximum": 4
},
"status": {
"type": "string",
"enum": [
"exact_match",
"whitespace_normalized_match",
"absent",
"ambiguous",
"unknown"
]
},
"reason": {
"type": "string",
"enum": [
"complete_text",
"single_occurrence",
"repeated_occurrence",
"html_absence_unverifiable",
"source_too_large",
"empty_source",
"robots_unavailable",
"source_disallows_access",
"source_disallows_excerpts",
"unsupported_redirect",
"redirect_limit",
"source_unavailable",
"unsupported_content_type",
"unsupported_encoding",
"extraction_uncertain",
"html_runtime_unavailable",
"deadline_exceeded"
]
},
"occurrences": {
"type": "string",
"enum": [
"0",
"1",
"2_or_more",
"unknown"
]
},
"evidence": {
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"start_char": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end_char": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"anchor_fragment": {
"anyOf": [
{
"type": "string",
"maxLength": 361
},
{
"type": "null"
}
]
},
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 180
},
"start_char": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end_char": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"text",
"start_char",
"end_char"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"start_char",
"end_char",
"anchor_fragment",
"context"
],
"additionalProperties": false
}
}
},
"required": [
"quote_index",
"source_index",
"status",
"reason",
"occurrences",
"evidence"
],
"additionalProperties": false
}
},
"summary": {
"type": "object",
"properties": {
"decisive": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"unknown": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"decisive",
"unknown"
],
"additionalProperties": false
}
},
"required": [
"source_content",
"scope",
"normalization",
"sources",
"results",
"summary"
],
"additionalProperties": false
}
```
Limits
```json
{
"urls": 5,
"quotes": 10,
"source_bytes": 100000,
"robots_bytes": 16384,
"redirects": 2,
"deadline_ms": 12000,
"context_words_per_source": 200,
"output_bytes": 14000,
"supported_hosts": [
"developers.cloudflare.com",
"docs.payai.network",
"docs.x402.org",
"docs.python.org",
"nodejs.org",
"developer.mozilla.org",
"docs.github.com",
"www.typescriptlang.org"
],
"preview": "Disabled: a verdict is the paid result."
}
```