You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(ai): devops ai gateway status reports failover while a route is failover:*, and failover --reset restores the default routes #1986
devops ai gateway failover writes a failover:* route to the route file, and nothing restores the default route.
A healthy probe clears the breaker flag but keeps the failover route. So devops ai gateway status can show a healthy gateway while a route still points at its failover backend.
probe_gateway (:424) sets _circuit_breaker_active from the probe (:447) and saves the routes as they are (:459).
failover_cmd (src/devops_cli/commands/ai_gateway.py:223) has the options --simulate and --force, and no reset.
LiteLLM owns the live fallback through its fallbacks setting (k8s/llm/gateway/configmap.yaml:176). The route file feeds only devops ai gateway status and routes.
LiteLLM fallbacks already switches live traffic. This change builds no failover engine. It only makes the local route file and its report correct.
Proposed remedy
devops ai gateway status reports failover while any route is failover:*.
Add devops ai gateway failover --reset, which restores the default routes.
Failback stays explicit. A healthy probe does not flip a route, because LiteLLM, not the route file, owns the traffic. A deliberate trip stays recorded until a reset.
Acceptance criteria
devops ai gateway status reports failover while any route is failover:*, also after a healthy probe. A test over the route file asserts it.
devops ai gateway failover --reset restores the default routes. A test asserts the route file after the reset.
A healthy probe does not change a failover:* route.
uv run devops docs generate --sync-readme leaves uv run devops docs check clean.
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate adds new functionality to the devops ai gateway.The change improves system reliability and correctness.Users benefit from correct failover status reporting and reset capability.The change requires modifying route handling and adding a new command option.