{
  "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-032aea75814345bb827d83681ad2dd40",
          "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-1784628544729-860b0978",
          "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": "new-slow-query-digests-between-adjacent-windows-in-saas01",
    "contract": {
      "actual_cluster_id": "10989049060142230334",
      "cluster_scope_match": true,
      "expected_allowed_window_id": "",
      "expected_cluster_id": "10989049060142230334",
      "expected_parent_id": "",
      "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": 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": "pass",
    "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-032aea75814345bb827d83681ad2dd40",
  "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-032aea75814345bb827d83681ad2dd40",
      "source_scope": "audit_dir",
      "summary_txt_path": "",
      "telemetry_path": ".opencode/telemetry.log"
    },
    "case_id": "new-slow-query-digests-between-adjacent-windows-in-saas01",
    "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": "",
      "expected_cluster_id": "10989049060142230334",
      "expected_parent_id": "",
      "time_window_match": true
    },
    "critical_evidence": {
      "configured": true,
      "matched_check_ids": [
        "output_cluster_id_matches_reference",
        "previous_window_start_matches_reference",
        "previous_window_end_matches_reference",
        "current_window_start_matches_reference",
        "current_window_end_matches_reference",
        "evidence_sufficient_matches_reference",
        "new_sql_digests_match_reference",
        "new_sql_digest_occurrence_counts_match_reference"
      ]
    },
    "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": [
          {
            "digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
            "exec_count": "172",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "select IFNULL(game_gold, 0.0) from dh_account_basic where useridx = ? and site_code = ? for update [arguments: (511086043, \"12105\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098",
            "exec_count": "64",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "COMMIT;",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "dd91916ae17684068a119694daa4b8595211c76530d483eef24a05af67a7e892",
            "exec_count": "44",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT a.site_code, a.useridx, a.username, a.vip_level, a.birthday_secret, a.register_currency as currency,a.account_type,a.regpkgid,a.user_status FROM dh_account_basic a WHERE a.last_update_timestamp > ? AND a.last_update_timestamp < now() AND a.birthday_secret !='' AND a.useridx NOT IN (SELECT useridx FROM dh_active_receive_logs WHERE activetype = 5 AND template = 50 AND site_code = ? ) ORDER BY `a`.`site_code` LIMIT 2000 [arguments: (\"2026-07-20 11:00:00\", \"6688\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "8cb6039744748668d971bcbd53fbe61c77896f0d9962a070041f1e5e62f587c7",
            "exec_count": "33",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT ts.useridx,ts.username,ts.regpkgid,ts.currency,ts.parent_useridx,ts.parent_username,ts.top_parent_useridx,ts.top_parent_username,ts.agent_id,sum(ma.commission_original) as my_commission_settle,sum(ma.commission_final) as my_commission,sum(if(ma.commission_status=0,ma.commission_final,0)) as my_commission_takeable,sum(sa.performance_total) as my_performance,sum(sa.contribute_num_direct) as my_contribute_num_direct FROM dh_promote_myteam_summary_basic ts LEFT JOIN dh_promote_mycommission_approval ma ON ts.useridx = ma.useridx and ts.site_code = ma.site_code and ma.settle_day=? LEFT JOIN dh_promote_stats_agentid sa ON ts.useridx = sa.useridx and ts.site_code = sa.site_code and sa.settle_day=? WHERE ts.site_code = ? GROUP BY `ts`.`useridx` [arguments: (20260720, 20260720, \"5065\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "7b33eb118622c789d18acfcc565fec9adfad7c1c3ad2b417e90310b5bf690c34",
            "exec_count": "28",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT a.user_idx as useridx, a.create_ymd as stats_day, a.deposit as my_deposit, a.first_deposit as my_first_deposit, a.withdraw as my_withdraw, a.discount_amount as my_discount, a.valid_bet as my_bet, a.profit_lose as my_net_profit, a.bet as my_all_bet, a.artificial_deposit+a.artificial_withdraw as my_artificial_deposit, a.deposit_times as my_deposit_times, a.withdraw_times as my_withdraw_times, a.discount_amount_times as my_discount_amount_times, a.artificial_deposit_times+artificial_withdraw_times as my_artificial_times, a.bet_times as my_bet_times, sum(ma.commission_final) as my_commission_taken FROM dh_user_day_report a inner join dh_promote_myteam_summary_basic ts on ts.useridx = a.user_idx and ts.site_code = a.site_code LEFT JOIN dh_promote_mycommission_approval ma ON ts.useridx = ma.useridx and ts.site_code=ma.site_code and ma.commission_status=1 and ma.withdraw_time >= 1784516400 and ma.withdraw_time <= 1784602799 WHERE a.create_ymd = ? AND a.site_code = ? GROUP BY `a`.`user_idx` [arguments: (20260720, \"5119\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "9e00c94b3884ef3c4c94f0b4d56477522b595e958d2b46cf764286293e3e7842",
            "exec_count": "27",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT ts.useridx, ts.username, ts.regpkgid, ts.currency, ts.parent_useridx, ts.parent_username, ts.top_parent_useridx, ts.top_parent_username, ts.agent_id FROM dh_promote_myteam_summary_basic ts WHERE ts.site_code = ? GROUP BY `ts`.`useridx` [arguments: \"5065\"];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
            "exec_count": "20",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SHOW STATS_HEALTHY where db_name like 'dh_app_%';",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792",
            "exec_count": "19",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT * FROM `dh_finance_details` WHERE (message_status = 0 and create_time < ? and create_time > ?) AND site_code = ? ORDER BY create_time desc LIMIT 10000 [arguments: (\"2026-07-21 10:52:00.063410896\", \"2026-07-20 10:52:00.063410896\", \"5235\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "14fcdd93e6d5c14905e15f1e3eece0b20c4a71df47d0c42f25bf22e9fb2a0505",
            "exec_count": "15",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT sub.useridx,sum(if(sub.typ='other_agents', cnt, 0)) as other_agents,sum(if(sub.typ='other_accounts', cnt, 0)) as other_accounts FROM ((SELECT useridx,sum(if(direct=0, 1, 0)) as cnt,'other_agents' as typ FROM `dh_promote_myteam_others` WHERE useridx in (?,?,?,?,?,?,?,?) AND site_code = ? AND to_delete=0 GROUP BY `useridx`) UNION ALL (SELECT o.useridx as useridx,count(a.useridx) as cnt,'other_accounts' as typ FROM dh_promote_myteam_direct a left join dh_promote_myteam_others o on o.member_useridx=a.parent_useridx and o.site_code=a.site_code WHERE o.useridx in (?,?,?,?,?,?,?,?) AND o.site_code=? AND o.to_delete=0 AND a.user_is_agent=0 AND a.valid_to = ? GROUP BY `o`.`useridx`)) sub GROUP BY `sub`.`useridx` [arguments: (62196973, 87405328, 213954109, 2179464, 15116533, 17859723, 30568029, 51457678, \"718\", 62196973, 87405328, 213954109, 2179464, 15116533, 17859723, 30568029, 51457678, \"718\", 99991231)];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "61b4d8eb90e34c4843b216175d89e2ea2755c9f7c4d3ee745c96fea3bb062870",
            "exec_count": "9",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602200 AND time < 1784602800 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT ? as count_h005,t2.register_currency as currency,t2.club_id,count(t2.useridx) as login_persons FROM (SELECT site_code,useridx FROM `dh_user_action_logs` WHERE (name = 25 and action = 0 and result = 0) AND (create_time >= ? and create_time <= ?) AND site_code = ? GROUP BY site_code,useridx) as t1 left join dh_account_basic as t2 on t2.useridx = t1.useridx and t2.site_code = t1.site_code GROUP BY t2.register_currency,t2.club_id [arguments: (1784601000, 1784601000, 1784602799, \"11829\")];",
            "source": "slow_queries",
            "title": "slow_query_top_previous"
          },
          {
            "digest": "2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f",
            "exec_count": "883",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
            "exec_count": "186",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098",
            "exec_count": "140",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "COMMIT;",
            "source": "slow_queries",
            "title": "slow_query_top_current"
          },
          {
            "digest": "82e12f641a02f5f1b77c6e122f529f4b3585021f9ac0f23a6577dc8c0a9bd3bf",
            "exec_count": "129",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "9a79d3bceafdec75e6c59ed6687bdb7c2993a525a13cbfc134306732bc254685",
            "exec_count": "126",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "18576e217f5f93fa2a934f84290447caa4b783cab493503c4ad71c912ea16930",
            "exec_count": "124",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "7d75919b6fcc6bbbc8516539ac4a165887c4a9765b9e986314ef43ab77267874",
            "exec_count": "95",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "67a28431a20b995bf91fa37e2691be34a00d1c353e1f0efc9c67e418dd499878",
            "exec_count": "94",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "4afa34fab28500dd78a9d5a531dcf93b2c8f36f525d970c99028638c243f2c3b",
            "exec_count": "88",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "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_current"
          },
          {
            "digest": "5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b",
            "exec_count": "74",
            "query_sql": "SELECT digest, any_value(query) AS sample_sql, COUNT(*) AS exec_count FROM clinic_data_proxy.slow_query_logs WHERE date = '20260721' AND time >= 1784602800 AND time < 1784603400 GROUP BY digest ORDER BY exec_count DESC LIMIT 10",
            "sample_sql": "SELECT '699' as site_code,20260720 as create_ymd,case when t2.register_os_type in (2,11,12,13,20) then 1 when t2.register_os_type in (1,9,10,14,18,19) then 2 else 3 end as kind,case when t2.register_os_type in (1,2) then 1 when t2.register_os_type in (9,11) then 2 when t2.register_os_type in (10,12) then 3 when t2.register_os_type in (13,14,15,16,17) then 4 when t2.register_os_type in (19,23) then 5 else 6 end as pack_kind,count(distinct t1.username) as deposit_persons FROM dh_pay_order as t1 left join dh_account_ext_logininfo as t2 on t2.useridx = t1.username and t2.site_code = t1.site_code WHERE (t1.pay_status in (2,4) and t1.notify_time >= ? and t1.notify_time <= ?) AND t2.register_os_type in (1,2,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) AND t1.site_code = ? GROUP BY kind,pack_kind [arguments: (1784516400, 1784602799, \"699\")];",
            "source": "slow_queries",
            "title": "slow_query_top_current"
          }
        ],
        "topsql": []
      },
      "query_or_metric_channel_observed": true,
      "slow_query_top_digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
      "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": "",
      "expected_end_ts": null,
      "expected_start_ts": null,
      "matched_allowed_window": true
    },
    "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-d115ba81dca74a15ad7d2e61ec58ce33",
  "invalid_subtype": null,
  "judged_at": "2026-07-21T10:10:26.645818+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": "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-032aea75814345bb827d83681ad2dd40",
          "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-1784628544729-860b0978",
          "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": 6,
          "id": "output_cluster_id_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": "\"10989049060142230334\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"10989049060142230334\""
        },
        {
          "artifact_paths": [],
          "description": "Output JSON previous_window.start matches the runtime reference.",
          "earned_score": 5,
          "id": "previous_window_start_matches_reference",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "\"2026-07-21T02:50:00Z\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"2026-07-21T02:50:00Z\""
        },
        {
          "artifact_paths": [],
          "description": "Output JSON previous_window.end matches the runtime reference.",
          "earned_score": 5,
          "id": "previous_window_end_matches_reference",
          "match": "all_of",
          "max_score": 5,
          "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 current_window.start matches the runtime reference.",
          "earned_score": 5,
          "id": "current_window_start_matches_reference",
          "match": "all_of",
          "max_score": 5,
          "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 current_window.end matches the runtime reference.",
          "earned_score": 5,
          "id": "current_window_end_matches_reference",
          "match": "all_of",
          "max_score": 5,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_path_equals_reference",
              "snippet": "\"2026-07-21T03:10:00Z\"",
              "source": "output_json"
            }
          ],
          "snippet": "\"2026-07-21T03:10: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": [],
          "description": "Output JSON new_sql_digests digest ordering matches the runtime reference.",
          "earned_score": 20,
          "id": "new_sql_digests_match_reference",
          "match": "all_of",
          "max_score": 20,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_array_matches_reference",
              "snippet": "[{\"sql_digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"sql_statement\": \"SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`us",
              "source": "output_json"
            }
          ],
          "snippet": "[{\"sql_digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"sql_statement\": \"SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`us"
        },
        {
          "artifact_paths": [],
          "description": "Output JSON occurrence_count values match the runtime reference.",
          "earned_score": 15,
          "id": "new_sql_digest_occurrence_counts_match_reference",
          "match": "all_of",
          "max_score": 15,
          "passed": true,
          "required": true,
          "rules": [
            {
              "artifact_path": "",
              "artifacts": [],
              "matched": true,
              "matched_keyword": null,
              "matcher": "json_array_matches_reference",
              "snippet": "[{\"sql_digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"sql_statement\": \"SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`us",
              "source": "output_json"
            }
          ],
          "snippet": "[{\"sql_digest\": \"2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f\", \"sql_statement\": \"SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`us"
        }
      ],
      "max_score": 80,
      "raw_max_score": 65,
      "raw_score": 65,
      "score": 80,
      "status": "pass"
    },
    "critical_evidence_verdict": "pass",
    "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-032aea75814345bb827d83681ad2dd40/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 newly emerged slow-query digests in saas01 requires comparing adjacent fixed windows using only slow-query digest occurrence counts from the runtime-resolved windows.",
    "overall_verdict": "pass",
    "quality_verdict": "pass",
    "scoring": {
      "failing_hard_gate_score_cap": 69,
      "final_score": 100,
      "hard_gate_passed": true,
      "normalized_total_score": 100,
      "passing_hard_gate_score_floor": 70,
      "raw_total_score": 85,
      "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": null,
  "score": 100,
  "total_checks": 0
}