{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://x402toll.com/gvp-receipt.schema.json","title":"GVP Verification Receipt","description":"Audit-grade, portable record of a verified computed answer (Golden-Vector Provenance v0.2, GVP-7).","type":"object","required":["receiptVersion","issuer","issuedAt","tool","endpoint","canonicalInputs","result","method","dataVintage","responseHash","goldenVector","recheckUrl","howToVerify","disclaimer"],"additionalProperties":true,"properties":{"receiptVersion":{"const":"GVP-Receipt/0.2"},"issuer":{"type":"object","required":["name","service"],"properties":{"name":{"type":"string"},"service":{"type":"string"},"url":{"type":"string","format":"uri"}}},"issuedAt":{"type":"string","format":"date-time","description":"ISO-8601 issuance timestamp (in the signature, NOT in responseHash)"},"tool":{"type":"string"},"endpoint":{"type":"string"},"canonicalInputs":{"type":"object","description":"the exact inputs the answer was computed from"},"result":{"type":"object","description":"the computed answer"},"method":{"type":"string","description":"formula / rule trace"},"dataVintage":{"type":"string","description":"declared dataset version (the only permitted axis of variation)"},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"ref":{"type":"string"},"asOf":{"type":"string"}}}},"responseHash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","description":"GVP hash over {endpoint, inputs, result, method, dataVintage} (RFC 8785 JCS canonical)"},"fixedPointVersion":{"const":"GVP-FixedPoint/1","description":"Frozen rule set that defined the hashed fixed point (spec §2.1.1). Optional for receipts issued before it existed (treat absent as GVP-FixedPoint/1). Informational as a bare field; BOUND only inside a GVP-Attestation/2 signature."},"trustModel":{"const":"recompute-trust"},"goldenVector":{"type":"object","required":["reproduceUrl"],"properties":{"reference":{"type":"string"},"reproduceUrl":{"type":"string","format":"uri"}}},"recheckUrl":{"type":"string","format":"uri","description":"free GVP-3 hash re-check endpoint"},"onChainAnchor":{"oneOf":[{"type":"null"},{"type":"object","required":["standard","chain","registry","agentId"],"properties":{"standard":{"type":"string"},"chain":{"type":"string"},"chainId":{"type":"integer"},"registry":{"type":"string"},"agentId":{"type":"string"}}}]},"howToVerify":{"type":"array","items":{"type":"string"},"minItems":1},"signature":{"oneOf":[{"type":"null"},{"type":"object","required":["alg","publicKey","signature"],"properties":{"alg":{"const":"Ed25519"},"publicKey":{"type":"string"},"signature":{"type":"string"},"payloadVersion":{"enum":["GVP-Attestation/1","GVP-Attestation/2"],"description":"Which signed-payload shape was signed (spec §6). Absent = /1 (legacy). Verifier reconstructs the DECLARED shape and never guesses."},"signed":{"type":"string"},"note":{"type":"string"}}}]},"disclaimer":{"type":"string"}}}