{
  "repo": "pingcap/balsa",
  "binary": "run",
  "binary_path": "run.py",
  "dependencies": {
    "BalsaRunCLI.Execute": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always while preparing datasets, checkpoints, or run outputs"
          ],
          "operations": [
            {
              "operation": "READ / WRITE FILES",
              "trigger": "Persist checkpoints, plans, and run artifacts",
              "conditions": [
                "Main() reaches Save/SaveText or experiment output paths"
              ],
              "implementation": "Save(); SaveText(); dataset and checkpoint path handling under run.py"
            }
          ]
        },
        "postgresql": {
          "conditions": [
            "When executing against the postgres engine"
          ],
          "operations": [
            {
              "operation": "EXECUTE QUERIES",
              "trigger": "Collect plan latencies and execution results",
              "conditions": [
                "BalsaAgent.Run() reaches query execution"
              ],
              "implementation": "postgres.ExplainAnalyzeSql(...) via ExecuteSql()"
            }
          ]
        }
      },
      "services": []
    }
  }
}
