# moziplus v2.6 配置文件
# 路径解析优先级：BLACKBOARD_ROOT 环境变量 > data_root 配置 > 默认 {安装目录}/data/

# 项目数据根目录（不设则用默认值）
# data_root: ~/.sanguo_projects/sanguo_moziplus_v2/data

daemon:
  tick_interval: 30
  task_timeout: 600
  max_global_agents: 5
  max_per_session: 1
  max_concurrent_sessions: 3
  zombie_threshold: 20
  # Agent 调度（v2.6.1 新增）
  max_dispatch_per_tick: 3
  claim_timeout_minutes: 5.0
  default_task_timeout_minutes: 30.0
  agent_timeout: 630
  gateway_timeout: 600
  # API 地址（供 Agent 回写黑板）
  api_host: "127.0.0.1"
  api_port: 8083
  # 注册的 Agent 角色列表
  registered_agents:
    - pangtong-fujunshi
    - simayi-challenger
    - jiangwei-infra
    - guanyu-dev
    - zhangfei-dev
    - zhaoyun-data
  # 能力映射（无 assignee 时的自动分配）— deprecated, see agent_profiles
  capability_map:
    coding: [zhangfei-dev]
    review: [simayi-challenger]
    deploy: [jiangwei-infra]
    risk: [guanyu-dev]
    data: [zhaoyun-data]
    strategy: [pangtong-fujunshi]
  # Agent 能力画像（v2.6.1 新增，替代 capability_map）
  agent_profiles:
    zhangfei-dev:
      capabilities: [coding, implementation, scripting]
      capabilities_zh: ["编码", "实现", "脚本"]
      can_review: false
      max_concurrent: 1
    simayi-challenger:
      capabilities: [review, quality_check, debate]
      capabilities_zh: ["审查", "质量检查", "辩论"]
      can_review: true
      max_concurrent: 2
    guanyu-dev:
      capabilities: [risk, compliance, position_check]
      capabilities_zh: ["风控", "合规", "仓位检查"]
      can_review: true
      max_concurrent: 1
    zhaoyun-data:
      capabilities: [data, acquisition, cleaning, verification]
      capabilities_zh: ["数据获取", "清洗", "验证"]
      can_review: false
      max_concurrent: 1
    jiangwei-infra:
      capabilities: [deploy, infrastructure, docker, vnpy]
      capabilities_zh: ["部署", "基础设施", "Docker", "vnpy"]
      can_review: false
      max_concurrent: 1
    pangtong-fujunshi:
      capabilities: [planning, coordination, escalation, strategy]
      capabilities_zh: ["规划", "协调", "升级处理", "策略"]
      can_review: true
      is_fallback: true
      max_concurrent: 3
  # v3.0: routing 配置已移除（模糊路由 delegate 庞统，不再需要独立 LLM 凭据）

inbox:
  path: "inbox/daemon.jsonl"
  watch_interval: 1
  max_size_bytes: 1048576

review:
  default_max_rounds: 3
  debate_max_rounds: 5
  confidence_threshold: 0.7

experience:
  distill_threshold: 5
  expire_days: 30

logging:
  level: INFO
  max_file_size: 10MB
