{
  "id": "type-h18",
  "revision": "3dcd7c543cf25121538d13ccfaf222812c26e5f2f97a60c51fd421b1966ae1db",
  "regions": [
    {
      "id": "server",
      "label": "Server",
      "parent": null
    },
    {
      "id": "storage",
      "label": "Storage",
      "parent": null
    },
    {
      "id": "operations",
      "label": "Operations",
      "parent": null
    }
  ],
  "nodes": [
    {
      "id": "supervisor",
      "label": "Export worker supervisor",
      "kind": "N05",
      "region": "server",
      "ports": [
        {
          "id": "child",
          "profile": "P21",
          "contract": "ExportWorkerSupervisionV1",
          "polarity": "Offer"
        },
        {
          "id": "restart",
          "profile": "P11",
          "contract": "AdmittedWorkerRestartV1",
          "polarity": "Require"
        }
      ]
    },
    {
      "id": "worker",
      "label": "Export worker activation",
      "kind": "N06",
      "region": "server",
      "ports": [
        {
          "id": "parent",
          "profile": "P21",
          "contract": "ExportWorkerSupervisionV1",
          "polarity": "Require"
        },
        {
          "id": "failure",
          "profile": "P04",
          "contract": "ExportWorkerFailureV1",
          "polarity": "Offer"
        },
        {
          "id": "resume",
          "profile": "P02",
          "contract": "ExportJobResumeAtCutV1",
          "polarity": "Require"
        }
      ]
    },
    {
      "id": "jobs",
      "label": "Durable export authority",
      "kind": "N21",
      "region": "storage",
      "ports": [
        {
          "id": "resume",
          "profile": "P02",
          "contract": "ExportJobResumeAtCutV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "policy",
      "label": "Restart budget decision",
      "kind": "N03",
      "region": "server",
      "ports": [
        {
          "id": "failure",
          "profile": "P04",
          "contract": "ExportWorkerFailureV1",
          "polarity": "Require"
        },
        {
          "id": "restart",
          "profile": "P11",
          "contract": "AdmittedWorkerRestartV1",
          "polarity": "Offer"
        },
        {
          "id": "exhausted",
          "profile": "P04",
          "contract": "RestartBudgetExhaustedV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "review",
      "label": "Escalated failure review",
      "kind": "N20",
      "region": "operations",
      "ports": [
        {
          "id": "failure",
          "profile": "P04",
          "contract": "RestartBudgetExhaustedV1",
          "polarity": "Require"
        }
      ]
    }
  ],
  "relations": [
    {
      "id": "supervision",
      "kind": "H18",
      "incidences": [
        {
          "node": "supervisor",
          "port": "child",
          "role": "parent",
          "ordinal": 0
        },
        {
          "node": "worker",
          "port": "parent",
          "role": "child",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "failure",
      "kind": "H04",
      "incidences": [
        {
          "node": "worker",
          "port": "failure",
          "role": "publisher",
          "ordinal": 0
        },
        {
          "node": "policy",
          "port": "failure",
          "role": "subscriber",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "restart",
      "kind": "H03",
      "incidences": [
        {
          "node": "policy",
          "port": "restart",
          "role": "source",
          "ordinal": 0
        },
        {
          "node": "supervisor",
          "port": "restart",
          "role": "target",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "resume",
      "kind": "H05",
      "incidences": [
        {
          "node": "worker",
          "port": "resume",
          "role": "caller",
          "ordinal": 0
        },
        {
          "node": "jobs",
          "port": "resume",
          "role": "callee",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "escalate",
      "kind": "H04",
      "incidences": [
        {
          "node": "policy",
          "port": "exhausted",
          "role": "publisher",
          "ordinal": 0
        },
        {
          "node": "review",
          "port": "failure",
          "role": "subscriber",
          "ordinal": 0
        }
      ]
    }
  ]
}
