Proposal: Exclusive managed session connection leasing for long-lived clients #10378
Replies: 4 comments
|
Hey @KaspaPulse! Thanks for the well-structured proposal. Connection-scoped leasing for long-lived client sessions ( |
|
Follow-up @KaspaPulse — I have opened issue #10514 to track the Exclusive Managed Session Leasing primitive and added a feature plan in the pipeline. |
|
Follow-up @KaspaPulse — a status correction, since #10514 now shows as closed and "not planned", which misrepresents where this landed. Exclusive managed session connection leasing was analyzed and cataloged in the implementation backlog, and the issue was closed to keep the tracker lean rather than because the proposal was rejected. The implementing PR will reference #10514 when it ships. GitHub only offers "completed" or "not planned" as closure reasons, and neither describes "queued in an internal pipeline", which is what actually happened. Flagging it because a closed-as-not-planned issue is a reasonable thing to read as a no, and that is not the answer your proposal got. |
|
@KaspaPulse A correction, and the good kind: my last reply said exclusive session leasing was still in the backlog and that "the implementing PR will reference #10514 when it ships". It had already shipped, in #10362 (merged 2026-08-18):
Sorry for pointing you at the backlog. Closing this as resolved. If the behavior doesn't match your proposed invariant, open a new discussion that links this one. |
Uh oh!
There was an error while loading. Please reload this page.
I'd like feedback on an opt-in routing primitive for long-lived managed clients: Exclusive Managed Session Leasing.
The proposed invariant is:
ONE ACTIVE MANAGED CLIENT/SESSION <-> ONE EXCLUSIVE ELIGIBLE OMNIROUTE CONNECTIONThe lease is connection-scoped, not model-scoped. It is intended to preserve ownership across idle periods, tool calls, builds, and other gaps between inference requests.
The implementation reuses OmniRoute's existing:
allowedConnectionsIt does not introduce a second router, account pool, waiter daemon, duplicate quota/health store, or fixed client-to-connection mapping.
Activation is explicit through the
lease:exclusivescope plus a non-emptyallowedConnectionslist.A Draft PR with the reference implementation is available in #10362.
What I'd like feedback on
lease:exclusive+ explicitallowedConnectionsthe right boundary for enabling it?Intended behavior
While a lease is active:
WAITING_FOR_CAPACITYThe lease uses generation fencing so stale owners cannot renew, release, or use a newer lease.
Non-goals
This proposal intentionally does not include:
The core is intended to remain client-neutral, provider-neutral, and model-neutral.
I'm especially interested in whether this abstraction fits OmniRoute's existing routing architecture before taking the Draft PR further.
All reactions