{
  "schema_version": "1.0.0",
  "exchange_id": "exchange_example_01",
  "record_state": "example",
  "operational": false,
  "signature_material_state": "placeholder_non_verifiable",
  "request": {
    "protocol_id": "BRIARWOOD-INQUIRY/1.0",
    "message_type": "inquiry_request",
    "inquiry_id": "inq_example_01",
    "node_id": "node.example:requester",
    "resource_id": "resource.example:availability-01",
    "task_payload": {
      "operation_code": "availability_inquiry",
      "constraint_codes": [
        "resource_window_match"
      ]
    },
    "execution_window_utc": {
      "opens_at_utc": "2026-08-27T20:00:00Z",
      "closes_at_utc": "2026-08-27T20:15:00Z"
    },
    "popcorn_anchor": {
      "anchor_id": "pca_example_request",
      "node_id": "767-2676.com",
      "protocol_id": "POPCORN/1.0",
      "time_utc": "2026-08-27T20:05:00.000Z",
      "valid_until_utc": "2026-08-27T20:05:30.000Z",
      "evidence_scope": "bearer_temporal_evidence",
      "verification_key_set_url": "https://767-2676.com/.well-known/popcorn-keys.json",
      "compact_jws": "EXAMPLE_HEADER.REQUEST_ANCHOR_PAYLOAD.REQUEST_ANCHOR_SIGNATURE"
    },
    "message_attestation": {
      "format": "JWS",
      "algorithm": "ES256",
      "key_id": "node-a-example-key-01",
      "verification_key_set_url": "https://node-a.example/.well-known/keys.json",
      "payload_serialization": "RFC8785-JCS",
      "payload_scope": "containing_message_without_message_attestation",
      "compact_jws": "EXAMPLE_HEADER.REQUEST_MESSAGE_PAYLOAD.REQUEST_MESSAGE_SIGNATURE"
    }
  },
  "response": {
    "protocol_id": "BRIARWOOD-INQUIRY/1.0",
    "message_type": "inquiry_response",
    "inquiry_id": "inq_example_01",
    "node_id": "node.example:responder",
    "resource_id": "resource.example:availability-01",
    "availability_state": "unavailable",
    "valid_until_utc": "2026-08-27T20:07:00Z",
    "next_action": "select_authorized_referral",
    "referral_state": "offered",
    "referral_offer": {
      "node_id": "node.example:authorized-peer",
      "inquiry_endpoint": "https://authorized-peer.example/agent/inquiry",
      "authorization_reference": "policy.example:referral-disclosure-01",
      "disclosure_scope": "single_inquiry",
      "valid_until_utc": "2026-08-27T20:07:00Z"
    },
    "popcorn_anchor": {
      "anchor_id": "pca_example_response",
      "node_id": "767-2676.com",
      "protocol_id": "POPCORN/1.0",
      "time_utc": "2026-08-27T20:05:01.000Z",
      "valid_until_utc": "2026-08-27T20:05:31.000Z",
      "evidence_scope": "bearer_temporal_evidence",
      "verification_key_set_url": "https://767-2676.com/.well-known/popcorn-keys.json",
      "compact_jws": "EXAMPLE_HEADER.RESPONSE_ANCHOR_PAYLOAD.RESPONSE_ANCHOR_SIGNATURE"
    },
    "message_attestation": {
      "format": "JWS",
      "algorithm": "ES256",
      "key_id": "node-b-example-key-01",
      "verification_key_set_url": "https://node-b.example/.well-known/keys.json",
      "payload_serialization": "RFC8785-JCS",
      "payload_scope": "containing_message_without_message_attestation",
      "compact_jws": "EXAMPLE_HEADER.RESPONSE_MESSAGE_PAYLOAD.RESPONSE_MESSAGE_SIGNATURE"
    }
  },
  "verification_sequence": [
    "verify_request_message_attestation",
    "verify_request_popcorn_anchor",
    "validate_execution_window_utc",
    "apply_responder_local_policy",
    "verify_response_message_attestation",
    "verify_response_popcorn_anchor",
    "enforce_response_valid_until_utc",
    "select_authorized_referral_or_terminate"
  ],
  "storage_contract": {
    "storage_scope": "participant_local",
    "popcorn_stores_exchange": false,
    "global_inquiry_registry": false,
    "global_availability_registry": false,
    "retained_records": [
      "signed_inquiry_request",
      "signed_inquiry_response",
      "verified_popcorn_receipts",
      "participant_local_decision_receipt"
    ],
    "cleared_ephemeral_state": [
      "retry_counter",
      "transient_route_state",
      "payment_proof",
      "unselected_referral_candidates"
    ]
  }
}
