{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://machinerealms.com/schemas/handoff-receipt.schema.json","title":"Machine Realms Handoff Receipt","type":"object","required":["version","receipt_id","handoff_kind","source_entity_id","authority_state","outcome_state","created_at"],"properties":{"version":{"const":"1"},"receipt_id":{"type":"string"},"handoff_id":{"type":"string"},"task_id":{"type":["string","null"]},"handoff_kind":{"enum":["discovery","commercial_handoff","human_escalation","protocol_handoff","other"]},"source_entity_id":{"type":"string"},"target_entity_id":{"type":["string","null"]},"offer_id":{"type":"string"},"requested_capability":{"type":["string","null"]},"authority_state":{"enum":["read_only","human_approval_required","not_granted","granted_by_external_provider","unknown"]},"outcome_state":{"enum":["completed","handoff_only","pending_human_review","rejected","failed","unknown"]},"transport":{"enum":["human_web","machine_api"]},"traffic_class":{"enum":["runtime","deployment_verification"]},"destination_url":{"type":["string","null"],"format":"uri"},"redirect_issued":{"type":"boolean"},"provider_url_fetched_by_machine_realms":{"const":false},"provider_invocation_performed":{"const":false},"external_navigation_observed":{"const":false},"purchase_observed":{"const":false},"payment_or_settlement_observed":{"const":false},"fulfillment_observed":{"const":false},"idempotent_replay":{"type":"boolean"},"request":{"type":["object","null"]},"outcome":{"type":["object","null"]},"reconciliation_ref":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}},"additionalProperties":false}