{"spec":"Golden-Vector Provenance","version":"0.2","canonicalSpec":"https://github.com/SolomonisBlack/golden-vector-provenance","referenceImplementationPackage":"https://www.npmjs.com/package/golden-vector-provenance","summary":"A convention for verified-computation services on the paid agent web: every answer is reproducible, cited, and independently checkable without trusting the server. v0.2 adds the audit-grade Verification Receipt (GVP-7). This served document is a SUMMARY; the normative text, conformance vectors and JS/Python references live at canonicalSpec.","requirements":[{"id":"GVP-1","level":"MUST","title":"Provenance on every answer","text":"Return a formula/method trace, versioned public source citations with a data vintage, and a reproducible content hash of the response."},{"id":"GVP-2","level":"MUST","title":"Free golden vector per tool","text":"Publish a canonical input set + expected result + expected hash at a free endpoint so any client can recompute and confirm without paying or trusting."},{"id":"GVP-3","level":"MUST","title":"Free hash re-check","text":"Provide a free endpoint that recomputes a prior response hash from its inputs so tampering is detectable."},{"id":"GVP-4","level":"SHOULD","title":"Free claim verifier","text":"Provide a free endpoint that confirms whether a claimed answer matches the service computation for given inputs, WITHOUT revealing the answer (boolean + confidence only)."},{"id":"GVP-5","level":"MUST","title":"Determinism","text":"Identical inputs always produce an identical result and hash; no hidden state or time-dependence beyond a declared data vintage."},{"id":"GVP-6","level":"MUST","title":"Machine discoverability","text":"Advertise these endpoints in OpenAPI, llms.txt, an agent-card, and/or the x402 bazaar extension."},{"id":"GVP-7","level":"MAY","title":"Audit-grade Verification Receipt","text":"Offer a receipt that packages a GVP-1 answer into a portable, filable record: canonical inputs, result, method, versioned sources + dataVintage, the reproducible responseHash, a free golden re-derivation pointer, an OPTIONAL Ed25519 issuer attestation (attests issuance, not correctness), an OPTIONAL on-chain identity anchor (e.g. ERC-8004), a timestamp, and a human \"how to independently verify\" block. Correctness stays proven by recompute-trust; the receipt is the record a professional files for audit/insurance."}],"hash":{"algorithm":"sha256","canonicalization":"RFC 8785 (JSON Canonicalization Scheme, JCS) over the fixed point {endpoint, inputs, result, method, dataVintage} — RFC 8785 is normative; any JCS library re-derives it","fixedPointVersion":"GVP-FixedPoint/2","fixedPointNote":"The five members are REQUIRED and the set is closed (a verifier recomputes over exactly these five). GVP-FixedPoint/2 = the same five members plus a dataVintage grammar (ISO 8601 at reduced precision: 2026-07); /1 is frozen and receipts issued under it (dataVintage \"July 2026\", before 2026-09-18) stay valid under /1. As a bare field fixedPointVersion is informational; it is bound only inside a GVP-Attestation/2 signature."},"receipt":{"title":"GVP-7 Verification Receipt (v0.2)","schema":"https://x402toll.com/gvp-receipt.schema.json","trustModel":"recompute-trust primary; signature attests issuance (who + when), never correctness","fields":["receiptVersion","issuer","issuedAt","tool","endpoint","canonicalInputs","result","method","dataVintage","sources","responseHash","fixedPointVersion","goldenVector","recheckUrl","onChainAnchor","howToVerify","signature","disclaimer"],"signature":{"alg":"Ed25519","publicKey":"https://x402toll.com/.well-known/receipt-pubkey.json","keyList":"https://x402toll.com/.well-known/gvp-keys.json","payloadShapes":{"GVP-Attestation/1":"canonicalJson({responseHash, endpoint, dataVintage, issuer, agentId, issuedAt}) — legacy; receipts issued before fixedPointVersion existed","GVP-Attestation/2":"canonicalJson({responseHash, endpoint, dataVintage, issuer, agentId, issuedAt, payloadVersion, fixedPointVersion}) — current; fixedPointVersion is INSIDE the signed bytes"},"issues":"GVP-Attestation/2","verifierRule":"Reconstruct the shape the receipt DECLARES (signature.payloadVersion; absent = /1). Never try alternatives on failure.","mapping":"GVP spec §6.4: issuer = issuer.service; agentId = onChainAnchor.agentId (null without an anchor); responseHash, endpoint, dataVintage, issuedAt (exact string) and fixedPointVersion from the top level; payloadVersion from signature.payloadVersion.","revocations":"https://x402toll.com/.well-known/gvp-revocations.json"}},"conformance":{"L1":"Reproducible — the answer carries responseHash and a free re-derivation path (GVP-1/2/3/5/6)","L2":"Signed — L1 plus an Ed25519 issuer attestation with a resolvable key (GVP-7 signature); fixedPointVersion bound under GVP-Attestation/2","L3":"Anchored — L2 plus an on-chain identity binding (e.g. ERC-8004)","legacyAliases":{"GVP-Core":"L1","GVP-Verify":"L1 + GVP-4 claim verifier","GVP-Receipt":"L2/L3 (audit-grade receipts)"},"thisService":"L3 (Ed25519-signed receipts + ERC-8004 anchor)"},"referenceImplementation":"https://x402toll.com","endpoints":{"golden":"https://x402toll.com/v1/golden/:id","verifyHash":"https://x402toll.com/v1/verify-hash","verify":"https://x402toll.com/v1/verify","verifyBatch":"https://x402toll.com/v1/verify/batch","gvpCheck":"https://x402toll.com/v1/gvp/check","badge":"https://x402toll.com/v1/gvp/badge.svg","registry":"https://x402toll.com/v1/gvp/registry","receipt":"https://x402toll.com/v1/receipt/:id","receiptPubkey":"https://x402toll.com/.well-known/receipt-pubkey.json","spec":"https://x402toll.com/v1/spec","keyList":"https://x402toll.com/.well-known/gvp-keys.json","revocations":"https://x402toll.com/.well-known/gvp-revocations.json","signedArtifacts":"https://x402toll.com/.well-known/gvp-signed-artifacts.json"},"neutralVerifier":{"verify":"POST /v1/verify — free: confirm/deny a claimed answer from ANY source in our domains, leak-safe (pass/fail + field names only).","batch":"POST /v1/verify/batch — paid: batch-verify up to 100 claims into a signed, filable compliance report (engagement, not per-call).","gvpCheck":"POST /v1/gvp/check — free: check ANY GVP service response for self-consistency + GVP-1 conformance and get a self-serve embeddable badge.","registry":"GET /v1/gvp/registry (+ /registry.json) — free: the public list of GVP-conformant services; GET /v1/gvp/badge.svg — the embeddable badge."},"signedArtifacts":{"issuer":"x402toll.com","description":"Every kind of artifact this service signs, with the exact signed bytes and where each signed member comes from. One Ed25519 key list covers all of them; one revocation list covers receipts (by responseHash) and reports (by reportHash). A signature attests who issued the artifact and when, never that an answer is correct.","keyList":"https://x402toll.com/.well-known/gvp-keys.json","revocations":"https://x402toll.com/.well-known/gvp-revocations.json","canonicalization":"RFC 8785 (JCS)","spec":"https://github.com/SolomonisBlack/golden-vector-provenance (spec/gvp-0.2.md §5, §6, §6.4, §7)","rules":["Signed members are listed explicitly per kind; anything not listed is not signed.","Choose the kind by its select rule, then rebuild exactly that kind; never try another kind after a failure.","Take the key and its alg from the key list entry, never from the artifact."],"kinds":{"GVP-Attestation/2":{"artifact":"Verification Receipt (issued now)","servedBy":["POST /v1/receipt/:id (paid)"],"select":"signature.payloadVersion is \"GVP-Attestation/2\"","signedBytes":"GVP spec §6.4: canonical JSON (RFC 8785) of exactly these members","members":[{"member":"responseHash","from":"responseHash"},{"member":"endpoint","from":"endpoint","rule":"the tool path the fixed point hashed (e.g. /v1/paycheck), not the paid /v1/receipt/... route"},{"member":"dataVintage","from":"dataVintage"},{"member":"issuer","from":"issuer.service","rule":"the string \"x402toll.com\"; issuer.name and issuer.url are not signed"},{"member":"agentId","from":"onChainAnchor.agentId","rule":"JSON null when onChainAnchor is null or absent"},{"member":"issuedAt","from":"issuedAt","rule":"the exact string, never reparsed"},{"member":"payloadVersion","from":"signature.payloadVersion"},{"member":"fixedPointVersion","from":"fixedPointVersion","rule":"no default"}],"hashBound":{"members":["canonicalInputs","result","method"],"how":"responseHash = \"sha256:\" + hex SHA-256 of canonical JSON {endpoint, inputs: canonicalInputs, result, method, dataVintage}; check it as well as the signature"},"unbound":"every other member, including signature.keyId, signature.signed and onChainAnchor.registry/chain/chainId (take those from your own context)","signature":"signature.signature: base64 Ed25519 over the signed bytes","vectors":"vectors/receipt.json in github.com/SolomonisBlack/golden-vector-provenance (tag v0.13.0), case live-x402toll-receipt","key":"the entry in https://x402toll.com/.well-known/gvp-keys.json whose keyId is signature.keyId","revocation":"https://x402toll.com/.well-known/gvp-revocations.json: entries with kind absent or \"responseHash\", matched on responseHash"},"GVP-Attestation/1":{"artifact":"Verification Receipt (legacy, issued before fixedPointVersion existed; verify only)","servedBy":[],"select":"signature.payloadVersion is absent","signedBytes":"GVP spec §6.4: canonical JSON (RFC 8785) of exactly these members","members":[{"member":"responseHash","from":"responseHash"},{"member":"endpoint","from":"endpoint","rule":"the tool path the fixed point hashed (e.g. /v1/paycheck), not the paid /v1/receipt/... route"},{"member":"dataVintage","from":"dataVintage"},{"member":"issuer","from":"issuer.service","rule":"the string \"x402toll.com\"; issuer.name and issuer.url are not signed"},{"member":"agentId","from":"onChainAnchor.agentId","rule":"JSON null when onChainAnchor is null or absent"},{"member":"issuedAt","from":"issuedAt","rule":"the exact string, never reparsed"}],"hashBound":{"members":["canonicalInputs","result","method"],"how":"as GVP-Attestation/2"},"signature":"signature.signature: base64 Ed25519; no keyId on these receipts: match the key list by signature.publicKey","key":"the entry in https://x402toll.com/.well-known/gvp-keys.json whose keyId is signature.keyId","revocation":"https://x402toll.com/.well-known/gvp-revocations.json: entries with kind absent or \"responseHash\", matched on responseHash"},"GVP-ComplianceReport/0.1":{"artifact":"Compliance report (batch claim verification)","servedBy":["POST /v1/verify/batch (paid)"],"select":"reportVersion is \"GVP-ComplianceReport/0.1\"","signedBytes":"canonical JSON (RFC 8785) of exactly the members in signature.signedMembers","members":["reportVersion","issuer","issuedAt","summary","items"],"note":"issuer is signed as the object {name, service} as it appears in the report, unlike a receipt, which signs issuer.service","hash":"reportHash = \"sha256:\" + hex SHA-256 of the signed bytes","signature":"signature.signature: base64 Ed25519 over the signed bytes","key":"the entry in https://x402toll.com/.well-known/gvp-keys.json whose keyId is signature.keyId","revocation":"https://x402toll.com/.well-known/gvp-revocations.json: entries with kind \"reportHash\", matched on reportHash"},"GVP-SellerAudit/1":{"artifact":"Seller closure audit report","servedBy":["POST /v1/gvp/audit (paid, $2)","POST /v1/gvp/audit-badge (paid, $10: the same report with a badge member beside it, which this signature does not cover)"],"select":"reportVersion is \"GVP-SellerAudit/1\"","signedBytes":"canonical JSON (RFC 8785) of exactly the members in signature.signedMembers","members":["reportVersion","issuer","issuedAt","service","engine","submitted","summary","routes","limits"],"hash":"reportHash = \"sha256:\" + hex SHA-256 of the signed bytes","signature":"signature.signature: base64 Ed25519 over the signed bytes","key":"the entry in https://x402toll.com/.well-known/gvp-keys.json whose keyId is signature.keyId","revocation":"https://x402toll.com/.well-known/gvp-revocations.json: entries with kind \"reportHash\", matched on reportHash"},"GVP-AuditBadge/1":{"artifact":"Seller audit badge (90 days)","servedBy":["POST /v1/gvp/audit-badge (paid): badge.token","GET /v1/gvp/audit-badge.json?t=<token> (free re-check)"],"select":"the token: two base64url parts joined by \".\"","signedBytes":"the base64url-decoded first part of the token, exactly; it MUST also be the canonical JSON of the claim it decodes to, which has exactly these members","members":["v","iss","kid","service","issuedAt","expiresAt","reportHash","engine","routes","noClosureViolationFound","withFindings","notAssessed","result"],"key":"the key-list entry whose keyId is claim.kid","signature":"the base64url-decoded second part of the token: Ed25519 over the signed bytes","checks":["token at most 2048 characters","each part re-encodes to itself (strict base64url)","claim.v is \"GVP-AuditBadge/1\" and claim.iss is \"x402toll.com\"","claim.issuedAt at most 300 s in the future","expired after claim.expiresAt"],"binds":"claim.reportHash is the reportHash of the GVP-SellerAudit/1 report issued with it","revocation":"https://x402toll.com/.well-known/gvp-revocations.json: entries with kind \"reportHash\", matched on claim.reportHash"},"GVP-Revocation/0.2":{"artifact":"Revocation list (GVP spec §7)","servedBy":["GET /.well-known/gvp-revocations.json (free)"],"select":"revocationListVersion is \"GVP-Revocation/0.2\"","signedBytes":"canonical JSON (RFC 8785) of the document without its signature member (GVP spec §7)","signature":"signature.signature: base64 Ed25519; key by signature.keyId","key":"the entry in https://x402toll.com/.well-known/gvp-keys.json whose keyId is signature.keyId"}}},"status":"draft · v0.2 · authored by Tollbooth (single author, no external adopters yet) · reviewed publicly at x402-foundation/x402#3234 · open for adoption","license":"Specification CC-BY-4.0; reference code Apache-2.0 (full texts in the canonical repo). Implement freely; no permission or notification needed."}