{
  "audit": {
    "artifact_resolution": {
      "candidate_run_dirs": [
        "evidences"
      ],
      "manifest_path_mismatch": false,
      "primary_failure_code": null,
      "resolution_mode": "workspace_evidence_root",
      "scanned_scopes": [
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1775611800,
              "actual_start_ts": 1775599200,
              "analysis_patch_path": "",
              "analysis_patch_present": false,
              "diagnosis_report_path": "evidences/workspace_evidence_report.json",
              "diagnosis_report_present": true,
              "evidence_dir": "evidences",
              "evidence_dir_present": true,
              "invalid_reasons": [],
              "logs_dir": "",
              "logs_dir_present": false,
              "manifest_path": "",
              "manifest_path_mismatch": false,
              "manifest_path_mismatch_fields": [],
              "manifest_present": false,
              "manifest_valid_json": true,
              "resolution_mode": "workspace_evidence_root",
              "run_dir": "evidences",
              "summary_json_path": "evidences/evidence_summary_for_agent.json",
              "summary_json_present": true,
              "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
              "summary_txt_present": true,
              "valid_bundle": true
            }
          ],
          "decision": "resolved",
          "selected": true,
          "source_kind": "audit_dir",
          "source_root": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1775611800,
              "actual_start_ts": 1775599200,
              "analysis_patch_path": "",
              "analysis_patch_present": false,
              "diagnosis_report_path": "evidences/workspace_evidence_report.json",
              "diagnosis_report_present": true,
              "evidence_dir": "evidences",
              "evidence_dir_present": true,
              "invalid_reasons": [],
              "logs_dir": "",
              "logs_dir_present": false,
              "manifest_path": "",
              "manifest_path_mismatch": false,
              "manifest_path_mismatch_fields": [],
              "manifest_present": false,
              "manifest_valid_json": true,
              "resolution_mode": "workspace_evidence_root",
              "run_dir": "evidences",
              "summary_json_path": "evidences/evidence_summary_for_agent.json",
              "summary_json_present": true,
              "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
              "summary_txt_present": true,
              "valid_bundle": true
            }
          ],
          "decision": "skipped_lower_priority",
          "selected": false,
          "source_kind": "workspace_dir",
          "source_root": "/Users/huyibin/Documents/dev/investibook/backend/data/workspaces/ws-eval-1778484091473-fee04d31",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1775611800,
        "actual_start_ts": 1775599200,
        "analysis_patch_path": "",
        "analysis_patch_present": false,
        "diagnosis_report_path": "evidences/workspace_evidence_report.json",
        "diagnosis_report_present": true,
        "evidence_dir": "evidences",
        "evidence_dir_present": true,
        "invalid_reasons": [],
        "logs_dir": "",
        "logs_dir_present": false,
        "manifest_path": "",
        "manifest_path_mismatch": false,
        "manifest_path_mismatch_fields": [],
        "manifest_present": false,
        "manifest_valid_json": true,
        "resolution_mode": "workspace_evidence_root",
        "run_dir": "evidences",
        "summary_json_path": "evidences/evidence_summary_for_agent.json",
        "summary_json_present": true,
        "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
        "summary_txt_present": true,
        "valid_bundle": true
      },
      "selected_scope": "audit_dir",
      "selected_trace_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1775611800,
        "actual_start_ts": 1775599200,
        "analysis_patch_path": "",
        "analysis_patch_present": false,
        "diagnosis_report_path": "evidences/workspace_evidence_report.json",
        "diagnosis_report_present": true,
        "evidence_dir": "evidences",
        "evidence_dir_present": true,
        "invalid_reasons": [],
        "logs_dir": "",
        "logs_dir_present": false,
        "manifest_path": "",
        "manifest_path_mismatch": false,
        "manifest_path_mismatch_fields": [],
        "manifest_present": false,
        "manifest_valid_json": true,
        "resolution_mode": "workspace_evidence_root",
        "run_dir": "evidences",
        "summary_json_path": "evidences/evidence_summary_for_agent.json",
        "summary_json_present": true,
        "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
        "summary_txt_present": true,
        "valid_bundle": true
      },
      "status": "resolved"
    },
    "case_id": "cpu-spike-during-incident-window",
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_cluster_id": "10518506906906971664",
      "time_window_match": true
    },
    "critical_evidence_verdict": "pass",
    "evidence_collection_verdict": "pass",
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "execution_contract_verdict": "pass",
    "overall_verdict": "fail",
    "quality_verdict": "fail",
    "semantic_shadow": {
      "available": true,
      "status": "ok"
    },
    "source": "deterministic_judge",
    "strategy": "deterministic_trace_heavy_v1",
    "workflow_verdict": "pass"
  },
  "case_run_id": "evalcase-0fc4dcc566d54df9b5a93af851e4cd2f",
  "facts": {
    "artifact_observations": {
      "analysis_patch_present": false,
      "diagnosis_report_present": true,
      "summary_artifact_present": true,
      "supplemental_loki_present": false
    },
    "artifacts": {
      "analysis_patch_path": "",
      "diagnosis_report_path": "evidences/workspace_evidence_report.json",
      "evidence_dir": "evidences",
      "logs_dir": "",
      "manifest_path": "",
      "manifest_path_mismatch": false,
      "resolution_mode": "workspace_evidence_root",
      "run_dir": "evidences",
      "source_root": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f",
      "source_scope": "audit_dir",
      "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "cpu-spike-during-incident-window",
    "cluster": {
      "actual_cluster_id": "10518506906906971664",
      "expected_cluster_id": "10518506906906971664",
      "matched": true
    },
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_cluster_id": "10518506906906971664",
      "time_window_match": true
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "primary_symptom_evidence_present",
        "capacity_comparison_context_present"
      ]
    },
    "evidence": {
      "analysis_patch_path": "",
      "core_evidence_bundle_present": true,
      "decoded_plan_indexes_used": "[dh_pay_order_success_user_summary:udx_useridx_createymd_sitecode]",
      "events_channel_observed": false,
      "hotspot_detected": true,
      "infra_clear": true,
      "kill_query_signal_present": false,
      "log_error_counts": {
        "pd": {
          "error": 0,
          "info": 0,
          "warn": 0
        },
        "tidb": {
          "error": 0,
          "info": 0,
          "warn": 0
        },
        "tikv": {
          "error": 0,
          "info": 0,
          "warn": 0
        }
      },
      "logs_channel_observed": true,
      "logs_dir_present": false,
      "memory_tracker_panic_present": false,
      "metric_evidence": [
        {
          "instance": "all (65 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle Avg",
          "peak": 0.0024,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "unit": "fraction"
        },
        {
          "instance": "db-tiflash-2 vol-01ca24f549ee0b41c",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0002,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0286,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tiflash-3 vol-04427e9fbd9e9d8de",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0002,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0275,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-35 vol-05a7f7de47d96105f",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0015,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0259,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tiflash-1 vol-0b21cf19b8efc835d",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0001,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.023,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tiflash-0 vol-04b192772e3c388cf",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0002,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0201,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "all (18 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.031,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency Avg",
          "peak": 0.071,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-2",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.063,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.25,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-1",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.063,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.224,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-0",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.05,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.218,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.048,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.14,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-7-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.025,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.033,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "all (60 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.01,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99 Avg",
          "peak": 0.019,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-29",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.019,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.102,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-6",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.01,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.045,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-22",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.044,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "component": "tidb",
          "instance": "all (db, 4 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 30.39,
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU Avg",
          "nodegroup": "db",
          "peak": 56.73,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-1",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 57.59,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "critical",
          "unit": "cores",
          "utilization": "90%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-2",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 57.14,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "critical",
          "unit": "cores",
          "utilization": "89%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-0",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 56.98,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "critical",
          "unit": "cores",
          "utilization": "89%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 55.22,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "critical",
          "unit": "cores",
          "utilization": "86%"
        },
        {
          "component": "tidb",
          "instance": "all (db-2006015162468798464-fc67a2f2, 14 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 14.63,
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU Avg",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 17.7,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-9-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 21.86,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "34%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-2-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 20.74,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "32%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-12-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 19.68,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "31%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-10-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 18.45,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "29%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-6-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 18.15,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "28%"
        },
        {
          "component": "tikv",
          "instance": "all (db, 60 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 11.06,
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU Avg",
          "nodegroup": "db",
          "peak": 14.2,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-29",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 19.37,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "warning",
          "unit": "cores",
          "utilization": "61%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-37",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 17.82,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "56%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-10",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 17.12,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "53%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-23",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 17.02,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "53%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-44",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 16.68,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "52%"
        },
        {
          "instance": "all (18 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.133,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency Avg",
          "peak": 0.167,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-0",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.21,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.283,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.21,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.283,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-1",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.204,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.267,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-2",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.198,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.267,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-0-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.11,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.15,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "all (18 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate Avg",
          "peak": 0.002,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.003,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-0-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.002,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-10-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.002,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-11-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.002,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-2",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.002,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "all (18 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99 Avg",
          "peak": 0.106,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-0-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.013,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.117,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-10-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.013,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.117,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-11-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.011,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.117,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.013,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.117,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-1-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.013,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.105,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 8.3603,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 6.2908,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 5.8685,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 5.1542,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.9992,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.512,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 3.0007,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 3.0003,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.9695,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.8917,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.8103,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.6705,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.301,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.271,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.2145,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.2022,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.1912,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.1225,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.1108,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.0628,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.0273,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-29",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1405,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-37",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1403,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-10",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1147,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-29|db-tikv-37|db-tikv-10\"}[1m]))",
          "unit": "cores"
        }
      ],
      "panic_signal_artifact_present": false,
      "query_evidence": {
        "slow_query": [
          {
            "avg_time": "1.32s",
            "digest": "0e039da68407778fde12f2d1b879a43d72f25cd3827ecc629d12ac2229be8f7e",
            "exec_count": "728",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=0e039da68407778fde12f2d1b879a43d72f25cd3827ecc629d12ac2229be8f7e&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "5234858",
            "max_time": "2.82s",
            "source": "slow_query",
            "sql_preview": "SELECT a.id,a.site_code,a.useridx,a.username,a.register_currency currency,a.realname_secret,a.account_type ,a.user_status,a.loan_status,a.game_gold,a.member_level,a.vip_level,        a.register_time,a"
          },
          {
            "avg_time": "2.16s",
            "digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
            "exec_count": "559",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "84960",
            "max_time": "4.19s",
            "source": "slow_query",
            "sql_preview": "SHOW STATS_HEALTHY where db_name like 'dh_app_%';"
          },
          {
            "avg_time": "1.10s",
            "digest": "c137e13dd5bca3f61a40c5a67edf23e1d2f529103127272fa0326c9f1c6645dd",
            "exec_count": "430",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=c137e13dd5bca3f61a40c5a67edf23e1d2f529103127272fa0326c9f1c6645dd&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "14620165",
            "max_time": "2.26s",
            "source": "slow_query",
            "sql_preview": "SELECT a.useridx FROM dh_account_basic a left join dh_account_ext_financeinfo f on (a.useridx = f.useridx and a.site_code = f.site_code) WHERE a.account_type in (2,5,9,10,11,15,16) AND a.site_code in "
          },
          {
            "avg_time": "1.96s",
            "digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
            "exec_count": "409",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "49284",
            "max_time": "5.13s",
            "source": "slow_query",
            "sql_preview": "select IFNULL(game_gold, 0.0) from dh_account_basic where useridx = ? and site_code = ? for update [arguments: (677037675, \"11287\")];"
          },
          {
            "avg_time": "1.10s",
            "digest": "32ace6f51ececcd915b2cf6e25f2a1eb138413b8814fe49de1046f4ab5696604",
            "exec_count": "394",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=32ace6f51ececcd915b2cf6e25f2a1eb138413b8814fe49de1046f4ab5696604&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "14318545",
            "max_time": "2.26s",
            "source": "slow_query",
            "sql_preview": "SELECT count(*) FROM (SELECT a.site_code,a.useridx FROM dh_account_basic a left join dh_account_ext_financeinfo f on (a.useridx = f.useridx and a.site_code = f.site_code) WHERE a.account_type in (2,5,"
          },
          {
            "avg_time": "1.20s",
            "digest": "7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699",
            "exec_count": "381",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "706747187",
            "max_time": "4.06s",
            "source": "slow_query",
            "sql_preview": "WITH d_table AS (SELECT useridx, parent_useridx, site_code FROM `dh_promote_myteam_direct` WHERE valid_to >= ? AND valid_from <= ? AND parent_useridx !=0 AND site_code = ?) SELECT useridx,max_day FROM"
          },
          {
            "avg_time": "1.34s",
            "digest": "02b6af97af96a5b8cc8b41dbdb506dce163b56fbac2163cc2d11e9942c11063d",
            "exec_count": "330",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=02b6af97af96a5b8cc8b41dbdb506dce163b56fbac2163cc2d11e9942c11063d&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "11832",
            "max_time": "2.72s",
            "source": "slow_query",
            "sql_preview": "INSERT INTO dh_pay_order_summary          (create_ymd, summary_type, create_time, update_time, merch_id, payment_id, merch_name, recharge_count, recharge_amount, recharge_order_count,          succ_re"
          },
          {
            "avg_time": "2.08s",
            "digest": "b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390",
            "exec_count": "311",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "329762370",
            "max_time": "8.12s",
            "source": "slow_query",
            "sql_preview": "SELECT useridx, parent_useridx FROM (SELECT d.useridx, d.parent_useridx FROM dh_promote_myteam_direct d INNER JOIN dh_user_day_report r ON r.user_idx=d.useridx and r.site_code=d.site_code AND r.create"
          },
          {
            "avg_time": "1.75s",
            "digest": "b66acc30e9dbf4f1d1a398be05196ea51843cbfcafbee1ba4af93c94c783eb28",
            "exec_count": "301",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=b66acc30e9dbf4f1d1a398be05196ea51843cbfcafbee1ba4af93c94c783eb28&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "134194360",
            "max_time": "5.73s",
            "source": "slow_query",
            "sql_preview": "SELECT c.useridx, c.username, c.regpkgid, a.currency, p.parent_useridx AS parent_useridx, p.parent_name AS parent_username FROM dh_user_day_report a INNER JOIN dh_account_basic c on c.useridx = a.user"
          },
          {
            "avg_time": "1.32s",
            "digest": "ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792",
            "exec_count": "294",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792&from=1775599200&to=1775611800&show_internal=true&term=",
            "max_mem": "121179",
            "max_time": "2.69s",
            "source": "slow_query",
            "sql_preview": "SELECT * FROM `dh_finance_details` WHERE (message_status = 0 and create_time < ? and create_time > ?) AND site_code = ? ORDER BY create_time desc LIMIT 10000 [arguments: (\"2026-04-08 07:00:00.02331422"
          }
        ],
        "topsql": [
          {
            "component": "TiDB",
            "cpu_ms": "28633190",
            "cpu_pct": 3.67,
            "digest": "18576E217F5F93FA2A934F84290447CAA4B783CAB493503C4AD71C912EA16930",
            "instance": "db-tidb-1.db-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tidb-1.db-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": "select * from `dh_audit_record` where ( `user_id` = ? and `site_code` = ? ) and status in ( ... ) and `charge_time` < ? order by `charge_time` asc , `id` asc"
          },
          {
            "component": "TiDB",
            "cpu_ms": "27053050",
            "cpu_pct": 3.47,
            "digest": "18576E217F5F93FA2A934F84290447CAA4B783CAB493503C4AD71C912EA16930",
            "instance": "db-tidb-2.db-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tidb-2.db-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": "select * from `dh_audit_record` where ( `user_id` = ? and `site_code` = ? ) and status in ( ... ) and `charge_time` < ? order by `charge_time` asc , `id` asc"
          },
          {
            "component": "TiDB",
            "cpu_ms": "23125210",
            "cpu_pct": 2.96,
            "digest": "18576E217F5F93FA2A934F84290447CAA4B783CAB493503C4AD71C912EA16930",
            "instance": "db-tidb-5.db-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tidb-5.db-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": "select * from `dh_audit_record` where ( `user_id` = ? and `site_code` = ? ) and status in ( ... ) and `charge_time` < ? order by `charge_time` asc , `id` asc"
          },
          {
            "component": "TiDB",
            "cpu_ms": "22531020",
            "cpu_pct": 2.89,
            "digest": "18576E217F5F93FA2A934F84290447CAA4B783CAB493503C4AD71C912EA16930",
            "instance": "db-tidb-0.db-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tidb-0.db-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": "select * from `dh_audit_record` where ( `user_id` = ? and `site_code` = ? ) and status in ( ... ) and `charge_time` < ? order by `charge_time` asc , `id` asc"
          },
          {
            "component": "TiDB",
            "cpu_ms": "19646900",
            "cpu_pct": 2.52,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "18387440",
            "cpu_pct": 2.36,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "17865320",
            "cpu_pct": 2.29,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "17757040",
            "cpu_pct": 2.28,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "17661990",
            "cpu_pct": 2.26,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "17516660",
            "cpu_pct": 2.25,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiKV",
            "cpu_ms": "3361154",
            "cpu_pct": 0.0,
            "digest": "37705ED2CE09BF229826EF389C43693D0F540017E95FB29F5B5C2B0E6F078A71",
            "instance": "db-tikv-25.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-25.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `"
          },
          {
            "component": "TiKV",
            "cpu_ms": "2393497",
            "cpu_pct": 0.0,
            "digest": "43D2B9451D03B438A92C09D022AEFDFF30DBFF9623C49D3BAB032943B597FFF9",
            "instance": "db-tikv-44.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-44.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , count ( `t2` . `useridx` ) as `login_persons` from ( select `site_code` , `useridx` from `dh_user_action_logs` where ( `name` = ? "
          },
          {
            "component": "TiKV",
            "cpu_ms": "2187730",
            "cpu_pct": 0.0,
            "digest": "43D2B9451D03B438A92C09D022AEFDFF30DBFF9623C49D3BAB032943B597FFF9",
            "instance": "db-tikv-10.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-10.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , count ( `t2` . `useridx` ) as `login_persons` from ( select `site_code` , `useridx` from `dh_user_action_logs` where ( `name` = ? "
          },
          {
            "component": "TiKV",
            "cpu_ms": "1963547",
            "cpu_pct": 0.0,
            "digest": "43D2B9451D03B438A92C09D022AEFDFF30DBFF9623C49D3BAB032943B597FFF9",
            "instance": "db-tikv-3.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-3.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , count ( `t2` . `useridx` ) as `login_persons` from ( select `site_code` , `useridx` from `dh_user_action_logs` where ( `name` = ? "
          },
          {
            "component": "TiKV",
            "cpu_ms": "1878269",
            "cpu_pct": 0.0,
            "digest": "37705ED2CE09BF229826EF389C43693D0F540017E95FB29F5B5C2B0E6F078A71",
            "instance": "db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `"
          },
          {
            "component": "TiKV",
            "cpu_ms": "1624239",
            "cpu_pct": 0.0,
            "digest": "470AA562BC14792034C5C4CD9DF9CA80806E4861E0CAFE1097D2DD25EF67C81C",
            "instance": "db-tikv-15.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-15.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `dh_active_receive_logs` . `id` , `dh_active_receive_logs` . `activetype` , `dh_active_receive_logs` . `useridx` , `dh_active_receive_logs` . `username` , `dh_active_receive_logs` . `account_ty"
          },
          {
            "component": "TiKV",
            "cpu_ms": "1529160",
            "cpu_pct": 0.0,
            "digest": "964B5C2D1BD95B8BAAE21E3CB062D9ED867BDCC3A4077879A75CDD0A414E2E73",
            "instance": "db-tikv-2.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-2.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `"
          },
          {
            "component": "TiKV",
            "cpu_ms": "1492780",
            "cpu_pct": 0.0,
            "digest": "470AA562BC14792034C5C4CD9DF9CA80806E4861E0CAFE1097D2DD25EF67C81C",
            "instance": "db-tikv-50.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-50.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `dh_active_receive_logs` . `id` , `dh_active_receive_logs` . `activetype` , `dh_active_receive_logs` . `useridx` , `dh_active_receive_logs` . `username` , `dh_active_receive_logs` . `account_ty"
          },
          {
            "component": "TiKV",
            "cpu_ms": "1483505",
            "cpu_pct": 0.0,
            "digest": "43D2B9451D03B438A92C09D022AEFDFF30DBFF9623C49D3BAB032943B597FFF9",
            "instance": "db-tikv-8.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-8.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , count ( `t2` . `useridx` ) as `login_persons` from ( select `site_code` , `useridx` from `dh_user_action_logs` where ( `name` = ? "
          },
          {
            "component": "TiKV",
            "cpu_ms": "1464208",
            "cpu_pct": 0.0,
            "digest": "9505CACB7C710ED17125FCC6CB3669E8DDCA6C8CD8AF6A31F6B3CD64604C3098",
            "instance": "db-tikv-15.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1775599200&to=1775611800&instance=db-tikv-15.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "commit"
          }
        ]
      },
      "query_or_metric_channel_observed": true,
      "slow_query_top_digest": "0e039da68407778fde12f2d1b879a43d72f25cd3827ecc629d12ac2229be8f7e",
      "ticket_context_channel_observed": false,
      "topsql_collection_error_recorded": false
    },
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "output": {
      "analyze_primary_culprit_asserted": false,
      "claims_panic_not_confirmable": false,
      "diagnosis_cpu_hotspot_asserted": true,
      "diagnosis_kill_query_chain_asserted": false,
      "diagnosis_memory_tracker_panic_asserted": false,
      "diagnosis_plan_stats_issue_asserted": false,
      "diagnosis_single_instance_panic_restart_asserted": false,
      "fake_alarm_primary_asserted": false,
      "focuses_on_missing_index": false,
      "mentions_cpu_saturation": false,
      "mentions_est_act_divergence": false,
      "mentions_idle_transaction": false,
      "mentions_intermediate_result_explosion": false,
      "mentions_kill_query": false,
      "mentions_memory_tracker_consume": false,
      "mentions_p99_latency_spike": false,
      "mentions_rollback_cleanup": false,
      "mentions_statistics_uninitialized": false,
      "mentions_v8_5_2": false,
      "mentions_v8_5_3_or_fixed_release": false,
      "mentions_without_fix": false,
      "missing_index_primary_root_cause_asserted": false,
      "query_only_primary_root_cause_asserted": false,
      "wide_scan_primary_root_cause_asserted": false
    },
    "routing": {
      "analysis_event_items_present": false,
      "analysis_has_key_evidence": false,
      "analysis_has_supporting_evidence": false,
      "analysis_items_shape_valid": false,
      "analysis_log_items_present": false,
      "analysis_log_or_event_channel_resolvable": true,
      "analysis_metric_refs_required": false,
      "analysis_metric_refs_resolvable": true,
      "analysis_patch_present": false,
      "analysis_patch_valid_json": false,
      "analysis_query_refs_required": false,
      "analysis_query_refs_resolvable": true
    },
    "window": {
      "actual_end_ts": 1775611800,
      "actual_start_ts": 1775599200,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_end_ts": 1775611800,
      "expected_start_ts": 1775599200,
      "matched_allowed_window": true
    },
    "workflow": {
      "architecture_context_loaded": true,
      "diagnosis_run_initialized": true,
      "evidence_collection_completed": true,
      "evidence_collection_started": false,
      "final_answer_emitted": true,
      "misdiagnosis_guardrails_loaded": true,
      "summary_read_completed": true,
      "targeted_panic_log_query_completed": false
    }
  },
  "id": "evaljudge-56d04f7b66e94f60ae652750b5172d67",
  "invalid_subtype": null,
  "judged_at": "2026-05-11T07:26:07.012013+00:00",
  "judgment_verdict": "fail",
  "packet": {
    "artifact_resolution": {
      "candidate_run_dirs": [
        "evidences"
      ],
      "manifest_path_mismatch": false,
      "primary_failure_code": null,
      "resolution_mode": "workspace_evidence_root",
      "scanned_scopes": [
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1775611800,
              "actual_start_ts": 1775599200,
              "analysis_patch_path": "",
              "analysis_patch_present": false,
              "diagnosis_report_path": "evidences/workspace_evidence_report.json",
              "diagnosis_report_present": true,
              "evidence_dir": "evidences",
              "evidence_dir_present": true,
              "invalid_reasons": [],
              "logs_dir": "",
              "logs_dir_present": false,
              "manifest_path": "",
              "manifest_path_mismatch": false,
              "manifest_path_mismatch_fields": [],
              "manifest_present": false,
              "manifest_valid_json": true,
              "resolution_mode": "workspace_evidence_root",
              "run_dir": "evidences",
              "summary_json_path": "evidences/evidence_summary_for_agent.json",
              "summary_json_present": true,
              "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
              "summary_txt_present": true,
              "valid_bundle": true
            }
          ],
          "decision": "resolved",
          "selected": true,
          "source_kind": "audit_dir",
          "source_root": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1775611800,
              "actual_start_ts": 1775599200,
              "analysis_patch_path": "",
              "analysis_patch_present": false,
              "diagnosis_report_path": "evidences/workspace_evidence_report.json",
              "diagnosis_report_present": true,
              "evidence_dir": "evidences",
              "evidence_dir_present": true,
              "invalid_reasons": [],
              "logs_dir": "",
              "logs_dir_present": false,
              "manifest_path": "",
              "manifest_path_mismatch": false,
              "manifest_path_mismatch_fields": [],
              "manifest_present": false,
              "manifest_valid_json": true,
              "resolution_mode": "workspace_evidence_root",
              "run_dir": "evidences",
              "summary_json_path": "evidences/evidence_summary_for_agent.json",
              "summary_json_present": true,
              "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
              "summary_txt_present": true,
              "valid_bundle": true
            }
          ],
          "decision": "skipped_lower_priority",
          "selected": false,
          "source_kind": "workspace_dir",
          "source_root": "/Users/huyibin/Documents/dev/investibook/backend/data/workspaces/ws-eval-1778484091473-fee04d31",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1775611800,
        "actual_start_ts": 1775599200,
        "analysis_patch_path": "",
        "analysis_patch_present": false,
        "diagnosis_report_path": "evidences/workspace_evidence_report.json",
        "diagnosis_report_present": true,
        "evidence_dir": "evidences",
        "evidence_dir_present": true,
        "invalid_reasons": [],
        "logs_dir": "",
        "logs_dir_present": false,
        "manifest_path": "",
        "manifest_path_mismatch": false,
        "manifest_path_mismatch_fields": [],
        "manifest_present": false,
        "manifest_valid_json": true,
        "resolution_mode": "workspace_evidence_root",
        "run_dir": "evidences",
        "summary_json_path": "evidences/evidence_summary_for_agent.json",
        "summary_json_present": true,
        "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
        "summary_txt_present": true,
        "valid_bundle": true
      },
      "selected_scope": "audit_dir",
      "selected_trace_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1775611800,
        "actual_start_ts": 1775599200,
        "analysis_patch_path": "",
        "analysis_patch_present": false,
        "diagnosis_report_path": "evidences/workspace_evidence_report.json",
        "diagnosis_report_present": true,
        "evidence_dir": "evidences",
        "evidence_dir_present": true,
        "invalid_reasons": [],
        "logs_dir": "",
        "logs_dir_present": false,
        "manifest_path": "",
        "manifest_path_mismatch": false,
        "manifest_path_mismatch_fields": [],
        "manifest_present": false,
        "manifest_valid_json": true,
        "resolution_mode": "workspace_evidence_root",
        "run_dir": "evidences",
        "summary_json_path": "evidences/evidence_summary_for_agent.json",
        "summary_json_present": true,
        "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
        "summary_txt_present": true,
        "valid_bundle": true
      },
      "status": "resolved"
    },
    "contract": {
      "checks": [
        {
          "description": "Actual diagnosis time window matches one allowed case window.",
          "id": "time_window_match",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "allowed": [],
              "matched": true,
              "matched_keys": [
                "time_window_match"
              ],
              "matcher": "bool_true",
              "path": "time_window_match",
              "source": "trace_fact",
              "value": ""
            }
          ],
          "snippet": "matched trace facts: time_window_match"
        },
        {
          "description": "Actual diagnosis cluster scope matches expected cluster id.",
          "id": "cluster_scope_match",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "allowed": [],
              "matched": true,
              "matched_keys": [
                "cluster_scope_match"
              ],
              "matcher": "bool_true",
              "path": "cluster_scope_match",
              "source": "trace_fact",
              "value": ""
            }
          ],
          "snippet": "matched trace facts: cluster_scope_match"
        }
      ],
      "status": "pass"
    },
    "critical_evidence": {
      "checks": [
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/gate_checks.json",
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/metrics.json"
          ],
          "description": "Primary CPU hotspot evidence is present for the incident window.",
          "earned_score": 8,
          "id": "primary_symptom_evidence_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/gate_checks.json",
              "artifacts": [
                "gate_checks"
              ],
              "matched": true,
              "matched_keyword": "HOTSPOT",
              "matcher": "json_text_contains_any",
              "snippet": "total_volumes=65 severe_gt20pct=0 moderate_5_20pct=0; disk_io_util max=0.00\", \"hotspot\": \"HOTSPOT DETECTED: Instance hotspot (grpc_p99): db-tikv-22 value=0.044 peer_a",
              "source": "artifact_json"
            },
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/metrics.json",
              "artifacts": [
                "metrics"
              ],
              "matched": true,
              "matched_keyword": "process_cpu_seconds_total",
              "matcher": "json_text_contains_any",
              "snippet": "odegroup\": \"db\", \"peak\": 56.73, \"mean\": 30.39, \"unit\": \"cores\", \"promql\": \"rate(process_cpu_seconds_total{component=\\\"tidb\\\"}[1m])\", \"link\": \"https://clinic.pingcap.com/portal/#/cluster",
              "source": "artifact_json"
            }
          ],
          "snippet": "total_volumes=65 severe_gt20pct=0 moderate_5_20pct=0; disk_io_util max=0.00\", \"hotspot\": \"HOTSPOT DETECTED: Instance hotspot (grpc_p99): db-tikv-22 value=0.044 peer_a"
        },
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/cluster_meta.json",
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/workspace_evidence_report.json"
          ],
          "description": "Evidence includes baseline-vs-incident capacity comparison context.",
          "earned_score": 17,
          "id": "capacity_comparison_context_present",
          "match": "any_of",
          "max_score": 17,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/cluster_meta.json",
              "artifacts": [
                "cluster_meta"
              ],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_unique_count_gte",
              "snippet": "unique_count=2 values=['14', '15']",
              "source": "artifact_json"
            },
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-0fc4dcc566d54df9b5a93af851e4cd2f/evidences/workspace_evidence_report.json",
              "artifacts": [
                "workspace_report"
              ],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_unique_count_gte",
              "snippet": "unique_count=2 values=['14', '15']",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "unique_count=2 values=['14', '15']"
        }
      ],
      "max_score": 30,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 30,
      "status": "pass"
    },
    "critical_evidence_verdict": "pass",
    "diagnosis": {
      "checks": [
        {
          "description": "Identifies a capacity or node-count shift as the primary driver of the CPU increase.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "node count reduction",
                  "fewer TiDB nodes",
                  "scale-in",
                  "capacity reduction",
                  "节点数减少",
                  "实例数减少",
                  "节点数量下降"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 0.0,
          "id": "identify_capacity_shift_as_primary_driver",
          "max_score": 3,
          "mode": "blended",
          "passed": false,
          "penalty_applied": 0,
          "required": true,
          "scoring_mode": "positive",
          "semantic_check_id": 1,
          "semantic_confidence": 0.86,
          "semantic_notes": [
            "Answer attributes the primary cause to a workload/read-pressure increase plus a single SQL digest causing TiKV hotspot and downstream TiDB CPU saturation, rather than identifying node-count reduction/capacity change leading to per-node load increase as the main path."
          ],
          "semantic_status": "fail"
        },
        {
          "description": "Avoids elevating plan cache hit=0 or similar secondary signals into the primary differentiating root cause.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "plan cache hit=0 is expected",
                  "plan cache miss is expected",
                  "plan cache is expected",
                  "plan cache is not the root cause",
                  "plan cache is not the differentiator",
                  "plan cache miss is not the root cause",
                  "plan cache miss is not the differentiator",
                  "plan cache 不是根因",
                  "plan cache miss 不是根因"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              },
              {
                "keywords": [],
                "matched": false,
                "matched_keys": [],
                "matcher": "regex_any",
                "path": "",
                "paths": [],
                "patterns": [
                  "plan cache.{0,80}(not the root cause|not the differentiator|expected|normal)",
                  "(not the root cause|not the differentiator).{0,80}plan cache",
                  "plan cache.{0,80}(不是根因|不是差异因子|属于正常现象)",
                  "(不是根因|不是差异因子).{0,80}plan cache",
                  "(cache miss|plan cache miss).{0,80}(not the root cause|not the differentiator|expected|normal)",
                  "(不是根因|不是差异因子).{0,80}(cache miss|plan cache miss)",
                  "(secondary symptom|false lead).{0,80}(plan cache|cache miss)"
                ],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": -0.0,
          "id": "reject_plan_cache_or_secondary_signals_as_primary_root_cause",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "penalty",
          "semantic_check_id": 2,
          "semantic_confidence": 0.78,
          "semantic_notes": [
            "Answer does not elevate plan cache hit=0 / plan cache miss (or similar) to the primary cause; it focuses on workload and hotspot/SQL digest instead."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Recommends capacity adjustment rather than plan cache tuning.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "scale TiDB back",
                  "restore node count",
                  "capacity adjustment",
                  "扩容",
                  "恢复节点数"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              },
              {
                "keywords": [],
                "matched": false,
                "matched_keys": [],
                "matcher": "regex_any",
                "path": "",
                "paths": [],
                "patterns": [
                  "(do not|don't|should not).{0,40}(fix|tune).{0,20}plan cache",
                  "不要.{0,20}(修|调).{0,20}plan cache"
                ],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 0.0,
          "id": "recommend_capacity_adjustment_over_cache_tuning",
          "max_score": 3,
          "mode": "blended",
          "passed": false,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 3,
          "semantic_confidence": 0.74,
          "semantic_notes": [
            "Remediation recommendations center on throttling/optimizing a specific digest, index/plan review, and hotspot mitigation; it does not align remediation primarily to capacity adjustment or workload redistribution related to node-count/capacity change."
          ],
          "semantic_status": "fail"
        }
      ],
      "hard_gate_passed": false,
      "max_score": 50,
      "raw_score": 0.0,
      "score": 0,
      "semantic_shadow": {
        "available": true,
        "bucket": "diagnosis.semantic",
        "checks": [
          {
            "bucket": "diagnosis.semantic",
            "check_id": 1,
            "confidence": 0.86,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [],
              "routed_item_ids": [
                "ce-2"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Answer attributes the primary cause to a workload/read-pressure increase plus a single SQL digest causing TiKV hotspot and downstream TiDB CPU saturation, rather than identifying node-count reduction/capacity change leading to per-node load increase as the main path."
            ],
            "score": 0,
            "status": "fail"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 2,
            "confidence": 0.78,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [],
              "routed_item_ids": []
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Answer does not elevate plan cache hit=0 / plan cache miss (or similar) to the primary cause; it focuses on workload and hotspot/SQL digest instead."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 3,
            "confidence": 0.74,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [],
              "routed_item_ids": []
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Remediation recommendations center on throttling/optimizing a specific digest, index/plan review, and hotspot mitigation; it does not align remediation primarily to capacity adjustment or workload redistribution related to node-count/capacity change."
            ],
            "score": 0,
            "status": "fail"
          }
        ],
        "mode": "shadow",
        "packet_case_id": "cpu-spike-during-incident-window",
        "packet_loaded": true,
        "packet_notes": [],
        "packet_status": "ok",
        "status": "ok",
        "summary": {
          "disagreement_flags": [],
          "shadow_max_score": 9,
          "shadow_score": 3
        }
      },
      "status": "fail"
    },
    "evidence_collection": {
      "checks": [
        {
          "description": "Required evidence artifacts are present and readable.",
          "earned_score": 4,
          "id": "required_artifacts_present",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: core_evidence_bundle_present"
        },
        {
          "description": "At least the minimum number of preferred evidence channels are observed.",
          "earned_score": 0,
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched collection facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "earned_score": 6,
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "max_score": 6,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: query_or_metric"
        }
      ],
      "max_score": 5,
      "raw_max_score": 10,
      "raw_score": 10,
      "score": 5,
      "status": "pass"
    },
    "evidence_collection_verdict": "pass",
    "evidence_routing": {
      "checks": [
        {
          "description": "Analysis patch is valid JSON whenever the patch exists.",
          "earned_score": 1,
          "id": "analysis_patch_valid_json",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_patch_valid_json",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Analysis patch items are structurally valid whenever the patch exists.",
          "earned_score": 2,
          "id": "analysis_items_shape_valid",
          "match": "any_of",
          "max_score": 2,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_items_shape_valid",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Analysis patch includes key evidence whenever the patch exists.",
          "earned_score": 2,
          "id": "analysis_key_evidence_present",
          "match": "any_of",
          "max_score": 2,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_has_key_evidence",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Metric references resolve whenever the patch requires them.",
          "earned_score": 1,
          "id": "metric_refs_resolvable",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_metric_refs_required"
              ],
              "matcher": "bool_false",
              "path": "analysis_metric_refs_required",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": true,
              "matched_keys": [
                "analysis_metric_refs_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_metric_refs_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_metric_refs_required, analysis_metric_refs_resolvable"
        },
        {
          "description": "Query references resolve whenever the patch requires them.",
          "earned_score": 1,
          "id": "query_refs_resolvable",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_query_refs_required"
              ],
              "matcher": "bool_false",
              "path": "analysis_query_refs_required",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": true,
              "matched_keys": [
                "analysis_query_refs_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_query_refs_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_query_refs_required, analysis_query_refs_resolvable"
        },
        {
          "description": "Analysis patch includes supporting evidence whenever the patch exists.",
          "earned_score": 0,
          "id": "supporting_evidence_present",
          "match": "any_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_has_supporting_evidence",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Routed log or event items stay resolvable against observed channels.",
          "earned_score": 0,
          "id": "analysis_log_or_event_channel_resolvable",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_log_or_event_channel_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_log_or_event_channel_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_log_or_event_channel_resolvable"
        }
      ],
      "max_score": 5,
      "raw_max_score": 7,
      "raw_score": 7,
      "score": 5,
      "status": "pass"
    },
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "execution_contract_verdict": "pass",
    "ground_truth_root_cause": "TiDB node count reduction increased per-node load; plan cache hit=0 and similar signals were not the differentiating primary root cause",
    "overall_verdict": "fail",
    "quality_verdict": "fail",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 50,
      "hard_gate_passed": false,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 50
    },
    "strategy": "deterministic_trace_heavy_v1",
    "workflow": {
      "checks": [
        {
          "description": "Architecture context is loaded.",
          "earned_score": 5,
          "id": "architecture_context_loaded",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded"
              ],
              "matcher": "bool_true",
              "path": "architecture_context_loaded",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: architecture_context_loaded"
        },
        {
          "description": "Misdiagnosis guardrails are loaded.",
          "earned_score": 5,
          "id": "misdiagnosis_guardrails_loaded",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "misdiagnosis_guardrails_loaded"
              ],
              "matcher": "bool_true",
              "path": "misdiagnosis_guardrails_loaded",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: misdiagnosis_guardrails_loaded"
        },
        {
          "description": "Diagnosis run is initialized.",
          "earned_score": 5,
          "id": "diagnosis_run_initialized",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_run_initialized"
              ],
              "matcher": "bool_true",
              "path": "diagnosis_run_initialized",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: diagnosis_run_initialized"
        },
        {
          "description": "Evidence collection completes.",
          "earned_score": 10,
          "id": "evidence_collection_completed",
          "match": "all_of",
          "max_score": 10,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "evidence_collection_completed"
              ],
              "matcher": "bool_true",
              "path": "evidence_collection_completed",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: evidence_collection_completed"
        },
        {
          "description": "Summary artifact is read when available.",
          "earned_score": 5,
          "id": "summary_read_completed",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "summary_read_completed"
              ],
              "matcher": "bool_true",
              "path": "summary_read_completed",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: summary_read_completed"
        },
        {
          "description": "Final answer is emitted.",
          "earned_score": 0,
          "id": "final_answer_emitted",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "final_answer_emitted"
              ],
              "matcher": "bool_true",
              "path": "final_answer_emitted",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: final_answer_emitted"
        }
      ],
      "max_score": 10,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 10,
      "status": "pass"
    },
    "workflow_verdict": "pass"
  },
  "passed_checks": 1,
  "primary_failure_code": "diagnosis_critical_gate_failed",
  "score": 50,
  "total_checks": 3
}