Skip to content

Router V2: apply standard circuit breakers to GLM 5.3 Flash #971

Closed

Description

@AnthonyRonning

Router V2 assigns GLM 5.3 Flash FailoverPolicy::CapacityGates, while ordinary completion models use AllGates. Flash therefore excludes providers for 429/503/529 capacity signals but ignores route-health circuits triggered by repeated timeouts, transport failures, or stream failures. A provider can remain eligible for Flash even when its route-health circuit is open.

Use the normal AllGates behavior for GLM 5.3 Flash. Reliability should take priority over avoiding the cost of an alternate provider during failures. The healthy allocation and the failure policy are separate decisions.

Scope and acceptance criteria

  • Register Flash with the ordinary completion-model failover policy. Remove Flash-specific capacity-only machinery if it has no remaining consumers.
  • Apply the standard route-health gate consistently during both initial provider selection and the send-time claim. Cover both Tinfoil and Continuum directions.
  • Reuse existing failure thresholds, success reset, cooldowns, and fenced recovery probes. A single ordinary timeout still follows the standard threshold; capacity signals retain their existing behavior.
  • Preserve the existing healthy provider weights, sticky account allocation, public model identity, pricing/usage attribution, V1 routing, and feature-flag boundaries. Do not add a model-selector flag.
  • Affect subsequent eligible requests only. Do not replay the request that timed out or failed, including after partial output or ambiguous acceptance.
  • Replace tests that require Flash to ignore route-health gates with focused tests for ordinary timeout/transport/stream circuit behavior, alternate-provider selection, recovery, and both-routes-unavailable behavior. Preserve coverage for neutral HTTP 400/client-cancellation outcomes and capacity gates.
  • Ensure Auto routing and any related in-flight implementation/tests consume the revised shared policy instead of retaining a Flash-specific exception.

Starting points: services/opensecret/src/provider_registry.rs, src/provider_routing.rs, and src/inference/health.rs under that backend component. The current registry shows the Flash-only exception; glm_flash_probe_skips_the_route_health_gate is one test that encodes it.

Changing global timeout durations, circuit thresholds, healthy weights, or Auto candidate ordering is outside this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions