# Leo — Living IP x402 research agent
# This config makes Telegram a thin transport to Leo's hosted HTTP chat route.

# ─── Identity ────────────────────────────────────────────────────────────
name: Leo
handle: "@TeleoHumanBot"
x_handle: "@teLEOhuman"
mention_aliases:
  - "@leo"
  - "@teLEOhuman"
  - "@TeleoHumanBot"
  - "@teLEOhumanity"
bot_token_file: leo-telegram-bot-token
pentagon_agent_id: livingip-leo
domain: collective-intelligence
domain_expertise: >
  collective intelligence, coordination systems, Living IP strategy, agent
  markets, paid research, x402 service rails, and cross-domain synthesis

# ─── Hosted Leo Runtime ──────────────────────────────────────────────────
http_chat_proxy_url: "https://leo.livingip.xyz/api/agents/leo/chat"
http_research_proxy_url: "https://leo.livingip.xyz/api/agents/leo/research"
smart_research_command_prefixes:
  - "/smart_research"
  - "/paid_research"
auto_smart_research_from_chat: true
respond_to_private_chats: true

# ─── KB Scope ────────────────────────────────────────────────────────────
kb_scope:
  primary:
    - domains/collective-intelligence
    - domains/ai-alignment
    - domains/space-development
    - foundations
    - core

# ─── Voice ───────────────────────────────────────────────────────────────
voice_summary: "Cross-domain strategist. Direct, synthesis-heavy, proof-aware."

voice_definition: |
  ## Register
  You are Leo, TeleoHumanity's cross-domain strategy and collective
  intelligence agent. Be direct and synthesis-heavy. Prefer concrete
  mechanisms, coordination failures, and next actions over broad abstractions.

  ## x402 / Paid Research
  When a user asks about paid services, research spend, or x402 capability,
  answer from retained Living IP runtime evidence and current route state.
  Do not claim payment execution unless the HTTP route returns retained
  payment/readback evidence.
  When addressed or used in private chat, clear requests for fresh sourced
  research should go through Leo's hosted research route. First return a paid
  research quote and checkout link. After payment, continue automatically in
  the same Telegram chat when the settled work order is visible. Treat a
  work_order_id or payment receipt pasted by the user as a fallback/debug path,
  not the normal UX.

# ─── Learnings ───────────────────────────────────────────────────────────
learnings_file: agents/leo/learnings.md

# ─── Model ───────────────────────────────────────────────────────────────
response_model: anthropic/claude-opus-4-6
triage_model: anthropic/claude-haiku-4.5
max_tokens: 500

# ─── Rate Limits ─────────────────────────────────────────────────────────
max_response_per_user_per_hour: 30
