---
schema_version: 1
id: single-node-cpu-core-scope-compare-in-premium-cluster-during-incident-window
title: Single-node TiKV CPU core comparison across three incident windows in the primary
  premium cluster
status: draft
owner: codex
evaluation:
  mode: adhoc_evidence
environment:
  profile: stable-premium
  cluster_label: premium-main
  cluster_id: '10748116073341772391'
  cluster_type: premium
  tidb_version: v8.5.x
  parent_id: '2026948324023603200'
time_window:
  resolved_by_output: case_input
runtime:
  hooks:
  - id: prepare_case_input
    stage: before_acp
    kind: python_script
    path: runtime_hook.py
    output_id: case_input
    args:
    - resolve-windows
    - "--cluster-id"
    - "{{environment.cluster_id}}"
    - "--metrics-cluster-id"
    - "{{environment.parent_id}}"
  - id: build_runtime_reference
    stage: before_judge
    kind: python_script
    path: runtime_hook.py
    output_id: reference_answer
    args:
    - build-reference
    - "--cluster-id"
    - "{{environment.cluster_id}}"
    - "--metrics-cluster-id"
    - "{{environment.parent_id}}"
    - "--node"
    - "{{runtime.case_input.target_node}}"
prompt:
  text: |
    帮我精确看一下这个 Premium 集群（{{environment.cluster_id}}）里 `{{runtime.case_input.target_node}}` 这个节点，在最近 3 天下面这些时间窗内的 CPU core 使用情况：

    {{runtime.case_input.windows_markdown}}

    要求严格如下：
    1. 输出必须是 CPU core，不是百分比。
    2. 同时给出该节点的 CPU spec cores。
    3. 对每个时间窗，返回：
       - `avg_cpu_cores`
       - `peak_cpu_cores`
    4. 如果证据不足，不要猜。

    我只看最后结果。最终只输出一个 `json` 代码块，字段必须严格为：
    `cluster_id`、`node`、`cpu_spec_cores`、`evidence_sufficient`、`windows`

    `windows` 必须严格按我给你的顺序返回 3 个元素。每个元素都只能包含：
    `start`、`end`、`avg_cpu_cores`、`peak_cpu_cores`

    所有有数值的 `*_cores` 字段都保留 4 位小数。

    不要输出额外字段，不要输出额外解释，也不要把说明写进 JSON。

    JSON 结构如下：

    ```json
    {
      "cluster_id": "10748116073341772391",
      "node": "{{runtime.case_input.target_node}}",
      "cpu_spec_cores": 32.0000,
      "evidence_sufficient": true,
      "windows": [
        {
          "start": "2026-01-03T03:00:00Z",
          "end": "2026-01-03T03:30:00Z",
          "avg_cpu_cores": 24.1234,
          "peak_cpu_cores": 29.6234
        }
      ]
    }
    ```

    如果证据不足，请把 `evidence_sufficient` 设为 `false`，并把 `windows` 设为空数组。`cpu_spec_cores` 如果无法确认就填 `null`。
tags:
- cpu
- tikv
- single-node
- scope-correctness
- structured-output
- adhoc-evidence
case_tier: P1
cost_tier: low
followup:
  scheduled_max_followups: 0
execution:
  acp_bash_timeout_s: 300
