{
  "repo": "tidbcloud/infra-api",
  "binary": "audit",
  "binary_path": "cmd/audit/main.go",
  "dependencies": {
    "CLI audit precheck": {
      "infrastructure": {
        "object_storage": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Push empty probe file",
              "trigger": "Validate remote object storage permissions",
              "implementation": "Precheck command object storage probe"
            }
          ]
        }
      },
      "services": []
    },
    "Runtime AuditCLI.Server": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Watch config and rotate or clean local audit logs",
              "trigger": "Run the long-lived audit worker",
              "implementation": "Server path over local audit log directory"
            }
          ]
        },
        "object_storage": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Push rotated log files",
              "trigger": "Ship processed audit logs",
              "implementation": "Server path object storage uploader"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /metrics": {
      "infrastructure": {},
      "services": []
    }
  }
}
