{
  "date": "2026-06-27",
  "timezone": "Asia/Shanghai",
  "window_start": "2026-06-27T00:00:00+08:00",
  "window_end": "2026-06-28T00:00:00+08:00",
  "granularity": "daily",
  "data_status": "complete",
  "source": {
    "kind": "grafana_prometheus_and_prod_sqlite",
    "grafana_datasource": "DevOps-prometheus",
    "grafana_datasource_id": 80,
    "prometheus_labels": {
      "cluster": "prod-devops",
      "namespace": "investibook",
      "job": "backend",
      "prometheus": "monitoring/o11y-vmagent"
    },
    "prod_backend_sqlite": "/data/db/investibook.db",
    "notes": [
      "Cost comes from prod SQLite interaction_token_usage with runtime-aware accounting: OpenCode ses_* rows use cumulative session deltas; PI UUID and image-parse rows use per-row increments.",
      "workspace_count in summary is cost-derived distinct positive-cost workspaces.",
      "Prometheus is used for ACP interaction counts only; investigatory PI sessions made investibook_acp_session_cost unsuitable as the cost source for mixed-runtime weekly reporting.",
      "message categories are rule-based user-message classifications.",
      "scenario labels are added to split daily workspace_changes rows."
    ]
  },
  "summary": {
    "total_cost": 5.421,
    "total_acp_interactions": 6,
    "active_users": 7,
    "workspace_count": 8,
    "created_workspace_count": 7,
    "new_workspace_count": 12,
    "updated_existing_workspace_count": 1,
    "changed_workspace_count": 13,
    "message_count": 37,
    "user_message_count": 18,
    "assistant_message_count": 19,
    "unknown_user_count": 0,
    "unknown_cost": 0.0
  },
  "teams": [
    {
      "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
      "team": "Essential & Premium",
      "cost": 1.7028,
      "acp_interactions": 3,
      "workspace_count": 1,
      "active_users": 1,
      "message_count": 24,
      "user_message_count": 12,
      "cost_per_ws": 1.7028,
      "cost_per_acp": 0.5676,
      "acp_per_ws": 3.0,
      "message_per_ws": 24.0,
      "message_per_acp": 8.0,
      "correction_message_ratio": null
    },
    {
      "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
      "team": "Observability & Diagnostics Service",
      "cost": 1.236,
      "acp_interactions": 1,
      "workspace_count": 2,
      "active_users": 2,
      "message_count": 4,
      "user_message_count": 2,
      "cost_per_ws": 0.618,
      "cost_per_acp": 1.236,
      "acp_per_ws": 0.5,
      "message_per_ws": 2.0,
      "message_per_acp": 4.0,
      "correction_message_ratio": null
    },
    {
      "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
      "team": "Technical Account Management",
      "cost": 1.0215,
      "acp_interactions": 0,
      "workspace_count": 1,
      "active_users": 1,
      "message_count": 4,
      "user_message_count": 2,
      "cost_per_ws": 1.0215,
      "cost_per_acp": null,
      "acp_per_ws": 0.0,
      "message_per_ws": 4.0,
      "message_per_acp": null,
      "correction_message_ratio": null
    },
    {
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "team": "Intelligent Support Enablement",
      "cost": 0.9356,
      "acp_interactions": 3,
      "workspace_count": 3,
      "active_users": 2,
      "message_count": 18,
      "user_message_count": 8,
      "cost_per_ws": 0.3119,
      "cost_per_acp": 0.3119,
      "acp_per_ws": 1.0,
      "message_per_ws": 6.0,
      "message_per_acp": 6.0,
      "correction_message_ratio": null
    },
    {
      "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
      "team": "Advanced Intelligent Support",
      "cost": 0.5251,
      "acp_interactions": 0,
      "workspace_count": 1,
      "active_users": 1,
      "message_count": 16,
      "user_message_count": 8,
      "cost_per_ws": 0.5251,
      "cost_per_acp": null,
      "acp_per_ws": 0.0,
      "message_per_ws": 16.0,
      "message_per_acp": null,
      "correction_message_ratio": null
    }
  ],
  "users": [
    {
      "user_email": "jianghuaxi@pingcap.com",
      "name": "江华禧",
      "en_name": "Huaxi Jiang",
      "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
      "team": "Essential & Premium",
      "mapping_source": "investibook-usage-team-overrides.csv",
      "cost": 1.7028,
      "acp_interactions": 3,
      "workspace_count": 1,
      "message_count": 12,
      "user_message_count": 6,
      "channel_breakdown": {
        "cli": 3
      },
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 3.0
    },
    {
      "user_email": "brian.w@pingcap.com",
      "name": "张建伟",
      "en_name": "Brian.Zhang",
      "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
      "team": "Technical Account Management",
      "mapping_source": "investibook-usage-team-overrides.csv",
      "cost": 1.0215,
      "acp_interactions": 0,
      "workspace_count": 1,
      "message_count": 2,
      "user_message_count": 1,
      "channel_breakdown": {},
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 0.0
    },
    {
      "user_email": "lingtao.li@pingcap.com",
      "name": "李凌涛",
      "en_name": "Lingtao Li",
      "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
      "team": "Observability & Diagnostics Service",
      "mapping_source": "pingcap_members_by_team.csv",
      "cost": 1.012,
      "acp_interactions": 1,
      "workspace_count": 1,
      "message_count": 2,
      "user_message_count": 1,
      "channel_breakdown": {
        "cli": 1
      },
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 1.0
    },
    {
      "user_email": "charles.m@pingcap.com",
      "name": "Charles Zhu",
      "en_name": "",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "team": "Intelligent Support Enablement",
      "mapping_source": "investibook-usage-team-overrides.csv",
      "cost": 0.6535,
      "acp_interactions": 2,
      "workspace_count": 2,
      "message_count": 8,
      "user_message_count": 4,
      "channel_breakdown": {
        "cli": 2
      },
      "frequency_bucket": "高频",
      "depth_bucket": "低轮次",
      "behavior_mode": "高频低轮次",
      "avg_acp_per_ws": 1.0
    },
    {
      "user_email": "stanley.huang@pingcap.com",
      "name": "Weiming Huang",
      "en_name": "Stanley Huang",
      "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
      "team": "Advanced Intelligent Support",
      "mapping_source": "pingcap_members_by_team.csv",
      "cost": 0.5251,
      "acp_interactions": 0,
      "workspace_count": 1,
      "message_count": 8,
      "user_message_count": 4,
      "channel_breakdown": {},
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 0.0
    },
    {
      "user_email": "xieyujie@pingcap.com",
      "name": "谢玉洁",
      "en_name": "Yujie Xie",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "team": "Intelligent Support Enablement",
      "mapping_source": "investibook-usage-team-overrides.csv",
      "cost": 0.2821,
      "acp_interactions": 1,
      "workspace_count": 1,
      "message_count": 3,
      "user_message_count": 1,
      "channel_breakdown": {
        "lark": 1
      },
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 1.0
    },
    {
      "user_email": "xuhuaiyu@pingcap.com",
      "name": "徐怀宇",
      "en_name": "Huaiyu Xu",
      "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
      "team": "Observability & Diagnostics Service",
      "mapping_source": "investibook-usage-team-overrides.csv",
      "cost": 0.224,
      "acp_interactions": 0,
      "workspace_count": 1,
      "message_count": 2,
      "user_message_count": 1,
      "channel_breakdown": {},
      "frequency_bucket": "低频",
      "depth_bucket": "低轮次",
      "behavior_mode": "低频低轮次",
      "avg_acp_per_ws": 0.0
    }
  ],
  "message_categories": [
    {
      "category": "产出物迭代",
      "user_message_count": 7,
      "share": 0.388889,
      "estimated_cost_by_turn": 2.1082,
      "estimated_cost_by_output_weight": null,
      "avg_user_chars": 2324.57,
      "avg_next_assistant_chars": null,
      "classification_method": "rule_based_keywords_v2"
    },
    {
      "category": "Ad hoc 查询",
      "user_message_count": 6,
      "share": 0.333333,
      "estimated_cost_by_turn": 1.807,
      "estimated_cost_by_output_weight": null,
      "avg_user_chars": 465.17,
      "avg_next_assistant_chars": null,
      "classification_method": "rule_based_keywords_v2"
    },
    {
      "category": "诊断启动",
      "user_message_count": 2,
      "share": 0.111111,
      "estimated_cost_by_turn": 0.6023,
      "estimated_cost_by_output_weight": null,
      "avg_user_chars": 1559.0,
      "avg_next_assistant_chars": null,
      "classification_method": "rule_based_keywords_v2"
    },
    {
      "category": "解释追问",
      "user_message_count": 1,
      "share": 0.055556,
      "estimated_cost_by_turn": 0.3012,
      "estimated_cost_by_output_weight": null,
      "avg_user_chars": 29.0,
      "avg_next_assistant_chars": null,
      "classification_method": "rule_based_keywords_v2"
    },
    {
      "category": "流程控制/确认",
      "user_message_count": 2,
      "share": 0.111111,
      "estimated_cost_by_turn": 0.6023,
      "estimated_cost_by_output_weight": null,
      "avg_user_chars": 376.0,
      "avg_next_assistant_chars": null,
      "classification_method": "rule_based_keywords_v2"
    }
  ],
  "unmatched_users": [],
  "top_changed_workspaces": [
    {
      "workspace_id": "ws-1782504633953-5b9f2af88",
      "title": "O11Y-2600649 IncidentClusterOfflineStoreProgressPending investigation",
      "workspace_lifecycle": "new",
      "user_email": "jianghuaxi@pingcap.com",
      "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
      "scenario_group": "diagnosis",
      "scenario_category": "tikv_hotspot_or_coprocessor",
      "cost": 1.6408,
      "message_count": 12,
      "user_message_count": 6
    },
    {
      "workspace_id": "ws-1782518375134-5a936c6e7",
      "title": "分析集群 https://clinic.pingcap.com/portal/#/orgs/1372",
      "workspace_lifecycle": "new",
      "user_email": "brian.w@pingcap.com",
      "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
      "scenario_group": "diagnosis",
      "scenario_category": "gc_or_allocator_pressure",
      "cost": 1.0184,
      "message_count": 2,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1781598701127-da28e5bfa",
      "title": "tikv自动巡检",
      "workspace_lifecycle": "updated_existing",
      "user_email": "lingtao.li@pingcap.com",
      "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
      "scenario_group": "non_diagnosis",
      "scenario_category": "inspection_or_report_generation",
      "cost": 1.012,
      "message_count": 2,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1782505647186-fc23b984e",
      "title": "O11Y-2600662_TiDBP999LatencySurgeNextGen_DigiPlus",
      "workspace_lifecycle": "new",
      "user_email": "stanley.huang@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
      "scenario_group": "diagnosis",
      "scenario_category": "resource_control_or_capacity",
      "cost": 0.5053,
      "message_count": 8,
      "user_message_count": 4
    },
    {
      "workspace_id": "ws-1782546691443-a85717430",
      "title": "O11Y-2601033",
      "workspace_lifecycle": "new",
      "user_email": "charles.m@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "scenario_group": "diagnosis",
      "scenario_category": "resource_control_or_capacity",
      "cost": 0.4886,
      "message_count": 4,
      "user_message_count": 2
    },
    {
      "workspace_id": "lark-ws-1d75a8b3-38b4-488d-87ad-a918b2da9184",
      "title": "Lark O11Y-2601033",
      "workspace_lifecycle": "new",
      "user_email": "xieyujie@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "scenario_group": "diagnosis",
      "scenario_category": "cdc_or_replication_lag",
      "cost": 0.2602,
      "message_count": 3,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1782502257087-d0e46e302",
      "title": "未命名工作空间",
      "workspace_lifecycle": "new",
      "user_email": "xuhuaiyu@pingcap.com",
      "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
      "scenario_group": "unknown",
      "scenario_category": null,
      "cost": 0.224,
      "message_count": 2,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1782545717954-c352b415f",
      "title": "O11Y-2601018",
      "workspace_lifecycle": "new",
      "user_email": "charles.m@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "scenario_group": "diagnosis",
      "scenario_category": "storage_or_io_bottleneck",
      "cost": 0.163,
      "message_count": 4,
      "user_message_count": 2
    },
    {
      "workspace_id": "ws-1782504633953-5b9f2af88",
      "title": "O11Y-2600649 IncidentClusterOfflineStoreProgressPending investigation",
      "workspace_lifecycle": "new",
      "user_email": "jianghuaxi@pingcap.com",
      "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
      "scenario_group": "diagnosis",
      "scenario_category": "tikv_hotspot_or_coprocessor",
      "cost": 0.0619,
      "message_count": 12,
      "user_message_count": 6
    },
    {
      "workspace_id": "lark-ws-1d75a8b3-38b4-488d-87ad-a918b2da9184",
      "title": "Lark O11Y-2601033",
      "workspace_lifecycle": "new",
      "user_email": "xieyujie@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "scenario_group": "diagnosis",
      "scenario_category": "cdc_or_replication_lag",
      "cost": 0.0219,
      "message_count": 3,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1782505647186-fc23b984e",
      "title": "O11Y-2600662_TiDBP999LatencySurgeNextGen_DigiPlus",
      "workspace_lifecycle": "new",
      "user_email": "stanley.huang@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
      "scenario_group": "diagnosis",
      "scenario_category": "resource_control_or_capacity",
      "cost": 0.0199,
      "message_count": 8,
      "user_message_count": 4
    },
    {
      "workspace_id": "ws-1782518375134-5a936c6e7",
      "title": "分析集群 https://clinic.pingcap.com/portal/#/orgs/1372",
      "workspace_lifecycle": "new",
      "user_email": "brian.w@pingcap.com",
      "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
      "scenario_group": "diagnosis",
      "scenario_category": "gc_or_allocator_pressure",
      "cost": 0.0031,
      "message_count": 2,
      "user_message_count": 1
    },
    {
      "workspace_id": "ws-1782546691443-a85717430",
      "title": "O11Y-2601033",
      "workspace_lifecycle": "new",
      "user_email": "charles.m@pingcap.com",
      "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
      "scenario_group": "diagnosis",
      "scenario_category": "resource_control_or_capacity",
      "cost": 0.0018,
      "message_count": 4,
      "user_message_count": 2
    }
  ],
  "charts": {
    "daily_cost_acp": [
      {
        "date": "2026-06-27",
        "cost": 5.421,
        "acp_interactions": 6,
        "workspace_count": 8,
        "active_users": 7
      }
    ],
    "team_cost_bar": [
      {
        "team": "Essential & Premium",
        "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
        "cost": 1.7028,
        "acp_interactions": 3,
        "workspace_count": 1,
        "active_users": 1
      },
      {
        "team": "Observability & Diagnostics Service",
        "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
        "cost": 1.236,
        "acp_interactions": 1,
        "workspace_count": 2,
        "active_users": 2
      },
      {
        "team": "Technical Account Management",
        "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
        "cost": 1.0215,
        "acp_interactions": 0,
        "workspace_count": 1,
        "active_users": 1
      },
      {
        "team": "Intelligent Support Enablement",
        "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
        "cost": 0.9356,
        "acp_interactions": 3,
        "workspace_count": 3,
        "active_users": 2
      },
      {
        "team": "Advanced Intelligent Support",
        "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
        "cost": 0.5251,
        "acp_interactions": 0,
        "workspace_count": 1,
        "active_users": 1
      }
    ],
    "team_ratio_scatter": [
      {
        "team": "Essential & Premium",
        "team_path": "Engineering Group / Service Orchestration Engineering / Essential & Premium",
        "x": 3.0,
        "y": 0.5676,
        "size": 1,
        "cost": 1.7028
      },
      {
        "team": "Observability & Diagnostics Service",
        "team_path": "Engineering Group / Database Service Engineering / Observability & Diagnostics Service",
        "x": 0.5,
        "y": 1.236,
        "size": 2,
        "cost": 1.236
      },
      {
        "team": "Technical Account Management",
        "team_path": "APAC Business Group / Customer Success & Alliances / Technical Account Management",
        "x": 0.0,
        "y": null,
        "size": 1,
        "cost": 1.0215
      },
      {
        "team": "Intelligent Support Enablement",
        "team_path": "Engineering Group / Global Support Intelligence / Intelligent Support Enablement",
        "x": 1.0,
        "y": 0.3119,
        "size": 3,
        "cost": 0.9356
      },
      {
        "team": "Advanced Intelligent Support",
        "team_path": "Engineering Group / Global Support Intelligence / Advanced Intelligent Support",
        "x": 0.0,
        "y": null,
        "size": 1,
        "cost": 0.5251
      }
    ],
    "message_category_stack": [
      {
        "team": "Essential & Premium",
        "category": "Ad hoc 查询",
        "count": 8
      },
      {
        "team": "Essential & Premium",
        "category": "产出物迭代",
        "count": 4
      },
      {
        "team": "Observability & Diagnostics Service",
        "category": "产出物迭代",
        "count": 1
      },
      {
        "team": "Observability & Diagnostics Service",
        "category": "解释追问",
        "count": 1
      },
      {
        "team": "Technical Account Management",
        "category": "Ad hoc 查询",
        "count": 2
      },
      {
        "team": "Intelligent Support Enablement",
        "category": "Ad hoc 查询",
        "count": 2
      },
      {
        "team": "Intelligent Support Enablement",
        "category": "产出物迭代",
        "count": 6
      },
      {
        "team": "Advanced Intelligent Support",
        "category": "流程控制/确认",
        "count": 4
      },
      {
        "team": "Advanced Intelligent Support",
        "category": "诊断启动",
        "count": 4
      }
    ],
    "user_behavior_quadrant": [
      {
        "user_email": "brian.w@pingcap.com",
        "x": 1,
        "y": 0.0,
        "cost": 1.0215,
        "mode": "低频低轮次"
      },
      {
        "user_email": "charles.m@pingcap.com",
        "x": 2,
        "y": 1.0,
        "cost": 0.6535,
        "mode": "高频低轮次"
      },
      {
        "user_email": "jianghuaxi@pingcap.com",
        "x": 1,
        "y": 3.0,
        "cost": 1.7028,
        "mode": "低频低轮次"
      },
      {
        "user_email": "lingtao.li@pingcap.com",
        "x": 1,
        "y": 1.0,
        "cost": 1.012,
        "mode": "低频低轮次"
      },
      {
        "user_email": "stanley.huang@pingcap.com",
        "x": 1,
        "y": 0.0,
        "cost": 0.5251,
        "mode": "低频低轮次"
      },
      {
        "user_email": "xieyujie@pingcap.com",
        "x": 1,
        "y": 1.0,
        "cost": 0.2821,
        "mode": "低频低轮次"
      },
      {
        "user_email": "xuhuaiyu@pingcap.com",
        "x": 1,
        "y": 0.0,
        "cost": 0.224,
        "mode": "低频低轮次"
      }
    ]
  },
  "workspace_changes_ref": "workspace_changes.json"
}
