Add the agent HTTP endpoints data plane protocol - #1728
Open
theomonnom wants to merge 5 commits into
Open
Conversation
|
theomonnom
force-pushed
the
theo/agent-http-endpoints
branch
from
August 20, 2026 01:13
1867863 to
0a16787
Compare
AgentHttp namespace in livekit_agent.proto: worker-dialed wires speak AgentHttp.Frame (attach handshake, opaque HTTP/1.1 data bytes, eof/reset, two-level credit), manifest + instance_id + endpoint_protocol in RegisterWorkerRequest, negotiated endpoint_settings in the response, draining/seq in UpdateWorkerStatus, GoAway. ValidateDeployment tightened to a URL-safe charset.
theomonnom
force-pushed
the
theo/agent-http-endpoints
branch
from
August 20, 2026 01:14
0a16787 to
2480d74
Compare
This was referenced Aug 20, 2026
Replace the capsule/attach data-plane messages with the WebTransport model: one QUIC session per worker carrying a control stream plus one stream per HTTP exchange. Add ValidateAgentName so an agent name is usable as a single URL path segment.
theomonnom
marked this pull request as ready for review
August 31, 2026 04:27
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.
Protocol for the agent HTTP endpoints data plane. The worker connection is WebTransport (QUIC): one session per worker, a control stream carrying the existing
WorkerMessage/ServerMessageexchange, and one QUIC stream per HTTP exchange (QUIC provides multiplexing, per-stream flow control, half-close, and reset natively, so there is no capsule/credit layer).AgentHttpnamespace inlivekit_agent.proto: endpoint manifest (AgentEndpoint: path template, methods, public), kind enum,AgentEndpointSettings, andGoAway.RegisterWorkerRequest:endpointsmanifest,instance_id(epoch fencing),endpoint_protocol. Response carries negotiatedendpoint_settings.UpdateWorkerStatus:draining+seq;ServerMessage.go_awayfor control-connection drain.ValidateAgentName+ValidateDeploymenttightened to a URL-safe charset (both are URL path segments).Based on the livekit-server go.mod pin; rebases forward with it.