Skip to content

feat(phase-13): add model routing and fallback - #7

Merged
lyxnbclass merged 3 commits into
masterfrom
codex/phase-13-model-routing
Aug 20, 2026
Merged

lyxnbclass merged 3 commits into
masterfrom
codex/phase-13-model-routing

Conversation

@lyxnbclass

Copy link
Copy Markdown
Owner

Summary

  • add ordered primary/fallback model routing on one OpenAI-compatible endpoint
  • fail over only for transport failures, HTTP 408/409/425/429, and 5xx responses
  • preserve the normalized request, tool declarations, and token output limit across candidates
  • redact route failures and reject unsafe model names or endpoint credentials
  • document scope, threat model, limitations, and stage status

Validation

  • stage-related tests: 101 passed
  • full suite: 339 passed, 3 skipped
  • branch coverage: 86.01% (threshold 85%)
  • Ruff, Mypy, compileall, sdist/wheel build, and offline MockModel demo passed

Scope

Fallback candidates share one endpoint, API key, timeout, and protocol. This PR does not add cross-provider credential pools, load balancing, health checks, or parallel racing. Failed transient requests may still be billed when the provider returns no usage data.

@lyxnbclass
lyxnbclass marked this pull request as ready for review August 20, 2026 04:45
@lyxnbclass
lyxnbclass merged commit 5308811 into master Aug 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant