{
  "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": 1776561600,
              "actual_start_ts": 1776559500,
              "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-9d9c80bc09454c489b1f1c9672225292",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1776561600,
              "actual_start_ts": 1776559500,
              "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-1778485209312-cccaae73",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1776561600,
        "actual_start_ts": 1776559500,
        "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": 1776561600,
        "actual_start_ts": 1776559500,
        "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": "expensive-query-spike-during-incident-window",
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "alert_window",
      "expected_cluster_id": "10518506906906971664",
      "time_window_match": true
    },
    "critical_evidence_verdict": "pass",
    "evidence_collection_verdict": "pass",
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "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
      }
    },
    "execution_contract_verdict": "pass",
    "overall_verdict": "fail",
    "quality_verdict": "fail",
    "semantic_shadow": {
      "available": true,
      "status": "ok"
    },
    "source": "deterministic_judge",
    "strategy": "deterministic_trace_heavy_v1",
    "workflow_verdict": "pass"
  },
  "case_run_id": "evalcase-9d9c80bc09454c489b1f1c9672225292",
  "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-9d9c80bc09454c489b1f1c9672225292",
      "source_scope": "audit_dir",
      "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "expensive-query-spike-during-incident-window",
    "cluster": {
      "actual_cluster_id": "10518506906906971664",
      "expected_cluster_id": "10518506906906971664",
      "matched": true
    },
    "contract": {
      "actual_cluster_id": "10518506906906971664",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "alert_window",
      "expected_cluster_id": "10518506906906971664",
      "time_window_match": true
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "expensive_query_log_signal_present",
        "plan_bottleneck_signal_present",
        "hotspot_impact_signal_present"
      ]
    },
    "evidence": {
      "analysis_patch_path": "",
      "core_evidence_bundle_present": true,
      "decoded_plan_indexes_used": "[dh_account_ext_inviterinfo:idx_inviteruseridx_sitecode]",
      "events_channel_observed": false,
      "hotspot_detected": true,
      "infra_clear": true,
      "kill_query_signal_present": false,
      "log_error_counts": {
        "pd": {
          "error": 0,
          "info": 0,
          "warn": 0
        },
        "tidb": {
          "error": 0,
          "info": 0,
          "warn": 0
        },
        "tikv": {
          "error": 0,
          "info": 0,
          "warn": 0
        }
      },
      "logs_channel_observed": true,
      "logs_dir_present": false,
      "memory_tracker_panic_present": false,
      "metric_evidence": [
        {
          "instance": "all (59 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0001,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle Avg",
          "peak": 0.0015,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-35 vol-05a7f7de47d96105f",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.002,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0275,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-38 vol-08c8943f2203f2143",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0016,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0186,
          "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.0005,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.014,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tiflash-4 vol-05437b95fbf874bdc",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0004,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0132,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "db-tikv-11 vol-0bd1bd198045c674b",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.0001,
          "metric_group_id": "ebs_iops_throttle",
          "name": "EBS IOPS Throttle",
          "peak": 0.0044,
          "promql": "rate(aws_ebs_csi_exceeded_iops_seconds_total[1m])  # client-side join by pod",
          "severity": "normal",
          "unit": "fraction"
        },
        {
          "instance": "all (22 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.024,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency Avg",
          "peak": 0.031,
          "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.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-56",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.028,
          "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-57",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.028,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.043,
          "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.026,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 0.04,
          "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.039,
          "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.016,
          "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.01,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.051,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-50",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.01,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.025,
          "promql": "histogram_quantile(0.99, sum(rate(tikv_grpc_msg_duration_seconds_bucket{type!=\"raft\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tikv-6",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.011,
          "metric_group_id": "tikv_grpc_p99",
          "name": "TiKV gRPC P99",
          "peak": 0.024,
          "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, 8 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 11.0,
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU Avg",
          "nodegroup": "db",
          "peak": 22.11,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-0",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 24.83,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "39%"
        },
        {
          "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": 24.65,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "39%"
        },
        {
          "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": 23.39,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "37%"
        },
        {
          "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": 23.32,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "36%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-1",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 21.67,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "34%"
        },
        {
          "component": "tidb",
          "instance": "all (db-2006015162468798464-fc67a2f2, 14 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 12.84,
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU Avg",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 14.46,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-9-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tidb_cpu:db-2006015162468798464-fc67a2f2",
          "name": "TIDB CPU",
          "nodegroup": "db-2006015162468798464-fc67a2f2",
          "peak": 17.11,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "27%"
        },
        {
          "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": 16.53,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "26%"
        },
        {
          "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": 16.11,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "25%"
        },
        {
          "component": "tidb",
          "instance": "db-tidb-3-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.48,
          "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": 15.31,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 64.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "24%"
        },
        {
          "component": "tikv",
          "instance": "all (db, 54 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 10.92,
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU Avg",
          "nodegroup": "db",
          "peak": 13.48,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "unit": "cores"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-40",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 16.12,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "50%"
        },
        {
          "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": 15.98,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "50%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-38",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 15.73,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "49%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-51",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 14.88,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "47%"
        },
        {
          "component": "tikv",
          "instance": "db-tikv-35",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "metric_group_id": "tikv_cpu:db",
          "name": "TIKV CPU",
          "nodegroup": "db",
          "peak": 14.87,
          "promql": "rate(process_cpu_seconds_total{component=\"tikv\"}[1m])",
          "quota": 32.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "46%"
        },
        {
          "instance": "all (22 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.101,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency Avg",
          "peak": 0.157,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-0",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.112,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.267,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-54",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.107,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.267,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-5",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.111,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.25,
          "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.111,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.25,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "db-tidb-1",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.106,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.217,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "instance": "all (22 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-6-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-55",
          "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-5-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-57",
          "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 (22 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.012,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99 Avg",
          "peak": 0.055,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-56",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.016,
          "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-6-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-57",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.018,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.109,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "warning",
          "unit": "seconds"
        },
        {
          "instance": "db-tidb-11-ac-2006015162468798464",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10518506906906971664",
          "mean": 0.016,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.107,
          "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-55",
          "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.107,
          "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-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 7.945,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 6.9523,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "unified_read",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 5.687,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.6983,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.3447,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "grpc",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 4.0377,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.9432,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.9228,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "raftstore",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 2.89,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.7923,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.7113,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "other",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.566,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.4178,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.33,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "rocksdb",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 1.1455,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.8968,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.8915,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "apply",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.8523,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.8128,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.5655,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "sched",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.524,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-2",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1062,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-38",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1038,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        },
        {
          "bucket": "background",
          "instance": "db-tikv-40",
          "metric_group_id": "tikv_thread_cpu",
          "name": "TiKV Thread CPU",
          "peak": 0.1003,
          "promql": "sum by (instance, name) (rate(tikv_thread_cpu_seconds_total{instance=~\"db-tikv-40|db-tikv-2|db-tikv-38\"}[1m]))",
          "unit": "cores"
        }
      ],
      "panic_signal_artifact_present": false,
      "query_evidence": {
        "slow_query": [
          {
            "avg_time": "1.40s",
            "digest": "df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef",
            "exec_count": "175",
            "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=df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef&from=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "1121235",
            "max_time": "1.62s",
            "source": "slow_query",
            "sql_preview": "UPDATE `dh_jpush_recall` SET `state`=? WHERE task_id = ? AND useridx in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?"
          },
          {
            "avg_time": "1.90s",
            "digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
            "exec_count": "153",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "84960",
            "max_time": "3.64s",
            "source": "slow_query",
            "sql_preview": "SHOW STATS_HEALTHY where db_name like 'dh_app_%';"
          },
          {
            "avg_time": "1.15s",
            "digest": "7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699",
            "exec_count": "141",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "736584418",
            "max_time": "1.88s",
            "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": "7.33s",
            "digest": "4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d",
            "exec_count": "66",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "84960",
            "max_time": "16.30s",
            "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.66s",
            "digest": "e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac",
            "exec_count": "65",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "110280",
            "max_time": "2.90s",
            "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": "1.95s",
            "digest": "b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390",
            "exec_count": "57",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "182835294",
            "max_time": "4.81s",
            "source": "slow_query",
            "sql_preview": "SELECT useridx, parent_useridx FROM (SELECT d.useridx, d.parent_useridx FROM dh_promote_myteam_direct d INNER JOIN dh_user_day_report r ON r.user_idx=d.useridx and r.site_code=d.site_code AND r.create"
          },
          {
            "avg_time": "1.65s",
            "digest": "5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b",
            "exec_count": "55",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "501250990",
            "max_time": "3.84s",
            "source": "slow_query",
            "sql_preview": "SELECT '11366' as site_code,20260418 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.48s",
            "digest": "ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792",
            "exec_count": "55",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "120989",
            "max_time": "2.88s",
            "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-19 08:41:00.03922227"
          },
          {
            "avg_time": "2.03s",
            "digest": "601fa8ba4933c1b022c2b158c65b3c24676f1264578530ff7788162c80c4c727",
            "exec_count": "50",
            "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=601fa8ba4933c1b022c2b158c65b3c24676f1264578530ff7788162c80c4c727&from=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "282424798",
            "max_time": "5.55s",
            "source": "slow_query",
            "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_basic as t2 on t2.useridx = t1.userid"
          },
          {
            "avg_time": "2.04s",
            "digest": "840365654e7c46a47ef10a14ac5d1c12c2bb861897fdf680cb6caa32c23e9e80",
            "exec_count": "49",
            "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=1776559500&to=1776561600&show_internal=true&term=",
            "max_mem": "103465219",
            "max_time": "5.49s",
            "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"
          }
        ],
        "topsql": [
          {
            "component": "TiDB",
            "cpu_ms": "5149920",
            "cpu_pct": 3.41,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4933890",
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4923600",
            "cpu_pct": 3.26,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4736430",
            "cpu_pct": 3.13,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4706640",
            "cpu_pct": 3.11,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-8.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4691840",
            "cpu_pct": 3.1,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4599360",
            "cpu_pct": 3.04,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4390960",
            "cpu_pct": 2.9,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-4.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4205690",
            "cpu_pct": 2.78,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-9.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiDB",
            "cpu_ms": "4064850",
            "cpu_pct": 2.69,
            "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=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-1.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080",
            "sql_preview": ""
          },
          {
            "component": "TiKV",
            "cpu_ms": "1400803",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-22.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=1776559500&to=1776561600&instance=db-tikv-22.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": "1148143",
            "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=1776559500&to=1776561600&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": "1145884",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "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=1776559500&to=1776561600&instance=db-tikv-35.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": "1029954",
            "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=1776559500&to=1776561600&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": "1007709",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-49.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=1776559500&to=1776561600&instance=db-tikv-49.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": "992716",
            "cpu_pct": 0.0,
            "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
            "instance": "db-tikv-51.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=1776559500&to=1776561600&instance=db-tikv-51.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": "918149",
            "cpu_pct": 0.0,
            "digest": "A778DFEE075405DC4D534D560F755CC2E3836B661D7D3EACCD7FE806B1EFD36C",
            "instance": "db-tikv-38.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=1776559500&to=1776561600&instance=db-tikv-38.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": "887469",
            "cpu_pct": 0.0,
            "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
            "instance": "db-tikv-50.db-tikv-peer.tidb10518506906906971664.svc:20160",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-50.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": "707163",
            "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=1776559500&to=1776561600&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": "692207",
            "cpu_pct": 0.0,
            "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
            "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=1776559500&to=1776561600&instance=db-tikv-23.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": "df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef",
      "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
      }
    },
    "output": {
      "analyze_primary_culprit_asserted": false,
      "claims_panic_not_confirmable": false,
      "diagnosis_cpu_hotspot_asserted": true,
      "diagnosis_kill_query_chain_asserted": false,
      "diagnosis_memory_tracker_panic_asserted": false,
      "diagnosis_plan_stats_issue_asserted": false,
      "diagnosis_single_instance_panic_restart_asserted": false,
      "fake_alarm_primary_asserted": false,
      "focuses_on_missing_index": false,
      "mentions_cpu_saturation": false,
      "mentions_est_act_divergence": false,
      "mentions_idle_transaction": false,
      "mentions_intermediate_result_explosion": false,
      "mentions_kill_query": false,
      "mentions_memory_tracker_consume": false,
      "mentions_p99_latency_spike": false,
      "mentions_rollback_cleanup": false,
      "mentions_statistics_uninitialized": false,
      "mentions_v8_5_2": false,
      "mentions_v8_5_3_or_fixed_release": false,
      "mentions_without_fix": false,
      "missing_index_primary_root_cause_asserted": false,
      "query_only_primary_root_cause_asserted": false,
      "wide_scan_primary_root_cause_asserted": false
    },
    "routing": {
      "analysis_event_items_present": false,
      "analysis_has_key_evidence": false,
      "analysis_has_supporting_evidence": false,
      "analysis_items_shape_valid": false,
      "analysis_log_items_present": false,
      "analysis_log_or_event_channel_resolvable": true,
      "analysis_metric_refs_required": false,
      "analysis_metric_refs_resolvable": true,
      "analysis_patch_present": false,
      "analysis_patch_valid_json": false,
      "analysis_query_refs_required": false,
      "analysis_query_refs_resolvable": true
    },
    "window": {
      "actual_end_ts": 1776561600,
      "actual_start_ts": 1776559500,
      "expected_allowed_window_id": "alert_window",
      "expected_end_ts": 1776561600,
      "expected_start_ts": 1776559500,
      "matched_allowed_window": true
    },
    "workflow": {
      "architecture_context_loaded": true,
      "diagnosis_run_initialized": true,
      "evidence_collection_completed": true,
      "evidence_collection_started": true,
      "final_answer_emitted": true,
      "misdiagnosis_guardrails_loaded": true,
      "summary_read_completed": true,
      "targeted_panic_log_query_completed": false
    }
  },
  "id": "evaljudge-6f5b05d3a3da4d3a9bc207ac3e555f9f",
  "invalid_subtype": null,
  "judged_at": "2026-05-11T07:44:11.203025+00:00",
  "judgment_verdict": "fail",
  "packet": {
    "artifact_resolution": {
      "candidate_run_dirs": [
        "evidences"
      ],
      "manifest_path_mismatch": false,
      "primary_failure_code": null,
      "resolution_mode": "workspace_evidence_root",
      "scanned_scopes": [
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1776561600,
              "actual_start_ts": 1776559500,
              "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-9d9c80bc09454c489b1f1c9672225292",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10518506906906971664",
              "actual_end_ts": 1776561600,
              "actual_start_ts": 1776559500,
              "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-1778485209312-cccaae73",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10518506906906971664",
        "actual_end_ts": 1776561600,
        "actual_start_ts": 1776559500,
        "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": 1776561600,
        "actual_start_ts": 1776559500,
        "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-9d9c80bc09454c489b1f1c9672225292/evidences/queries.json"
          ],
          "description": "Evidence uses TiDB expensive-query or slow-query logs as a primary source.",
          "earned_score": 8,
          "id": "expensive_query_log_signal_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-9d9c80bc09454c489b1f1c9672225292/evidences/queries.json",
              "artifacts": [
                "queries"
              ],
              "matched": true,
              "matched_keyword": "slow_query",
              "matcher": "json_text_contains_any",
              "snippet": "{\"slow_queries\": [{\"source\": \"slow_query\", \"digest\": \"df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef\",",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": false,
              "matched_keyword": null,
              "matcher": "keyword_any",
              "snippet": null,
              "source": "logs"
            }
          ],
          "snippet": "{\"slow_queries\": [{\"source\": \"slow_query\", \"digest\": \"df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef\","
        },
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-9d9c80bc09454c489b1f1c9672225292/evidences/queries.json"
          ],
          "description": "Evidence shows a large-scan or ineffective access-path bottleneck for the dominant query.",
          "earned_score": 8,
          "id": "plan_bottleneck_signal_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-9d9c80bc09454c489b1f1c9672225292/evidences/queries.json",
              "artifacts": [
                "queries"
              ],
              "matched": true,
              "matched_keyword": "actRows",
              "matcher": "json_text_contains_any",
              "snippet": "06,\\n                    \\\"estRows\\\": 7.478810821023625,\\n                    \\\"actRows\\\": \\\"3\\\",\\n                    \\\"taskType\\\": \\\"cop\\\",\\n                    \\\"st",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "06,\\n                    \\\"estRows\\\": 7.478810821023625,\\n                    \\\"actRows\\\": \\\"3\\\",\\n                    \\\"taskType\\\": \\\"cop\\\",\\n                    \\\"st"
        },
        {
          "artifact_paths": [
            "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-9d9c80bc09454c489b1f1c9672225292/evidences/metrics.json"
          ],
          "description": "Evidence shows the expensive-query path concentrated read pressure on a small set of TiKV nodes.",
          "earned_score": 9,
          "id": "hotspot_impact_signal_present",
          "match": "any_of",
          "max_score": 9,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/Users/huyibin/Documents/dev/investibook/backend/data/eval_audits/evalrun-3e8725979333434fa751c2dfb9a6b21f/evalcase-9d9c80bc09454c489b1f1c9672225292/evidences/metrics.json",
              "artifacts": [
                "metrics"
              ],
              "matched": true,
              "matched_keyword": "TiKV CPU",
              "matcher": "json_text_contains_any",
              "snippet": "971664\", \"start\": \"1776559500\", \"end\": \"1776561600\", \"step\": \"60s\"}}, {\"name\": \"TIKV CPU Avg\", \"component\": \"tikv\", \"metric_group_id\": \"tikv_cpu:db\", \"instance\": \"all (",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "971664\", \"start\": \"1776559500\", \"end\": \"1776561600\", \"step\": \"60s\"}}, {\"name\": \"TIKV CPU Avg\", \"component\": \"tikv\", \"metric_group_id\": \"tikv_cpu:db\", \"instance\": \"all ("
        }
      ],
      "max_score": 30,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 30,
      "status": "pass"
    },
    "critical_evidence_verdict": "pass",
    "diagnosis": {
      "checks": [
        {
          "description": "References TiDB expensive-query or slow-query log evidence for the dominant query path.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "slow query log",
                  "expensive query log",
                  "TiDB log",
                  "slow_query",
                  "TiDB 慢日志"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 3.0,
          "id": "mention_expensive_query_log_evidence",
          "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": [
            "Answer explicitly uses expensive query context as the investigation starting point and references TopSQL/slow log as evidence sources (even though it notes a slow-query sample/plan was not captured)."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Identifies an ineffective access path such as large scan or missing index as the main query bottleneck.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "IndexFullScan",
                  "full scan",
                  "missing index",
                  "ineffective index",
                  "large scan",
                  "全表扫描",
                  "缺少索引"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 0.0,
          "id": "identify_large_scan_or_missing_access_path",
          "max_score": 3,
          "mode": "blended",
          "passed": false,
          "penalty_applied": 0,
          "required": true,
          "scoring_mode": "positive",
          "semantic_check_id": 2,
          "semantic_confidence": 0.72,
          "semantic_notes": [
            "Answer starts from expensive query/hotspot signals, but the primary mechanism is framed as a single-digest TiKV CPU/grpc hotspot; it does not clearly conclude that a large scan or ineffective access path is the main mechanism behind the dominant query."
          ],
          "semantic_status": "fail"
        },
        {
          "description": "Does not elevate ANALYZE-related queries into the primary culprit.",
          "deterministic": {
            "match": "all_of",
            "passed": true,
            "rules": [
              {
                "keywords": [],
                "matched": true,
                "matched_keys": [
                  "analyze_primary_culprit_asserted"
                ],
                "matcher": "bool_false",
                "path": "analyze_primary_culprit_asserted",
                "paths": [],
                "patterns": [],
                "source": "output_fact"
              }
            ]
          },
          "deterministic_pass": true,
          "earned_score": 0.0,
          "id": "reject_analyze_as_primary_culprit",
          "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": "Recommends fixing the access path first.",
          "deterministic": {
            "match": "any_of",
            "passed": true,
            "rules": [
              {
                "keywords": [
                  "add index",
                  "composite index",
                  "access path",
                  "SQL binding",
                  "增加索引",
                  "访问路径"
                ],
                "matched": true,
                "matched_keys": [
                  "SQL binding",
                  "访问路径"
                ],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": true,
          "earned_score": 3.0,
          "id": "recommend_index_or_access_path_fix",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 4,
          "semantic_confidence": 0.7,
          "semantic_notes": [
            "Recommendations prioritize adding/adjusting indexes and access-path stabilization (e.g., SQL binding) as primary remediation; statistics refresh is not positioned as the primary fix."
          ],
          "semantic_status": "pass"
        }
      ],
      "hard_gate_passed": false,
      "max_score": 50,
      "raw_score": 6.0,
      "score": 33,
      "semantic_shadow": {
        "available": true,
        "bucket": "diagnosis.semantic",
        "checks": [
          {
            "bucket": "diagnosis.semantic",
            "check_id": 1,
            "confidence": 0.78,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "expensive_query_log_signal_present"
              ],
              "routed_item_ids": [
                "ce-1"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Answer explicitly uses expensive query context as the investigation starting point and references TopSQL/slow log as evidence sources (even though it notes a slow-query sample/plan was not captured)."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 2,
            "confidence": 0.72,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [],
              "routed_item_ids": [
                "ce-1"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Answer starts from expensive query/hotspot signals, but the primary mechanism is framed as a single-digest TiKV CPU/grpc hotspot; it does not clearly conclude that a large scan or ineffective access path is the main mechanism behind the dominant query."
            ],
            "score": 0,
            "status": "fail"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 4,
            "confidence": 0.7,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [],
              "routed_item_ids": [
                "ce-2"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "Recommendations prioritize adding/adjusting indexes and access-path stabilization (e.g., SQL binding) as primary remediation; statistics refresh is not positioned as the primary fix."
            ],
            "score": 3,
            "status": "pass"
          }
        ],
        "mode": "shadow",
        "packet_case_id": "expensive-query-spike-during-incident-window",
        "packet_loaded": true,
        "packet_notes": [],
        "packet_status": "ok",
        "status": "ok",
        "summary": {
          "disagreement_flags": [],
          "shadow_max_score": 9,
          "shadow_score": 6
        }
      },
      "status": "fail"
    },
    "evidence_collection": {
      "checks": [
        {
          "description": "Required evidence artifacts are present and readable.",
          "earned_score": 4,
          "id": "required_artifacts_present",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: core_evidence_bundle_present"
        },
        {
          "description": "At least the minimum number of preferred evidence channels are observed.",
          "earned_score": 0,
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "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 resolve whenever the patch requires them.",
          "earned_score": 1,
          "id": "metric_refs_resolvable",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_metric_refs_required"
              ],
              "matcher": "bool_false",
              "path": "analysis_metric_refs_required",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": true,
              "matched_keys": [
                "analysis_metric_refs_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_metric_refs_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_metric_refs_required, analysis_metric_refs_resolvable"
        },
        {
          "description": "Query references resolve whenever the patch requires them.",
          "earned_score": 1,
          "id": "query_refs_resolvable",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_query_refs_required"
              ],
              "matcher": "bool_false",
              "path": "analysis_query_refs_required",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": true,
              "matched_keys": [
                "analysis_query_refs_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_query_refs_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_query_refs_required, analysis_query_refs_resolvable"
        },
        {
          "description": "Analysis patch includes supporting evidence whenever the patch exists.",
          "earned_score": 0,
          "id": "supporting_evidence_present",
          "match": "any_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_has_supporting_evidence",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Routed log or event items stay resolvable against observed channels.",
          "earned_score": 0,
          "id": "analysis_log_or_event_channel_resolvable",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_log_or_event_channel_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_log_or_event_channel_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_log_or_event_channel_resolvable"
        }
      ],
      "max_score": 5,
      "raw_max_score": 7,
      "raw_score": 7,
      "score": 5,
      "status": "pass"
    },
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "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
      }
    },
    "execution_contract_verdict": "pass",
    "ground_truth_root_cause": "A read-heavy query path lacked an efficient access path, forcing a large scan and concentrating read pressure on a small set of TiKV nodes",
    "overall_verdict": "fail",
    "quality_verdict": "fail",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 69,
      "hard_gate_passed": false,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 83
    },
    "strategy": "deterministic_trace_heavy_v1",
    "workflow": {
      "checks": [
        {
          "description": "Architecture context is loaded.",
          "earned_score": 5,
          "id": "architecture_context_loaded",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded"
              ],
              "matcher": "bool_true",
              "path": "architecture_context_loaded",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: architecture_context_loaded"
        },
        {
          "description": "Misdiagnosis guardrails are loaded.",
          "earned_score": 5,
          "id": "misdiagnosis_guardrails_loaded",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "misdiagnosis_guardrails_loaded"
              ],
              "matcher": "bool_true",
              "path": "misdiagnosis_guardrails_loaded",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: misdiagnosis_guardrails_loaded"
        },
        {
          "description": "Diagnosis run is initialized.",
          "earned_score": 5,
          "id": "diagnosis_run_initialized",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_run_initialized"
              ],
              "matcher": "bool_true",
              "path": "diagnosis_run_initialized",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: diagnosis_run_initialized"
        },
        {
          "description": "Evidence collection completes.",
          "earned_score": 10,
          "id": "evidence_collection_completed",
          "match": "all_of",
          "max_score": 10,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "evidence_collection_completed"
              ],
              "matcher": "bool_true",
              "path": "evidence_collection_completed",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: evidence_collection_completed"
        },
        {
          "description": "Summary artifact is read when available.",
          "earned_score": 5,
          "id": "summary_read_completed",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "summary_read_completed"
              ],
              "matcher": "bool_true",
              "path": "summary_read_completed",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: summary_read_completed"
        },
        {
          "description": "Final answer is emitted.",
          "earned_score": 0,
          "id": "final_answer_emitted",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "final_answer_emitted"
              ],
              "matcher": "bool_true",
              "path": "final_answer_emitted",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: final_answer_emitted"
        }
      ],
      "max_score": 10,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 10,
      "status": "pass"
    },
    "workflow_verdict": "pass"
  },
  "passed_checks": 3,
  "primary_failure_code": "diagnosis_critical_gate_failed",
  "score": 69,
  "total_checks": 4
}