{
  "case_id": "top-tidb-p99-latency-nodes-in-premium-cluster-during-latest-window",
  "hook_runs": [
    {
      "args": [
        "resolve-window",
        "--cluster-id",
        "{{environment.cluster_id}}",
        "--cluster-label",
        "{{environment.cluster_label}}",
        "--local-hour",
        "11",
        "--local-minute",
        "0",
        "--duration-minutes",
        "5",
        "--step-seconds",
        "60",
        "--top-n",
        "3"
      ],
      "id": "resolve_runtime_window",
      "kind": "python_script",
      "output_id": "resolved_window",
      "output_path": "runtime/resolved_window.json",
      "path": "runtime_hook.py",
      "required": true,
      "stage": "before_acp",
      "status": "ok"
    },
    {
      "args": [
        "build-reference",
        "--cluster-id",
        "{{environment.cluster_id}}",
        "--cluster-label",
        "{{environment.cluster_label}}",
        "--shared-metrics-cluster-id",
        "{{environment.parent_id}}",
        "--start",
        "{{runtime.resolved_window.start}}",
        "--end",
        "{{runtime.resolved_window.end}}",
        "--step-seconds",
        "60",
        "--top-n",
        "3"
      ],
      "id": "build_runtime_reference",
      "kind": "python_script",
      "output_id": "reference_answer",
      "output_path": "runtime/reference_answer.json",
      "path": "runtime_hook.py",
      "required": true,
      "stage": "before_judge",
      "status": "ok"
    }
  ],
  "outputs": {
    "reference_answer": {
      "data": {
        "cluster_avg_pd_tso_request_handle_p99_s": 0.000495,
        "cluster_avg_tikv_grpc_request_handle_p99_s": 0.001963,
        "cluster_id": "10748116073341772391",
        "evidence_sufficient": true,
        "top_nodes_by_avg_p99_latency": [
          {
            "avg_distributed_execution_p99_s": 0.003914,
            "avg_gc_stw_pause_p99_s": 0.000909,
            "avg_get_tso_wait_p99_s": 0.00197,
            "avg_kv_request_p99_s": 0.00252,
            "avg_p99_latency_s": 0.013546,
            "avg_plan_build_p99_s": 0.001254,
            "node": "db-2027220408993841152-tidb-4pf3vl"
          },
          {
            "avg_distributed_execution_p99_s": 0.003928,
            "avg_gc_stw_pause_p99_s": 0.000908,
            "avg_get_tso_wait_p99_s": 0.001922,
            "avg_kv_request_p99_s": 0.002275,
            "avg_p99_latency_s": 0.013383,
            "avg_plan_build_p99_s": 0.001246,
            "node": "db-2027220408993841152-tidb-p1s0s2"
          },
          {
            "avg_distributed_execution_p99_s": 0.003925,
            "avg_gc_stw_pause_p99_s": 0.000908,
            "avg_get_tso_wait_p99_s": 0.001918,
            "avg_kv_request_p99_s": 0.002571,
            "avg_p99_latency_s": 0.013332,
            "avg_plan_build_p99_s": 0.001246,
            "node": "db-2027220408993841152-tidb-2j6dju"
          }
        ],
        "window": {
          "end": "2026-07-21T03:05:00Z",
          "start": "2026-07-21T03:00:00Z"
        }
      },
      "path": "runtime/reference_answer.json",
      "stage": "before_judge"
    },
    "resolved_window": {
      "data": {
        "cluster_id": "10748116073341772391",
        "cluster_label": "premium-main",
        "duration_minutes": 5,
        "end": "2026-07-21T03:05:00Z",
        "id": "bjt-2026-07-21-1100-5m",
        "local_date": "2026-07-21",
        "local_hour": 11,
        "local_minute": 0,
        "local_timezone": "Asia/Shanghai",
        "start": "2026-07-21T03:00:00Z",
        "step_seconds": 60,
        "top_n": 3
      },
      "path": "runtime/resolved_window.json",
      "stage": "before_acp"
    }
  },
  "schema_version": 1,
  "template_context": {
    "audit": {
      "dir": "/data/eval_audits/evalrun-dca9124193b04b2c873027cd9fb2ca6f/evalcase-dcfcc204b5ac4c20bb3ff77b5c7b3c01"
    },
    "case": {
      "case_version": "97825d887d20",
      "id": "top-tidb-p99-latency-nodes-in-premium-cluster-during-latest-window"
    },
    "environment": {
      "cluster_id": "10748116073341772391",
      "cluster_label": "premium-main",
      "cluster_type": "premium",
      "parent_id": "2026948324023603200",
      "profile": "stable-premium",
      "tidb_version": "v8.5.x"
    },
    "time_window": {
      "resolved_by_output": "resolved_window"
    },
    "workspace": {
      "dir": "/data/workspaces/ws-eval-1784618349255-46bfa596",
      "id": "ws-eval-1784618349255-46bfa596"
    }
  },
  "workspace_id": "ws-eval-1784618349255-46bfa596"
}
