# LLMHosts.com -- Hive Configuration
# Generated: 2026-02-14
# Hive v1.0

# --- Model Providers ---
providers:
  ollama:
    enabled: true
    base_url: "http://localhost:11434"
    models: []  # Auto-discovered on activation
  openai:
    enabled: false
    api_key_env: "OPENAI_API_KEY"
  openrouter:
    enabled: false
    api_key_env: "OPENROUTER_API_KEY"
  anthropic:
    enabled: false
    api_key_env: "ANTHROPIC_API_KEY"

# --- Model Assignments ---
model_assignments:
  analyst: "ollama/qwen2.5:7b"
  watcher: "ollama/qwen2.5:3b"
  builder: "anthropic/claude-sonnet"
  advisor: "anthropic/claude-sonnet"
  chat: "anthropic/claude-sonnet"
  fallback: "openrouter/auto"

# --- Reasoning Mode ---
reasoning_mode: "standard"  # standard | verbose | deep

# --- Agent Settings ---
agents:
  analyst:
    enabled: true
    reindex_on_activation: true
  watcher:
    enabled: true
    health_check_interval_seconds: 60
    health_endpoint: null  # Set when proxy server is running
    crash_loop_max_restarts: 3
    crash_loop_window_seconds: 300
  builder:
    enabled: true
    max_iterations_per_task: 3
    sandbox_type: "docker"  # docker | venv | subprocess
    sandbox_timeout_seconds: 300
  advisor:
    enabled: true
    max_concurrent_proposals: 3
    min_hours_between_module_changes: 24
    crystallization_threshold: 5
    crystallization_success_rate: 0.70

# --- Approval Rules ---
approval:
  auto_approve:
    - "health_restart"       # Level 0: process restart
    - "dependency_patch"     # Patch version updates
  require_approval:
    - "feature"
    - "architecture"
    - "security"
    - "dependency_major"
    - "config_change"
    - "identity_update"
    - "agent_reorg"

# --- Admin Panel ---
admin_panel:
  enabled: true
  path_prefix: "/admin/hive"
  auth_mode: "standalone"
  standalone:
    username: "admin"
    password_hash: ""  # Set on first access
    session_ttl_hours: 24

# --- GitHub Integration ---
github:
  enabled: true
  repo: "LookNoHandsMom/LLMHosts.com"
  branch_prefix: "hive/"
  require_ci_pass: true

# --- Cost Tracking ---
cost_alerts:
  daily_budget_usd: 5.00
  monthly_budget_usd: 100.00
  alert_channel: "admin_panel"

# --- Resource Limits ---
resource_limits:
  per_task:
    max_execution_time_seconds: 300
    max_memory_mb: 1024
    max_output_tokens: 16384
    max_model_requests_per_task: 10
  per_session:
    max_tasks: 50
    max_duration_hours: 8
    max_cost_usd: 10.00
  global:
    max_daily_cost_usd: 50.00
    max_concurrent_tasks: 5
    max_sandbox_executions: 20

# --- Evolution Settings ---
evolution:
  signal_threshold: 2  # Number of signals in cluster to trigger assessment
  signal_window_days: 7
  review_cadence_days: 30
  adaptation_aggressiveness: "balanced"  # conservative | balanced | aggressive

# --- Feature Flags ---
features:
  web_search: false  # Advisor web search capability
  auto_healing_level_0: true
  auto_healing_level_1: false  # Enable after trust is established
  skill_crystallization: true
  cross_app_communication: false  # Future Phase 3+
