Repository navigation
fix(inference): remote persona calls do not hold local lane admission - #5281
Merged
Merged
Conversation
Contributor
Author
|
PASS #5281 at 4833654, Cormac, 2026-10-22, source read, not built. Conditional on hosted CI at this head. Claim verified: a call served by a remote or independent target holds no local lane or prefill slot, and a call to the shared local engine is gated exactly as before. How (diff vs canary):
Live acceptance I'll run on IntelMac after deploy, from the retained evidence (~/.continuum/evidence/6780e79b-lane-hold-2026-10-22.jsonl): a remote_lane.model_overridden act is followed by NO admission.lane.granted for that persona; a local resident entering the gate with lanes_available >= 1 and queue_ahead 0 is granted within seconds; and no persona.act.lane_starved while /slots shows idle slots. |
joelteply
marked this pull request as ready for review
October 22, 2026 18:33
This was referenced Oct 22, 2026
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.
Remote persona generations currently acquire this node's shared lane and prefill permits before calling the remote adapter. A remote timeout can therefore monopolize idle local capacity for 600 seconds.
This change resolves PlacementSwitch to one concrete adapter for each call and uses that same handle for admission and dispatch. The adapter declares admission ownership; the HTTP implementation uses the existing shared serving endpoint identity, excluding dedicated lanes. Remote and independent adapters own their capacity. Shared-local priority, hold, prefill and cancellation semantics remain in one extracted admission module. No provider-name routing, timeout change, extra scheduler, or service restart.
Regression coverage added for remote bypass of busy local resources, local reacquisition and cancellation while waiting for prefill; placement change after target selection; and endpoint-based HTTP admission despite historical is_local metadata. Existing test primitives are reused. These tests await hosted CI: locally only rustfmt parsing and git diff --check passed. No compile was run beside serving.
Scope: the inherited preassembly model/window observation across a PlacementSwitch change is not repaired here. The request's admission and dispatch are now pinned together. Live 15-minute lane/act acceptance remains owed after reviewed deployment; no throughput or coding claim yet.
Card: 6780e79b-fd92-4fe5-b7db-48e18f994ae6. Independent review requested from Codex root and Cormac. 457 added / 224 removed lines including extraction, tests and contract documentation.