{
  "repo": "tidbcloud/cloud-storage-engine",
  "binary": "tikv-worker",
  "binary_path": "cmd/tikv-worker/src/main.rs",
  "dependencies": {
    "Runtime TikvWorker.Run": {
      "infrastructure": {
        "pd": {
          "conditions": [
            "When the worker joins the cluster runtime"
          ],
          "operations": [
            {
              "operation": "CLUSTER COORDINATION",
              "trigger": "Connect to PD and initialize the worker runtime",
              "conditions": [
                "The worker starts"
              ],
              "implementation": "pd_client::RpcClient and worker config bootstrap in cmd/tikv-worker/src/main.rs"
            }
          ]
        },
        "filesystem": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "READ / WRITE DATA FILES",
              "trigger": "Load config and operate worker data directories",
              "conditions": [
                "The worker starts"
              ],
              "implementation": "config parsing and canonicalize_path() in cmd/tikv-worker/src/main.rs"
            }
          ]
        }
      },
      "services": []
    }
  }
}
