{
  "id": "distributed-events",
  "revision": "52615423ff5461a87601f2e0eeb53dc8e6fa5cdb5a76afc3c31dbab2ce28f97e",
  "regions": [
    {
      "id": "control",
      "label": "Control plane"
    },
    {
      "id": "data",
      "label": "Data plane"
    }
  ],
  "nodes": [
    {
      "id": "ingest",
      "label": "Admission service",
      "kind": "N19",
      "region": "control",
      "ports": [
        {
          "id": "command",
          "profile": "P03",
          "contract": "WorkCommandV1",
          "polarity": "Offer"
        },
        {
          "id": "operation",
          "profile": "P24",
          "contract": "OperationRefV1",
          "polarity": "Neutral"
        }
      ]
    },
    {
      "id": "queue",
      "label": "Durable queue",
      "kind": "N24",
      "region": "data",
      "ports": [
        {
          "id": "command",
          "profile": "P03",
          "contract": "WorkCommandV1",
          "polarity": "Require"
        },
        {
          "id": "delivery",
          "profile": "P04",
          "contract": "DeliveryV1",
          "polarity": "Offer"
        },
        {
          "id": "deliveryRef",
          "profile": "P24",
          "contract": "DeliveryRefV1",
          "polarity": "Neutral"
        }
      ]
    },
    {
      "id": "worker",
      "label": "Processing actor",
      "kind": "N05",
      "region": "data",
      "ports": [
        {
          "id": "delivery",
          "profile": "P04",
          "contract": "DeliveryV1",
          "polarity": "Require"
        },
        {
          "id": "effect",
          "profile": "P02",
          "contract": "EffectCommitV1",
          "polarity": "Require"
        },
        {
          "id": "span",
          "profile": "P24",
          "contract": "TraceV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "ledger",
      "label": "Effect ledger",
      "kind": "N21",
      "region": "data",
      "ports": [
        {
          "id": "commit",
          "profile": "P02",
          "contract": "EffectCommitV1",
          "polarity": "Offer"
        },
        {
          "id": "events",
          "profile": "P04",
          "contract": "CommittedEventV1",
          "polarity": "Offer"
        },
        {
          "id": "receipt",
          "profile": "P24",
          "contract": "ReceiptRefV1",
          "polarity": "Neutral"
        }
      ]
    },
    {
      "id": "view",
      "label": "Materialized view",
      "kind": "N22",
      "region": "data",
      "ports": [
        {
          "id": "events",
          "profile": "P04",
          "contract": "CommittedEventV1",
          "polarity": "Require"
        }
      ]
    },
    {
      "id": "trace",
      "label": "Telemetry collector",
      "kind": "N38",
      "region": "control",
      "ports": [
        {
          "id": "span",
          "profile": "P24",
          "contract": "TraceV1",
          "polarity": "Require"
        }
      ]
    }
  ],
  "relations": [
    {
      "id": "admit",
      "kind": "H02",
      "incidences": [
        {
          "node": "ingest",
          "port": "command",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "queue",
          "port": "command",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "delivery",
      "kind": "H02",
      "incidences": [
        {
          "node": "queue",
          "port": "delivery",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "worker",
          "port": "delivery",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "commit",
      "kind": "H05",
      "incidences": [
        {
          "node": "ledger",
          "port": "commit",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "worker",
          "port": "effect",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "project",
      "kind": "H02",
      "incidences": [
        {
          "node": "ledger",
          "port": "events",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "view",
          "port": "events",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "trace",
      "kind": "H04",
      "incidences": [
        {
          "node": "worker",
          "port": "span",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "trace",
          "port": "span",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "lineage",
      "kind": "H27",
      "incidences": [
        {
          "node": "ingest",
          "port": "operation",
          "role": "intent",
          "ordinal": 0
        },
        {
          "node": "queue",
          "port": "deliveryRef",
          "role": "delivery",
          "ordinal": 1
        },
        {
          "node": "ledger",
          "port": "receipt",
          "role": "effect",
          "ordinal": 2
        }
      ]
    }
  ]
}
