{
  "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": 1776639000,
              "actual_start_ts": 1776631800,
              "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-f2ba950f1c6f4c40a19c0fb2d22f0437",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1776639000,
              "actual_start_ts": 1776631800,
              "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-1778486019543-7351cc3c",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1776639000,
        "actual_start_ts": 1776631800,
        "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": 1776639000,
        "actual_start_ts": 1776631800,
        "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": "panic-in-recoverable-goroutine",
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "alert_at_plus_minus_1h",
      "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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: logs, 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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: logs, 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,
        "targeted_panic_log_query_completed": false
      }
    },
    "execution_contract_verdict": "pass",
    "overall_verdict": "pass",
    "quality_verdict": "pass",
    "semantic_shadow": {
      "available": true,
      "status": "ok"
    },
    "source": "deterministic_judge",
    "strategy": "deterministic_trace_heavy_v1",
    "workflow_verdict": "pass"
  },
  "case_run_id": "evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437",
  "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-f2ba950f1c6f4c40a19c0fb2d22f0437",
      "source_scope": "audit_dir",
      "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "panic-in-recoverable-goroutine",
    "cluster": {
      "actual_cluster_id": "10518506906906971664",
      "expected_cluster_id": "10518506906906971664",
      "matched": true
    },
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "alert_at_plus_minus_1h",
      "expected_cluster_id": "10518506906906971664",
      "time_window_match": true
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "panic_signal_present",
        "query_timeout_interrupt_signal_present",
        "panic_classification_context_present"
      ]
    },
    "evidence": {
      "analysis_patch_path": "",
      "core_evidence_bundle_present": true,
      "decoded_plan_indexes_used": "[dh_active_bet_total:idx_active_bet_total_sitecode_updatetime_useridx]",
      "events_channel_observed": false,
      "hotspot_detected": true,
      "infra_clear": true,
      "kill_query_signal_present": true,
      "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 (59 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.0018,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-38 vol-08c8943f2203f2143",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0012,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0324,
          "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.0009,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0219,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-32 vol-0f74fa902df1feb16",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0001,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0062,
          "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.0,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0053,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-27 vol-0564e50a79aeea170",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0053,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "all (24 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.025,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency Avg",
          "peak": 0.033,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-54",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.027,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.046,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-63",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.026,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.041,
          "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.028,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.041,
          "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.028,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.041,
          "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.028,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.041,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "all (54 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.009,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99 Avg",
          "peak": 0.018,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-21",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.088,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-3",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.009,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.054,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-30",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.011,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.026,
          "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, 10 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 7.45,
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU Avg",
          "nodegroup": "db",
          "peak": 16.71,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-54",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 19.47,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "30%"
        },
        {
          "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": 17.87,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "28%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-57",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 17.15,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "27%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-55",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 17.01,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "27%"
        },
        {
          "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": 16.8,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "26%"
        },
        {
          "component": "tidb",
          "instance": "all (db-2006015162468798464-fc67a2f2, 14 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 10.18,
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU Avg",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 13.09,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-0-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": 17.21,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "27%"
        },
        {
          "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": 15.31,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "24%"
        },
        {
          "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": 15.1,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "24%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-5-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": 14.56,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "23%"
        },
        {
          "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": 14.22,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "22%"
        },
        {
          "component": "tikv",
          "instance": "all (db, 54 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 9.65,
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU Avg",
          "nodegroup": "db",
          "peak": 12.68,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-2",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 16.83,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "53%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-46",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 14.58,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "46%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-49",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 14.48,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "45%"
        },
        {
          "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": 14.37,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "45%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-30",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 14.13,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "44%"
        },
        {
          "instance": "all (24 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.077,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency Avg",
          "peak": 0.136,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-54",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.074,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.233,
          "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.075,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.2,
          "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.076,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.2,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-57",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.078,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.2,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-63",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.074,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.2,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "all (24 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.001,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-12-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.003,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-9-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.003,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "instance": "db-tidb-56",
          "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-3-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-8-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": "all (24 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.011,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99 Avg",
          "peak": 0.086,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-12-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-3-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.015,
          "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.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-56",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "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-8-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "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"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 8.58,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 7.1038,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 5.3575,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.2712,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.092,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 3.9983,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.9293,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.8702,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.829,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.0192,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.9612,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.746,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.5142,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.4607,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.457,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.7657,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.764,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.7497,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.5012,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.4948,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.4683,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-49",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1228,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1208,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-46",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1102,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-2|db-tikv-46|db-tikv-49\"}[1m]))",
          "unit": "cores"
        }
      ],
      "panic_signal_artifact_present": false,
      "query_evidence": {
        "slow_query": [
          {
            "avg_time": "1.89s",
            "digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
            "exec_count": "479",
            "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=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "93152",
            "max_time": "3.78s",
            "source": "slow_query",
            "sql_preview": "SHOW STATS_HEALTHY where db_name like 'dh_app_%';"
          },
          {
            "avg_time": "1.16s",
            "digest": "7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699",
            "exec_count": "422",
            "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=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "707201646",
            "max_time": "3.10s",
            "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.88s",
            "digest": "b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390",
            "exec_count": "201",
            "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=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "288342466",
            "max_time": "5.63s",
            "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": "6.27s",
            "digest": "4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d",
            "exec_count": "192",
            "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=4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "93152",
            "max_time": "16.79s",
            "source": "slow_query",
            "sql_preview": "SHOW STATS_HEALTHY WHERE db_name LIKE 'dh_app_%' AND db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_"
          },
          {
            "avg_time": "1.65s",
            "digest": "e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac",
            "exec_count": "192",
            "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=e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "118472",
            "max_time": "4.06s",
            "source": "slow_query",
            "sql_preview": "SHOW STATS_META WHERE db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_yuebaoinfo','dh_account_jwt_tok"
          },
          {
            "avg_time": "2.02s",
            "digest": "840365654e7c46a47ef10a14ac5d1c12c2bb861897fdf680cb6caa32c23e9e80",
            "exec_count": "166",
            "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=840365654e7c46a47ef10a14ac5d1c12c2bb861897fdf680cb6caa32c23e9e80&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "110076897",
            "max_time": "5.15s",
            "source": "slow_query",
            "sql_preview": "SELECT c.useridx, c.username, c.regpkgid, a.currency, p.parent_useridx AS parent_useridx FROM dh_user_day_report a INNER JOIN dh_account_basic c on c.useridx = a.user_idx and c.site_code=a.site_code L"
          },
          {
            "avg_time": "1.47s",
            "digest": "ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792",
            "exec_count": "159",
            "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=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "120799",
            "max_time": "2.05s",
            "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-20 04:56:00.04029366"
          },
          {
            "avg_time": "1.42s",
            "digest": "5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b",
            "exec_count": "135",
            "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=5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "523823954",
            "max_time": "3.71s",
            "source": "slow_query",
            "sql_preview": "SELECT '5705' as site_code,20260419 as create_ymd,case when t2.register_os_type in (2,11,12,13,20) then 1 when t2.register_os_type in (1,9,10,14,18,19) then 2 else 3 end as kind,case when t2.register_"
          },
          {
            "avg_time": "1.56s",
            "digest": "ad0fb7bc6b492b9ca4149c4d900432b96ea994ef642b409fbf690b85cc05ad42",
            "exec_count": "119",
            "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=ad0fb7bc6b492b9ca4149c4d900432b96ea994ef642b409fbf690b85cc05ad42&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "11776639",
            "max_time": "2.49s",
            "source": "slow_query",
            "sql_preview": "SELECT t.useridx, t.username, t.regpkgid, t.currency, t.parent_useridx, ag.calc_level FROM dh_promote_myteam_summary_basic t inner join dh_promote_agentid_currency ag on ag.agent_id=t.agent_id and ag."
          },
          {
            "avg_time": "1.96s",
            "digest": "6e40a0069840342085cb285e82359a657aad9eff5a35049100a63da8b63b69f8",
            "exec_count": "107",
            "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=6e40a0069840342085cb285e82359a657aad9eff5a35049100a63da8b63b69f8&from=1776631800&to=1776639000&show_internal=true&term=",
            "max_mem": "750566862",
            "max_time": "4.20s",
            "source": "slow_query",
            "sql_preview": "SELECT ts.useridx,ts.username,ts.regpkgid,ts.currency,ts.parent_useridx,ts.parent_username,ts.top_parent_useridx,ts.top_parent_username,ts.agent_id,sum(ma.commission_original) as my_commission_settle,"
          }
        ],
        "topsql": [
          {
            "component": "TiDB",
            "cpu_ms": "13782140",
            "cpu_pct": 3.61,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "13122550",
            "cpu_pct": 3.44,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "13066630",
            "cpu_pct": 3.42,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "12471340",
            "cpu_pct": 3.26,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "12185700",
            "cpu_pct": 3.19,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "12141370",
            "cpu_pct": 3.18,
            "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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "12116420",
            "cpu_pct": 3.17,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-8.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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-8.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "11349460",
            "cpu_pct": 2.97,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-4.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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-4.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "11094220",
            "cpu_pct": 2.9,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-9.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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-9.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "10550910",
            "cpu_pct": 2.76,
            "digest": "",
            "instance": "db-2006015162468798464-fc67a2f2-tidb-1.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=1776631800&to=1776639000&instance=db-2006015162468798464-fc67a2f2-tidb-1.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiKV",
            "cpu_ms": "3747684",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-34.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=1776631800&to=1776639000&instance=db-tikv-34.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`"
          },
          {
            "component": "TiKV",
            "cpu_ms": "3317363",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-53.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=1776631800&to=1776639000&instance=db-tikv-53.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`"
          },
          {
            "component": "TiKV",
            "cpu_ms": "3118476",
            "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=1776631800&to=1776639000&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": "3042035",
            "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=1776631800&to=1776639000&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": "2944253",
            "cpu_pct": 0.0,
            "digest": "37705ED2CE09BF229826EF389C43693D0F540017E95FB29F5B5C2B0E6F078A71",
            "instance": "db-tikv-21.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=1776631800&to=1776639000&instance=db-tikv-21.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": "2788223",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-40.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=1776631800&to=1776639000&instance=db-tikv-40.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`"
          },
          {
            "component": "TiKV",
            "cpu_ms": "2738427",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-23.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=1776631800&to=1776639000&instance=db-tikv-23.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`"
          },
          {
            "component": "TiKV",
            "cpu_ms": "2683236",
            "cpu_pct": 0.0,
            "digest": "A778DFEE075405DC4D534D560F755CC2E3836B661D7D3EACCD7FE806B1EFD36C",
            "instance": "db-tikv-48.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=1776631800&to=1776639000&instance=db-tikv-48.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select `a` . `message_id` , `a` . `params` , `a` . `status` from `dh_message_user_params` `a` left join `dh_message_setting_currency` `b` on `a` . `message_id` = `b` . `message_id` left join `dh_messa"
          },
          {
            "component": "TiKV",
            "cpu_ms": "2662588",
            "cpu_pct": 0.0,
            "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
            "instance": "db-tikv-30.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=1776631800&to=1776639000&instance=db-tikv-30.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , `t2` . `club_id` , count ( distinct `t1` . `useridx` ) as `login_persons` from `dh_user_action_logs` as `t1` left join `dh_account"
          },
          {
            "component": "TiKV",
            "cpu_ms": "2233744",
            "cpu_pct": 0.0,
            "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
            "instance": "db-tikv-34.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=1776631800&to=1776639000&instance=db-tikv-34.db-tikv-peer.tidb10518506906906971664.svc%3A20160",
            "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , `t2` . `club_id` , count ( distinct `t1` . `useridx` ) as `login_persons` from `dh_user_action_logs` as `t1` left join `dh_account"
          }
        ]
      },
      "query_or_metric_channel_observed": true,
      "slow_query_top_digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
      "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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: logs, 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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: logs, 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,
        "targeted_panic_log_query_completed": false
      }
    },
    "output": {
      "analyze_primary_culprit_asserted": false,
      "claims_panic_not_confirmable": false,
      "diagnosis_cpu_hotspot_asserted": true,
      "diagnosis_kill_query_chain_asserted": true,
      "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": true,
      "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": 1776639000,
      "actual_start_ts": 1776631800,
      "expected_allowed_window_id": "alert_at_plus_minus_1h",
      "expected_end_ts": 1776639000,
      "expected_start_ts": 1776631800,
      "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-0b88309abf184f46b9ec349fe91cd65d",
  "invalid_subtype": null,
  "judged_at": "2026-05-11T07:58:39.532850+00:00",
  "judgment_verdict": "pass",
  "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": 1776639000,
              "actual_start_ts": 1776631800,
              "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-f2ba950f1c6f4c40a19c0fb2d22f0437",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1776639000,
              "actual_start_ts": 1776631800,
              "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-1778486019543-7351cc3c",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1776639000,
        "actual_start_ts": 1776631800,
        "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": 1776639000,
        "actual_start_ts": 1776631800,
        "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-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/logs.json"
          ],
          "description": "Direct recoverable panic evidence is present within the incident window.",
          "earned_score": 8,
          "id": "panic_signal_present",
          "match": "all_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/logs.json",
              "artifacts": [],
              "matched": true,
              "matched_keyword": "panic in the recoverable goroutine",
              "matcher": "keyword_any",
              "snippet": "ce/build-common/go/s... [2026/04/19 21:50:00.323 +00:00] [ERROR] [misc.go:95] [\"panic in the recoverable goroutine\"] [r=\"[executor:3024]Query execution was interrupted, maximum statement executi",
              "source": "logs"
            }
          ],
          "snippet": "ce/build-common/go/s... [2026/04/19 21:50:00.323 +00:00] [ERROR] [misc.go:95] [\"panic in the recoverable goroutine\"] [r=\"[executor:3024]Query execution was interrupted, maximum statement executi"
        },
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/logs.json"
          ],
          "description": "The panic evidence includes the query timeout interruption signal.",
          "earned_score": 9,
          "id": "query_timeout_interrupt_signal_present",
          "match": "all_of",
          "max_score": 9,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/logs.json",
              "artifacts": [],
              "matched": true,
              "matched_keyword": "[executor:3024]Query execution was interrupted",
              "matcher": "keyword_any",
              "snippet": "+00:00] [WARN] [agg_util.go:93] [\"parallel hash aggregation panicked\"] [error=\"[executor:3024]Query execution was interrupted, maximum statement execution time exceeded\"] [stack=\"github.com/pingcap/tidb/pk",
              "source": "logs"
            }
          ],
          "snippet": "+00:00] [WARN] [agg_util.go:93] [\"parallel hash aggregation panicked\"] [error=\"[executor:3024]Query execution was interrupted, maximum statement execution time exceeded\"] [stack=\"github.com/pingcap/tidb/pk"
        },
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/gate_checks.json"
          ],
          "description": "Query or metric context is present for classifying the alert impact.",
          "earned_score": 8,
          "id": "panic_classification_context_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [
                "queries"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            },
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-f2ba950f1c6f4c40a19c0fb2d22f0437/evidences/gate_checks.json",
              "artifacts": [
                "gate_checks"
              ],
              "matched": true,
              "matched_keyword": "INFRA CLEAR",
              "matcher": "json_text_contains_any",
              "snippet": "{\"infra\": \"INFRA CLEAR: EBS total_volumes=59 severe_gt20pct=0 moderate_5_20pct=0; disk_io_util max=0.0",
              "source": "artifact_json"
            }
          ],
          "snippet": "{\"infra\": \"INFRA CLEAR: EBS total_volumes=59 severe_gt20pct=0 moderate_5_20pct=0; disk_io_util max=0.0"
        }
      ],
      "max_score": 30,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 30,
      "status": "pass"
    },
    "critical_evidence_verdict": "pass",
    "diagnosis": {
      "checks": [
        {
          "description": "Identifies that the recoverable panic alert corresponds to a real panic log.",
          "deterministic": {
            "match": "any_of",
            "passed": true,
            "rules": [
              {
                "keywords": [
                  "panic in the recoverable goroutine",
                  "recoverable goroutine panic",
                  "[executor:3024]",
                  "executor:3024"
                ],
                "matched": true,
                "matched_keys": [
                  "panic in the recoverable goroutine",
                  "recoverable goroutine panic",
                  "[executor:3024]",
                  "executor:3024"
                ],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": true,
          "earned_score": 3.0,
          "id": "identify_real_panic_event",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 1,
          "semantic_confidence": 0.78,
          "semantic_notes": [
            "The answer identifies the incident as a real \"panic in the recoverable goroutine\" event with matching panic logs, and distinguishes it from a process crash/fake alarm by framing it as a WithRecovery-caught recoverable panic."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Classifies the panic as a query timeout interruption.",
          "deterministic": {
            "match": "any_of",
            "passed": true,
            "rules": [
              {
                "keywords": [
                  "maximum statement execution time exceeded",
                  "max_execution_time",
                  "query timeout",
                  "timeout interruption",
                  "超时中断",
                  "查询超时"
                ],
                "matched": true,
                "matched_keys": [
                  "maximum statement execution time exceeded",
                  "max_execution_time",
                  "超时中断"
                ],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": true,
          "earned_score": 3.0,
          "id": "identify_query_timeout_interrupt",
          "max_score": 3,
          "mode": "deterministic_only",
          "passed": true,
          "penalty_applied": 0,
          "required": true,
          "scoring_mode": "positive",
          "semantic_check_id": null,
          "semantic_confidence": null,
          "semantic_notes": [],
          "semantic_status": null
        },
        {
          "description": "Does not dismiss the alert as fake or pivot to an unrelated primary root cause.",
          "deterministic": {
            "match": "all_of",
            "passed": true,
            "rules": [
              {
                "keywords": [],
                "matched": true,
                "matched_keys": [
                  "fake_alarm_primary_asserted"
                ],
                "matcher": "bool_false",
                "path": "fake_alarm_primary_asserted",
                "paths": [],
                "patterns": [],
                "source": "output_fact"
              },
              {
                "keywords": [],
                "matched": true,
                "matched_keys": [
                  "missing_index_primary_root_cause_asserted"
                ],
                "matcher": "bool_false",
                "path": "missing_index_primary_root_cause_asserted",
                "paths": [],
                "patterns": [],
                "source": "output_fact"
              },
              {
                "keywords": [],
                "matched": true,
                "matched_keys": [
                  "claims_panic_not_confirmable"
                ],
                "matcher": "bool_false",
                "path": "claims_panic_not_confirmable",
                "paths": [],
                "patterns": [],
                "source": "output_fact"
              }
            ]
          },
          "deterministic_pass": true,
          "earned_score": 0.0,
          "id": "reject_fake_alarm_or_unrelated_root_cause",
          "max_score": 3,
          "mode": "deterministic_only",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "penalty",
          "semantic_check_id": null,
          "semantic_confidence": null,
          "semantic_notes": [],
          "semantic_status": null
        },
        {
          "description": "Classifies the timeout-interrupt panic as expected or benign behavior.",
          "deterministic": {
            "match": "all_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "expected behavior",
                  "normal behavior",
                  "benign",
                  "not a bug",
                  "预期行为",
                  "正常行为",
                  "不是 bug",
                  "不是bug"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 3.0,
          "id": "identify_expected_behavior",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 3,
          "semantic_confidence": 0.81,
          "semantic_notes": [
            "The answer characterizes the timeout-interrupt panic as an expected/benign recoverable mechanism (panic used as interrupt/protection, recovered and logged) rather than a bug requiring escalation."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Recommends no TiDB fix for the panic itself while allowing query or timeout tuning follow-up.",
          "deterministic": {
            "match": "all_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "no fix needed",
                  "no action needed",
                  "no TiDB fix",
                  "does not require a fix",
                  "无需修复",
                  "无需处理",
                  "不需要修复"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 0.0,
          "id": "recommend_no_tidb_fix_needed",
          "max_score": 3,
          "mode": "blended",
          "passed": false,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 4,
          "semantic_confidence": 0.62,
          "semantic_notes": [
            "While the recommendations focus on max_execution_time/timeout settings, query optimization, and alert noise reduction, the answer does not explicitly state that the panic itself does not require a TiDB fix as required by the check."
          ],
          "semantic_status": "fail"
        }
      ],
      "hard_gate_passed": true,
      "max_score": 50,
      "raw_score": 9.0,
      "score": 38,
      "semantic_shadow": {
        "available": true,
        "bucket": "diagnosis.semantic",
        "checks": [
          {
            "bucket": "diagnosis.semantic",
            "check_id": 1,
            "confidence": 0.78,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "panic_signal_present",
                "query_timeout_interrupt_signal_present"
              ],
              "routed_item_ids": [
                "ce-1",
                "ce-2"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "The answer identifies the incident as a real \"panic in the recoverable goroutine\" event with matching panic logs, and distinguishes it from a process crash/fake alarm by framing it as a WithRecovery-caught recoverable panic."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 3,
            "confidence": 0.81,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "query_timeout_interrupt_signal_present",
                "panic_signal_present"
              ],
              "routed_item_ids": [
                "ce-2",
                "ce-1"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "The answer characterizes the timeout-interrupt panic as an expected/benign recoverable mechanism (panic used as interrupt/protection, recovered and logged) rather than a bug requiring escalation."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 4,
            "confidence": 0.62,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "panic_signal_present"
              ],
              "routed_item_ids": [
                "ce-2",
                "ce-1"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "While the recommendations focus on max_execution_time/timeout settings, query optimization, and alert noise reduction, the answer does not explicitly state that the panic itself does not require a TiDB fix as required by the check."
            ],
            "score": 0,
            "status": "fail"
          }
        ],
        "mode": "shadow",
        "packet_case_id": "panic-in-recoverable-goroutine",
        "packet_loaded": true,
        "packet_notes": [],
        "packet_status": "ok",
        "status": "ok",
        "summary": {
          "disagreement_flags": [],
          "shadow_max_score": 9,
          "shadow_score": 6
        }
      },
      "status": "pass"
    },
    "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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched collection facts: logs, 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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: logs, 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 are resolvable whenever the patch contains metric refs.",
          "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 are resolvable whenever the patch contains query refs.",
          "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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: logs, 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": [
                "logs",
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "logs",
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: logs, 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,
        "targeted_panic_log_query_completed": false
      }
    },
    "execution_contract_verdict": "pass",
    "ground_truth_root_cause": "Recoverable goroutine panic caused by query timeout interruption",
    "overall_verdict": "pass",
    "quality_verdict": "pass",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 88,
      "hard_gate_passed": true,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 88
    },
    "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": "Targeted panic log query is completed.",
          "earned_score": 0,
          "id": "targeted_panic_log_query_completed",
          "match": "all_of",
          "max_score": 10,
          "passed": false,
          "required": false,
          "rules": [
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "targeted_panic_log_query_completed",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": null
        },
        {
          "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": 4,
  "primary_failure_code": null,
  "score": 88,
  "total_checks": 5
}