{"openapi":"3.1.0","info":{"title":"Ardaro Receipt Intelligence Service Core","version":"1.0.0","description":"Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction. Use when an agent needs merchant, date, tax, total, line items, confidence, duplicate detection, and arithmetic validation before creating or reconciling an expense. The result is advisory and always requires human review.","termsOfService":"https://getardaro.com/legal/terms","contact":{"name":"Ardaro Agent Services support","url":"mailto:support@getardaro.com","email":"support@getardaro.com"},"x-privacy-policy":"https://getardaro.com/legal/privacy","x-agent-skill":"https://agents.getardaro.com/receipt-intelligence/SKILL.md"},"externalDocs":{"description":"Receipt Intelligence evaluation and paid-call quickstart","url":"https://agents.getardaro.com/receipt-intelligence"},"servers":[{"url":"https://agents.getardaro.com","description":"Public Base mainnet production service"}],"x-ardaro-service-core":{"max-request-bytes":262144,"rate-limit-hook":"RateLimitCheck","metering-hook":"MeteringEvent","metering-key":"receipt_intelligence.analysis.v1","units-per-analysis":1,"fixed-price-usd":"0.25","payment-network":"eip155:8453","retention":{"raw_documents_retained":false,"raw_receipt_images_retained":false,"extracted_results_retained":true,"default_retention_seconds":900,"storage_scope":"volatile_result_cache_and_durable_content_free_payment_metadata","durable_recovery_supported":true,"payment_metadata_retention_seconds":220752000,"used_for_model_training":false,"deletion_behavior":"Receipt inputs and result bodies remain volatile. Content-free payment, settlement, and aggregate sales metadata use the production retention policy and retained encrypted storage."}},"paths":{"/healthz":{"get":{"operationId":"getReceiptIntelligenceLiveness","summary":"Check process liveness and public protocol identity","responses":{"200":{"description":"The service process is alive.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/readyz":{"get":{"operationId":"getReceiptIntelligenceReadiness","summary":"Check bounded payment and service readiness","responses":{"200":{"description":"The payment and analysis boundary is ready.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyResponse"}}}},"503":{"description":"A required payment or service dependency is not ready.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotReadyResponse"}}}}}}},"/v1/receipt-intelligence/analyze":{"post":{"operationId":"analyzeReceipt","summary":"Extract and validate one receipt for human review","description":"Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction. Use when an agent needs merchant, date, tax, total, line items, confidence, duplicate detection, and arithmetic validation before creating or reconciling an expense. The result is advisory and always requires human review.","x-metering-key":"receipt_intelligence.analysis.v1","x-metering-units":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}}}},"responses":{"200":{"description":"Structured receipt evidence requiring human review.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded JSON x402 v2 settlement result. Decode with the official x402 client helper and require success=true before treating the response as settled. Never log this header verbatim.","schema":{"type":"string","contentEncoding":"base64","contentMediaType":"application/json"},"x-decoded-schema":{"$ref":"#/components/schemas/X402PaymentResponse"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeResponse"}}}},"400":{"description":"Unsupported or prohibited input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"x402 v2 payment is required or the supplied payment was rejected. For API challenges the pinned middleware returns an empty JSON body and carries the payment requirements in PAYMENT-REQUIRED. This is not an Ardaro ErrorResponse.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 v2 PaymentRequired envelope produced by the pinned x402 2.19.0 middleware. Decode the value before applying the X402PaymentRequired schema.","schema":{"type":"string","contentEncoding":"base64","contentMediaType":"application/json"},"x-decoded-schema":{"$ref":"#/components/schemas/X402PaymentRequired"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402EmptyPaymentBody"},"example":{}}}},"405":{"description":"Method not allowed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Bounded request-body read timed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Payment identifier was reused for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Published input bound exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Application/json content type required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Receipt could not be normalized safely.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"431":{"description":"Payment header bound exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Pinned x402 middleware rejected a facilitator response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MiddlewareError"}}}},"503":{"description":"Service capacity or a required dependency is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ErrorResponse"},{"$ref":"#/components/schemas/NotReadyResponse"}]}}}},"504":{"description":"Bounded receipt analysis timed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/agent-services":{"get":{"operationId":"listAgentServices","summary":"List public Ardaro Agent Services metadata","responses":{"200":{"description":"Non-sensitive machine-readable catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCatalog"}}}}}}},"/agent-services/receipt-intelligence/example":{"get":{"operationId":"getReceiptIntelligenceExample","summary":"Get one deterministic synthetic evaluation example","responses":{"200":{"description":"Synthetic input and expected response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyntheticExample"}}}}}}},"/v1/observatory/snapshot":{"get":{"operationId":"getAgentObservatorySnapshot","summary":"Read the evidence-bounded public x402 service snapshot","description":"Returns a content-minimized sample of named public catalogs. Third-party discovery is not represented as health or settlement proof.","responses":{"200":{"description":"Bounded public agent-service evidence snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatorySnapshot"}}}}}}},"/v2/observatory/snapshot":{"get":{"operationId":"getAgentObservatorySnapshotV2","summary":"Read the current Observatory dashboard snapshot","description":"Returns the v2 evidence-bounded snapshot with explicit external-participation counters. The original v1 response shape remains available for strict existing clients.","responses":{"200":{"description":"Current bounded public agent-service evidence snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatorySnapshotV2"}}}}}}},"/v1/observatory/services/{service_id}":{"get":{"operationId":"getAgentObservatoryService","summary":"Read one normalized public x402 service record","description":"Returns the current evidence-bounded record for one canonical Observatory service identifier.","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"}}],"responses":{"200":{"description":"One bounded public service evidence record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatoryServiceDetail"}}}},"404":{"description":"The service identifier is not in the current snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observatory/services/{service_id}":{"get":{"operationId":"getAgentObservatoryServiceV2","summary":"Read one current or retained historical service record","description":"Returns a current v2 service record or a bounded retained historical record with an explicit current-catalog flag.","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"}}],"responses":{"200":{"description":"One bounded current or historical service record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatoryServiceDetailV2"}}}},"404":{"description":"The service identifier has no retained evidence record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/observatory/services/{service_id}/history":{"get":{"operationId":"getAgentObservatoryServiceHistory","summary":"Read passive historical evidence for one service","description":"Returns append-only observations of Ardaro's published catalog record. It is not an endpoint probe, purchase, or settlement test.","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"}}],"responses":{"200":{"description":"Bounded passive observation history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatoryHistory"}}}},"404":{"description":"No current service or passive history exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/observatory/services/{service_id}/verify":{"get":{"operationId":"verifyAgentObservatoryServiceEvidence","summary":"Explain the evidence currently held for one service","description":"Returns a deterministic advisory assertion over catalog, claim, and passive-history evidence. It grants no purchase or financial authority.","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"}}],"responses":{"200":{"description":"Deterministic evidence explanation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatoryVerify"}}}},"404":{"description":"The service identifier is not in the current snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/observatory/submissions":{"post":{"operationId":"submitAgentObservatoryServiceReview","summary":"Queue a service submission or claim for manual review","description":"Stores a bounded review request. It never publishes, verifies, claims, or probes a service automatically.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatorySubmissionRequest"}}}},"responses":{"202":{"description":"The request was durably queued for manual review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservatorySubmissionResponse"}}}},"400":{"description":"The bounded request contract was not satisfied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The bounded intake queue is full.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The durable review queue is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"AnalyzeRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","input","existing_fingerprints"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.request.v1"},"input":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind","text"],"properties":{"kind":{"const":"text"},"text":{"type":"string","minLength":1,"maxLength":20000}}},{"type":"object","additionalProperties":false,"required":["kind","analysis"],"properties":{"kind":{"const":"structured"},"analysis":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"vendor":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"purchase_date":{"oneOf":[{"type":"string","minLength":1,"maxLength":10},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":10},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"subtotal":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"tax":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"total":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"currency":{"oneOf":[{"type":"string","minLength":1,"maxLength":3},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":3},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"purchase_order":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"receipt_reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"product_code":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"quantity":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"unit_price":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"amount":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]}}}}}}}}]},"existing_fingerprints":{"type":"array","maxItems":10000,"items":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}},"AnalyzeResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Receipt Intelligence v1 response. result is authoritative; receipt is a derived compatibility projection that MUST match result.","x-ardaro-authoritative-analysis-path":"$.result","x-ardaro-receipt-compatibility-path":"$.receipt","x-ardaro-receipt-projection-profile":"ardaro.result-receipt-projection.v1","x-ardaro-analysis-result-identity-profile":"ardaro.recursive-key-sort-compact-json-utf8-sha256.v1","additionalProperties":false,"required":["contract_version","service","version","status","engine","receipt","confidence","duplicate_check","duplicate_fingerprint","arithmetic_verified","arithmetic_consistency","warnings","warning_groups","identities","result","metering","policy"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"},"service":{"const":"ardaro.receipt_intelligence"},"version":{"const":"1.0.0"},"status":{"const":"review_required"},"engine":{"type":"object"},"receipt":{"type":"object","description":"Non-authoritative compatibility projection generated from result under ardaro.result-receipt-projection.v1. Consumers MUST use result for structured receipt values and reject a response when this projection diverges.","additionalProperties":false,"required":["vendor","purchase_date","totals","line_items"],"properties":{"vendor":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"purchase_date":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":10},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"purchase_order":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"receipt_reference":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals":{"type":"object","additionalProperties":false,"required":["subtotal","tax","total","currency"],"properties":{"subtotal":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"tax":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"total":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"currency":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":3},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","product_code","quantity","unit_price","amount"],"properties":{"description":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"product_code":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"quantity":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"unit_price":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"amount":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}}}}},"confidence":{"type":"object"},"duplicate_check":{"type":"object"},"duplicate_fingerprint":{"type":["string","null"],"pattern":"^[0-9a-f]{64}$"},"arithmetic_verified":{"type":["boolean","null"]},"arithmetic_consistency":{"enum":["verified","mismatch","unavailable"]},"warnings":{"type":"array","maxItems":64,"items":{"type":"object"}},"warning_groups":{"type":"object"},"identities":{"type":"object","additionalProperties":false,"required":["request_identity","document_fingerprint","analysis_result_identity"],"properties":{"request_identity":{"type":"string","pattern":"^req_[0-9a-f]{64}$"},"document_fingerprint":{"type":["string","null"],"pattern":"^[0-9a-f]{64}$"},"analysis_result_identity":{"type":"string","pattern":"^res_[0-9a-f]{64}$"}}},"payment_identity":{"type":"object","additionalProperties":false,"required":["protocol","reference","replayed"],"properties":{"protocol":{"const":"x402-v2"},"reference":{"type":"string","pattern":"^pay_[0-9a-f]{64}$"},"replayed":{"type":"boolean"}}},"result":{"type":"object","description":"Sole authoritative structured analysis object. Its recursively key-sorted, compact UTF-8 JSON bytes are SHA-256 hashed under ardaro.recursive-key-sort-compact-json-utf8-sha256.v1 and published as analysis_result_identity.","additionalProperties":false,"required":["extracted_facts","inferred_suggestions","unavailable_fields","validation","provenance"],"properties":{"extracted_facts":{"type":"object","additionalProperties":false,"required":["line_items"],"properties":{"vendor":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"purchase_date":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":10},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"purchase_order":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"receipt_reference":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.subtotal":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.tax":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.total":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.currency":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":3},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","product_code","quantity","unit_price","amount"],"properties":{"description":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"product_code":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"quantity":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"unit_price":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"amount":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}}}}},"inferred_suggestions":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["field","value"],"properties":{"field":{"enum":["vendor","purchase_date","purchase_order","receipt_reference","totals.subtotal","totals.tax","totals.total","totals.currency"]},"value":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}}}},"unavailable_fields":{"type":"array","uniqueItems":true,"items":{"enum":["purchase order reference","purchase_date","receipt or invoice number","totals.currency","totals.subtotal","totals.tax","totals.total","vendor"]}},"validation":{"type":"object"},"provenance":{"type":"object"}}},"metering":{"type":"object"},"policy":{"type":"object"}}},"ErrorResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","error"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"},"status":{"const":"error"},"error":{"type":"object","additionalProperties":false,"required":["code","service_code","message","retryable","remediation"],"properties":{"code":{"type":"string","maxLength":80},"service_code":{"enum":["ARDARO_ARITHMETIC_MISMATCH","ARDARO_DOCUMENT_TOO_LARGE","ARDARO_DUPLICATE_SUSPECTED","ARDARO_EXTRACTION_LOW_CONFIDENCE","ARDARO_IDEMPOTENCY_CONFLICT","ARDARO_INPUT_UNSUPPORTED","ARDARO_PAYMENT_INVALID","ARDARO_PAYMENT_RECONCILIATION_REQUIRED","ARDARO_PAYMENT_REQUIRED","ARDARO_RATE_LIMITED","ARDARO_SERVICE_UNAVAILABLE"]},"message":{"type":"string","maxLength":280},"retryable":{"type":"boolean"},"remediation":{"type":"string","maxLength":280}}}}},"HealthResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["status","service","payment_protocol","network","contract_version"],"properties":{"status":{"const":"ok"},"service":{"const":"ardaro-receipt-intelligence"},"payment_protocol":{"const":"x402-v2"},"network":{"type":"string"},"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"}}},"ReadyResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["status","service"],"properties":{"status":{"const":"ready"},"service":{"const":"ardaro-receipt-intelligence"}}},"NotReadyResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","service","error"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"},"status":{"const":"not_ready"},"service":{"const":"ardaro-receipt-intelligence"},"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","minLength":1,"maxLength":80},"message":{"const":"Service is not ready."}}}}},"ObservatoryHistory":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","generated_at","generated_through","service_id","first_observed","last_observed","observation_days","retained_observation_days","archived_observation_days","archive_integrity","consecutive_days","change_counters","current_fingerprints","chain_head","challenge_observations","challenge_status","independent_settlement_tests","settlement_status","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.history-summary.v3"},"generated_at":{"type":"string","format":"date-time"},"generated_through":{"type":"string","format":"date"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"first_observed":{"type":"string","format":"date"},"last_observed":{"type":"string","format":"date"},"observation_days":{"type":"integer","minimum":1},"retained_observation_days":{"type":"integer","minimum":0},"archived_observation_days":{"type":"integer","minimum":0},"archive_integrity":{"enum":["not_applicable","artifact_self_consistency_digest"]},"consecutive_days":{"type":"integer","minimum":1},"change_counters":{"type":"object","additionalProperties":false,"required":["contract","price","payee","network","discovery_sources"],"properties":{"contract":{"type":"integer","minimum":0},"price":{"type":"integer","minimum":0},"payee":{"type":"integer","minimum":0},"network":{"type":"integer","minimum":0},"discovery_sources":{"type":"integer","minimum":0}}},"current_fingerprints":{"type":"object","additionalProperties":false,"required":["contract","price","payee","network","discovery_sources"],"properties":{"contract":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"price":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"payee":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"network":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"discovery_sources":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"chain_head":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"challenge_observations":{"const":0},"challenge_status":{"const":"not_tested"},"independent_settlement_tests":{"const":0},"settlement_status":{"const":"not_tested"},"policy":{"type":"object","additionalProperties":false,"required":["passive_observation_only","arbitrary_endpoint_probing","challenge_verification","independent_settlement_testing","purchases_performed","financial_actions_performed","subjective_scores","archive_continuity_anchor","archive_external_attestation","archive_reconstructability"],"properties":{"passive_observation_only":{"const":true},"arbitrary_endpoint_probing":{"const":false},"challenge_verification":{"const":"not_tested"},"independent_settlement_testing":{"const":"not_tested"},"purchases_performed":{"const":0},"financial_actions_performed":{"const":0},"subjective_scores":{"const":false},"archive_continuity_anchor":{"const":"artifact_self_consistency_digest"},"archive_external_attestation":{"const":"not_performed"},"archive_reconstructability":{"const":"discarded_detail_not_reconstructable"}}}}},"ObservatoryServiceDetail":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","snapshot_generated_at","service","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.service-detail.v1"},"snapshot_generated_at":{"type":"string","format":"date-time"},"service":{"type":"object","additionalProperties":false,"required":["service_id","resource_url","resource_host","resource_path","method","description","protocol_type","x402_version","last_updated","sources","tags","payment_options","provider_reported_activity","evidence","warnings"],"properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"resource_url":{"type":"string","format":"uri","maxLength":2048},"resource_host":{"type":"string","minLength":1,"maxLength":253},"resource_path":{"type":"string","minLength":1,"maxLength":1024},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","UNKNOWN"]},"description":{"type":"string","maxLength":320},"protocol_type":{"enum":["http","mcp","unknown"]},"x402_version":{"type":["integer","null"],"minimum":1,"maximum":99},"last_updated":{"type":["string","null"]},"sources":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"}},"tags":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":40}},"payment_options":{"type":"array","maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["scheme","network","asset","amount_atomic","display_price","payee_hint","payee_fingerprint"],"properties":{"scheme":{"type":"string","minLength":1,"maxLength":40},"network":{"type":"string","minLength":1,"maxLength":100},"asset":{"type":"string","minLength":1,"maxLength":120},"amount_atomic":{"type":"string","pattern":"^[0-9]{1,78}$"},"display_price":{"type":["string","null"],"maxLength":48},"payee_hint":{"type":"string","minLength":3,"maxLength":32},"payee_fingerprint":{"type":"string","pattern":"^payee_[0-9a-f]{64}$"}}}},"provider_reported_activity":{"type":"object","additionalProperties":false,"required":["calls_30d","unique_payers_30d","last_called_at"],"properties":{"calls_30d":{"type":["integer","null"],"minimum":0},"unique_payers_30d":{"type":["integer","null"],"minimum":0},"last_called_at":{"type":["string","null"]}}},"evidence":{"type":"object","additionalProperties":false,"required":["discovery","contract","health","settlement","confidence","limitations"],"properties":{"discovery":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"contract":{"enum":["complete","partial","invalid"]},"health":{"enum":["verified","not_tested"]},"settlement":{"enum":["verified","not_tested"]},"confidence":{"enum":["verified","observed","unknown"]},"limitations":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":160}}}},"warnings":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":80}}}},"policy":{"type":"object","additionalProperties":false,"required":["claim_review_required","automatic_publication","third_party_endpoint_probed"],"properties":{"claim_review_required":{"const":true},"automatic_publication":{"const":false},"third_party_endpoint_probed":{"const":false}}}}},"ObservatoryServiceDetailV2":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","snapshot_generated_at","service","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.service-detail.v2"},"snapshot_generated_at":{"type":"string","format":"date-time"},"service":{"type":"object","additionalProperties":false,"required":["service_id","resource_url","resource_host","resource_path","method","description","protocol_type","x402_version","last_updated","sources","tags","payment_options","provider_reported_activity","evidence","warnings"],"properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"resource_url":{"type":"string","format":"uri","maxLength":2048},"resource_host":{"type":"string","minLength":1,"maxLength":253},"resource_path":{"type":"string","minLength":1,"maxLength":1024},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","UNKNOWN"]},"description":{"type":"string","maxLength":320},"protocol_type":{"enum":["http","mcp","unknown"]},"x402_version":{"type":["integer","null"],"minimum":1,"maximum":99},"last_updated":{"type":["string","null"]},"sources":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"}},"tags":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":40}},"payment_options":{"type":"array","maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["scheme","network","asset","amount_atomic","display_price","payee_hint","payee_fingerprint"],"properties":{"scheme":{"type":"string","minLength":1,"maxLength":40},"network":{"type":"string","minLength":1,"maxLength":100},"asset":{"type":"string","minLength":1,"maxLength":120},"amount_atomic":{"type":"string","pattern":"^[0-9]{1,78}$"},"display_price":{"type":["string","null"],"maxLength":48},"payee_hint":{"type":"string","minLength":3,"maxLength":32},"payee_fingerprint":{"type":"string","pattern":"^payee_[0-9a-f]{64}$"}}}},"provider_reported_activity":{"type":"object","additionalProperties":false,"required":["calls_30d","unique_payers_30d","last_called_at"],"properties":{"calls_30d":{"type":["integer","null"],"minimum":0},"unique_payers_30d":{"type":["integer","null"],"minimum":0},"last_called_at":{"type":["string","null"]}}},"evidence":{"type":"object","additionalProperties":false,"required":["discovery","contract","health","settlement","confidence","limitations"],"properties":{"discovery":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"contract":{"enum":["complete","partial","invalid"]},"health":{"enum":["verified","not_tested"]},"settlement":{"enum":["verified","not_tested"]},"confidence":{"enum":["verified","observed","unknown"]},"limitations":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":160}}}},"warnings":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":80}}}},"policy":{"type":"object","additionalProperties":false,"required":["claim_review_required","automatic_publication","third_party_endpoint_probed","current_catalog_record"],"properties":{"claim_review_required":{"const":true},"automatic_publication":{"const":false},"third_party_endpoint_probed":{"const":false},"current_catalog_record":{"type":"boolean"}}}}},"ObservatorySnapshot":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","generated_at","status","coverage","sources","services","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.snapshot.v1"},"generated_at":{"type":"string","format":"date-time"},"status":{"enum":["operational","degraded","unavailable"]},"coverage":{"type":"object","additionalProperties":false,"required":["sources_configured","sources_available","reported_total","sampled_records","unique_services","payment_options","base_mainnet_services","externally_health_verified","partial","networks"],"properties":{"sources_configured":{"type":"integer","minimum":1},"sources_available":{"type":"integer","minimum":0},"reported_total":{"type":"integer","minimum":0},"sampled_records":{"type":"integer","minimum":0},"unique_services":{"type":"integer","minimum":0},"payment_options":{"type":"integer","minimum":0},"base_mainnet_services":{"type":"integer","minimum":0},"externally_health_verified":{"const":0},"partial":{"type":"boolean"},"networks":{"type":"array","maxItems":40,"items":{"type":"object","additionalProperties":false,"required":["network","services"],"properties":{"network":{"type":"string","minLength":1,"maxLength":100},"services":{"type":"integer","minimum":1}}}}}},"sources":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["source_id","label","evidence_class","status","total_reported","sampled_records","last_refreshed_at","error_code"],"properties":{"source_id":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"evidence_class":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"status":{"enum":["available","unavailable"]},"total_reported":{"type":["integer","null"],"minimum":0},"sampled_records":{"type":"integer","minimum":0},"last_refreshed_at":{"type":["string","null"]},"error_code":{"type":["string","null"],"maxLength":80}}}},"services":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"required":["service_id","resource_url","resource_host","resource_path","method","description","protocol_type","x402_version","last_updated","sources","tags","payment_options","provider_reported_activity","evidence","warnings"],"properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"resource_url":{"type":"string","format":"uri","maxLength":2048},"resource_host":{"type":"string","minLength":1,"maxLength":253},"resource_path":{"type":"string","minLength":1,"maxLength":1024},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","UNKNOWN"]},"description":{"type":"string","maxLength":320},"protocol_type":{"enum":["http","mcp","unknown"]},"x402_version":{"type":["integer","null"],"minimum":1,"maximum":99},"last_updated":{"type":["string","null"]},"sources":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"}},"tags":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":40}},"payment_options":{"type":"array","maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["scheme","network","asset","amount_atomic","display_price","payee_hint","payee_fingerprint"],"properties":{"scheme":{"type":"string","minLength":1,"maxLength":40},"network":{"type":"string","minLength":1,"maxLength":100},"asset":{"type":"string","minLength":1,"maxLength":120},"amount_atomic":{"type":"string","pattern":"^[0-9]{1,78}$"},"display_price":{"type":["string","null"],"maxLength":48},"payee_hint":{"type":"string","minLength":3,"maxLength":32},"payee_fingerprint":{"type":"string","pattern":"^payee_[0-9a-f]{64}$"}}}},"provider_reported_activity":{"type":"object","additionalProperties":false,"required":["calls_30d","unique_payers_30d","last_called_at"],"properties":{"calls_30d":{"type":["integer","null"],"minimum":0},"unique_payers_30d":{"type":["integer","null"],"minimum":0},"last_called_at":{"type":["string","null"]}}},"evidence":{"type":"object","additionalProperties":false,"required":["discovery","contract","health","settlement","confidence","limitations"],"properties":{"discovery":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"contract":{"enum":["complete","partial","invalid"]},"health":{"enum":["verified","not_tested"]},"settlement":{"enum":["verified","not_tested"]},"confidence":{"enum":["verified","observed","unknown"]},"limitations":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":160}}}},"warnings":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":80}}}}},"policy":{"type":"object","additionalProperties":false,"required":["public_or_authorized_evidence_only","private_agent_activity_visible","arbitrary_endpoint_probing","payee_identity_enrichment","purchase_instructions","evidence_classes"],"properties":{"public_or_authorized_evidence_only":{"const":true},"private_agent_activity_visible":{"const":false},"arbitrary_endpoint_probing":{"const":false},"payee_identity_enrichment":{"const":false},"purchase_instructions":{"const":false},"evidence_classes":{"type":"array","const":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]}}}}},"ObservatorySnapshotV2":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","generated_at","status","coverage","sources","services","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.snapshot.v2"},"generated_at":{"type":"string","format":"date-time"},"status":{"enum":["operational","degraded","unavailable"]},"coverage":{"type":"object","additionalProperties":false,"required":["sources_configured","sources_available","reported_total","sampled_records","unique_services","payment_options","base_mainnet_services","externally_health_verified","external_provider_claims","external_verify_integrations","partial","networks"],"properties":{"sources_configured":{"type":"integer","minimum":1},"sources_available":{"type":"integer","minimum":0},"reported_total":{"type":"integer","minimum":0},"sampled_records":{"type":"integer","minimum":0},"unique_services":{"type":"integer","minimum":0},"payment_options":{"type":"integer","minimum":0},"base_mainnet_services":{"type":"integer","minimum":0},"externally_health_verified":{"const":0},"external_provider_claims":{"const":0},"external_verify_integrations":{"type":"integer","minimum":0},"partial":{"type":"boolean"},"networks":{"type":"array","maxItems":40,"items":{"type":"object","additionalProperties":false,"required":["network","services"],"properties":{"network":{"type":"string","minLength":1,"maxLength":100},"services":{"type":"integer","minimum":1}}}}}},"sources":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["source_id","label","evidence_class","status","total_reported","sampled_records","last_refreshed_at","error_code"],"properties":{"source_id":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"evidence_class":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"status":{"enum":["available","unavailable"]},"total_reported":{"type":["integer","null"],"minimum":0},"sampled_records":{"type":"integer","minimum":0},"last_refreshed_at":{"type":["string","null"]},"error_code":{"type":["string","null"],"maxLength":80}}}},"services":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"required":["service_id","resource_url","resource_host","resource_path","method","description","protocol_type","x402_version","last_updated","sources","tags","payment_options","provider_reported_activity","evidence","warnings"],"properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"resource_url":{"type":"string","format":"uri","maxLength":2048},"resource_host":{"type":"string","minLength":1,"maxLength":253},"resource_path":{"type":"string","minLength":1,"maxLength":1024},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","UNKNOWN"]},"description":{"type":"string","maxLength":320},"protocol_type":{"enum":["http","mcp","unknown"]},"x402_version":{"type":["integer","null"],"minimum":1,"maximum":99},"last_updated":{"type":["string","null"]},"sources":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"}},"tags":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":40}},"payment_options":{"type":"array","maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["scheme","network","asset","amount_atomic","display_price","payee_hint","payee_fingerprint"],"properties":{"scheme":{"type":"string","minLength":1,"maxLength":40},"network":{"type":"string","minLength":1,"maxLength":100},"asset":{"type":"string","minLength":1,"maxLength":120},"amount_atomic":{"type":"string","pattern":"^[0-9]{1,78}$"},"display_price":{"type":["string","null"],"maxLength":48},"payee_hint":{"type":"string","minLength":3,"maxLength":32},"payee_fingerprint":{"type":"string","pattern":"^payee_[0-9a-f]{64}$"}}}},"provider_reported_activity":{"type":"object","additionalProperties":false,"required":["calls_30d","unique_payers_30d","last_called_at"],"properties":{"calls_30d":{"type":["integer","null"],"minimum":0},"unique_payers_30d":{"type":["integer","null"],"minimum":0},"last_called_at":{"type":["string","null"]}}},"evidence":{"type":"object","additionalProperties":false,"required":["discovery","contract","health","settlement","confidence","limitations"],"properties":{"discovery":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"contract":{"enum":["complete","partial","invalid"]},"health":{"enum":["verified","not_tested"]},"settlement":{"enum":["verified","not_tested"]},"confidence":{"enum":["verified","observed","unknown"]},"limitations":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":160}}}},"warnings":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":80}}}}},"policy":{"type":"object","additionalProperties":false,"required":["public_or_authorized_evidence_only","private_agent_activity_visible","arbitrary_endpoint_probing","payee_identity_enrichment","purchase_instructions","evidence_classes"],"properties":{"public_or_authorized_evidence_only":{"const":true},"private_agent_activity_visible":{"const":false},"arbitrary_endpoint_probing":{"const":false},"payee_identity_enrichment":{"const":false},"purchase_instructions":{"const":false},"evidence_classes":{"type":"array","const":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]}}}}},"ObservatorySubmissionRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["request_type","service_id","service_url","contact_name","contact_email","organization","notes","consent_to_contact"],"properties":{"request_type":{"enum":["submit","claim"]},"service_id":{"type":["string","null"],"pattern":"^svc_[0-9a-f]{64}$"},"service_url":{"type":"string","format":"uri","maxLength":2048},"contact_name":{"type":"string","minLength":2,"maxLength":120},"contact_email":{"type":"string","format":"email","maxLength":320},"organization":{"type":"string","minLength":2,"maxLength":120},"notes":{"type":"string","maxLength":500},"consent_to_contact":{"const":true}}},"ObservatorySubmissionResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","ok","request_id","status","message"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.submission.v1"},"ok":{"const":true},"request_id":{"type":"string","pattern":"^obsreq_[0-9a-f]{32}$"},"status":{"const":"pending_review"},"message":{"type":"string","minLength":1,"maxLength":160}}},"ObservatoryVerify":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","assertion_id","generated_at","service_id","service_snapshot_sha256","catalog_snapshot_at","evidence_class","provider_claim","history","challenge_verification","settlement","authority"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.verify.v1"},"assertion_id":{"type":"string","pattern":"^verify_[0-9a-f]{64}$"},"generated_at":{"type":"string","format":"date-time"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"service_snapshot_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"catalog_snapshot_at":{"type":"string","format":"date-time"},"evidence_class":{"enum":["publicly_discovered","provider_attested","onchain_observed","ardaro_verified","unknown"]},"provider_claim":{"oneOf":[{"type":"object","additionalProperties":false,"required":["status","control_verification","submission_record_binding","reviewed_at","proposal_sha256"],"properties":{"status":{"const":"not_claimed"},"control_verification":{"const":"not_performed"},"submission_record_binding":{"const":"not_applicable"},"reviewed_at":{"const":null},"proposal_sha256":{"const":null}}},{"type":"object","additionalProperties":false,"required":["status","control_verification","submission_record_binding","reviewed_at","proposal_sha256"],"properties":{"status":{"const":"owner_reviewed_request"},"control_verification":{"const":"not_performed"},"submission_record_binding":{"const":"not_independently_verified"},"reviewed_at":{"type":"string","format":"date-time"},"proposal_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}]},"history":{"oneOf":[{"type":"null"},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","generated_at","generated_through","service_id","first_observed","last_observed","observation_days","retained_observation_days","archived_observation_days","archive_integrity","consecutive_days","change_counters","current_fingerprints","chain_head","challenge_observations","challenge_status","independent_settlement_tests","settlement_status","policy"],"properties":{"contract_version":{"const":"ardaro.agent-observatory.history-summary.v3"},"generated_at":{"type":"string","format":"date-time"},"generated_through":{"type":"string","format":"date"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{64}$"},"first_observed":{"type":"string","format":"date"},"last_observed":{"type":"string","format":"date"},"observation_days":{"type":"integer","minimum":1},"retained_observation_days":{"type":"integer","minimum":0},"archived_observation_days":{"type":"integer","minimum":0},"archive_integrity":{"enum":["not_applicable","artifact_self_consistency_digest"]},"consecutive_days":{"type":"integer","minimum":1},"change_counters":{"type":"object","additionalProperties":false,"required":["contract","price","payee","network","discovery_sources"],"properties":{"contract":{"type":"integer","minimum":0},"price":{"type":"integer","minimum":0},"payee":{"type":"integer","minimum":0},"network":{"type":"integer","minimum":0},"discovery_sources":{"type":"integer","minimum":0}}},"current_fingerprints":{"type":"object","additionalProperties":false,"required":["contract","price","payee","network","discovery_sources"],"properties":{"contract":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"price":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"payee":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"network":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"discovery_sources":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"chain_head":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"challenge_observations":{"const":0},"challenge_status":{"const":"not_tested"},"independent_settlement_tests":{"const":0},"settlement_status":{"const":"not_tested"},"policy":{"type":"object","additionalProperties":false,"required":["passive_observation_only","arbitrary_endpoint_probing","challenge_verification","independent_settlement_testing","purchases_performed","financial_actions_performed","subjective_scores","archive_continuity_anchor","archive_external_attestation","archive_reconstructability"],"properties":{"passive_observation_only":{"const":true},"arbitrary_endpoint_probing":{"const":false},"challenge_verification":{"const":"not_tested"},"independent_settlement_testing":{"const":"not_tested"},"purchases_performed":{"const":0},"financial_actions_performed":{"const":0},"subjective_scores":{"const":false},"archive_continuity_anchor":{"const":"artifact_self_consistency_digest"},"archive_external_attestation":{"const":"not_performed"},"archive_reconstructability":{"const":"discarded_detail_not_reconstructable"}}}}}]},"challenge_verification":{"type":"object","additionalProperties":false,"required":["status","successful_observations","observations"],"properties":{"status":{"const":"not_tested"},"successful_observations":{"const":0},"observations":{"const":0}}},"settlement":{"type":"object","additionalProperties":false,"required":["status","independent_tests"],"properties":{"status":{"const":"not_independently_tested"},"independent_tests":{"const":0}}},"authority":{"type":"object","additionalProperties":false,"required":["advisory_evidence_only","purchase_instruction","financial_authority","subjective_rating"],"properties":{"advisory_evidence_only":{"const":true},"purchase_instruction":{"const":false},"financial_authority":{"const":false},"subjective_rating":{"const":false}}}}},"ServiceCatalog":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["catalog_version","brand","services"],"properties":{"catalog_version":{"const":"ardaro.agent-services.catalog.v1"},"brand":{"const":"Ardaro Agent Services"},"services":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["service_id","name","version","description","capabilities","semantic_keywords","price","supported_input_types","limits","retention","schemas","endpoints","status","mcp","policy","support"],"properties":{"service_id":{"const":"ardaro.receipt_intelligence"},"name":{"const":"Ardaro Receipt Intelligence"},"version":{"const":"1.0.0"},"description":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"semantic_keywords":{"type":"array","items":{"type":"string"}},"price":{"type":"object","additionalProperties":false,"required":["model","amount","currency","display","network","failed_input_validation_charged","same_payment_identifier_replay_requires_new_payment","successful_response_loss_retry_policy"],"properties":{"model":{"const":"fixed_per_accepted_request"},"amount":{"type":"string","pattern":"^[0-9]+\\.[0-9]{2}$"},"currency":{"const":"USDC"},"display":{"type":"string","pattern":"^\\$[0-9]+\\.[0-9]{2}$"},"network":{"type":"string"},"failed_input_validation_charged":{"const":false},"same_payment_identifier_replay_requires_new_payment":{"const":false},"successful_response_loss_retry_policy":{"type":"string"}}},"supported_input_types":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["mime_type","input_kind","description"],"properties":{"mime_type":{"type":"string"},"input_kind":{"enum":["text","structured"]},"description":{"type":"string"}}}},"limits":{"type":"object","additionalProperties":false,"required":["max_existing_fingerprints","max_line_items","max_pages","max_request_bytes","max_text_characters","normal_latency_target_ms","request_timeout_ms"],"properties":{"max_request_bytes":{"type":"integer","minimum":1},"max_text_characters":{"type":"integer","minimum":1},"max_pages":{"type":"integer","minimum":1},"max_line_items":{"type":"integer","minimum":1},"max_existing_fingerprints":{"type":"integer","minimum":1},"normal_latency_target_ms":{"type":"integer","minimum":1},"request_timeout_ms":{"type":"integer","minimum":1}}},"retention":{"type":"object","additionalProperties":false,"required":["default_retention_seconds","deletion_behavior","durable_recovery_supported","extracted_results_retained","payment_metadata_retention_seconds","raw_documents_retained","raw_receipt_images_retained","storage_scope","used_for_model_training"],"properties":{"raw_documents_retained":{"const":false},"raw_receipt_images_retained":{"const":false},"extracted_results_retained":{"type":"boolean"},"default_retention_seconds":{"type":"integer","minimum":1},"storage_scope":{"type":"string"},"durable_recovery_supported":{"type":"boolean"},"payment_metadata_retention_seconds":{"type":"integer","minimum":86400},"used_for_model_training":{"const":false},"deletion_behavior":{"type":"string"}}},"schemas":{"type":"object","additionalProperties":false,"required":["openapi","request_contract_version","response_contract_version"],"properties":{"openapi":{"type":"string","format":"uri"},"request_contract_version":{"const":"ardaro.agent-receipt-intelligence.request.v1"},"response_contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"}}},"endpoints":{"type":"object","additionalProperties":false,"required":["analyze","example"],"properties":{"analyze":{"type":"string","format":"uri"},"example":{"type":"string","format":"uri"}}},"status":{"type":"object","additionalProperties":false,"required":["source","network","deployed","settlement_proven","bazaar_indexed","mainnet_enabled"],"properties":{"source":{"enum":["testnet_candidate","public_testnet_operational","production_launch_gated","production_operational"]},"network":{"enum":["base_sepolia_only","base_mainnet_only"]},"deployed":{"type":"boolean"},"settlement_proven":{"type":"boolean"},"bazaar_indexed":{"type":"boolean"},"mainnet_enabled":{"type":"boolean"}}},"mcp":{"type":"object","additionalProperties":false,"required":["source_interface_available","public_endpoint_deployed","tools"],"properties":{"source_interface_available":{"type":"boolean"},"public_endpoint_deployed":{"const":false},"tools":{"type":"array","items":{"type":"string"}}}},"policy":{"type":"object","additionalProperties":false,"required":["advisory_only","human_review_required","financial_mutation_supported","ardaro_saas_tenant_access"],"properties":{"advisory_only":{"const":true},"human_review_required":{"const":true},"financial_mutation_supported":{"const":false},"ardaro_saas_tenant_access":{"const":false}}},"support":{"type":"object","additionalProperties":false,"required":["email","url","terms_url","privacy_url"],"properties":{"email":{"const":"support@getardaro.com"},"url":{"const":"mailto:support@getardaro.com"},"terms_url":{"const":"https://getardaro.com/legal/terms"},"privacy_url":{"const":"https://getardaro.com/legal/privacy"}}},"benchmark":{"type":"object","additionalProperties":false,"required":["benchmark_id","service_version","dataset_origin","dataset_license","input_scope","fixture_count","completed_count","error_count","failed_fixture_ids","raw_documents_published","accuracy","latency_ms","deterministic_result_signature"],"properties":{"benchmark_id":{"type":"string"},"service_version":{"const":"1.0.0"},"dataset_origin":{"type":"string"},"dataset_license":{"type":"string"},"input_scope":{"type":"string"},"fixture_count":{"type":"integer","minimum":0},"completed_count":{"type":"integer","minimum":0},"error_count":{"type":"integer","minimum":0},"failed_fixture_ids":{"type":"array","items":{"type":"string"}},"raw_documents_published":{"const":false},"accuracy":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"required":["accuracy","evaluated","passed"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1},"evaluated":{"type":"integer","minimum":0},"passed":{"type":"integer","minimum":0}}}},"latency_ms":{"type":"object","additionalProperties":false,"required":["median","p95","sample_count"],"properties":{"median":{"type":"number","minimum":0},"p95":{"type":"number","minimum":0},"sample_count":{"type":"integer","minimum":0}}},"deterministic_result_signature":{"type":"string","pattern":"^bench_[0-9a-f]{64}$"}}}}}}}},"SyntheticExample":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["example_version","synthetic_only","paid_processing_performed","input_description","request","expected_response","limits"],"properties":{"example_version":{"const":"ardaro.receipt-intelligence.example.v1"},"synthetic_only":{"const":true},"paid_processing_performed":{"const":false},"input_description":{"type":"string"},"request":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","input","existing_fingerprints"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.request.v1"},"input":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind","text"],"properties":{"kind":{"const":"text"},"text":{"type":"string","minLength":1,"maxLength":20000}}},{"type":"object","additionalProperties":false,"required":["kind","analysis"],"properties":{"kind":{"const":"structured"},"analysis":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"vendor":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"purchase_date":{"oneOf":[{"type":"string","minLength":1,"maxLength":10},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":10},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"subtotal":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"tax":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"total":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"currency":{"oneOf":[{"type":"string","minLength":1,"maxLength":3},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":3},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"purchase_order":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"receipt_reference":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"product_code":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"quantity":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"unit_price":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]},"amount":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"number"}]},"confidence":{"type":"number","minimum":0,"maximum":100}}}]}}}}}}}}]},"existing_fingerprints":{"type":"array","maxItems":10000,"items":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}},"expected_response":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Receipt Intelligence v1 response. result is authoritative; receipt is a derived compatibility projection that MUST match result.","x-ardaro-authoritative-analysis-path":"$.result","x-ardaro-receipt-compatibility-path":"$.receipt","x-ardaro-receipt-projection-profile":"ardaro.result-receipt-projection.v1","x-ardaro-analysis-result-identity-profile":"ardaro.recursive-key-sort-compact-json-utf8-sha256.v1","additionalProperties":false,"required":["contract_version","service","version","status","engine","receipt","confidence","duplicate_check","duplicate_fingerprint","arithmetic_verified","arithmetic_consistency","warnings","warning_groups","identities","result","metering","policy"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"},"service":{"const":"ardaro.receipt_intelligence"},"version":{"const":"1.0.0"},"status":{"const":"review_required"},"engine":{"type":"object"},"receipt":{"type":"object","description":"Non-authoritative compatibility projection generated from result under ardaro.result-receipt-projection.v1. Consumers MUST use result for structured receipt values and reject a response when this projection diverges.","additionalProperties":false,"required":["vendor","purchase_date","totals","line_items"],"properties":{"vendor":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"purchase_date":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":10},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"purchase_order":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"receipt_reference":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals":{"type":"object","additionalProperties":false,"required":["subtotal","tax","total","currency"],"properties":{"subtotal":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"tax":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"total":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"currency":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":3},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","product_code","quantity","unit_price","amount"],"properties":{"description":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"product_code":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"quantity":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"unit_price":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"amount":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}}}}},"confidence":{"type":"object"},"duplicate_check":{"type":"object"},"duplicate_fingerprint":{"type":["string","null"],"pattern":"^[0-9a-f]{64}$"},"arithmetic_verified":{"type":["boolean","null"]},"arithmetic_consistency":{"enum":["verified","mismatch","unavailable"]},"warnings":{"type":"array","maxItems":64,"items":{"type":"object"}},"warning_groups":{"type":"object"},"identities":{"type":"object","additionalProperties":false,"required":["request_identity","document_fingerprint","analysis_result_identity"],"properties":{"request_identity":{"type":"string","pattern":"^req_[0-9a-f]{64}$"},"document_fingerprint":{"type":["string","null"],"pattern":"^[0-9a-f]{64}$"},"analysis_result_identity":{"type":"string","pattern":"^res_[0-9a-f]{64}$"}}},"payment_identity":{"type":"object","additionalProperties":false,"required":["protocol","reference","replayed"],"properties":{"protocol":{"const":"x402-v2"},"reference":{"type":"string","pattern":"^pay_[0-9a-f]{64}$"},"replayed":{"type":"boolean"}}},"result":{"type":"object","description":"Sole authoritative structured analysis object. Its recursively key-sorted, compact UTF-8 JSON bytes are SHA-256 hashed under ardaro.recursive-key-sort-compact-json-utf8-sha256.v1 and published as analysis_result_identity.","additionalProperties":false,"required":["extracted_facts","inferred_suggestions","unavailable_fields","validation","provenance"],"properties":{"extracted_facts":{"type":"object","additionalProperties":false,"required":["line_items"],"properties":{"vendor":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"purchase_date":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":10},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"purchase_order":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"receipt_reference":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":160},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.subtotal":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.tax":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.total":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":32},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"totals.currency":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":3},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}},"line_items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","product_code","quantity","unit_price","amount"],"properties":{"description":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"product_code":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"quantity":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"unit_price":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]},"amount":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":80},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}]}}}}}},"inferred_suggestions":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["field","value"],"properties":{"field":{"enum":["vendor","purchase_date","purchase_order","receipt_reference","totals.subtotal","totals.tax","totals.total","totals.currency"]},"value":{"type":"object","additionalProperties":false,"required":["value","confidence","source"],"properties":{"value":{"type":"string","minLength":1,"maxLength":240},"confidence":{"type":"object","additionalProperties":false,"required":["score","level"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"enum":["high","medium","low"]}}},"source":{"enum":["structured_summary","structured_line_item","provider_neutral","text_fallback","inferred"]}}}}}},"unavailable_fields":{"type":"array","uniqueItems":true,"items":{"enum":["purchase order reference","purchase_date","receipt or invoice number","totals.currency","totals.subtotal","totals.tax","totals.total","vendor"]}},"validation":{"type":"object"},"provenance":{"type":"object"}}},"metering":{"type":"object"},"policy":{"type":"object"}}},"limits":{"type":"object","additionalProperties":false,"required":["max_existing_fingerprints","max_line_items","max_pages","max_request_bytes","max_text_characters","normal_latency_target_ms","request_timeout_ms"],"properties":{"max_request_bytes":{"type":"integer","minimum":1},"max_text_characters":{"type":"integer","minimum":1},"max_pages":{"type":"integer","minimum":1},"max_line_items":{"type":"integer","minimum":1},"max_existing_fingerprints":{"type":"integer","minimum":1},"normal_latency_target_ms":{"type":"integer","minimum":1},"request_timeout_ms":{"type":"integer","minimum":1}}}}},"X402PaymentRequired":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["accepts"],"properties":{"x402Version":{"type":"integer","const":2,"default":2},"error":{"type":["string","null"]},"resource":{"oneOf":[{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"serviceName":{"type":["string","null"]},"tags":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"iconUrl":{"type":["string","null"]}}},{"type":"null"}]},"accepts":{"type":"array","items":{"type":"object","required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object","additionalProperties":true}}}},"extensions":{"oneOf":[{"type":"object","additionalProperties":true},{"type":"null"}]}}},"X402PaymentResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["success","transaction","network"],"properties":{"success":{"type":"boolean"},"errorReason":{"type":["string","null"]},"errorMessage":{"type":["string","null"]},"payer":{"type":["string","null"]},"transaction":{"type":"string","minLength":1},"network":{"type":"string","pattern":"^[a-z0-9-]+:[A-Za-z0-9_-]+$"},"amount":{"type":["string","null"],"pattern":"^[0-9]+$"},"extensions":{"type":["object","null"],"additionalProperties":true},"extra":{"type":["object","null"],"additionalProperties":true}}},"X402EmptyPaymentBody":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"maxProperties":0},"X402MiddlewareError":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string"}}}}}}