Epic: Virtual Provider — Load-Balanced LLM Backend Routing #152
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveractors-core#152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background and context
Operators holding multiple OAuth subscriptions for the same LLM provider
currently have no way to pool them behind a single logical agent to increase
effective capacity: an
agents.<name>entry oftype: llmbinds to exactlyone
provider+model+ credential set (docs/index.md§4.4). This Epicintroduces a virtual provider — a logical LLM agent provider that
hard-configures several backend credential sets and forwards every request to
exactly one of them, selected by a load-balancing strategy (round-robin or
random), returning that backend's response unmodified. Nothing else is in
scope: no failover, no retry-across-backends, no health checking, no
weighted/least-connections selection.
Design is recorded in
docs/adr/ADR-2038-virtual-provider-load-balanced-backend-routing.md.Current behavior
An LLM agent always constructs a single chat model from its own
provider/model/ credentials. There is no mechanism to spread a single logicalagent's traffic across multiple backend credential sets, even when those
sets are for the very same provider.
Expected behavior
An
agents.<name>entry oftype: llmcan declarebackends(a list of atleast two entries, each with its own optional
provider/model— defaultingto the agent's own — and a REQUIRED own
credentialsmapping) andstrategy(
"round_robin", the default, or"random"). Every invocation is forwardedto exactly one backend chosen per the configured strategy; the selected
backend's response is returned unmodified.
Acceptance criteria
provider/modelbut distinctcredentials(multiple OAuth subscriptions — theprimary motivating use case) can be constructed and successfully used to
send and receive messages, under both the
round_robinandrandomstrategies.
provider/modelper-backend (mixed providers/models) also works.backendsare completely unaffected(non-regression) — single-provider construction and behavior are
byte-for-byte unchanged.
Supporting information
docs/adr/ADR-2038-virtual-provider-load-balanced-backend-routing.mdSubtasks
Definition of Done
This Epic is complete when:
docs/index.md) documentsbackends/strategyfortype: llmagents, with an incremented standard version anda §21.1 revision-history entry.
noxis green onmaster, including the new tests introduced by thechild issues.
This epic is a duplicate of #154