{
  "bundle_type": "two_adapter_pilot_fixture",
  "bundle_version": "1.1",
  "pilot_name": "Controlled Transport Record → two demo contracts",
  "execution_scope": "demonstration_fixture_local",
  "source_schema_version": "controlled-transport-record@1.0",
  "source_catalog": [
    { "source_path": "shipment.id", "canonical_field": "shipment_identifier", "field_owner": "Transport IT", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-shipment@3.2", "conflict_policy": "reject_conflict" },
    { "source_path": "document.reference", "canonical_field": "transport_document_reference", "field_owner": "Transport Documentation", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-document@3.2", "conflict_policy": "prefer_authoritative" },
    { "source_path": "parties.consignor.name", "canonical_field": "consignor_name", "field_owner": "Master Data", "source_system": "ERP", "authoritative_system": "ERP", "schema_version": "erp-party@2.8", "conflict_policy": "prefer_authoritative" },
    { "source_path": "parties.consignee.name", "canonical_field": "consignee_name", "field_owner": "Master Data", "source_system": "ERP", "authoritative_system": "ERP", "schema_version": "erp-party@2.8", "conflict_policy": "prefer_authoritative" },
    { "source_path": "route.pickup.location", "canonical_field": "pickup_location", "field_owner": "Dispatch", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-route@3.2", "conflict_policy": "manual_review" },
    { "source_path": "route.delivery.location", "canonical_field": "delivery_location", "field_owner": "Dispatch", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-route@3.2", "conflict_policy": "manual_review" },
    { "source_path": "dates.pickup", "canonical_field": "planned_pickup_at", "field_owner": "Transport Operations", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-schedule@3.2", "conflict_policy": "prefer_authoritative" },
    { "source_path": "goods.gross_mass_kg", "canonical_field": "goods_gross_mass_kg", "field_owner": "Warehouse Operations", "source_system": "WMS", "authoritative_system": "WMS", "schema_version": "wms-dispatch@5.1", "conflict_policy": "reject_conflict" },
    { "source_path": "goods.package_count", "canonical_field": "package_count", "field_owner": "Warehouse Operations", "source_system": "WMS", "authoritative_system": "WMS", "schema_version": "wms-dispatch@5.1", "conflict_policy": "reject_conflict" },
    { "source_path": "transport.mode", "canonical_field": "transport_mode", "field_owner": "Transport Operations", "source_system": "TMS", "authoritative_system": "TMS", "schema_version": "tms-transport@3.2", "conflict_policy": "prefer_authoritative" }
  ],
  "source_record": {
    "shipment": {
      "id": "SHP-2026-00482"
    },
    "document": {
      "reference": "ECMR-PL-DE-0482"
    },
    "parties": {
      "consignor": {
        "name": "Example Sender sp. z o.o."
      },
      "consignee": {
        "name": "Example Receiver GmbH"
      }
    },
    "route": {
      "pickup": {
        "location": "Poznań, PL"
      },
      "delivery": {
        "location": "Berlin, DE"
      }
    },
    "dates": {
      "pickup": "2026-09-07T08:00:00+02:00"
    },
    "goods": {
      "description": "Części maszynowe — dane demonstracyjne",
      "gross_mass_kg": 1280.5,
      "package_count": 8
    },
    "transport": {
      "mode": "road"
    }
  },
  "adapters": [
    {
      "id": "target_contract_a_demo",
      "name": "Target Contract A — demo",
      "evidence_scope": "declared_fixture",
      "provider_api_version": "demo-a@2026-08",
      "adapter_version": "adapter-a@0.1.0",
      "mapping_version": "mapping-a@1.0.0",
      "lifecycle": ["create", "update", "share", "status", "revoke"],
      "mappings": [
        { "source_path": "shipment.id", "target_path": "consignment.identifier", "transform": "identity", "required": true },
        { "source_path": "document.reference", "target_path": "document.reference", "transform": "identity", "required": true },
        { "source_path": "parties.consignor.name", "target_path": "shipper.name", "transform": "identity", "required": true },
        { "source_path": "parties.consignee.name", "target_path": "receiver.name", "transform": "identity", "required": true },
        { "source_path": "route.pickup.location", "target_path": "route.origin.label", "transform": "identity", "required": true },
        { "source_path": "route.delivery.location", "target_path": "route.destination.label", "transform": "identity", "required": true },
        { "source_path": "dates.pickup", "target_path": "schedule.pickupAt", "transform": "date_iso", "required": true },
        { "source_path": "goods.gross_mass_kg", "target_path": "cargo.grossMassKg", "transform": "identity", "required": true },
        { "source_path": "goods.package_count", "target_path": "cargo.packageCount", "transform": "identity", "required": true },
        { "source_path": "transport.mode", "target_path": "transport.mode", "transform": "identity", "required": true }
      ]
    },
    {
      "id": "target_contract_b_demo",
      "name": "Target Contract B — demo",
      "evidence_scope": "declared_fixture",
      "provider_api_version": "demo-b@3.1",
      "adapter_version": "adapter-b@0.1.0",
      "mapping_version": "mapping-b@1.0.0",
      "lifecycle": ["create", "update", "status"],
      "mappings": [
        { "source_path": "shipment.id", "target_path": "transportRef", "transform": "identity", "required": true },
        { "source_path": "document.reference", "target_path": "documentRef", "transform": "identity", "required": true },
        { "source_path": "parties.consignor.name", "target_path": "parties.sender.displayName", "transform": "identity", "required": true },
        { "source_path": "parties.consignee.name", "target_path": "parties.recipient.displayName", "transform": "identity", "required": true },
        { "source_path": "route.pickup.location", "target_path": "stops.pickup.label", "transform": "identity", "required": true },
        { "source_path": "route.delivery.location", "target_path": "stops.delivery.label", "transform": "identity", "required": true },
        { "source_path": "dates.pickup", "target_path": "plannedPickup", "transform": "date_iso", "required": true },
        { "source_path": "goods.gross_mass_kg", "target_path": "cargo.grossWeight.value", "transform": "identity", "required": true },
        { "source_path": "goods.package_count", "target_path": "cargo.packages", "transform": "number_to_string", "required": true },
        { "source_path": "transport.mode", "target_path": "modeCode", "transform": "enum_map", "required": true, "map": { "road": "ROAD", "rail": "RAIL", "air": "AIR", "sea": "SEA", "inland_waterway": "IWW" } }
      ]
    }
  ],
  "fixture_notice": "Oba kontrakty są fikcyjne i służą wyłącznie do demonstracji warstwy mappingu. PASS nie potwierdza kompatybilności z rzeczywistym providerem."
}
