# rye:signed:2026-04-23T06:05:39Z:7579db7b27eeb063d963c57c5d588e28d7956c123c42ef7d65b48577055e9222:RQGpOiCyWTJTbQBLwrGusfpf6ezY7zddRVXl29jtTrjeVNKKWkHkXF6L6evHkJo0ykGiUiZNcjk5B1HkD-9fCQ:6ea18199041a1ea8
# Cluster routing policy.
#
# Loaded via 3-tier resolution (system → user → project).
# Projects override with their own .ai/config/cluster/topology.yaml.
# Deep merge: project can add policies without restating defaults.
category: "cluster"
version: "1.0.0"

routing:
  # Strategy: least-loaded | round-robin | affinity
  strategy: least-loaded

  # Consider node saturated above this load ratio (active / max_concurrent)
  load_threshold: 0.9

  # /status query timeout in seconds
  timeout_seconds: 10

  # Cache TTL for /status responses in seconds
  status_ttl_seconds: 30
