{
  "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": "10989049060142230334",
              "actual_end_ts": null,
              "actual_start_ts": null,
              "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": "",
              "summary_json_present": false,
              "summary_txt_path": "",
              "summary_txt_present": false,
              "valid_bundle": true
            }
          ],
          "decision": "resolved",
          "selected": true,
          "source_kind": "audit_dir",
          "source_root": "/data/eval_audits/evalrun-9ca3e149083040cfa6e5a554382fc030/evalcase-5f2c9ecf4b124edfb6000bcb9431a778",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10989049060142230334",
              "actual_end_ts": null,
              "actual_start_ts": null,
              "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": "",
              "summary_json_present": false,
              "summary_txt_path": "",
              "summary_txt_present": false,
              "valid_bundle": true
            }
          ],
          "decision": "skipped_lower_priority",
          "selected": false,
          "source_kind": "workspace_dir",
          "source_root": "/data/workspaces/ws-eval-1784628501401-3950606f",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10989049060142230334",
        "actual_end_ts": null,
        "actual_start_ts": null,
        "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": "",
        "summary_json_present": false,
        "summary_txt_path": "",
        "summary_txt_present": false,
        "valid_bundle": true
      },
      "selected_scope": "audit_dir",
      "selected_trace_candidate": {
        "actual_cluster_id": "10989049060142230334",
        "actual_end_ts": null,
        "actual_start_ts": null,
        "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": "",
        "summary_json_present": false,
        "summary_txt_path": "",
        "summary_txt_present": false,
        "valid_bundle": true
      },
      "status": "resolved"
    },
    "case_id": "representative-business-slow-queries-in-saas01-during-latest-window",
    "contract": {
      "actual_cluster_id": "10989049060142230334",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "bjt-2026-07-21-1100-5m",
      "expected_cluster_id": "10989049060142230334",
      "expected_parent_id": "",
      "time_window_match": false
    },
    "critical_evidence_verdict": "partial",
    "evidence_collection_verdict": "pass",
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": false,
        "diagnosis_report_present": true,
        "summary_artifact_present": false,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": true,
        "logs": false,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "The minimal ad-hoc workflow is present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "final_answer_emitted"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "final_answer_emitted"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: final_answer_emitted"
        },
        {
          "description": "This ad-hoc case must not invoke collect_evidence.py.",
          "id": "collect_evidence_not_used",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "collect_evidence_not_used"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "collect_evidence_not_used"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: collect_evidence_not_used"
        },
        {
          "description": "Workspace diagnosis report is present.",
          "id": "required_report_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_report_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "diagnosis_report_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: diagnosis_report_present"
        },
        {
          "description": "At least one query or metric evidence channel is observed.",
          "id": "query_or_metric_channel_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"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "collect_evidence_not_used": true,
        "final_answer_emitted": true
      }
    },
    "execution_contract_verdict": "pass",
    "overall_verdict": "fail",
    "quality_verdict": "pass",
    "semantic_shadow": {
      "available": false,
      "status": "not_available"
    },
    "source": "deterministic_judge",
    "strategy": "deterministic_trace_heavy_v1",
    "workflow_verdict": "pass"
  },
  "case_run_id": "evalcase-5f2c9ecf4b124edfb6000bcb9431a778",
  "facts": {
    "artifact_observations": {
      "analysis_patch_present": false,
      "diagnosis_report_present": true,
      "summary_artifact_present": false,
      "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-9ca3e149083040cfa6e5a554382fc030/evalcase-5f2c9ecf4b124edfb6000bcb9431a778",
      "source_scope": "audit_dir",
      "summary_txt_path": "",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "representative-business-slow-queries-in-saas01-during-latest-window",
    "cluster": {
      "actual_cluster_id": "10989049060142230334",
      "allowed_cluster_ids": [
        "10989049060142230334"
      ],
      "expected_cluster_id": "10989049060142230334",
      "expected_parent_id": "",
      "matched": true
    },
    "contract": {
      "actual_cluster_id": "10989049060142230334",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "bjt-2026-07-21-1100-5m",
      "expected_cluster_id": "10989049060142230334",
      "expected_parent_id": "",
      "time_window_match": false
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "output_cluster_id_matches_reference",
        "output_window_start_matches_reference",
        "output_window_end_matches_reference",
        "evidence_sufficient_matches_reference",
        "slow_queries_present",
        "slow_queries_have_three_unique_digests"
      ]
    },
    "evidence": {
      "analysis_patch_path": "",
      "core_evidence_bundle_present": false,
      "decoded_plan_indexes_used": null,
      "events_attempted_implies_artifact_present": true,
      "events_channel_observed": true,
      "events_collection_attempted": false,
      "events_output_file_present": false,
      "hotspot_detected": false,
      "infra_clear": false,
      "kill_query_signal_present": false,
      "log_error_counts": {},
      "logs_channel_observed": false,
      "logs_dir_present": false,
      "memory_tracker_panic_present": false,
      "metric_evidence": [],
      "panic_signal_artifact_present": false,
      "query_evidence": {
        "slow_query": [
          {
            "avg_query_time": "2.5494407756237623",
            "digest": "2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f",
            "exec_count": "404",
            "max_query_time": "14.78820321",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`username`,`dh_active_receive_logs`.`account_type`,`dh_active_receive_logs`.`usercurrency`,`dh_active_receive_logs`.`activeid`,`dh_active_receive_logs`.`activename`,`dh_active_receive_logs`.`template`,`dh_active_receive_logs`.`ruleid`,`dh_active_receive_logs`.`log_unique_no`,`dh_active_receive_logs`.`amount`,`dh_active_receive_logs`.`reward`,`dh_active_receive_logs`.`bonus_text`,`dh_active_receive_logs`.`bonus_enum`,`dh_active_receive_logs`.`bonus_big_enum`,`dh_active_receive_logs`.`orderno`,`dh_active_receive_logs`.`log_createtime`,`dh_active_receive_logs`.`log_update`,`dh_active_receive_logs`.`can_receive_time`,`dh_active_receive_logs`.`receive_time`,`dh_active_receive_logs`.`period_time`,`dh_active_receive_logs`.`log_status`,`dh_active_receive_logs`.`log_category`,`dh_active_receive_logs`.`log_category_sub`,`dh_active_receive_logs`.`audit`,`dh_active_receive_logs`.`handle_condition_type`,`dh_active_receive_logs`.`receive_device_type`,`dh_active_receive_logs`.`receive_device_login_type`,`dh_active_receive_logs`.`receive_ip`,`dh_active_receive_logs`.`receive_deviceId`,`dh_active_receive_logs`.`receive_finger`,`dh_active_receive_logs`.`device_info`,`dh_active_receive_logs`.`log_text`,`dh_active_receive_logs`.`error_msg`,`dh_active_receive_logs`.`receive_remark`,`dh_active_receive_logs`.`receive_time_remark`,`dh_active_receive_logs`.`front_remark`,`dh_active_receive_logs`.`back_remark`,`dh_active_receive_logs`.`audit_platform_category_game`,`dh_active_receive_logs`.`creator`,`dh_active_receive_logs`.`create_time`,`dh_active_receive_logs`.`update_time`,`dh_active_receive_logs`.`operator`,`dh_active_receive_logs`.`is_send`,`dh_active_receive_logs`.`periodday`,`dh_active_receive_logs`.`locker`,`dh_active_receive_logs`.`reward_type`,`dh_active_receive_logs`.`is_set_audit`,`dh_active_receive_logs`.`is_set_audit_platform`,`dh_active_receive_logs`.`allowed_device_type`,`dh_active_receive_logs`.`activity`,`dh_active_receive_logs`.`regpkgid`,`dh_active_receive_logs`.`red_img_type`,`dh_active_receive_logs`.`bit_flag`,`dh_active_receive_logs`.`site_code` FROM `dh_active_receive_logs` WHERE `bonus_big_enum` = ? AND log_status IN (?,?,?) AND reward_type IN (?,?,?) AND (period_time > ? AND period_time < ?) AND `site_code` = ? AND `dh_active_receive_logs`.`id` > ? ORDER BY `dh_active_receive_logs`.`id` LIMIT 1000 [arguments: (10, 0, 6, 7, 1, 2, 3, 1784343612, 1784602812, \"11569\", 572381686966)];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "4585.191183972999",
            "total_wait_time": "17.205966522000008"
          },
          {
            "avg_query_time": "1.0523030979674795",
            "digest": "18576e217f5f93fa2a934f84290447caa4b783cab493503c4ad71c912ea16930",
            "exec_count": "123",
            "max_query_time": "1.3205869049999999",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT * FROM `dh_audit_record` WHERE (user_id = ? and site_code = ?) AND status in (?,?,?) AND charge_time < ? ORDER BY charge_time asc,id asc [arguments: (677577915, \"5073\", 1, 2, 7, \"2026-07-21 11:03:08\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "0.036062399",
            "total_wait_time": "0.020012122999999996"
          },
          {
            "avg_query_time": "1.64313527641739",
            "digest": "9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098",
            "exec_count": "115",
            "max_query_time": "6.8889723830000005",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "COMMIT;",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          },
          {
            "avg_query_time": "1.5531494416736842",
            "digest": "7d75919b6fcc6bbbc8516539ac4a165887c4a9765b9e986314ef43ab77267874",
            "exec_count": "95",
            "max_query_time": "5.031075317",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT ? as create_ymd,t2.register_currency as currency,IFNULL(t2.club_id,0) as club_id,count(distinct t1.useridx) as login_persons FROM dh_user_action_logs as t1 left join dh_account_basic as t2 on t2.useridx = t1.useridx and t2.site_code = t1.site_code WHERE (t1.create_time >= ? and t1.create_time < ?) AND (t1.name = 25 and t1.action = 0 and t1.result = 0) AND t1.site_code = ? GROUP BY t2.register_currency,IFNULL(t2.club_id,0) [arguments: (20260720, 1784516400, 1784602799, \"11068\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "1374.349892168",
            "total_wait_time": "61.79836369800002"
          },
          {
            "avg_query_time": "1.2901790304788732",
            "digest": "4afa34fab28500dd78a9d5a531dcf93b2c8f36f525d970c99028638c243f2c3b",
            "exec_count": "71",
            "max_query_time": "1.646377915",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT a.id,a.site_code,a.useridx,a.username,a.register_currency currency,a.realname_secret,a.account_type ,a.user_status,a.loan_status,a.game_gold,a.member_level,a.vip_level,        a.register_time,a.regpkgid,a.register_ip,a.register_ip_addr,a.register_device_id,a.verify_time,a.birthday_secret,a.area_code,a.phone_hash,a.restrict_flag,a.portrait2_id,a.gender FROM  dh_account_basic a     WHERE a.site_code=?  AND a.useridx in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?(len:106350);",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          },
          {
            "avg_query_time": "1.6827184788281246",
            "digest": "67a28431a20b995bf91fa37e2691be34a00d1c353e1f0efc9c67e418dd499878",
            "exec_count": "64",
            "max_query_time": "3.924006009",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.valid_bet FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.valid_bet > 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "960.3152372189999",
            "total_wait_time": "82.34798381699996"
          },
          {
            "avg_query_time": "1.6440543457619041",
            "digest": "ad0fb7bc6b492b9ca4149c4d900432b96ea994ef642b409fbf690b85cc05ad42",
            "exec_count": "63",
            "max_query_time": "4.444876169",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT t.useridx, t.username, t.regpkgid, t.currency, t.parent_useridx, ag.calc_level FROM dh_promote_myteam_summary_basic t inner join dh_promote_agentid_currency ag on ag.agent_id=t.agent_id and ag.currency=t.currency and ag.site_code=t.site_code WHERE t.site_code = ? [arguments: \"5033\"];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "0.14854329500000008",
            "total_wait_time": "0.021829287"
          },
          {
            "avg_query_time": "4.5125965741666665",
            "digest": "82e12f641a02f5f1b77c6e122f529f4b3585021f9ac0f23a6577dc8c0a9bd3bf",
            "exec_count": "60",
            "max_query_time": "5.420459445",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "/* job 42/270 */ UPDATE `dh_app_5073`.`dh_active_user_coupon` SET `is_delete`=1, `status`=3, `update_time`=1784602824, `expire_time`=IF((`expire_time` = 0), 1784602824, `expire_time`), `front_remark`='' WHERE (`id` BETWEEN 148595575 AND 148635596 AND ((`coupon_id` IN (167135184500000,167135207470000,167135228590000) AND `status` IN (0,3)) AND (`is_delete` = 0)));",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "981.1635344570001",
            "total_wait_time": "36.372400758999994"
          },
          {
            "avg_query_time": "2.793413138387755",
            "digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
            "exec_count": "49",
            "max_query_time": "5.148136748",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "select IFNULL(game_gold, 0.0) from dh_account_basic where useridx = ? and site_code = ? for update [arguments: (337861232, \"5021\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          },
          {
            "avg_query_time": "1.6563118749999994",
            "digest": "64af2b19551b6d5a2e7e443e0f9dd35569e14758807a0c46ba159202a3118e6a",
            "exec_count": "46",
            "max_query_time": "5.8615342",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.deposit FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.deposit > 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "637.3446238430001",
            "total_wait_time": "44.410831255999994"
          },
          {
            "avg_query_time": "1.7530458979999997",
            "digest": "4b591fffecb10be4b200211f6c1dc64ea071c4054ca7c5d0095e43a206dda448",
            "exec_count": "43",
            "max_query_time": "4.36390059",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.discount_amount FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.discount_amount <> 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "722.2464331320001",
            "total_wait_time": "87.29113150600001"
          },
          {
            "avg_query_time": "2.0640804506666663",
            "digest": "e8f29cc443899e0d753cf61df58e96ff40cda35542da72627e27fd4b89e9da82",
            "exec_count": "39",
            "max_query_time": "7.971783417",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT b.parent_useridx AS useridx,a.settle_day as stats_day,a.game_category_id,SUM(bet_total) AS totalDirectBet,SUM(profit_total) AS totalDirectProfit,COUNT(DISTINCT CASE WHEN bet_total > 0 THEN a.useridx ELSE NULL END) AS totalDirectBetPerson,COUNT(DISTINCT CASE WHEN profit_total <> 0 THEN a.useridx ELSE NULL END) AS totalDirectProfitPerson FROM dh_account_ext_parentinfo b inner join dh_report_bet_summary a on a.useridx=b.useridx and a.site_code=b.site_code and a.game_category_id IN (?,?,?,?,?,?,?,?,?) and a.settle_day = 20260720 WHERE b.site_code = ? GROUP BY b.parent_useridx,a.game_category_id [arguments: (1, 2, 3, 4, 5, 6, 7, 8, 11, \"5057\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "312.0492051780001",
            "total_wait_time": "0.9287666260000002"
          },
          {
            "avg_query_time": "1.6838846006571428",
            "digest": "184cd9198ce709b00f603d86652a165e443cf95471d3fb4f766f4fb2be9fa534",
            "exec_count": "35",
            "max_query_time": "5.524421271",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT 20260720 as create_ymd,t1.member_currency as currency,IFNULL(t2.club_id,0) as club_id,sum(case when t1.payline_id = 1 and t1.payline_id_detail = 0 then t1.real_amount end) as online_deposit,count(distinct case when t1.payline_id = 1 and t1.payline_id_detail = 0 then t1.username end) as online_deposit_persons,sum(case when t1.payline_id = 2 and t1.payline_id_detail = 0 then t1.real_amount end) as transfer_deposit,sum(case when t1.payline_id = 4 and t1.payline_id_detail = 0 then t1.real_amount end) as manual_deposit,sum(case when t1.payline_id = 5 and t1.payline_id_detail = 1 then t1.real_amount end) as ys_deposit,count(distinct case when t1.payline_id = 5 and t1.payline_id_detail = 1 then t1.username end) as ys_deposit_persons,sum(case when t1.payline_id = 7 and t1.payline_id_detail = 0 then t1.real_amount end) as withdraw_deposit FROM dh_pay_order as t1 left join dh_account_basic as t2 on t2.useridx = t1.username and t2.site_code = t1.site_code WHERE (t1.notify_time >= ? and t1.notify_time <= ?) AND t1.pay_status in (2,4) AND t1.site_code = ? AND t2.account_type in (2,5,9,11,15,16) GROUP BY t1.member_currency,IFNULL(t2.club_id,0) [arguments: (1784516400, 1784602799, \"5617\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "506.54017921200006",
            "total_wait_time": "24.408356607"
          },
          {
            "avg_query_time": "2.566378082125",
            "digest": "9a79d3bceafdec75e6c59ed6687bdb7c2993a525a13cbfc134306732bc254685",
            "exec_count": "32",
            "max_query_time": "3.233027491",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT `id` FROM `dh_active_receive_logs` WHERE `activeid` IN (?) AND usercurrency = ? AND activetype = ? AND (update_time >= ? and update_time <= ?) AND  site_code IN (?) AND log_category in (?) AND log_status in (?) AND `dh_active_receive_logs`.`id` > ? ORDER BY `dh_active_receive_logs`.`id` LIMIT 50000 [arguments: (3194, \"BRL\", 1, 1782010800, 1784602909, \"5091\", 3, 6, 572418339769)];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "837.6379534130001",
            "total_wait_time": "6.192416090999998"
          },
          {
            "avg_query_time": "2.456811108758621",
            "digest": "5501da3c9fe97466d5a8201a2e3ed3f29318996f69dc212350f3dde15f96f884",
            "exec_count": "29",
            "max_query_time": "7.566851072",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "/* job 1/20 */ DELETE FROM `dh_app_5091`.`dh_active_receive_logs` FORCE INDEX (`idx_active_receive_logs_activeid_periodTime_sitecode`) WHERE (`dh_active_receive_logs`.`_tidb_rowid` BETWEEN 572388703528 AND 576461324692226626 AND (((((((`activetype` = 1) AND (`site_code` = '5091')) AND (`log_status` = -1)) AND (`activeid` = 3122)) AND `log_category` IN (0,1,2,4)) AND (`period_time` > 0)) AND (`period_time` <= 1784602877)));",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "1.322696785",
            "total_wait_time": "0.040751455000000006"
          },
          {
            "avg_query_time": "1.115211664",
            "digest": "9a4170a059f3113e196bdac9c156d6cecf3ccbef8eb238b878d04e61aa7d9741",
            "exec_count": "27",
            "max_query_time": "1.3199752820000001",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "START TRANSACTION;",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          },
          {
            "avg_query_time": "1.4326756810740737",
            "digest": "0c233f56781b779a25cf1732e0e6e058942f9fc56557c6d1af42ec18fef399d1",
            "exec_count": "27",
            "max_query_time": "5.066149055",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT     settle_day,    ? as site_code,    currency,    game_platform_id as platform_id,    game_category_id as category_id,    sum(valid_bet_total) as valid_bet,    -sum(profit_total) as profit_loss,    sum(profit_total) as win_lose,    max(max_profit) as max_profit,    min(min_profit) as min_profit,    count(case when valid_bet_total>=0 then 1 end) as bet_persons,    count(case when profit_total>=0 then 1 end) as profit_persons,    count(case when profit_total<0 then 1 end) as loss_persons FROM (SELECT    settle_day,   useridx,   currency,   game_platform_id,   game_category_id,   sum(valid_bet_total) as valid_bet_total,   sum(profit_total) as profit_total,   max(max_profit) as max_profit,   min(min_profit) as min_profit   FROM `dh_report_bet_summary` WHERE settle_day in (?,?,?) AND site_code = ? GROUP BY settle_day,useridx,game_category_id,game_platform_id,currency) as t GROUP BY settle_day,currency, platform_id, category_id ORDER BY settle_day asc [arguments: (\"5119\", 20260719, 20260720, 20260721, \"5119\")];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "381.5071873329999",
            "total_wait_time": "5.096143475999999"
          },
          {
            "avg_query_time": "3.755588064391304",
            "digest": "dbd123f9e3a21bc6c454cb88bea2e5744592a4e011b2f68ed554d0abfd9856c7",
            "exec_count": "23",
            "max_query_time": "11.659753971",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SELECT COUNT(1) as sum_num , SUM(reward) as sum_reward, usercurrency as currency,site_code FROM `dh_active_receive_logs` WHERE `activeid` IN (?) AND activetype = ? AND  site_code IN (?,?,?) AND log_category in (?) AND log_status in (?,?,?,?,?,?,?,?,?,?) GROUP BY `usercurrency`,`site_code` [arguments: (3429, 1, \"5092\", \"9352\", \"12261\", 3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)];",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "966.771765601",
            "total_wait_time": "1.846448685"
          },
          {
            "avg_query_time": "1.6222989400526313",
            "digest": "e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac",
            "exec_count": "19",
            "max_query_time": "1.740502722",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SHOW STATS_META WHERE db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_yuebaoinfo','dh_account_jwt_token','dh_account_webauthn','dh_active','dh_active_activity_info','dh_active_activity_records','dh_active_bet_details','dh_active_bet_statistic','dh_active_bet_total','dh_active_blindbox_config','dh_active_blindbox_free_records','dh_active_blindbox_info','dh_active_blindbox_open_box_record','dh_active_blindbox_orders','dh_active_blindbox_user_box_info','dh_active_blindbox_user_summary','dh_active_category_new','dh_active_chop_one_knife','dh_active_chop_one_knife_new','dh_active_chop_one_knife_new_details','dh_active_chop_one_knife_new_record','dh_active_chop_one_knife_record','dh_active_common_config','dh_active_common_setting','dh_active_coupon','dh_active_cut_a_deal','dh_active_cut_a_deal_details','dh_active_day_return_code_record','dh_active_details_experience','dh_active_discount_code','dh_active_discount_code_only_log','dh_active_discount_log','dh_active_discount_log_summary','dh_active_discount_phone','dh_active_discount_phone_log','dh_active_domain_log','dh_active_guess_matchdata','dh_active_guessintegral_change_history','dh_active_guessintegral_info','dh_active_guessintegral_record','dh_active_history_version','dh_active_img_group','dh_active_investment','dh_active_last_img','dh_active_luckyintegral_info','dh_active_luckyintegral_record','dh_active_luckyorder_kafka_consume','dh_active_pop_confirm','dh_active_promote_profit','dh_active_promote_summary','dh_active_ranking','dh_active_receive_details','dh_active_receive_device_log','dh_active_receive_failed','dh_active_receive_logs_summary','dh_active_recharge_fund_recharge','dh_active_recharge_fund_reward','dh_active_recharge_fund_setting','dh_active_recharge_fund_setting_history','dh_active_redpack_info','dh_active_request_log','dh_active_reward_points_add','dh_active_reward_points_trans_log','dh_active_reward_points_user','dh_active_show_img_info','dh_active_sign_info','dh_active_surp_scene_config','dh_active_surp_setting','dh_active_surp_user_reward','dh_active_svip_change_log','dh_active_svip_config','dh_active_svip_info','dh_active_svip_pay_info','dh_active_svip_setting','dh_active_template','dh_active_turntable_config','dh_active_turntable_details','dh_active_turntable_info','dh_active_turntable_orders','dh_active_turntable_records','dh_active_user_address','dh_active_word_log','dh_active_word_settle','dh_agentmode','dh_blacklist','dh_club_agent_basic','dh_club_agent_report','dh_club_agent_summary','dh_club_app','dh_club_bet_order','dh_club_bill','dh_club_bill_record','dh_club_config','dh_club_contact','dh_club_domain','dh_club_finance','dh_club_info','dh_club_loan_quota_allocate','dh_club_loan_quota_log','dh_club_margin_record','dh_club_member','dh_club_member_adjust_record','dh_club_member_approve','dh_club_member_balance','dh_club_member_commission','dh_club_member_commission_detail','dh_club_member_loan_record','dh_club_member_quota_record','dh_club_member_rebate','dh_club_pay_channel','dh_club_period_logs','dh_club_rate_adjust_record','dh_club_recharge_order','dh_club_withdraw_order','dh_club_withdraw_setting','dh_club_xxl_record','dh_config','dh_config_site','dh_cpf_cost_daily','dh_cpf_validate_logs','dh_day_pay_amount','dh_day_report','dh_discouraged_account','dh_dupl_reward_config','dh_dupl_reward_logs','dh_email_account','dh_email_language','dh_email_recall_account','dh_email_recall_email','dh_email_recall_ext','dh_email_recall_rule','dh_email_recall_rule_ext','dh_email_recall_task','dh_jpush_recall','dh_kyc_daily_stat','dh_kyc_legitimuz_face_log','dh_kyc_legitimuz_log','dh_kyc_provider_config','dh_kyc_result_log','dh_kyc_topph_result_log','dh_kyc_user_stat','dh_kyc_zoloz_connect_enroll_log','dh_kyc_zoloz_connect_log','dh_kyc_zoloz_realid_init_log','dh_kyc_zoloz_realid_result_log','dh_level_setting','dh_loan_collection','dh_loan_collection_detail','dh_loan_credit_adjustment_records','dh_loan_member_remark_logs','dh_loan_member_tag','dh_loan_members','dh_lo(len:8924);",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          },
          {
            "avg_query_time": "6.031770285105264",
            "digest": "4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d",
            "exec_count": "19",
            "max_query_time": "6.6845546670000004",
            "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20",
            "sample_sql": "SHOW STATS_HEALTHY WHERE db_name LIKE 'dh_app_%' AND db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_yuebaoinfo','dh_account_jwt_token','dh_account_webauthn','dh_active','dh_active_activity_info','dh_active_activity_records','dh_active_bet_details','dh_active_bet_statistic','dh_active_bet_total','dh_active_blindbox_config','dh_active_blindbox_free_records','dh_active_blindbox_info','dh_active_blindbox_open_box_record','dh_active_blindbox_orders','dh_active_blindbox_user_box_info','dh_active_blindbox_user_summary','dh_active_category_new','dh_active_chop_one_knife','dh_active_chop_one_knife_new','dh_active_chop_one_knife_new_details','dh_active_chop_one_knife_new_record','dh_active_chop_one_knife_record','dh_active_common_config','dh_active_common_setting','dh_active_coupon','dh_active_cut_a_deal','dh_active_cut_a_deal_details','dh_active_day_return_code_record','dh_active_details_experience','dh_active_discount_code','dh_active_discount_code_only_log','dh_active_discount_log','dh_active_discount_log_summary','dh_active_discount_phone','dh_active_discount_phone_log','dh_active_domain_log','dh_active_guess_matchdata','dh_active_guessintegral_change_history','dh_active_guessintegral_info','dh_active_guessintegral_record','dh_active_history_version','dh_active_img_group','dh_active_investment','dh_active_last_img','dh_active_luckyintegral_info','dh_active_luckyintegral_record','dh_active_luckyorder_kafka_consume','dh_active_pop_confirm','dh_active_promote_profit','dh_active_promote_summary','dh_active_ranking','dh_active_receive_details','dh_active_receive_device_log','dh_active_receive_failed','dh_active_receive_logs_summary','dh_active_recharge_fund_recharge','dh_active_recharge_fund_reward','dh_active_recharge_fund_setting','dh_active_recharge_fund_setting_history','dh_active_redpack_info','dh_active_request_log','dh_active_reward_points_add','dh_active_reward_points_trans_log','dh_active_reward_points_user','dh_active_show_img_info','dh_active_sign_info','dh_active_surp_scene_config','dh_active_surp_setting','dh_active_surp_user_reward','dh_active_svip_change_log','dh_active_svip_config','dh_active_svip_info','dh_active_svip_pay_info','dh_active_svip_setting','dh_active_template','dh_active_turntable_config','dh_active_turntable_details','dh_active_turntable_info','dh_active_turntable_orders','dh_active_turntable_records','dh_active_user_address','dh_active_word_log','dh_active_word_settle','dh_agentmode','dh_blacklist','dh_club_agent_basic','dh_club_agent_report','dh_club_agent_summary','dh_club_app','dh_club_bet_order','dh_club_bill','dh_club_bill_record','dh_club_config','dh_club_contact','dh_club_domain','dh_club_finance','dh_club_info','dh_club_loan_quota_allocate','dh_club_loan_quota_log','dh_club_margin_record','dh_club_member','dh_club_member_adjust_record','dh_club_member_approve','dh_club_member_balance','dh_club_member_commission','dh_club_member_commission_detail','dh_club_member_loan_record','dh_club_member_quota_record','dh_club_member_rebate','dh_club_pay_channel','dh_club_period_logs','dh_club_rate_adjust_record','dh_club_recharge_order','dh_club_withdraw_order','dh_club_withdraw_setting','dh_club_xxl_record','dh_config','dh_config_site','dh_cpf_cost_daily','dh_cpf_validate_logs','dh_day_pay_amount','dh_day_report','dh_discouraged_account','dh_dupl_reward_config','dh_dupl_reward_logs','dh_email_account','dh_email_language','dh_email_recall_account','dh_email_recall_email','dh_email_recall_ext','dh_email_recall_rule','dh_email_recall_rule_ext','dh_email_recall_task','dh_jpush_recall','dh_kyc_daily_stat','dh_kyc_legitimuz_face_log','dh_kyc_legitimuz_log','dh_kyc_provider_config','dh_kyc_result_log','dh_kyc_topph_result_log','dh_kyc_user_stat','dh_kyc_zoloz_connect_enroll_log','dh_kyc_zoloz_connect_log','dh_kyc_zoloz_realid_init_log','dh_kyc_zoloz_realid_result_log','dh_level_setting','dh_loan_collection','dh_loan_collection_detail','dh_loan_credit_adjustment_records','dh_loan_member_remark_logs','dh_loan_membe(len:8955);",
            "source": "slow_queries",
            "title": "slow_query_top_by_exec_count",
            "total_process_time": "",
            "total_wait_time": ""
          }
        ],
        "topsql": []
      },
      "query_or_metric_channel_observed": true,
      "slow_query_top_digest": "2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f",
      "ticket_context_channel_observed": false,
      "topsql_collection_error_recorded": false
    },
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": false,
        "diagnosis_report_present": true,
        "summary_artifact_present": false,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": true,
        "logs": false,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "The minimal ad-hoc workflow is present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "final_answer_emitted"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "final_answer_emitted"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: final_answer_emitted"
        },
        {
          "description": "This ad-hoc case must not invoke collect_evidence.py.",
          "id": "collect_evidence_not_used",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "collect_evidence_not_used"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "collect_evidence_not_used"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: collect_evidence_not_used"
        },
        {
          "description": "Workspace diagnosis report is present.",
          "id": "required_report_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_report_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "diagnosis_report_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: diagnosis_report_present"
        },
        {
          "description": "At least one query or metric evidence channel is observed.",
          "id": "query_or_metric_channel_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"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "collect_evidence_not_used": true,
        "final_answer_emitted": true
      }
    },
    "output": {
      "analyze_primary_culprit_asserted": false,
      "claims_panic_not_confirmable": false,
      "diagnosis_cpu_hotspot_asserted": false,
      "diagnosis_kill_query_chain_asserted": false,
      "diagnosis_memory_tracker_panic_asserted": false,
      "diagnosis_plan_stats_issue_asserted": false,
      "diagnosis_single_instance_panic_restart_asserted": false,
      "fake_alarm_primary_asserted": false,
      "focuses_on_missing_index": false,
      "mentions_cpu_saturation": false,
      "mentions_est_act_divergence": false,
      "mentions_idle_transaction": false,
      "mentions_intermediate_result_explosion": false,
      "mentions_kill_query": false,
      "mentions_memory_tracker_consume": false,
      "mentions_p99_latency_spike": false,
      "mentions_rollback_cleanup": false,
      "mentions_statistics_uninitialized": false,
      "mentions_v8_5_2": false,
      "mentions_v8_5_3_or_fixed_release": false,
      "mentions_without_fix": false,
      "missing_index_primary_root_cause_asserted": false,
      "puller_or_source_side_primary_root_cause_asserted": false,
      "query_only_primary_root_cause_asserted": false,
      "wide_scan_primary_root_cause_asserted": false
    },
    "routing": {
      "analysis_event_items_present": false,
      "analysis_has_key_evidence": false,
      "analysis_has_supporting_evidence": false,
      "analysis_items_shape_valid": false,
      "analysis_log_items_present": false,
      "analysis_log_or_event_channel_resolvable": true,
      "analysis_metric_refs_required": false,
      "analysis_metric_refs_resolvable": true,
      "analysis_patch_present": false,
      "analysis_patch_valid_json": false,
      "analysis_query_refs_required": false,
      "analysis_query_refs_resolvable": true,
      "classification_contract_valid": false,
      "diagnosis_analyst_contract_present": false,
      "fault_classification_contract_valid": false,
      "primary_fault_class_component_restart_or_panic": false,
      "primary_fault_class_resource_control_or_capacity": false,
      "primary_fault_class_service_unavailability_or_worker_failure": false,
      "primary_fault_class_sql_plan_or_query": false,
      "primary_fault_class_storage_or_infra_io": false,
      "primary_fault_class_tidb_cpu_gc_or_memory": false,
      "primary_fault_class_tikv_read_hotspot": false,
      "primary_fault_class_unknown_insufficient_evidence": false,
      "selected_diagnosis_skills_present": false,
      "signal_tags_contract_valid": false
    },
    "runtime_context_present": true,
    "window": {
      "actual_end_ts": null,
      "actual_start_ts": null,
      "expected_allowed_window_id": "bjt-2026-07-21-1100-5m",
      "expected_end_ts": 1784603100,
      "expected_start_ts": 1784602800,
      "matched_allowed_window": false
    },
    "workflow": {
      "architecture_context_loaded": false,
      "collect_evidence_invoked": false,
      "diagnosis_run_initialized": true,
      "direct_conclusion_by_investigator": false,
      "evidence_collection_completed": false,
      "evidence_collection_started": false,
      "final_answer_emitted": true,
      "misdiagnosis_guardrails_loaded": false,
      "premise_verification_recorded": false,
      "summary_read_completed": false,
      "targeted_panic_log_query_completed": false
    }
  },
  "id": "evaljudge-44dce13625f94d25a3733442293ad594",
  "invalid_subtype": null,
  "judged_at": "2026-07-21T10:09:02.919250+00:00",
  "judgment_verdict": "fail",
  "packet": {
    "artifact_resolution": {
      "candidate_run_dirs": [
        "evidences"
      ],
      "manifest_path_mismatch": false,
      "primary_failure_code": null,
      "resolution_mode": "workspace_evidence_root",
      "scanned_scopes": [
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10989049060142230334",
              "actual_end_ts": null,
              "actual_start_ts": null,
              "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": "",
              "summary_json_present": false,
              "summary_txt_path": "",
              "summary_txt_present": false,
              "valid_bundle": true
            }
          ],
          "decision": "resolved",
          "selected": true,
          "source_kind": "audit_dir",
          "source_root": "/data/eval_audits/evalrun-9ca3e149083040cfa6e5a554382fc030/evalcase-5f2c9ecf4b124edfb6000bcb9431a778",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        },
        {
          "candidate_count": 1,
          "candidates": [
            {
              "actual_cluster_id": "10989049060142230334",
              "actual_end_ts": null,
              "actual_start_ts": null,
              "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": "",
              "summary_json_present": false,
              "summary_txt_path": "",
              "summary_txt_present": false,
              "valid_bundle": true
            }
          ],
          "decision": "skipped_lower_priority",
          "selected": false,
          "source_kind": "workspace_dir",
          "source_root": "/data/workspaces/ws-eval-1784628501401-3950606f",
          "telemetry_path": ".opencode/telemetry.log",
          "valid_candidate_count": 1
        }
      ],
      "selected_candidate": {
        "actual_cluster_id": "10989049060142230334",
        "actual_end_ts": null,
        "actual_start_ts": null,
        "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": "",
        "summary_json_present": false,
        "summary_txt_path": "",
        "summary_txt_present": false,
        "valid_bundle": true
      },
      "selected_scope": "audit_dir",
      "selected_trace_candidate": {
        "actual_cluster_id": "10989049060142230334",
        "actual_end_ts": null,
        "actual_start_ts": null,
        "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": "",
        "summary_json_present": false,
        "summary_txt_path": "",
        "summary_txt_present": false,
        "valid_bundle": true
      },
      "status": "resolved"
    },
    "contract": {
      "checks": [
        {
          "description": "Actual diagnosis cluster scope matches the 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": [],
          "description": "Output JSON cluster_id matches the runtime reference.",
          "earned_score": 8,
          "id": "output_cluster_id_matches_reference",
          "match": "all_of",
          "max_score": 8,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "\"10989049060142230334\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"10989049060142230334\""
        },
        {
          "artifact_paths": [],
          "description": "Output JSON window.start matches the runtime reference.",
          "earned_score": 6,
          "id": "output_window_start_matches_reference",
          "match": "all_of",
          "max_score": 6,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "\"2026-07-21T03:00:00Z\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"2026-07-21T03:00:00Z\""
        },
        {
          "artifact_paths": [],
          "description": "Output JSON window.end matches the runtime reference.",
          "earned_score": 6,
          "id": "output_window_end_matches_reference",
          "match": "all_of",
          "max_score": 6,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "\"2026-07-21T03:05:00Z\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"2026-07-21T03:05:00Z\""
        },
        {
          "artifact_paths": [],
          "description": "Output JSON evidence_sufficient matches the runtime reference.",
          "earned_score": 4,
          "id": "evidence_sufficient_matches_reference",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "true",
              "source": "output_json"
            }
          ],
          "snippet": "true"
        },
        {
          "artifact_paths": [
            "output_json"
          ],
          "description": "Output JSON contains a non-empty slow query list.",
          "earned_score": 4,
          "id": "slow_queries_present",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "output_json",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_list_nonempty",
              "snippet": "{\"digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"exec_count\": 404, \"avg_time_s\": 2.549}",
              "source": "output_json"
            }
          ],
          "snippet": "{\"digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"exec_count\": 404, \"avg_time_s\": 2.549}"
        },
        {
          "artifact_paths": [
            "output_json"
          ],
          "description": "Output JSON contains three unique slow-query digests.",
          "earned_score": 4,
          "id": "slow_queries_have_three_unique_digests",
          "match": "all_of",
          "max_score": 4,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "output_json",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_unique_count_gte",
              "snippet": "unique_count=3 values=['2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f', '4afa34fab28500dd78a9d5a531dcf93b2c8f36f525d970c99028638c243f2c3b', '7d75919b6fcc6bbbc8516539ac4a165887c4a9765b9e986314ef43ab77267874']",
              "source": "output_json"
            }
          ],
          "snippet": "unique_count=3 values=['2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f', '4afa34fab28500dd78a9d5a531dcf93b2c8f36f525d970c99028638c243f2c3b', '7d75919b6fcc6bbbc8516539ac4a165887c4a9765b9e986314ef43ab77267874']"
        },
        {
          "artifact_paths": [],
          "description": "Output JSON digest ordering matches the runtime reference.",
          "earned_score": 0,
          "id": "slow_query_digests_match_reference",
          "match": "all_of",
          "max_score": 24,
          "passed": false,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_array_matches_reference",
              "snippet": null,
              "source": "output_json"
            }
          ],
          "snippet": null
        },
        {
          "artifact_paths": [],
          "description": "Output JSON exec_count values match the runtime reference.",
          "earned_score": 0,
          "id": "slow_query_exec_count_match_reference",
          "match": "all_of",
          "max_score": 12,
          "passed": false,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_array_matches_reference",
              "snippet": null,
              "source": "output_json"
            }
          ],
          "snippet": null
        },
        {
          "artifact_paths": [],
          "description": "Output JSON avg_time_s values match the runtime reference.",
          "earned_score": 0,
          "id": "slow_query_avg_time_match_reference",
          "match": "all_of",
          "max_score": 12,
          "passed": false,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": false,
              "matched_keyword": null,
              "matcher": "json_array_matches_reference",
              "snippet": null,
              "source": "output_json"
            }
          ],
          "snippet": null
        }
      ],
      "max_score": 80,
      "raw_max_score": 80,
      "raw_score": 32,
      "score": 32,
      "status": "partial"
    },
    "critical_evidence_verdict": "partial",
    "diagnosis": {
      "checks": [
        {
          "description": "identify_known_bug_63956",
          "id": "identify_known_bug_63956",
          "passed": false,
          "snippet": null
        },
        {
          "description": "identify_kill_query_idle_txn_chain",
          "id": "identify_kill_query_idle_txn_chain",
          "passed": false,
          "snippet": null
        },
        {
          "description": "identify_version_without_fix",
          "id": "identify_version_without_fix",
          "passed": false,
          "snippet": null
        },
        {
          "description": "recommend_fixed_version_upgrade",
          "id": "recommend_fixed_version_upgrade",
          "passed": false,
          "snippet": null
        }
      ],
      "hard_gate_passed": true,
      "max_score": 0,
      "raw_score": 0,
      "score": 0,
      "semantic_shadow": {
        "available": false,
        "checks": [],
        "packet_path": "/data/eval_audits/evalrun-9ca3e149083040cfa6e5a554382fc030/evalcase-5f2c9ecf4b124edfb6000bcb9431a778/semantic_packet_v1.json",
        "reason": "semantic_packet_missing",
        "status": "not_available",
        "summary": {
          "disagreement_flags": [],
          "shadow_max_score": 0,
          "shadow_score": 0
        }
      },
      "status": "pass"
    },
    "evidence_collection": {
      "checks": [
        {
          "description": "Workspace diagnosis report is present and readable.",
          "earned_score": 2,
          "id": "required_report_present",
          "match": "all_of",
          "max_score": 2,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_report_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "diagnosis_report_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: diagnosis_report_present"
        },
        {
          "description": "Query or metric evidence is observed for this ad-hoc request.",
          "earned_score": 3,
          "id": "query_or_metric_channel_observed",
          "match": "all_of",
          "max_score": 3,
          "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": "If an events collection query is attempted, an events output file is persisted even when the result set is empty.",
          "earned_score": 2,
          "id": "attempted_events_collection_persisted",
          "match": "all_of",
          "max_score": 2,
          "passed": true,
          "required": false,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "events_attempted_implies_artifact_present"
              ],
              "matcher": "bool_true",
              "path": "events_attempted_implies_artifact_present",
              "paths": [],
              "source": "evidence_fact",
              "threshold": null
            }
          ],
          "snippet": "matched collection facts: events_attempted_implies_artifact_present"
        }
      ],
      "max_score": 5,
      "raw_max_score": 7,
      "raw_score": 7,
      "score": 5,
      "status": "pass"
    },
    "evidence_collection_verdict": "pass",
    "evidence_routing": {
      "checks": [
        {
          "description": "Analysis patch is only required to be valid when it exists.",
          "earned_score": 0,
          "id": "analysis_patch_valid_when_present",
          "match": "any_of",
          "max_score": 0,
          "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"
        }
      ],
      "max_score": 0,
      "raw_max_score": 0,
      "raw_score": 0,
      "score": 0,
      "status": "pass"
    },
    "evidence_routing_verdict": "pass",
    "execution_contract": {
      "artifact_facts": {
        "analysis_patch_present": false,
        "core_evidence_bundle_present": false,
        "diagnosis_report_present": true,
        "summary_artifact_present": false,
        "supplemental_loki_present": false
      },
      "channel_facts": {
        "events": true,
        "logs": false,
        "query_or_metric": true,
        "ticket_context": false
      },
      "checks": [
        {
          "description": "The minimal ad-hoc workflow is present.",
          "id": "required_workflow_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "final_answer_emitted"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "final_answer_emitted"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: final_answer_emitted"
        },
        {
          "description": "This ad-hoc case must not invoke collect_evidence.py.",
          "id": "collect_evidence_not_used",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "collect_evidence_not_used"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "collect_evidence_not_used"
              ],
              "source": "workflow_check",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: collect_evidence_not_used"
        },
        {
          "description": "Workspace diagnosis report is present.",
          "id": "required_report_present",
          "match": "all_of",
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "diagnosis_report_present"
              ],
              "matcher": "subset_observed",
              "path": "",
              "paths": [
                "diagnosis_report_present"
              ],
              "source": "artifact_fact",
              "threshold": null
            }
          ],
          "snippet": "matched execution contract facts: diagnosis_report_present"
        },
        {
          "description": "At least one query or metric evidence channel is observed.",
          "id": "query_or_metric_channel_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"
        }
      ],
      "status": "pass",
      "workflow_facts": {
        "collect_evidence_not_used": true,
        "final_answer_emitted": true
      }
    },
    "execution_contract_verdict": "pass",
    "ground_truth_root_cause": "Correctly identifying the most important business slow queries for saas01 requires using the exact runtime-resolved window, excluding trivial transaction-control statements, and ranking the remaining digests by exec_count and avg_time.",
    "overall_verdict": "fail",
    "quality_verdict": "pass",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 44,
      "hard_gate_passed": false,
      "normalized_total_score": 44,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 37,
      "total_max_score": 85
    },
    "strategy": "deterministic_trace_heavy_v1",
    "workflow": {
      "checks": [
        {
          "description": "Final answer is emitted for the ad-hoc query.",
          "earned_score": 0,
          "id": "final_answer_emitted",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": true,
          "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"
        },
        {
          "description": "This ad-hoc case must not invoke collect_evidence.py.",
          "earned_score": 0,
          "id": "collect_evidence_not_used",
          "match": "all_of",
          "max_score": 0,
          "passed": true,
          "required": true,
          "rules": [
            {
              "matched": true,
              "matched_keys": [
                "collect_evidence_invoked"
              ],
              "matcher": "bool_false",
              "path": "collect_evidence_invoked",
              "paths": [],
              "source": "workflow_fact",
              "threshold": null
            }
          ],
          "snippet": "matched workflow facts: collect_evidence_invoked"
        }
      ],
      "max_score": 0,
      "raw_max_score": 0,
      "raw_score": 0,
      "score": 0,
      "status": "pass"
    },
    "workflow_verdict": "pass"
  },
  "passed_checks": 0,
  "primary_failure_code": "critical_evidence_partial",
  "score": 44,
  "total_checks": 0
}