{
  "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": "10805087899823024166",
              "actual_end_ts": 1773033240,
              "actual_start_ts": 1773029640,
              "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": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10805087899823024166",
              "actual_end_ts": 1773033240,
              "actual_start_ts": 1773029640,
              "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": "/data/workspaces/ws-eval-1778575728562-e2eaeeb7",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10805087899823024166",
        "actual_end_ts": 1773033240,
        "actual_start_ts": 1773029640,
        "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": "10805087899823024166",
        "actual_end_ts": 1773033240,
        "actual_start_ts": 1773029640,
        "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": "tail-latency-surge-during-incident-window",
    "contract": {
      "actual_cluster_id": "10805087899823024166",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_cluster_id": "10805087899823024166",
      "time_window_match": true
    },
    "critical_evidence_verdict": "pass",
    "evidence_collection_verdict": "pass",
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "execution_contract_verdict": "pass",
    "overall_verdict": "pass",
    "quality_verdict": "pass",
    "semantic_shadow": {
      "available": true,
      "status": "ok"
    },
    "source": "deterministic_judge",
    "strategy": "deterministic_trace_heavy_v1",
    "workflow_verdict": "pass"
  },
  "case_run_id": "evalcase-9093a69aa0bc42078a0f91e2d47102c0",
  "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": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0",
      "source_scope": "audit_dir",
      "summary_txt_path": "evidences/evidence_summary_for_agent.txt",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "tail-latency-surge-during-incident-window",
    "cluster": {
      "actual_cluster_id": "10805087899823024166",
      "expected_cluster_id": "10805087899823024166",
      "matched": true
    },
    "contract": {
      "actual_cluster_id": "10805087899823024166",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_cluster_id": "10805087899823024166",
      "time_window_match": true
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "lock_contention_signal_present",
        "hotspot_instance_evidence_present",
        "primary_write_path_evidence_present"
      ]
    },
    "evidence": {
      "analysis_patch_path": "",
      "core_evidence_bundle_present": true,
      "decoded_plan_indexes_used": "\\N",
      "events_channel_observed": false,
      "hotspot_detected": false,
      "infra_clear": true,
      "kill_query_signal_present": false,
      "log_error_counts": {
        "pd": {
          "error": 0,
          "info": 0,
          "warn": 130
        },
        "tidb": {
          "error": 8948,
          "info": 0,
          "warn": 4479
        },
        "tikv": {
          "error": 78,
          "info": 0,
          "warn": 95
        }
      },
      "logs_channel_observed": true,
      "logs_dir_present": false,
      "memory_tracker_panic_present": false,
      "metric_evidence": [
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "all (2 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 3.15,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency Avg",
          "peak": 18.529,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-wts9s8",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 3.043,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 19.294,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-180hpg",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 3.257,
          "metric_group_id": "tidb_p99_latency",
          "name": "TiDB P99 Latency",
          "peak": 17.764,
          "promql": "histogram_quantile(0.99, sum(rate(tidb_server_handle_query_duration_seconds_bucket[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "component": "tidb",
          "instance": "all (db, 2 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 1.62,
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU Avg",
          "nodegroup": "db",
          "peak": 2.26,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "unit": "cores"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "component": "tidb",
          "instance": "db-2029059633078865920-tidb-wts9s8",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 2.3,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 7.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "33%"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "component": "tidb",
          "instance": "db-2029059633078865920-tidb-180hpg",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "metric_group_id": "tidb_cpu:db",
          "name": "TIDB CPU",
          "nodegroup": "db",
          "peak": 2.23,
          "promql": "rate(process_cpu_seconds_total{component=\"tidb\"}[1m])",
          "quota": 7.0,
          "severity": "normal",
          "unit": "cores",
          "utilization": "32%"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "all (2 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.439,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency Avg",
          "peak": 0.525,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "unit": "events/s"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-180hpg",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.446,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.533,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-wts9s8",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.432,
          "metric_group_id": "tidb_gc_frequency",
          "name": "TiDB GC Frequency",
          "peak": 0.517,
          "promql": "rate(go_gc_duration_seconds_count{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "events/s"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "all (2 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate Avg",
          "peak": 0.0,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "unit": "seconds/second"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-180hpg",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.0,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-wts9s8",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.0,
          "metric_group_id": "tidb_gc_duration_rate",
          "name": "TiDB GC Duration Rate",
          "peak": 0.0,
          "promql": "rate(go_gc_duration_seconds_sum{component=\"tidb\"}[1m])",
          "severity": "normal",
          "unit": "seconds/second"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "all (2 instances)",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.001,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99 Avg",
          "peak": 0.005,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-wts9s8",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.001,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.005,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "normal",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": "1773033240",
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
            "start": "1773029640",
            "step": "60s"
          },
          "instance": "db-2029059633078865920-tidb-180hpg",
          "link": "https://clinic.pingcap.com/portal/#/clusters/10805087899823024166",
          "mean": 0.001,
          "metric_group_id": "tidb_gc_pause_p99",
          "name": "TiDB GC Pause P99",
          "peak": 0.005,
          "promql": "histogram_quantile(0.99, sum(rate(go_gc_pauses_seconds_bucket{component=\"tidb\"}[1m])) by (le, instance))",
          "severity": "normal",
          "unit": "seconds"
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": 1773033240,
            "kind": "promql_range",
            "promql": "sum(rate(tidb_tikvclient_lock_resolver_actions_total[1m])) by (type)",
            "start": 1773029640,
            "step": "60"
          },
          "group": "lock_resolver_actions",
          "id": "lock_resolver_actions",
          "metric_group_id": "lock_resolver_actions",
          "name": "lock_resolver_actions",
          "promql": "sum(rate(tidb_tikvclient_lock_resolver_actions_total[1m])) by (type)",
          "ref": {
            "metric_group_id": "lock_resolver_actions",
            "type": "metric"
          },
          "series_summaries": [
            {
              "avg": 0.0,
              "labels": {
                "type": "batch_resolve"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 61
            },
            {
              "avg": 9.962841530054645,
              "labels": {
                "type": "expired"
              },
              "max": 12.433333333333334,
              "min": 7.233333333333333,
              "point_count": 61
            },
            {
              "avg": 0.3937158469945355,
              "labels": {
                "type": "not_expired"
              },
              "max": 0.7,
              "min": 0.13333333333333333,
              "point_count": 61
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "query_check_secondary_locks"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 61
            },
            {
              "avg": 1.0540983606557377,
              "labels": {
                "type": "query_resolve_lock_lite"
              },
              "max": 1.5333333333333332,
              "min": 0.6666666666666666,
              "point_count": 61
            },
            {
              "avg": 9.962841530054645,
              "labels": {
                "type": "query_resolve_locks"
              },
              "max": 12.433333333333334,
              "min": 7.233333333333333,
              "point_count": 61
            },
            {
              "avg": 10.348087431693989,
              "labels": {
                "type": "query_txn_status"
              },
              "max": 12.850000000000001,
              "min": 7.533333333333333,
              "point_count": 61
            },
            {
              "avg": 9.954371584699453,
              "labels": {
                "type": "query_txn_status_committed"
              },
              "max": 12.416666666666666,
              "min": 7.233333333333333,
              "point_count": 61
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "query_txn_status_rolled_back"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 61
            },
            {
              "avg": 10.35655737704918,
              "labels": {
                "type": "resolve"
              },
              "max": 12.866666666666667,
              "min": 7.533333333333333,
              "point_count": 61
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "resolve_async_commit"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 61
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "resolve_for_write"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 61
            },
            {
              "avg": 0.3937158469945355,
              "labels": {
                "type": "wait_expired"
              },
              "max": 0.7,
              "min": 0.13333333333333333,
              "point_count": 61
            }
          ],
          "summary": {
            "avg": 4.032786885245901,
            "max": 12.866666666666667,
            "min": 0.0,
            "point_count": 793,
            "series_count": 13
          },
          "time_window": {
            "end": 1773033240,
            "start": 1773029640,
            "step": "60"
          },
          "unit": ""
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": 1773033240,
            "kind": "promql_range",
            "promql": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_lock_wait_duration_seconds_bucket[1m])) by (le))",
            "start": 1773029640,
            "step": "60"
          },
          "group": "tidb_pessimistic_lock_wait",
          "id": "tidb_pessimistic_lock_wait",
          "metric_group_id": "tidb_pessimistic_lock_wait",
          "name": "tidb_pessimistic_lock_wait",
          "promql": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_lock_wait_duration_seconds_bucket[1m])) by (le))",
          "ref": {
            "metric_group_id": "tidb_pessimistic_lock_wait",
            "type": "metric"
          },
          "series_summaries": [],
          "summary": {
            "point_count": 0,
            "series_count": 0
          },
          "time_window": {
            "end": 1773033240,
            "start": 1773029640,
            "step": "60"
          },
          "unit": ""
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": 1773034200,
            "kind": "promql_range",
            "promql": "sum(rate(tidb_executor_statement_total[1m])) by (type)",
            "start": 1773028800,
            "step": "60"
          },
          "group": "tidb_statement_count",
          "id": "tidb_statement_count",
          "metric_group_id": "tidb_statement_count",
          "name": "tidb_statement_count",
          "promql": "sum(rate(tidb_executor_statement_total[1m])) by (type)",
          "ref": {
            "metric_group_id": "tidb_statement_count",
            "type": "metric"
          },
          "series_summaries": [
            {
              "avg": 0.0,
              "labels": {
                "type": "AlterTable"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "AnalyzeTable"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "Begin"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 34.30897435897436,
              "labels": {
                "type": "Commit"
              },
              "max": 39.45,
              "min": 27.616666666666667,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "CreateDatabase"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "CreateTable"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "CreateUser"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "Delete"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "DescTable"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "DropTable"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "Grant"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 103.46043956043955,
              "labels": {
                "type": "Insert"
              },
              "max": 135.81666666666666,
              "min": 82.2,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "Replace"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 0.0,
              "labels": {
                "type": "Rollback"
              },
              "max": 0.0,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 1899.2672161172163,
              "labels": {
                "type": "Select"
              },
              "max": 2217.0333333333338,
              "min": 1549.7333333333331,
              "point_count": 91
            },
            {
              "avg": 142.6448717948718,
              "labels": {
                "type": "Set"
              },
              "max": 162.71666666666667,
              "min": 119.96666666666667,
              "point_count": 91
            },
            {
              "avg": 0.008424908424908424,
              "labels": {
                "type": "Show"
              },
              "max": 0.6,
              "min": 0.0,
              "point_count": 91
            },
            {
              "avg": 284.8155677655678,
              "labels": {
                "type": "Update"
              },
              "max": 324.29999999999995,
              "min": 233.0,
              "point_count": 91
            },
            {
              "avg": 2.1695970695970694,
              "labels": {
                "type": "Use"
              },
              "max": 6.35,
              "min": 0.03333333333333333,
              "point_count": 91
            },
            {
              "avg": 0.0018315018315018315,
              "labels": {
                "type": "other"
              },
              "max": 0.016666666666666666,
              "min": 0.0,
              "point_count": 91
            }
          ],
          "summary": {
            "avg": 123.33384615384615,
            "max": 2217.0333333333338,
            "min": 0.0,
            "point_count": 1820,
            "series_count": 20
          },
          "time_window": {
            "end": 1773034200,
            "start": 1773028800,
            "step": "60"
          },
          "unit": ""
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": 1773034200,
            "kind": "promql_range",
            "promql": "sum(rate(tidb_server_query_total[1m])) by (result)",
            "start": 1773028800,
            "step": "60"
          },
          "group": "tidb_qps",
          "id": "tidb_qps",
          "metric_group_id": "tidb_qps",
          "name": "tidb_qps",
          "promql": "sum(rate(tidb_server_query_total[1m])) by (result)",
          "ref": {
            "metric_group_id": "tidb_qps",
            "type": "metric"
          },
          "series_summaries": [
            {
              "avg": 1.8772893772893775,
              "labels": {
                "result": "Error"
              },
              "max": 7.866666666666667,
              "min": 0.016666666666666666,
              "point_count": 91
            },
            {
              "avg": 2464.6023809523813,
              "labels": {
                "result": "OK"
              },
              "max": 2842.2,
              "min": 2027.466666666667,
              "point_count": 91
            }
          ],
          "summary": {
            "avg": 1233.239835164835,
            "max": 2842.2,
            "min": 0.016666666666666666,
            "point_count": 182,
            "series_count": 2
          },
          "time_window": {
            "end": 1773034200,
            "start": 1773028800,
            "step": "60"
          },
          "unit": ""
        },
        {
          "chart_data_ref": {
            "cluster_id": "10805087899823024166",
            "end": 1773034200,
            "kind": "promql_range",
            "promql": "sum(rate(tidb_server_query_total[1m])) by (result)",
            "start": 1773028800,
            "step": "60"
          },
          "group": "tidb_qps",
          "id": "tidb_qps",
          "metric_group_id": "tidb_qps",
          "name": "tidb_qps",
          "promql": "sum(rate(tidb_server_query_total[1m])) by (result)",
          "ref": {
            "metric_group_id": "tidb_qps",
            "type": "metric"
          },
          "series_summaries": [
            {
              "avg": 1.8772893772893775,
              "labels": {
                "result": "Error"
              },
              "max": 7.866666666666667,
              "min": 0.016666666666666666,
              "point_count": 91
            },
            {
              "avg": 2464.6023809523813,
              "labels": {
                "result": "OK"
              },
              "max": 2842.2,
              "min": 2027.4666666666667,
              "point_count": 91
            }
          ],
          "summary": {
            "avg": 1233.239835164835,
            "max": 2842.2,
            "min": 0.016666666666666666,
            "point_count": 182,
            "series_count": 2
          },
          "time_window": {
            "end": 1773034200,
            "start": 1773028800,
            "step": "60"
          },
          "unit": ""
        }
      ],
      "panic_signal_artifact_present": false,
      "query_evidence": {
        "slow_query": [
          {
            "avg_time": "7.81s",
            "digest": "d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c",
            "exec_count": "43388",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "446856",
            "max_time": "18.17s",
            "source": "slow_query",
            "sql_preview": "update `t_merchant_online` set `amount_by_day` = `amount_by_day` + ? , `total_amount` = `total_amount` + ? where `merchant_id` = ?;"
          },
          {
            "avg_time": "11.92s",
            "digest": "1263c0b1abb18a08114a8f93a3159e61f8585a1f7db76495e9f4811d99c890cc",
            "exec_count": "37286",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=1263c0b1abb18a08114a8f93a3159e61f8585a1f7db76495e9f4811d99c890cc&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "375164",
            "max_time": "21.87s",
            "source": "slow_query",
            "sql_preview": "update `t_merchant_ol_pay_type` set `amount_by_day` = ? + `amount_by_day` , `last_deposit_date` = ? where `merchant_id` = ? and `pay_type` = ?;"
          },
          {
            "avg_time": "0.94s",
            "digest": "e63a5a3721df7e879b7467bfe7e6feec4a48eb67e7a3d9f55d61e3671556f78c",
            "exec_count": "959",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=e63a5a3721df7e879b7467bfe7e6feec4a48eb67e7a3d9f55d61e3671556f78c&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "68631",
            "max_time": "1.93s",
            "source": "slow_query",
            "sql_preview": "select count ( ? ) from `t_product_tran` where ( `flag` = ? and `io_flag` = ? and ( `version_flag` is ? or `version_flag` = ? ) and `auto_flag` = ? and `bill_date` >= ? and `created_date` >= ? and `ch"
          },
          {
            "avg_time": "0.46s",
            "digest": "31837fec6e728fe7c720032eee24c65f11119acc87dd902570c47ebe89892c60",
            "exec_count": "633",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=31837fec6e728fe7c720032eee24c65f11119acc87dd902570c47ebe89892c60&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "49292",
            "max_time": "1.72s",
            "source": "slow_query",
            "sql_preview": "select count ( ? ) from `t_product_tran` where ( `flag` = ? and `io_flag` = ? and `channel_code` = ? and `created_date` >= ? );"
          },
          {
            "avg_time": "1.97s",
            "digest": "81480b587869e7ce1fe5e0392b720937bcbb420338542e73078af552fc2c471f",
            "exec_count": "120",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=81480b587869e7ce1fe5e0392b720937bcbb420338542e73078af552fc2c471f&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "55816",
            "max_time": "2.15s",
            "source": "slow_query",
            "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,"
          },
          {
            "avg_time": "1.41s",
            "digest": "a3da08f5565c28177fe62944f4fdda2eea34fabe04edf26c458f57d7b50160dd",
            "exec_count": "107",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=a3da08f5565c28177fe62944f4fdda2eea34fabe04edf26c458f57d7b50160dd&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "55856",
            "max_time": "1.90s",
            "source": "slow_query",
            "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,"
          },
          {
            "avg_time": "0.32s",
            "digest": "c84d6df4529b65884ecf596dbd73113f9af646a213814efd9908a6947e2bcd46",
            "exec_count": "86",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=c84d6df4529b65884ecf596dbd73113f9af646a213814efd9908a6947e2bcd46&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "60508",
            "max_time": "0.50s",
            "source": "slow_query",
            "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,"
          },
          {
            "avg_time": "2.94s",
            "digest": "c538d94fae384d939d9432a100938713ddd47d4c6cd519f9b96bdfc56a856e9f",
            "exec_count": "60",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=c538d94fae384d939d9432a100938713ddd47d4c6cd519f9b96bdfc56a856e9f&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "773616",
            "max_time": "3.20s",
            "source": "slow_query",
            "sql_preview": "select `id` from `t_order_ol` where `flag` = ? and `created_date` >= ? and `created_date` <= ? and `channel_code` in ( ... );"
          },
          {
            "avg_time": "0.51s",
            "digest": "0a8a00476f15aaac340c34c819f0d5c1179aa2af7970a4230e8d8acc2255cae6",
            "exec_count": "3",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=0a8a00476f15aaac340c34c819f0d5c1179aa2af7970a4230e8d8acc2255cae6&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "8192",
            "max_time": "0.70s",
            "source": "slow_query",
            "sql_preview": "select `flag` , count ( ? ) as `quantity` from `t_product_tran` where `flag` in ( ... ) and `created_date` > date_add ( curdate ( ) , interval - ? day ) group by `flag`;"
          },
          {
            "avg_time": "0.92s",
            "digest": "1f12f6e333d2a264e0da279518eed3312a8b3d8e558258b90233eff82db0eae8",
            "exec_count": "1",
            "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=1f12f6e333d2a264e0da279518eed3312a8b3d8e558258b90233eff82db0eae8&from=1773029640&to=1773033240&show_internal=true&term=",
            "max_mem": "399390",
            "max_time": "0.92s",
            "source": "slow_query",
            "sql_preview": "select `ifnull` ( sum ( `t` . `tran_amount` ) , ? ) as `transamount` , `ifnull` ( sum ( case when `t` . `io_flag` = ? then `t` . `tran_amount` end ) , ? ) as `depositamount` , `ifnull` ( sum ( case wh"
          }
        ],
        "topsql": []
      },
      "query_or_metric_channel_observed": true,
      "slow_query_top_digest": "d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c",
      "ticket_context_channel_observed": false,
      "topsql_collection_error_recorded": false
    },
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "output": {
      "analyze_primary_culprit_asserted": false,
      "claims_panic_not_confirmable": false,
      "diagnosis_cpu_hotspot_asserted": true,
      "diagnosis_kill_query_chain_asserted": false,
      "diagnosis_memory_tracker_panic_asserted": false,
      "diagnosis_plan_stats_issue_asserted": false,
      "diagnosis_single_instance_panic_restart_asserted": false,
      "fake_alarm_primary_asserted": false,
      "focuses_on_missing_index": true,
      "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": true,
      "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": 1773033240,
      "actual_start_ts": 1773029640,
      "expected_allowed_window_id": "workspace_observed_window",
      "expected_end_ts": 1773033240,
      "expected_start_ts": 1773029640,
      "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-cbfec5a363d942f8b9c737a0469a2714",
  "invalid_subtype": null,
  "judged_at": "2026-05-12T08:54:37.063752+00:00",
  "judgment_verdict": "pass",
  "packet": {
    "artifact_resolution": {
      "candidate_run_dirs": [
        "evidences"
      ],
      "manifest_path_mismatch": false,
      "primary_failure_code": null,
      "resolution_mode": "workspace_evidence_root",
      "scanned_scopes": [
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10805087899823024166",
              "actual_end_ts": 1773033240,
              "actual_start_ts": 1773029640,
              "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": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10805087899823024166",
              "actual_end_ts": 1773033240,
              "actual_start_ts": 1773029640,
              "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": "/data/workspaces/ws-eval-1778575728562-e2eaeeb7",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10805087899823024166",
        "actual_end_ts": 1773033240,
        "actual_start_ts": 1773029640,
        "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": "10805087899823024166",
        "actual_end_ts": 1773033240,
        "actual_start_ts": 1773029640,
        "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": [
            "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json"
          ],
          "description": "Direct lock-contention evidence is present for the incident window.",
          "earned_score": 8,
          "id": "lock_contention_signal_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json",
              "artifacts": [
                "queries"
              ],
              "matched": true,
              "matched_keyword": "lock_keys: {time:8.8s",
              "matcher": "json_text_contains_any",
              "snippet": "49792.svc.cluster.local:20160, }, region_num:1, write_keys:2, write_byte:3254}, lock_keys: {time:8.8s, region:192, keys:192, slowest_rpc: {total: 0.045s, region_id: 22587, store: db",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "metrics"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "49792.svc.cluster.local:20160, }, region_num:1, write_keys:2, write_byte:3254}, lock_keys: {time:8.8s, region:192, keys:192, slowest_rpc: {total: 0.045s, region_id: 22587, store: db"
        },
        {
          "artifact_paths": [
            "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json"
          ],
          "description": "Evidence isolates the hotspot to a single TiKV instance.",
          "earned_score": 8,
          "id": "hotspot_instance_evidence_present",
          "match": "any_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json",
              "artifacts": [
                "queries"
              ],
              "matched": true,
              "matched_keyword": "store: db-a924bb0f-tikv-29grsn.db-cluster.tidb2028998946604449792.svc.cluster.local:20160",
              "matcher": "json_text_contains_any",
              "snippet": "_txn: {prewrite:2.85ms, slowest_prewrite_rpc: {total: 0.003s, region_id: 22587, store: db-a924bb0f-tikv-29grsn.db-cluster.tidb2028998946604449792.svc.cluster.local:20160, }, region_num:1, write_keys:2, write_byte:3254}, lock_keys: {time:8.8s, region",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "metrics"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "_txn: {prewrite:2.85ms, slowest_prewrite_rpc: {total: 0.003s, region_id: 22587, store: db-a924bb0f-tikv-29grsn.db-cluster.tidb2028998946604449792.svc.cluster.local:20160, }, region_num:1, write_keys:2, write_byte:3254}, lock_keys: {time:8.8s, region"
        },
        {
          "artifact_paths": [
            "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json"
          ],
          "description": "Query evidence points to the dominant write path rather than a generic infrastructure issue.",
          "earned_score": 9,
          "id": "primary_write_path_evidence_present",
          "match": "any_of",
          "max_score": 9,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "/data/eval_audits/evalrun-b92aea0782574c129e3a933d662adcdd/evalcase-9093a69aa0bc42078a0f91e2d47102c0/evidences/queries.json",
              "artifacts": [
                "queries"
              ],
              "matched": true,
              "matched_keyword": "t_merchant_online",
              "matcher": "json_text_contains_any",
              "snippet": "9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c\", \"sql_preview\": \"update `t_merchant_online` set `amount_by_day` = `amount_by_day` + ? , `total_amount` = `total_amount` +",
              "source": "artifact_json"
            },
            {
              "artifact_path": "",
              "artifacts": [
                "summary_json"
              ],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_text_contains_any",
              "snippet": null,
              "source": "artifact_json"
            }
          ],
          "snippet": "9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c\", \"sql_preview\": \"update `t_merchant_online` set `amount_by_day` = `amount_by_day` + ? , `total_amount` = `total_amount` +"
        }
      ],
      "max_score": 30,
      "raw_max_score": 25,
      "raw_score": 25,
      "score": 30,
      "status": "pass"
    },
    "critical_evidence_verdict": "pass",
    "diagnosis": {
      "checks": [
        {
          "description": "Identifies lock contention on the primary write path as the main incident path.",
          "deterministic": {
            "match": "all_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "lock contention",
                  "pessimistic lock",
                  "lock wait",
                  "write contention",
                  "concurrent write contention",
                  "hotspot key serialization",
                  "锁冲突",
                  "锁竞争",
                  "锁等待",
                  "并发写争用",
                  "热点键串行化"
                ],
                "matched": true,
                "matched_keys": [
                  "lock contention",
                  "pessimistic lock",
                  "lock wait",
                  "锁竞争",
                  "锁等待"
                ],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              },
              {
                "keywords": [
                  "write path",
                  "point update",
                  "update workload",
                  "写路径",
                  "点更新"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 3.0,
          "id": "identify_lock_contention_as_primary_path",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": true,
          "scoring_mode": "positive",
          "semantic_check_id": 1,
          "semantic_confidence": 0.97,
          "semantic_notes": [
            "The answer explicitly identifies pessimistic lock contention on t_merchant_online/t_merchant_ol_pay_type as the root cause, with high-frequency concurrent UPDATE statements causing hot-row write lock contention — a clear write contention hotspot diagnosis, not a generic infrastructure explanation."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Identifies that the pressure was concentrated on one TiKV instance rather than cluster-wide.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "single TiKV instance",
                  "hotspot TiKV",
                  "one TiKV hotspot",
                  "单个 TiKV 实例",
                  "热点 TiKV"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 3.0,
          "id": "identify_single_tikv_hotspot",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 2,
          "semantic_confidence": 0.95,
          "semantic_notes": [
            "The answer identifies the hotspot as concentrated on a single TiKV instance (db-a924bb0f-tikv-29grsn), links lock_keys time of 8.8s and region 22587 to that instance, and associates pessimistic lock retry failures with the resulting commit abort pressure on that node."
          ],
          "semantic_status": "pass"
        },
        {
          "description": "Recommends mitigation targeted at the write-contention path.",
          "deterministic": {
            "match": "any_of",
            "passed": false,
            "rules": [
              {
                "keywords": [
                  "batch update",
                  "batch aggregation",
                  "async aggregation",
                  "periodic flush",
                  "SHARD_ROW_ID_BITS",
                  "reduce update frequency",
                  "批量更新",
                  "异步聚合",
                  "降低更新频率"
                ],
                "matched": false,
                "matched_keys": [],
                "matcher": "keyword_any",
                "path": "",
                "paths": [],
                "patterns": [],
                "source": "output_text"
              }
            ]
          },
          "deterministic_pass": false,
          "earned_score": 3.0,
          "id": "recommend_write_path_mitigation",
          "max_score": 3,
          "mode": "blended",
          "passed": true,
          "penalty_applied": 0,
          "required": false,
          "scoring_mode": "positive",
          "semantic_check_id": 4,
          "semantic_confidence": 0.96,
          "semantic_notes": [
            "The answer provides multiple write-path mitigations directly aligned with the root cause: (1) buffered aggregation layer to decouple OLTP writes from hot-row updates (async aggregation / reduce update frequency), (2) tidb_pessimistic_txn_fair_locking to reduce lock starvation, (3) max-retry-limit tuning as short-term relief, and (4) application-level Redis merge window to batch concurrent merchant_id updates — all matching write-path mitigation, batching, async aggregation, and reduce update frequency criteria."
          ],
          "semantic_status": "pass"
        }
      ],
      "hard_gate_passed": true,
      "max_score": 50,
      "raw_score": 9.0,
      "score": 50,
      "semantic_shadow": {
        "available": true,
        "bucket": "diagnosis.semantic",
        "checks": [
          {
            "bucket": "diagnosis.semantic",
            "check_id": 1,
            "confidence": 0.97,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "primary_write_path_evidence_present",
                "lock_contention_signal_present"
              ],
              "routed_item_ids": [
                "ce-3"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "The answer explicitly identifies pessimistic lock contention on t_merchant_online/t_merchant_ol_pay_type as the root cause, with high-frequency concurrent UPDATE statements causing hot-row write lock contention — a clear write contention hotspot diagnosis, not a generic infrastructure explanation."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 2,
            "confidence": 0.95,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "hotspot_instance_evidence_present",
                "lock_contention_signal_present"
              ],
              "routed_item_ids": [
                "ce-1",
                "ce-2"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "The answer identifies the hotspot as concentrated on a single TiKV instance (db-a924bb0f-tikv-29grsn), links lock_keys time of 8.8s and region 22587 to that instance, and associates pessimistic lock retry failures with the resulting commit abort pressure on that node."
            ],
            "score": 3,
            "status": "pass"
          },
          {
            "bucket": "diagnosis.semantic",
            "check_id": 4,
            "confidence": 0.96,
            "disagreement_flags": [],
            "evidence": {
              "critical_evidence_ids": [
                "primary_write_path_evidence_present"
              ],
              "routed_item_ids": [
                "ce-3"
              ]
            },
            "max_score": 3,
            "mode": "shadow",
            "notes": [
              "The answer provides multiple write-path mitigations directly aligned with the root cause: (1) buffered aggregation layer to decouple OLTP writes from hot-row updates (async aggregation / reduce update frequency), (2) tidb_pessimistic_txn_fair_locking to reduce lock starvation, (3) max-retry-limit tuning as short-term relief, and (4) application-level Redis merge window to batch concurrent merchant_id updates — all matching write-path mitigation, batching, async aggregation, and reduce update frequency criteria."
            ],
            "score": 3,
            "status": "pass"
          }
        ],
        "mode": "shadow",
        "packet_case_id": "tail-latency-surge-during-incident-window",
        "packet_loaded": true,
        "packet_notes": [],
        "packet_status": "ok",
        "status": "ok",
        "summary": {
          "disagreement_flags": [],
          "shadow_max_score": 9,
          "shadow_score": 9
        }
      },
      "status": "pass"
    },
    "evidence_collection": {
      "checks": [
        {
          "description": "Required evidence artifacts are present and readable.",
          "earned_score": 4,
          "id": "required_artifacts_present",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: core_evidence_bundle_present"
        },
        {
          "description": "At least the minimum number of preferred evidence channels are observed.",
          "earned_score": 0,
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched collection facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "earned_score": 6,
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "max_score": 6,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: query_or_metric"
        }
      ],
      "max_score": 5,
      "raw_max_score": 10,
      "raw_score": 10,
      "score": 5,
      "status": "pass"
    },
    "evidence_collection_verdict": "pass",
    "evidence_routing": {
      "checks": [
        {
          "description": "Analysis patch is valid JSON whenever the patch exists.",
          "earned_score": 1,
          "id": "analysis_patch_valid_json",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_patch_valid_json",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Analysis patch items are structurally valid whenever the patch exists.",
          "earned_score": 2,
          "id": "analysis_items_shape_valid",
          "match": "any_of",
          "max_score": 2,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_items_shape_valid",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Analysis patch includes key evidence whenever the patch exists.",
          "earned_score": 2,
          "id": "analysis_key_evidence_present",
          "match": "any_of",
          "max_score": 2,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_has_key_evidence",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Metric references resolve whenever the patch requires them.",
          "earned_score": 1,
          "id": "metric_refs_resolvable",
          "match": "any_of",
          "max_score": 1,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "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_patch_present, 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_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "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_patch_present, analysis_query_refs_resolvable"
        },
        {
          "description": "Analysis patch includes supporting evidence whenever the patch exists.",
          "earned_score": 0,
          "id": "supporting_evidence_present",
          "match": "any_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_patch_present"
              ],
              "matcher": "bool_false",
              "path": "analysis_patch_present",
              "paths": [],
              "source": "routing_fact"
            },
            {
              "matched": false,
              "matched_keys": [],
              "matcher": "bool_true",
              "path": "analysis_has_supporting_evidence",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_patch_present"
        },
        {
          "description": "Routed log or event items stay resolvable against observed channels.",
          "earned_score": 0,
          "id": "analysis_log_or_event_channel_resolvable",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "analysis_log_or_event_channel_resolvable"
              ],
              "matcher": "bool_true",
              "path": "analysis_log_or_event_channel_resolvable",
              "paths": [],
              "source": "routing_fact"
            }
          ],
          "snippet": "matched routing facts: analysis_log_or_event_channel_resolvable"
        }
      ],
      "max_score": 5,
      "raw_max_score": 7,
      "raw_score": 7,
      "score": 5,
      "status": "pass"
    },
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": true,
        "diagnosis_report_present": true,
        "summary_artifact_present": true,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": false,
        "logs": true,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "Required workflow milestones are present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "architecture_context_loaded",
                "misdiagnosis_guardrails_loaded",
                "diagnosis_run_initialized",
                "evidence_collection_completed"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: architecture_context_loaded, misdiagnosis_guardrails_loaded, diagnosis_run_initialized, evidence_collection_completed"
        },
        {
          "description": "Required evidence artifacts are present.",
          "id": "required_artifacts_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "core_evidence_bundle_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "core_evidence_bundle_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: core_evidence_bundle_present"
        },
        {
          "description": "At least one preferred evidence channel is observed.",
          "id": "preferred_channels_minimum_observed",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "count_gte",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": 1.0
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        },
        {
          "description": "Preferred evidence channels are all observed.",
          "id": "preferred_channels_all_observed",
          "match": "all_of",
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "query_or_metric"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "query_or_metric"
              ],
              "source": "channel_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: query_or_metric"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "architecture_context_loaded": true,
        "diagnosis_run_initialized": true,
        "evidence_collection_completed": true,
        "final_answer_emitted": true,
        "misdiagnosis_guardrails_loaded": true,
        "summary_read_completed": true
      }
    },
    "execution_contract_verdict": "pass",
    "ground_truth_root_cause": "High-frequency point updates on t_merchant_online caused pessimistic lock contention and a single-TiKV hotspot during the incident window",
    "overall_verdict": "pass",
    "quality_verdict": "pass",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 100,
      "hard_gate_passed": true,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 100
    },
    "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": null,
  "score": 100,
  "total_checks": 3
}