docs: scaffold subscription- and quota-aware routing engine spec - #35
Closed
OnlyTerp wants to merge 2 commits into
Closed
docs: scaffold subscription- and quota-aware routing engine spec#35OnlyTerp wants to merge 2 commits into
OnlyTerp wants to merge 2 commits into
Conversation
Add docs/ROUTING_ENGINE_SPEC.md covering provider/account ledger, telemetry, failover, Honcho sync, and Life OS metrics. Add uc_routing/ package with placeholder modules for ledger, telemetry, routing, providers, failover, honcho, life_os, config, and tests. Link the new spec from README.md. No production behavior implemented. Co-Authored-By: Rob <onerobby@gmail.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
…uit breaker Co-Authored-By: Rob <onerobby@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the design specification and implementation scaffold for a routing engine that extends the existing Auto Router with real account, subscription, and quota awareness.
What changed
docs/ROUTING_ENGINE_SPEC.mdcovering:uc_routing/with placeholder modules forledger,telemetry,routing,providers,failover,honcho,life_os,config, andtests.README.md: links the new spec in the docs table.Why
The current Auto Router picks the cheapest capable backend per task, but it does not track real subscription windows, prepaid balances, or local GPU availability. The new engine will route local-first, fail over on quota exhaustion or errors, and keep Honcho/Life OS in sync so the user’s cost and quota state is consistent across sessions and dashboards.
Non-goals (this PR)
proxy.pyintegration or provider adapters are wired yet.UC_ROUTING_ENGINE=1and arouting_engineconfig section are introduced in a follow-up PR.Testing
python3 -m unittest discover -s uc_routing/tests -vpasses.python3 test_proxy.pystill passes (existing proxy behavior unchanged).Link to Devin session: https://app.devin.ai/sessions/d23f177b79f7436e87ad08ea73823332
Requested by: @OnlyTerp