1.2 KiB
1.2 KiB
Config Generation Workflow
Goal
Keep agent policy consistent and avoid drift between registry and runtime router config.
Current Reality
tools/agents generateupdates:config/router_agents.jsonconfig/crewai_agents.jsongateway-bot/agent_registry.json
services/router/router-config.ymlis still runtime-critical and currently not fully regenerated from registry.
Update Procedure
- Edit canonical policy in
config/agent_registry.yml. - Run
python3 tools/agents generate. - Manually sync runtime-critical rules in
services/router/router-config.yml:- llm profiles (
cloud_deepseek,cloud_mistral,cloud_grok, local profiles) - per-agent routing rules (
*_agentrules) - infra agents local-first constraints
- llm profiles (
- Deploy router and run smoke:
- infer: all top-level agents +
monitor - webhook:
/telegram/webhook+ selected agent webhook - canary:
ops/monitor_canary_summary.sh
- infer: all top-level agents +
- Commit policy docs + config updates in one PR/commit set.
Hard Rules
- No temporary code-level model policy hacks in
services/router/main.py. - If emergency hotfix is needed, remove it in the next stabilization commit.