← Back to Jurassic Park

Ken Routing

Ken Routing A workflow diagram generated by Archify. 01 / Agent Turn & Insights 02 / Primary Provider EX / Retry & Recovery 04 / Fallback Chain (config.yaml) Agent Turn · budget.consume() · Agent Turn & Insights Agent Turn budget.consume() Estimate Cost · _estimate_cost() · Agent Turn & Insights Estimate Cost _estimate_cost() Actual Cost · status + source · Agent Turn & Insights Actual Cost status + source Turn Result · final_response · Agent Turn & Insights Turn Result final_response Primary Call · deepseek-flash · Primary Provider Primary Call deepseek-flash Transport Recovery · one retry attempt · Retry & Recovery Transport Recovery one retry attempt Fallback Check · pending fallback? · Fallback Chain (config.yaml) Fallback Check pending fallback? Fallback Call · gemini, then nvidia · Fallback Chain (config.yaml) Fallback Call gemini, then nvidia Non-retryable · returns failure · Fallback Chain (config.yaml) Non-retryable returns failure no recovered yes retries exhausted before call success not recoverable recovered record actual Legend User UI Policy Context / trace Cloud service

This is Ken, not the fleet

  • • config.yaml: primary deepseek/deepseek-flash, fallback_providers: gemini -> nvidia
  • • Per-agent iteration budget: 500 parent / 50 per subagent (agent/iteration_budget.py)

Cost has provenance, not just a total

  • • insights.py tracks estimated_cost_usd, then actual_cost_usd once real usage is known
  • • cost_status / cost_source record where each number came from