Skip to content

fix(dev): restore fallback capacity for canonical E2E chat verification #345

Description

@sheepdestroyer

Description

The dev canonical verifier cannot currently complete its three model-dependent checks even though deployment, infrastructure, Langfuse propagation/leak isolation, and all public canonical routes pass.

Actual vs expected

Expected: python3 scripts/verification/verify_canonical_endpoints.py --dev completes every chat route successfully.

Actual (2026-07-23): 26/29 passed. The llm-routing-auto-free simple and medium requests timed out, and a direct LiteLLM agent-simple-core request timed out.

Root cause

The failure is upstream/infrastructure availability rather than the Quadlet or subdomain changes in the replacement PR:

  1. OpenRouter responded 429 Rate limit exceeded: free-models-per-day-high-balance, with X-RateLimit-Remaining: 0.
  2. After external fallbacks were cooled down, the local safety-net route attempted to contact x570.vendeuvre.lan:443 from inside the dev LiteLLM container and received ConnectionRefusedError.

Failure cascade

Step Component Evidence Effect
1 OpenRouter free roster LiteLLM logs: HTTP 429 / remaining quota 0 tier deployments enter cooldown
2 LiteLLM fallbacks agent-simple-core falls through tier groups request latency expands until verifier timeout
3 local-qwen-3.6 / Ollama safety-net LiteLLM logs: connection refused to x570.vendeuvre.lan:443 no terminal local fallback is reachable
4 canonical verifier 3 chat checks time out verifier exits 1 despite 26 passing checks

Affected components

  • scripts/verification/verify_canonical_endpoints.py: auto simple/medium and direct LiteLLM chat checks.
  • Dev LiteLLM fallback chain and the local safety-net upstream reachability.
  • Not affected in this run: router/litellm/langfuse/minio/clickhouse health, Langfuse session propagation + leak isolation, or all router/LiteLLM/Langfuse/llama canonical HTTPS checks.

Environment

  • Dev pod: dev-router-pod
  • Router/LiteLLM: 127.0.0.1:5010 / 127.0.0.1:4010
  • Public routes verified: dev.vendeuvre.lan, litellm.dev.vendeuvre.lan, langfuse.dev.vendeuvre.lan, llama.dev.vendeuvre.lan

Requirements

  1. Restore/replace the exhausted OpenRouter free-tier capacity for dev verification.
  2. Trace the local safety-net URL from rendered LiteLLM configuration to DNS/HAProxy and make it reachable from the dev container without coupling dev to a broken production hostname.
  3. Re-run the full dev canonical verifier and record a clean result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions