Repository navigation
Ariadne: WebSocket client verbs (ws-open, ws-send, ws-poll, ws-recv, ws-close) - #923
Merged
Merged
Conversation
added 2 commits
October 30, 2026 18:51
…ws-close) A document can follow a server that pushes changes instead of polling it. cvc::net gets a WebSocket client (ws_client.h) with two backends: libcurl's WebSocket API natively, so wss:// has the same TLS and proxy handling as https://, and the browser's WebSocket under Emscripten. Messages arrive whole in a queue; ws-poll takes what is there without waiting, for on_tick loops, and ws-recv waits on the background pool. The host's policy checks a ws(s) URL as its http(s) twin, and auth/headers/credential values work as for the HTTP verbs (natively; a browser WebSocket sends no headers). Documented in ARIADNE.md 10.5, with client tests against a Beast server and verb tests in ariadne_runtime_test.
…efore looping over them
transfix
added a commit
to cy-pca/cypkg
that referenced
this pull request
Oct 31, 2026
The Builders, Builds and Activity windows now keep a WebSocket to the registry's live feed while they're open (libcvc's ws-* verbs, natively and in the browser). A builder or a job on the page changes in place as the server reports it; a new job on the first page, a job leaving the filter, an activity event or a resync reloads with one REST request. Each window's status line ends in "· live", or "· polling" while the feed is down; then it polls about every 10 s and tries the feed again. Without the verbs, with --live off, or after close 4004/4001, it only polls. Builders now keep only the fields the window shows: cvcpkg.org's builder capabilities have keys like "glibc2.35", which can't name state nodes, so storing whole builders failed against the real registry. The fixture's first builder carries such keys now. The fixture registry serves /v1/live/ws (a small stdlib WebSocket server) and /_live to publish, close or turn off the feed. fleet_test checks in-place updates without new /v1 requests, reloads, and the 4004 fallback; the tmux and browser tests check that View > Builders goes live. CI adds transfix/libcvc#923.
transfix
enabled auto-merge (squash)
October 31, 2026 00:46
transfix
pushed a commit
that referenced
this pull request
Oct 31, 2026
transfix
added a commit
that referenced
this pull request
Oct 31, 2026
…) (#926) * Ariadne: WebSocket client verbs (ws-open, ws-send, ws-poll, ws-recv, ws-close) A document can follow a server that pushes changes instead of polling it. cvc::net gets a WebSocket client (ws_client.h) with two backends: libcurl's WebSocket API natively, so wss:// has the same TLS and proxy handling as https://, and the browser's WebSocket under Emscripten. Messages arrive whole in a queue; ws-poll takes what is there without waiting, for on_tick loops, and ws-recv waits on the background pool. The host's policy checks a ws(s) URL as its http(s) twin, and auth/headers/credential values work as for the HTTP verbs (natively; a browser WebSocket sends no headers). Documented in ARIADNE.md 10.5, with client tests against a Beast server and verb tests in ariadne_runtime_test. * ws client tests: a Beast close code is an enum; copy the handshakes before looping over them * ws client: build on MSVC (windows.h's min macro broke std::min) * ws verbs: clang-format the changed lines * ws client: close before queueing the oversized-message error The reader queued the Error event and then closed, so a recv on another thread could take the error while open() was still true; NetWsClient. AnOversizedMessageIsAnError failed about one run in five. Closing first matches the peer-close path, which clears open_ before it queues. * Ariadne: ws-send carries a credential the host puts in A browser's WebSocket can't send request headers, so a document in the wasm page could only authenticate a live feed by holding the token and sending it in a message, and documents never see tokens. Now (ws-send H MESSAGE) sends a dict or list as JSON (json-encode, compact), and a (dict "credential" NAME) anywhere in it goes out as the host's token for NAME, a JSON string: (ws-send h (dict "type" "hello" "token" (dict "credential" "txwtf"))) - The token is fetched for the origin the connection was opened and checked as (its URL's http(s) twin, now kept in the handle table), so credential bindings apply as for HTTP. It is put in on the host just before the send, with room reserved so no replace leaves a copy in a freed buffer, then wiped; a send error is redacted. - A name with no token at that origin, or a credential value on a host that keeps no credentials, is an error and sends nothing. - Each connection remembers the credentials it has sent (handshake auth and header values too), and ws-recv / ws-poll blank them to [redacted] in what they return, as perform() does for an HTTP reply, should the server echo one. - A string message is sent as it is, as before. Tests: AriadneNetHost.WsSendPutsInTheHostsTokenThatNoValueHolds checks, against LocalWsServer, that the server gets the substituted token while no state node, error or warning holds it, that an echo comes back redacted and that a missing credential sends nothing; the round-trip test checks plain JSON and a host without credentials. Spec: docs/ARIADNE.md section 10.5. Merges master for #883's builtin_json_encode. --------- Co-authored-by: nicotina-ci <[email protected]>
transfix
pushed a commit
that referenced
this pull request
Nov 6, 2026
…ter, without #925) This rebuilds the branch on master, which now has #923, #914 and #926, and drops the #925 merge: #925 (feat/ariadne-ws-nonblocking) is still open and fails its own AriadneNetL4.WebSocket* tests on macOS, which also failed this PR. This commit's tree is master plus the feature alone; its first parent keeps the branch's earlier history, so nothing is rewritten. A browser's WebSocket can send no request headers, but it can offer subprotocols, so a credential there is the one handshake auth a document in the wasm page can use. ws-open takes two new options: - "protocols": a list of subprotocols to offer (Sec-WebSocket-Protocol), each an HTTP token. - "auth_protocol": (dict "credential" NAME ["prefix" P] ["encoding" "raw"| "base64url"]) offers the host's token for NAME, fetched for the URL's origin as for auth, as one more subprotocol: P then the token, or its unpadded base64url (a token68's '/' or '=' can't be in a subprotocol), as Kubernetes does with "base64url.bearer.authorization.k8s.io.". cvc::net: WsOptions::protocols is sent natively as a Sec-WebSocket-Protocol line and in the browser through createAttributes.protocols. Both fail the connect unless the server picks one of the offered subprotocols, as browsers do (RFC 6455 4.1; natively from the 101's headers, which libcurl files under CURLH_1XX). An invalid or repeated subprotocol is refused, with no error quoting one, and the joined strings are wiped. ws_valid_protocol is public for the option checks. The token is wiped after the connect, and errors are redacted of it and of its base64url spelling. The connection records the name, so ws-recv and ws-poll blank either spelling if the server echoes it. Tests: NetWsClient covers offering, a server that picks none or another subprotocol, and invalid subprotocols. AriadneNetHost. WsOpenOffersTheHostsTokenAsASubprotocol checks the handshake line, the redacted echo, a raw token with '/' that is refused without connecting, and that no state node holds the token. LocalWsServer can pick a subprotocol. Spec: docs/ARIADNE.md section 10.5.
transfix
added a commit
that referenced
this pull request
Nov 6, 2026
* Ariadne L4: requests in single-threaded wasm don't stall the frame loop
In a browser build without threads the background pool's jobs run on the page's main thread,
so an http verb's kernel ran inside the frame pump and spun on emscripten_sleep(0) until the
reply came: nothing drew or took input for the whole request (100-300 ms, up to the 30 s
timeout).
- cvc::net: start(req[, policy], done) -> HttpTransfer (abort()), and http_starts_async().
The browser fetch backend issues an emscripten_fetch and returns; onsuccess/onerror deliver
the reply from the event loop. It reports a timeout as one, enforces the 64 MiB cap as the
body arrives, and aborts cleanly (no callback after abort). Elsewhere start() sends in place.
The policy check follows redirects hop by hop, as send(req, policy) does (shared next_hop).
- state_exec: async_work {kernel, start} and a register_async_fn overload. Where the call can
park, start() begins the work and the call is an external one with the registration's
timeout and charging; the work settles and posts it. async_call::on_cancel(stop) is how a
kill, a timeout or the host's shutdown stops it. Elsewhere the kernel runs as before.
- The net verbs (http-get, http-request) return an async_work when the transport starts
requests without blocking: credentials go in and captures come out in C++ around the
started request (perform split into prepare/complete). fetch of an http(s) URI uses the
http handler's new non-blocking form (register_uri_async_handler / resolve_async); a host's
own handler for the scheme drops it.
- AppRuntime::idle() counts the scheduler's calls in flight (started ones included), and
settle() yields to the browser's event loop in wasm, so ari snapshot waits for the reply.
Tests: AsyncCalls started-call cases (park, timed await slices, errors, kill, timeout,
shutdown, kernel fallback), NetStart (in place, later, policy hop by hop, abort),
AriadneNetL4 (frames go on while a program is parked on a request, await slices, teardown
aborts, credentials and capture on the started path, policy refusal, fetch). CI: the wasm
ari's node job runs tests/l4_frames.ari against a 1 s endpoint and fails unless frames ran
while the request was out (218 here; 0 with the blocking path).
Docs: ARIADNE.md 10.2, STATE_EXEC_EXCEPTIONS.md 3.12.
* Ariadne: WebSocket client verbs (ws-open, ws-send, ws-poll, ws-recv, ws-close)
A document can follow a server that pushes changes instead of polling it.
cvc::net gets a WebSocket client (ws_client.h) with two backends: libcurl's
WebSocket API natively, so wss:// has the same TLS and proxy handling as
https://, and the browser's WebSocket under Emscripten. Messages arrive whole
in a queue; ws-poll takes what is there without waiting, for on_tick loops,
and ws-recv waits on the background pool. The host's policy checks a ws(s)
URL as its http(s) twin, and auth/headers/credential values work as for the
HTTP verbs (natively; a browser WebSocket sends no headers).
Documented in ARIADNE.md 10.5, with client tests against a Beast server and
verb tests in ariadne_runtime_test.
* ws client tests: a Beast close code is an enum; copy the handshakes before looping over them
* ws client: build on MSVC (windows.h's min macro broke std::min)
* Ariadne: ws-open and ws-recv don't stall the frame loop in single-threaded wasm
#923's browser WebSocket waited in loops on emscripten_sleep(10): WebWsConnection::wait_open
inside ws_connect (up to the 15 s connect timeout) and recv (up to ws-recv's seconds). Without
-pthread those kernels run on the pump thread, so ws-open and ws-recv froze the page, as http-get
did before #914. This moves them onto #914's path.
- cvc::net: ws_start(url, opts, done) and WsConnection::recv_async(timeout, done), plus
ws_starts_async() and a set_ws_connector seam (WsConnector), as set_http_client is for HTTP.
The browser backend in a build without threads answers from the WebSocket's own callbacks
(on_open / on_error / on_close / on_message) and emscripten_set_timeout timers; the returned
stop function abandons a connect (closing the socket, a connecting one too) or drops a wait.
Elsewhere both wait in place, as before.
- ws-open and ws-recv return a state_exec async_work (#914) when ws_starts_async(): the program
parks, frames go on, and the callbacks post the reply; a killed or timed-out call abandons its
connect or drops its wait (on_cancel). ws-open's checks, credentials and handle table are
shared by the kernel and the started path (build / prepare / finish_ws_open).
- WebWsConnection::close sends 1000 for a code a page may not send (WebSocket.close throws on
anything but 1000 and 3000-4999, the 1001 and 1013 this file uses included).
Tests: AriadneNetL4.WebSocketOpenAndRecvAreStartedWhileFramesGoOn and
ATornDownDocumentAbandonsItsConnectAndItsWait (a deferred connector and connection the test
answers between frames; forcing ws-open back to its kernel fails both). CI: the wasm ari's node
job runs tests/l4_ws.ari against tests/ws_probe_server.py (stdlib; a 1 s handshake, then a
message 1 s later) and fails unless 20 frames ran during each wait: 354 and 374 here, 0 and 0
with the blocking path.
Docs: ARIADNE.md 10.5.
* ws verbs: clang-format the changed lines
* ws client: close before queueing the oversized-message error
The reader queued the Error event and then closed, so a recv on another
thread could take the error while open() was still true; NetWsClient.
AnOversizedMessageIsAnError failed about one run in five. Closing first
matches the peer-close path, which clears open_ before it queues.
* Ariadne: ws-send carries a credential the host puts in
A browser's WebSocket can't send request headers, so a document in the wasm
page could only authenticate a live feed by holding the token and sending it
in a message, and documents never see tokens. Now (ws-send H MESSAGE) sends a
dict or list as JSON (json-encode, compact), and a (dict "credential" NAME)
anywhere in it goes out as the host's token for NAME, a JSON string:
(ws-send h (dict "type" "hello" "token" (dict "credential" "txwtf")))
- The token is fetched for the origin the connection was opened and checked
as (its URL's http(s) twin, now kept in the handle table), so credential
bindings apply as for HTTP. It is put in on the host just before the send,
with room reserved so no replace leaves a copy in a freed buffer, then
wiped; a send error is redacted.
- A name with no token at that origin, or a credential value on a host that
keeps no credentials, is an error and sends nothing.
- Each connection remembers the credentials it has sent (handshake auth and
header values too), and ws-recv / ws-poll blank them to [redacted] in what
they return, as perform() does for an HTTP reply, should the server echo one.
- A string message is sent as it is, as before.
Tests: AriadneNetHost.WsSendPutsInTheHostsTokenThatNoValueHolds checks, against
LocalWsServer, that the server gets the substituted token while no state node,
error or warning holds it, that an echo comes back redacted and that a missing
credential sends nothing; the round-trip test checks plain JSON and a host
without credentials. Spec: docs/ARIADNE.md section 10.5.
Merges master for #883's builtin_json_encode.
* Ariadne: ws-open offers subprotocols, and a credential as one
A browser's WebSocket can send no request headers, but it can offer
subprotocols, so a credential there is the one handshake auth a document in the
wasm page can use. ws-open takes two new options:
- "protocols": a list of subprotocols to offer (Sec-WebSocket-Protocol), each an
HTTP token.
- "auth_protocol": (dict "credential" NAME ["prefix" P] ["encoding" "raw"|
"base64url"]) offers the host's token for NAME, fetched for the URL's origin as
for auth, as one more subprotocol: P then the token, or its unpadded base64url
(a token68's '/' or '=' can't be in a subprotocol), as Kubernetes does with
"base64url.bearer.authorization.k8s.io.".
cvc::net: WsOptions::protocols is sent natively as a Sec-WebSocket-Protocol line
and in the browser through createAttributes.protocols, in both the blocking and
the started connect. Both fail the connect unless the server picks one of the
offered subprotocols, as browsers do (RFC 6455 4.1; natively from the 101's
headers, which libcurl files under CURLH_1XX). An invalid or repeated
subprotocol is refused, with no error quoting one, and the joined strings are
wiped. ws_valid_protocol is public for the option checks.
The token is wiped after the connect, and errors are redacted of it and of its
base64url spelling. The connection records the name, so ws-recv and ws-poll
blank either spelling if the server echoes it.
Tests: NetWsClient covers offering, a server that picks none or another
subprotocol, and invalid subprotocols. AriadneNetHost.
WsOpenOffersTheHostsTokenAsASubprotocol checks the handshake line, the
redacted echo, a raw token with '/' that is refused without connecting, and that
no state node holds the token. LocalWsServer can pick a subprotocol. The wasm
file compiles with em++, with and without threads. Spec: docs/ARIADNE.md
section 10.5.
---------
Co-authored-by: nicotina-ci <[email protected]>
transfix
added a commit
that referenced
this pull request
Nov 13, 2026
…eaded wasm (#925) * Ariadne L4: requests in single-threaded wasm don't stall the frame loop In a browser build without threads the background pool's jobs run on the page's main thread, so an http verb's kernel ran inside the frame pump and spun on emscripten_sleep(0) until the reply came: nothing drew or took input for the whole request (100-300 ms, up to the 30 s timeout). - cvc::net: start(req[, policy], done) -> HttpTransfer (abort()), and http_starts_async(). The browser fetch backend issues an emscripten_fetch and returns; onsuccess/onerror deliver the reply from the event loop. It reports a timeout as one, enforces the 64 MiB cap as the body arrives, and aborts cleanly (no callback after abort). Elsewhere start() sends in place. The policy check follows redirects hop by hop, as send(req, policy) does (shared next_hop). - state_exec: async_work {kernel, start} and a register_async_fn overload. Where the call can park, start() begins the work and the call is an external one with the registration's timeout and charging; the work settles and posts it. async_call::on_cancel(stop) is how a kill, a timeout or the host's shutdown stops it. Elsewhere the kernel runs as before. - The net verbs (http-get, http-request) return an async_work when the transport starts requests without blocking: credentials go in and captures come out in C++ around the started request (perform split into prepare/complete). fetch of an http(s) URI uses the http handler's new non-blocking form (register_uri_async_handler / resolve_async); a host's own handler for the scheme drops it. - AppRuntime::idle() counts the scheduler's calls in flight (started ones included), and settle() yields to the browser's event loop in wasm, so ari snapshot waits for the reply. Tests: AsyncCalls started-call cases (park, timed await slices, errors, kill, timeout, shutdown, kernel fallback), NetStart (in place, later, policy hop by hop, abort), AriadneNetL4 (frames go on while a program is parked on a request, await slices, teardown aborts, credentials and capture on the started path, policy refusal, fetch). CI: the wasm ari's node job runs tests/l4_frames.ari against a 1 s endpoint and fails unless frames ran while the request was out (218 here; 0 with the blocking path). Docs: ARIADNE.md 10.2, STATE_EXEC_EXCEPTIONS.md 3.12. * Ariadne: WebSocket client verbs (ws-open, ws-send, ws-poll, ws-recv, ws-close) A document can follow a server that pushes changes instead of polling it. cvc::net gets a WebSocket client (ws_client.h) with two backends: libcurl's WebSocket API natively, so wss:// has the same TLS and proxy handling as https://, and the browser's WebSocket under Emscripten. Messages arrive whole in a queue; ws-poll takes what is there without waiting, for on_tick loops, and ws-recv waits on the background pool. The host's policy checks a ws(s) URL as its http(s) twin, and auth/headers/credential values work as for the HTTP verbs (natively; a browser WebSocket sends no headers). Documented in ARIADNE.md 10.5, with client tests against a Beast server and verb tests in ariadne_runtime_test. * ws client tests: a Beast close code is an enum; copy the handshakes before looping over them * ws client: build on MSVC (windows.h's min macro broke std::min) * Ariadne: ws-open and ws-recv don't stall the frame loop in single-threaded wasm #923's browser WebSocket waited in loops on emscripten_sleep(10): WebWsConnection::wait_open inside ws_connect (up to the 15 s connect timeout) and recv (up to ws-recv's seconds). Without -pthread those kernels run on the pump thread, so ws-open and ws-recv froze the page, as http-get did before #914. This moves them onto #914's path. - cvc::net: ws_start(url, opts, done) and WsConnection::recv_async(timeout, done), plus ws_starts_async() and a set_ws_connector seam (WsConnector), as set_http_client is for HTTP. The browser backend in a build without threads answers from the WebSocket's own callbacks (on_open / on_error / on_close / on_message) and emscripten_set_timeout timers; the returned stop function abandons a connect (closing the socket, a connecting one too) or drops a wait. Elsewhere both wait in place, as before. - ws-open and ws-recv return a state_exec async_work (#914) when ws_starts_async(): the program parks, frames go on, and the callbacks post the reply; a killed or timed-out call abandons its connect or drops its wait (on_cancel). ws-open's checks, credentials and handle table are shared by the kernel and the started path (build / prepare / finish_ws_open). - WebWsConnection::close sends 1000 for a code a page may not send (WebSocket.close throws on anything but 1000 and 3000-4999, the 1001 and 1013 this file uses included). Tests: AriadneNetL4.WebSocketOpenAndRecvAreStartedWhileFramesGoOn and ATornDownDocumentAbandonsItsConnectAndItsWait (a deferred connector and connection the test answers between frames; forcing ws-open back to its kernel fails both). CI: the wasm ari's node job runs tests/l4_ws.ari against tests/ws_probe_server.py (stdlib; a 1 s handshake, then a message 1 s later) and fails unless 20 frames ran during each wait: 354 and 374 here, 0 and 0 with the blocking path. Docs: ARIADNE.md 10.5. * ws verbs: clang-format the changed lines * tests: keep the async_task.h include line as master has it * ws client: an oversized message closes the connection before its error is queued The curl backend's reader pushed the Error event and then called close(1009), which clears open(). A program (or NetWsClient.AnOversizedMessageIsAnError) that took the error at once could still see open() true: the Windows recipe lane failed on it. Close first, as the peer-close paths already do, so open() is false from the last event on (docs/ARIADNE.md 10.5). * ci: the WebSocket connector cell on the writable-data scan's allowlist set_ws_connector's process-wide connector (connector_cell, connector_mutex) is the WebSocket twin of set_http_client's client_cell/client_mutex, which the allowlist already carries: a test or host swaps the transport for the whole process, as it does for HTTP. * ws-open's transport comes in the NetAccess, not a process-wide connector set_ws_connector kept one WebSocket connector for the whole process (a function-static cell and its mutex), the kind of state P0a removes; this branch had put the cell on the writable-data scan's allowlist. It is gone: - NetAccess::ws is the transport the ws-* verbs connect through (a test's that it answers between frames, or a host's own); null is the compiled backend. NetHostConfig::ws hands one to enable_net. - cvc::net::WsConnector stays, as the interface such a transport implements; ws_connect, ws_start and ws_starts_async are the compiled backend only, and have_ws_backend() is again what the build has. - The verbs are registered when the access has a transport or the build has a backend, so the AriadneNetL4 WebSocket tests run where libcurl has none. - The allowlist is master's again (cvc 451). --------- Co-authored-by: nicotina-ci <[email protected]>
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.
For cypkg (cy-pca/cypkg), roadmap item L6. Its Builders, Builds and Activity windows poll every 10 s. cvcpkg.org already pushes those changes over
/v1/live/ws, but a document had no way to hold a WebSocket open.What: WebSocket client verbs for Ariadne documents, natively and in the browser build:
(ws-open URL [OPTS]),ws-open-asyncws:///wss://; reply{ok handle url error}(ws-send H TEXT)(ws-poll H)nil; never waits (foron_tickloops)(ws-recv H [SECONDS]),ws-recv-async(ws-open? H),(ws-close H [CODE])A message is
{type data code}:text(a string, ready forjson-parse),binary(bytes),close(with the peer's code, e.g. 4004) orerror. Fragmented messages arrive whole; the cap is 16 MiB.How:
cvc::netgetsws_client.hwith two backends, picked as the HTTP client's are.CURLOPT_CONNECT_ONLY= 2,curl_ws_send/curl_ws_recv), sowss://uses the same TLS, CA store and proxies ashttps://. A reader thread queues whole messages, and libcurl answers pings. It needs libcurl ≥ 7.86 built withws(the deps' 8.13 is).emscripten/websocket.h. Thecvctarget adds-lwebsocket.jsto Emscripten executables as an INTERFACE link option.--net-allow https://hcoverswss://h.headers,authand credential values work as for the HTTP verbs. Tokens stay in C++ and are blanked from errors. A browser WebSocket sends no headers, so the browser build refuses them.ws-*verbs, so documents check(has? "ws-open").Design change from the earlier plan: messages are not delivered as
on_signal. These are async verbs and a polled queue, like the HTTP verbs, so they need nothing new in the scheduler.Tests:
net_ws_client_test(8 tests) runs the client against a localhost Boost.Beast server: echo and handshake headers, fragment reassembly, binary, peer close codes, recv timeout and cancel, the size cap, and connect failure.ariadne_runtime_testadds two tests:WsVerbsRoundTripThroughAPolicyandWsOpenRefusesAnOriginThePolicyDoesNotAllow.ariadne_runtime_test.Docs: docs/ARIADNE.md §10.5.