{
  "repo": "tidbcloud/core-svc",
  "binary": "server",
  "binary_path": "svc/cmd/server/main.go",
  "dependencies": {
    "CoreSvcLifecycle.BuildRootCommand": {
      "infrastructure": {
        "cli_runtime": {
          "conditions": [
            "Always before rootCmd.Execute()"
          ],
          "operations": [
            {
              "operation": "REGISTER COMMANDS",
              "trigger": "Build the root Cobra command and attach serve plus utility subcommands",
              "conditions": [
                "Always during process startup"
              ],
              "implementation": "newRootCmd() -> cmd.AddCommand(serveCmd, newMigrateCidrCmd(), newRerunProjectMeteringCmd(), newRepairServerlessDelegateUserCmd(), newScaleClusterCmd(), printErrCode)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.ParseFlags": {
      "infrastructure": {
        "cli_runtime": {
          "conditions": [
            "Always before cobra.OnInitialize and subcommand execution"
          ],
          "operations": [
            {
              "operation": "PARSE FLAGS",
              "trigger": "Parse the persistent config-path flag and the selected subcommand arguments",
              "conditions": [
                "Always when rootCmd.Execute() runs"
              ],
              "implementation": "rootCmd.PersistentFlags().StringVar(&configPath, \"config-path\", ...); rootCmd.Execute()"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.InitConfig": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always before cobra.OnInitialize continues into setup()"
          ],
          "operations": [
            {
              "operation": "READ FILE",
              "trigger": "Load the core-svc config YAML selected by --config-path",
              "conditions": [
                "configPath resolves to a readable file"
              ],
              "implementation": "config.InitConfig(configPath)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.InitTiInf": {
      "infrastructure": {
        "grpc_runtime": {
          "conditions": [
            "Always during setup()"
          ],
          "operations": [
            {
              "operation": "INITIALIZE",
              "trigger": "Parse the TiInf config and initialize the shared TiInf runtime with interceptors and recovery",
              "conditions": [
                "tiinf.ParseConfigFromFile(configPath) succeeds"
              ],
              "implementation": "tiinf.ParseConfigFromFile(configPath); inf.Init(...)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.RegisterMetricsController": {
      "infrastructure": {
        "prometheus": {
          "conditions": [
            "Always during setup()"
          ],
          "operations": [
            {
              "operation": "REGISTER HANDLER",
              "trigger": "Expose the controller-runtime registry at /metrics_controller on the default mux",
              "conditions": [
                "Always before inf.Run()"
              ],
              "implementation": "http.Handle(\"/metrics_controller\", promhttp.InstrumentMetricHandler(controllerMetrics.Registry, ...))"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.SetupDI": {
      "infrastructure": {
        "local_runtime": {
          "conditions": [
            "Always during setup() after TiInf initialization"
          ],
          "operations": [
            {
              "operation": "INITIALIZE DEPENDENCIES",
              "trigger": "Build the dependency graph for controllers, workers, facades, repositories, and manual commands",
              "conditions": [
                "Always before worker loops or gRPC registration use injected services"
              ],
              "implementation": "setupDI() -> controller.InitDependencies()"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.WarmupKms": {
      "infrastructure": {
        "background_runtime": {
          "conditions": [
            "Always during setup()"
          ],
          "operations": [
            {
              "operation": "START WARMUP",
              "trigger": "Warm up the AWS KMS helper asynchronously before request traffic reaches KMS-backed paths",
              "conditions": [
                "Always after setupDI()"
              ],
              "implementation": "warmup() -> go aws.WarmupKmsSvc()"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.RegisterCoreService": {
      "infrastructure": {},
      "services": [
        {
          "name": "server-registered-services",
          "target_interface": "CoreService gRPC server",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "Only when enableApiService() == true"
          ],
          "operations": [
            {
              "operation": "REGISTER",
              "trigger": "Register CoreService on the shared TiInf gRPC server",
              "conditions": [
                "Only in API_SERVICE or all mode"
              ],
              "implementation": "core.RegisterCoreServiceServer(inf.GrpcServer(), &controller.CoreController{})"
            }
          ]
        }
      ]
    },
    "CoreSvcLifecycle.RunDBMigrate": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Only when enableWorker() == true"
          ],
          "operations": [
            {
              "operation": "MIGRATE",
              "trigger": "Run DB migrations before worker loops start",
              "conditions": [
                "Only in WORKER or all mode"
              ],
              "implementation": "util.DiCall(func(db *gorm.DB) error { return migrate.RunCoreMigrate(db) })"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartCronWorker": {
      "infrastructure": {
        "background_runtime": {
          "conditions": [
            "Only when enableWorker() == true"
          ],
          "operations": [
            {
              "operation": "START",
              "trigger": "Start the GlobalWorker scheduler",
              "conditions": [
                "Only in WORKER or all mode"
              ],
              "implementation": "util.DiCall(func(w *controller.GlobalWorker) { w.Start() })"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartDBSubscriber": {
      "infrastructure": {
        "background_runtime": {
          "conditions": [
            "Only when enableWorker() == true"
          ],
          "operations": [
            {
              "operation": "START",
              "trigger": "Start the SubscriberMgr background loop",
              "conditions": [
                "Only in WORKER or all mode"
              ],
              "implementation": "util.DiCall(func(m *controller.SubscriberMgr) { m.Start() })"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.RegisterEventbusConsumers": {
      "infrastructure": {
        "eventbus": {
          "conditions": [
            "Only when enableWorker() == true"
          ],
          "operations": [
            {
              "operation": "REGISTER CONSUMERS",
              "trigger": "Register eventbus consumers before the eventbus transport starts",
              "conditions": [
                "Only in WORKER or all mode"
              ],
              "implementation": "controller.RegisterEventbusConsumers(eventbus)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartInfraAPIWatcher": {
      "infrastructure": {
        "kubernetes_api": {
          "conditions": [
            "Only when enableWorker() == true"
          ],
          "operations": [
            {
              "operation": "START WATCHER",
              "trigger": "Create the optional infra-api watcher after worker-mode startup has initialized the runtime",
              "conditions": [
                "Only in WORKER or all mode"
              ],
              "implementation": "util.DiCall(controller.NewInfraApiWatcher)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartK8sControllerManager": {
      "infrastructure": {
        "kubernetes_api": {
          "conditions": [
            "Always after DI and eventbus/controller wiring complete"
          ],
          "operations": [
            {
              "operation": "RUN MANAGER",
              "trigger": "Start the controller-runtime manager used by infra-api controllers",
              "conditions": [
                "Always during serve-mode setup"
              ],
              "implementation": "facade_imp.RunK8sControllerManager(k8sControllerMgr)"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartEventbus": {
      "infrastructure": {
        "eventbus": {
          "conditions": [
            "Always after producers and consumers are initialized"
          ],
          "operations": [
            {
              "operation": "RUN",
              "trigger": "Start the shared eventbus transport for both worker and API modes",
              "conditions": [
                "Always during serve-mode setup"
              ],
              "implementation": "eventbus.Run()"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcLifecycle.StartServeRuntime": {
      "infrastructure": {
        "grpc_listener": {
          "conditions": [
            "Only when the serve subcommand is selected",
            "tiinf.grpc.enable == true"
          ],
          "operations": [
            {
              "operation": "RUN",
              "trigger": "Start the unified TiInf runtime for the serve subcommand",
              "conditions": [
                "Always after setup() succeeds"
              ],
              "implementation": "inf.Run()"
            }
          ]
        },
        "http_listener": {
          "conditions": [
            "Only when tiinf.metrics.enable == true"
          ],
          "operations": [
            {
              "operation": "LISTEN",
              "trigger": "Expose the metrics listener configured by the TiInf metrics port",
              "conditions": [
                "Current local configs set tiinf.metrics.enable=true and port=20001"
              ],
              "implementation": "TiInf metrics listener configured via tiinf.metrics.port"
            }
          ]
        }
      },
      "services": []
    },
    "CoreSvcAdminCommands.MigrateCIDR": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-command",
          "target_interface": "manually.MigrateCidrSvc.Migrate",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "Only when the migrate-cidr subcommand is selected"
          ],
          "operations": [
            {
              "operation": "Migrate",
              "trigger": "Run the CIDR migration helper through DI",
              "conditions": [
                "Always after cobra.OnInitialize and setup() succeed"
              ],
              "implementation": "util.DiCall(func(svc *manually.MigrateCidrSvc) error { return svc.Migrate(context.Background()) })"
            }
          ]
        }
      ]
    },
    "CoreSvcAdminCommands.RerunProjectMetering": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-command",
          "target_interface": "measure.ProjectMeteringRecorder.Rerun",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "Only when the rerun-project-metering subcommand is selected"
          ],
          "operations": [
            {
              "operation": "Rerun",
              "trigger": "Re-run project metering for the provided IDs",
              "conditions": [
                "Only after all CLI args parse as uint64 IDs",
                "dryrun flag changes write behavior"
              ],
              "implementation": "util.DiCall(func(svc measure.ProjectMeteringRecorder) error { return svc.Rerun(context.Background(), dryrun, meteringIds) })"
            }
          ]
        }
      ]
    },
    "CoreSvcAdminCommands.RepairServerlessDelegateUser": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-command",
          "target_interface": "manually.ServerlessDelegateUserRepairer.Repair",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "Only when the repair-serverless-delegate-user subcommand is selected"
          ],
          "operations": [
            {
              "operation": "Repair",
              "trigger": "Recreate delegate users for the selected serverless clusters",
              "conditions": [
                "Always after setup() succeeds",
                "force flag controls whether existing delegate users are recreated"
              ],
              "implementation": "util.DiCall(func(r *manually.ServerlessDelegateUserRepairer) error { return r.Repair(ctx, params) })"
            }
          ]
        }
      ]
    },
    "CoreSvcAdminCommands.ScaleCluster": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-command",
          "target_interface": "manually.ScaleClusterSvc.Scale",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "Only when the scale-cluster subcommand is selected"
          ],
          "operations": [
            {
              "operation": "Scale",
              "trigger": "Scale TiDB, TiKV, and TiFlash settings for a single cluster through the manual service",
              "conditions": [
                "Exactly one cluster ID argument must be provided",
                "All numeric flag values must parse successfully before the service call"
              ],
              "implementation": "util.DiCall(func(r *manually.ScaleClusterSvc) error { return r.Scale(ctx, params) })"
            }
          ]
        }
      ]
    },
    "CoreSvcAdminCommands.PrintErrCode": {
      "infrastructure": {
        "stdout": {
          "conditions": [
            "Only when the print-errcode subcommand is selected"
          ],
          "operations": [
            {
              "operation": "WRITE",
              "trigger": "Print all registered custom biz error codes and exit",
              "conditions": [
                "Always after cobra.OnInitialize and setup() succeed"
              ],
              "implementation": "bizerr.PrintAllCustomErrCode()"
            }
          ]
        }
      },
      "services": []
    },
    "CoreService.SyncInfraProfile": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Sync node profiles",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Sync node profiles"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Sync tier units",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Sync tier units"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Sync SKUs",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Sync SKUs"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "profile.SyncInfraProfileSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *profile.SyncInfraProfileSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CheckSkuSynced": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "profileQuery.CheckSkuSyncedSvc.Check",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Check",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *profileQuery.CheckSkuSyncedSvc { ... Check(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpsertProfileByYaml": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "profile.UpdateProfileByYamlSvc.Upsert",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Upsert",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *profile.UpdateProfileByYamlSvc { ... Upsert(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListNodeProfiles4Tenant": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "profileQuery.ListProfiles4TenantSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *profileQuery.ListProfiles4TenantSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.BatchGetTiers": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "profileQuery.BatchGetTiersSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *profileQuery.BatchGetTiersSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListCloudProviders": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "providerQuery.ListCloudProvidersSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *providerQuery.ListCloudProvidersSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.QueryCloudProviders": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "providerQuery.QueryCloudProvidersSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *providerQuery.QueryCloudProvidersSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListCloudRegions": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "providerQuery.ListCloudRegionsSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *providerQuery.ListCloudRegionsSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateIamRole": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "provider.CreateIamRoleSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *provider.CreateIamRoleSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteIamRole": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "provider.DeleteIamRoleSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *provider.DeleteIamRoleSvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListIamRoles": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "providerQuery.ListIamRolesSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *providerQuery.ListIamRolesSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateAwsCmek": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "cmekCmd.CreateAwsCmekSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *cmekCmd.CreateAwsCmekSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetAwsCmek": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "cmekQuery.GetAwsCmekSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *cmekQuery.GetAwsCmekSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetAwsAccount": {
      "infrastructure": {
        "config_runtime": {
          "conditions": [
            "feature_gate.FeatureEnabled(constant.AwsCmek, req.TenantId, req.ProjectId, \"\") == true",
            "config.Global() != nil",
            "config.Global().CMEKConfig.AWSAccount != \"\""
          ],
          "operations": [
            {
              "operation": "READ CONFIG",
              "trigger": "Return the statically configured AWS account for CMEK-enabled tenants or projects",
              "conditions": [
                "Only when the AWS CMEK feature gate is enabled for the request scope"
              ],
              "implementation": "feature_gate.FeatureEnabled(...); config.Global().CMEKConfig.AWSAccount"
            }
          ]
        }
      },
      "services": []
    },
    "CoreService.GetClusterName": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.GetClusterNameSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.GetClusterNameSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ChangeClusterPasswd": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.ChangeClusterPasswdSvc.Change",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Change",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.ChangeClusterPasswdSvc { ... Change(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateClusterTrafficFilter": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.UpdateClusterTrafficFilterSvc.Update",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Update",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.UpdateClusterTrafficFilterSvc { ... Update(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateCluster": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "cluster metadata CRUD",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "cluster metadata CRUD"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "component configuration",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "component configuration"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "network CIDR allocation",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "network CIDR allocation"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Create Cluster CR via infra-api",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create Cluster CR via infra-api"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateClusterSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateClusterSvc { ... Execute(...) ... })"
            }
          ]
        },
        {
          "name": "serverless-service",
          "target_interface": "SetSpendLimit",
          "target_repo": "tidbcloud/serverless-service",
          "operation_type": "grpc",
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "SetSpendLimit",
              "trigger": "serverless-service:SetSpendLimit (conditional, for serverless clusters)",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "serverless-service:SetSpendLimit (conditional, for serverless clusters)"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteCluster": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Update cluster status to deleted",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Update cluster status to deleted"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Final backup records",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Final backup records"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Delete Cluster CR via infra-api",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Delete Cluster CR via infra-api"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.DeleteClusterSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.DeleteClusterSvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateClusterSnapshot": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateClusterSnapshotSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateClusterSnapshotSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListClusterSnapshots": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.ListClusterSnapshotsSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.ListClusterSnapshotsSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ScaleCluster": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Update component configuration",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Update component configuration"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Tier unit selection",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Tier unit selection"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Update Cluster CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Update Cluster CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.ScaleClusterSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.ScaleClusterSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.PauseCluster": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Update cluster status",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Update cluster status"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Pause Cluster CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Pause Cluster CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.PauseClusterSvc.Pause",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Pause",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.PauseClusterSvc { ... Pause(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ResumeCluster": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Update cluster status",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Update cluster status"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Resume Cluster CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Resume Cluster CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.ResumeClusterSvc.Resume",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Resume",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.ResumeClusterSvc { ... Resume(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ClearCluster": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.ClearClusterSvc.Clear",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Clear",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.ClearClusterSvc { ... Clear(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.SetClusterReadonly": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.SetClusterReadonlySvc.Set",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Set",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.SetClusterReadonlySvc { ... Set(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CalcClusterFee": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.CalcClusterFeeSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.CalcClusterFeeSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListClusters": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Query clusters with filters",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Query clusters with filters"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Pagination and sorting",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Pagination and sorting"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.ListClustersSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.ListClustersSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CountClusters": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.CountClustersSvc.Count",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Count",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.CountClustersSvc { ... Count(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetClusterConfidentialInfo": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.GetClusterConfidentialInfoSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.GetClusterConfidentialInfoSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateXAccountDeploy": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateXAccountDeploySvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateXAccountDeploySvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListXAccountDeploy": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "cluster.ListXAccountDeploySvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *cluster.ListXAccountDeploySvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteXAccountDeploy": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.DeleteXAccountDeploySvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.DeleteXAccountDeploySvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetClusterCACertificate": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "cluster.GetClusterCACertificateSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *cluster.GetClusterCACertificateSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateClusterJob": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Create job record in metadb",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create job record in metadb"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateClusterJobSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateClusterJobSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteClusterJob": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.DeleteClusterJobSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.DeleteClusterJobSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.IsClusterJobRegistered": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.IsClusterJobRegisteredSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.IsClusterJobRegisteredSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListClusterJobs": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.ListClusterJobsSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.ListClusterJobsSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListRegionCIDROfProject": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.ListRegionCIDROfProjectSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.ListRegionCIDROfProjectSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateClusterConn": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateClusterConnSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateClusterConnSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateNetworkPeer": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Create VPC peering record",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create VPC peering record"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Create NetworkPeer CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create NetworkPeer CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.CreateNetworkPeerSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.CreateNetworkPeerSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteNetworkPeer": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.DeleteNetworkPeerSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.DeleteNetworkPeerSvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListNetworkPeer": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.ListNetworkPeerSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.ListNetworkPeerSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreatePrivateLinkService": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "PrivateLink service records",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "PrivateLink service records"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Create PrivateLink CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create PrivateLink CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.CreatePrivateLinkServiceSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.CreatePrivateLinkServiceSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeletePrivateLinkService": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.DeletePrivateLinkServiceSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.DeletePrivateLinkServiceSvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetPrivateLinkService": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.GetPrivateLinkServiceSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.GetPrivateLinkServiceSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreatePrivateLinkEndpoint": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.CreatePrivateLinkEndpointSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.CreatePrivateLinkEndpointSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeletePrivateLinkEndpoint": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.DeletePrivateLinkEndpointSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.DeletePrivateLinkEndpointSvc { ... Delete(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListPrivateLinkEndpoints": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.ListPrivateLinkEndpointsSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.ListPrivateLinkEndpointsSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CleanClusters": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-service-stub",
          "target_interface": "UnimplementedCoreServiceServer.CleanClusters",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "stub",
          "conditions": [
            "No override exists on controller.CoreController"
          ],
          "operations": [
            {
              "operation": "RETURN UNIMPLEMENTED",
              "trigger": "The gRPC method is registered in the proto surface but falls back to the embedded unimplemented stub",
              "conditions": [
                "Always until controller.CoreController adds a real CleanClusters method"
              ],
              "implementation": "core.UnimplementedCoreServiceServer.CleanClusters(...) -> status.Errorf(codes.Unimplemented, ...)"
            }
          ]
        }
      ]
    },
    "CoreService.CleanProjectResource": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-service-stub",
          "target_interface": "UnimplementedCoreServiceServer.CleanProjectResource",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "stub",
          "conditions": [
            "No override exists on controller.CoreController"
          ],
          "operations": [
            {
              "operation": "RETURN UNIMPLEMENTED",
              "trigger": "The gRPC method is registered in the proto surface but falls back to the embedded unimplemented stub",
              "conditions": [
                "Always until controller.CoreController adds a real CleanProjectResource method"
              ],
              "implementation": "core.UnimplementedCoreServiceServer.CleanProjectResource(...) -> status.Errorf(codes.Unimplemented, ...)"
            }
          ]
        }
      ]
    },
    "CoreService.CleanTenantResource": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-service-stub",
          "target_interface": "UnimplementedCoreServiceServer.CleanTenantResource",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "stub",
          "conditions": [
            "No override exists on controller.CoreController"
          ],
          "operations": [
            {
              "operation": "RETURN UNIMPLEMENTED",
              "trigger": "The gRPC method is registered in the proto surface but falls back to the embedded unimplemented stub",
              "conditions": [
                "Always until controller.CoreController adds a real CleanTenantResource method"
              ],
              "implementation": "core.UnimplementedCoreServiceServer.CleanTenantResource(...) -> status.Errorf(codes.Unimplemented, ...)"
            }
          ]
        }
      ]
    },
    "CoreService.CreateDBUser": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Cluster connection info",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Cluster connection info"
            }
          ]
        }
      },
      "services": [
        {
          "name": "account-service",
          "target_interface": "GetDBUsers",
          "target_repo": "tidbcloud/account",
          "operation_type": "grpc",
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "GetDBUsers",
              "trigger": "account-service:GetDBUsers (for initial users)",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "account-service:GetDBUsers (for initial users)"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateDBUser": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userrole.UpdateUserSvc.Update",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.UpdateDBUser and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Update",
              "trigger": "Delegate the RPC to the DB user update service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userrole.UpdateUserSvc) error { err := svc.Update(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err) }; return err })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteDBUser": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userrole.DeleteUserSvc.Delete",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.DeleteDBUser and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Delete",
              "trigger": "Delegate the RPC to the DB user deletion service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userrole.DeleteUserSvc) error { err := svc.Delete(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err) }; return err })"
            }
          ]
        }
      ]
    },
    "CoreService.GetDBUser": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userroleQuery.GetUserSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.GetDBUser and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the DB user query service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userroleQuery.GetUserSvc) error { user, err := svc.Get(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err); return err }; resp.User = user; return nil })"
            }
          ]
        }
      ]
    },
    "CoreService.IsDBUserExisting": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userroleQuery.IsUserExistingSvc.Check",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.IsDBUserExisting and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Check",
              "trigger": "Delegate the RPC to the DB user existence check service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userroleQuery.IsUserExistingSvc) error { user, err := svc.Check(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err); return err }; resp.Existing = user; return nil })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateDBRole": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userrole.CreateRoleSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.CreateDBRole and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the DB role creation service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userrole.CreateRoleSvc) error { err := svc.Create(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err) }; return err })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateDBRole": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userrole.UpdateRoleSvc.Update",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.UpdateDBRole and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Update",
              "trigger": "Delegate the RPC to the DB role update service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userrole.UpdateRoleSvc) error { err := svc.Update(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err) }; return err })"
            }
          ]
        }
      ]
    },
    "CoreService.ListDBUsers": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userroleQuery.ListUserSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.ListDBUsers and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the DB user listing service and convert cluster-proxy errors into ProxyError when needed",
              "conditions": [
                "ProxyError is filled only when convert2ProxyError(err) returns a non-nil cluster proxy error"
              ],
              "implementation": "util.DiCall(func(svc *userroleQuery.ListUserSvc) error { resultMap, dbUsers, err := svc.List(ctx, req); if err != nil { resp.ProxyError = convert2ProxyError(err); return err }; resp.ResultMap = *resultMap; resp.DbUsers = dbUsers; return nil })"
            }
          ]
        }
      ]
    },
    "CoreService.SetClusterAuthPubKey": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "userrole.SetAuthPubKeySvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller_userrole.SetClusterAuthPubKey and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the cluster auth public-key persistence service",
              "conditions": [
                "Always after setup() and request validation succeed"
              ],
              "implementation": "util.DiCall(func(svc *userrole.SetAuthPubKeySvc) error { return svc.Create(ctx, req) })"
            }
          ]
        }
      ]
    },
    "CoreService.GetMaintenanceWindowByProjectID": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Query maintenance window config",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Query maintenance window config"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowQuery.GetMaintenanceWindowSvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowQuery.GetMaintenanceWindowSvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateMaintenanceWindow": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.UpdateMaintenanceWindowSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.UpdateMaintenanceWindowSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateMaintenanceTask": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Create maintenance task",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create maintenance task"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Create task executions for clusters",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create task executions for clusters"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.CreateMaintenanceTaskSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.CreateMaintenanceTaskSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.QueryMaintenanceTasks": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowQuery.QueryMaintenanceTasksSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowQuery.QueryMaintenanceTasksSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CountMaintenanceTasks": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowQuery.CountMaintenanceTasksSvc.Count",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Count",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowQuery.CountMaintenanceTasksSvc { ... Count(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeferMaintenanceTask": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.DeferMaintenanceTaskSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.DeferMaintenanceTaskSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateMaintenanceTaskStatus": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.UpdateMaintenanceTaskStatusSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.UpdateMaintenanceTaskStatusSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.QueryMaintenanceTaskExecutions": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowQuery.QueryMaintenanceTaskExecutionsSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowQuery.QueryMaintenanceTaskExecutionsSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateMaintenanceTaskExecutionStatus": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.UpdateMaintenanceTaskExecutionStatusSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.UpdateMaintenanceTaskExecutionStatusSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.SyncMaintenanceWindow": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "maintenanceWindowCmd.SyncMaintenanceWindowSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *maintenanceWindowCmd.SyncMaintenanceWindowSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetClusterTopology": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "opsQuery.GetClusterTopologySvc.Get",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Get",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *opsQuery.GetClusterTopologySvc { ... Get(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ExecuteCtlCommand": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "opsCmd.ExecuteCtlCommandSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *opsCmd.ExecuteCtlCommandSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListTenantQuota": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.QueryTenantQuotaSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.QueryTenantQuotaSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateTenantQuota": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.UpdateTenantQuotaSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.UpdateTenantQuotaSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateAccessPoint": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Create work pool record",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create work pool record"
            }
          ]
        },
        "kubernetes_api": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "K8S ACCESS",
              "trigger": "Create AccessPoint CR",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create AccessPoint CR"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.CreateWorkPoolSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.CreateWorkPoolSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateAccessPoint": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.UpdateWorkPoolSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.UpdateWorkPoolSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteAccessPoint": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.DeleteWorkPoolSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.DeleteWorkPoolSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.ListAccessPointPrivateLinkEndpoints": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.ListWorkPoolPrivateLinkEndpointsSvc.List",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "List",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.ListWorkPoolPrivateLinkEndpointsSvc { ... List(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.QueryAccessPoints": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.QueryWorkPoolsSvc.Query",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Query",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.QueryWorkPoolsSvc { ... Query(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CreateCidr": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Create CIDR record",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Create CIDR record"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Validate CIDR overlap",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Validate CIDR overlap"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.CreateCidrSvc.Create",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Create",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.CreateCidrSvc { ... Create(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.QueryCidrs": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.QueryCidrsSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.QueryCidrsSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.UpdateCidr": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.UpdateCidrSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.UpdateCidrSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.DeleteCidr": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkCmd.DeleteCidrSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkCmd.DeleteCidrSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.GetDefaultCidr": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "networkQuery.GetDefaultCIDRSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *networkQuery.GetDefaultCIDRSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.SimulatedSelectTierUnit": {
      "infrastructure": {},
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterCmd.ScaleClusterSvc.SimulatedExecute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "SimulatedExecute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterCmd.ScaleClusterSvc { ... SimulatedExecute(...) ... })"
            }
          ]
        }
      ]
    },
    "CoreService.CountBillableClusters": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Source-backed legacy summary; refine per implementation on the next pass"
          ],
          "operations": [
            {
              "operation": "DB ACCESS",
              "trigger": "Query billable clusters count from metadb",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Query billable clusters count from metadb"
            },
            {
              "operation": "DB ACCESS",
              "trigger": "Uses clusterRepo.AlivePaidClustersCountIn",
              "conditions": [
                "See method implementation for exact branching"
              ],
              "implementation": "Uses clusterRepo.AlivePaidClustersCountIn"
            }
          ]
        }
      },
      "services": [
        {
          "name": "core-svc-local-service",
          "target_interface": "clusterQuery.CountBillableClustersSvc.Execute",
          "target_repo": "tidbcloud/core-svc",
          "operation_type": "internal",
          "conditions": [
            "The RPC reached controller.CoreController and util.DiCall resolved the implementation successfully"
          ],
          "operations": [
            {
              "operation": "Execute",
              "trigger": "Delegate the RPC to the concrete application service implementation inside svc/core_ctx",
              "conditions": [
                "See the delegated service implementation for downstream branching and side effects"
              ],
              "implementation": "util.DiCall(func(...) *clusterQuery.CountBillableClustersSvc { ... Execute(...) ... })"
            }
          ]
        }
      ]
    },
    "HTTP GET /metrics_controller": {
      "infrastructure": {
        "prometheus": {
          "conditions": [
            "Only when the TiInf metrics listener is enabled and serving the default mux"
          ],
          "operations": [
            {
              "operation": "SERVE",
              "trigger": "Expose the controller-runtime metrics registry",
              "conditions": [
                "Current local configs set tiinf.metrics.enable=true"
              ],
              "implementation": "http.Handle(\"/metrics_controller\", promhttp.InstrumentMetricHandler(controllerMetrics.Registry, ...))"
            }
          ]
        }
      },
      "services": []
    }
  }
}
