Skip to content

feat: route accounts by service tier safely through fallback - #847

Merged
SsuJojo merged 3 commits into
devfrom
feat/pr827-tier-fallback-fix
Oct 8, 2026
Merged

SsuJojo merged 3 commits into
devfrom
feat/pr827-tier-fallback-fix

Conversation

@SsuJojo

@SsuJojo SsuJojo commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Supersedes the closed #827 because its source fork does not allow maintainer edits. Preserves the original service-tier routing constraint before account acquisition can downgrade the request to default; both no-account and retry-exhaustion API-key fallback paths now remain fail-closed for restricted requests. Adds integration coverage for tier downgrade followed by 429/account exhaustion (API-key fallback prohibited) and for unrestricted requests (API-key fallback remains available).\n\nValidation:\n-
ode ..\..\node_modules\vitest\vitest.mjs run tests/integration/proxy-handler.test.ts: 40 passed.\n-
px tsc --noEmit: passed.\n- git diff --check: passed.\n- Full CI pending.

@SsuJojo
SsuJojo merged commit 4ab7497 into dev Oct 8, 2026
5 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.

2 participants