Files
microdao-daarion/config
Apple ed7ad49d3a P3.2+P3.3+P3.4: NODA1 node-worker + NATS auth config + Prometheus counters
P3.2 — Multi-node deployment:
- Added node-worker service to docker-compose.node1.yml (NODE_ID=noda1)
- NCS NODA1 now has NODE_WORKER_URL for metrics collection
- Fixed NODE_ID consistency: router NODA1 uses 'noda1'
- NODA2 node-worker/NCS gets NCS_REPORT_URL for latency reporting

P3.3 — NATS accounts/auth (opt-in config):
- config/nats-server.conf with 3 accounts: SYS, FABRIC, APP
- Per-user topic permissions (router, ncs, node_worker)
- Leafnode listener :7422 with auth
- Not yet activated (requires credential provisioning)

P3.4 — Prometheus counters:
- Router /fabric_metrics: caps_refresh, caps_stale, model_select,
  offload_total, breaker_state, score_ms histogram
- Node Worker /prom_metrics: jobs_total, inflight gauge, latency_ms histogram
- NCS /prom_metrics: runtime_health, runtime_p50/p95, node_wait_ms
- All bound to 127.0.0.1 (not externally exposed)

Made-with: Cursor
2026-02-27 03:03:18 -08:00
..

DAGI Agent Registry

Єдине джерело істини для всіх агентів

Файл agent_registry.yml — ЄДИНЕ місце для визначення агентів.

НЕ редагуйте вручну:

  • gateway-bot/*_prompt.txt (крім контенту промптів)
  • services/router/router-config.yml agents section
  • services/crewai-service/ agent definitions

Класи агентів

Клас Опис Telegram
top_level Domain orchestrator, user-facing або private public/whitelist/off
internal Platform service agent off

Як додати нового агента

  1. Додайте запис в agent_registry.yml:
- id: new_agent
  display_name: "New Agent"
  class: top_level
  visibility: public
  scope: global
  telegram_mode: public
  public_channels:
    telegram: true
  canonical_role: "Brief role description"
  mission: |
    Multi-line mission description.
  domains: [domain1, domain2]
  routing:
    priority: 70
    keywords: [keyword1, keyword2]
  llm_profile: reasoning
  prompt_file: new_agent_prompt.txt
  crewai:
    enabled: true
    orchestrator: true
    team:
      - role: "Team Member 1"
        skills: [skill1, skill2]
  handoff_contract:
    accepts_from: [daarwizz]
    can_delegate_to: [new_agent_team]
  1. Створіть prompt файл:

    touch gateway-bot/new_agent_prompt.txt
    
  2. Валідуйте:

    python3 tools/agents validate
    
  3. Згенеруйте конфіги:

    python3 tools/agents generate
    
  4. Smoke test:

    python3 tools/agents smoke --id new_agent
    

CLI команди

# Список всіх агентів
python3 tools/agents list

# Валідація registry
python3 tools/agents validate

# Генерація конфігів
python3 tools/agents generate

# Smoke test агента
python3 tools/agents smoke --id <agent_id>

Feature Flags

В agent_registry.yml:

feature_flags:
  registry_enabled: true        # Master switch
  generate_prompts: true        # Generate gateway/agent_registry.json
  generate_router_config: true  # Generate config/router_agents.json
  generate_crewai_config: true  # Generate config/crewai_agents.json

Згенеровані файли

Не редагуйте напряму:

  • gateway-bot/agent_registry.json - Gateway agent metadata
  • config/router_agents.json - Router agent configs
  • config/crewai_agents.json - CrewAI orchestrator/worker definitions