Skip to content

docs(roadmap): native connection engine (N1-N6) - #1294

Merged
transfix merged 1 commit into
masterfrom
docs/net-engine
Nov 16, 2026
Merged

transfix merged 1 commit into
masterfrom
docs/net-engine

Conversation

@transfix

Copy link
Copy Markdown
Owner

Design only, for review: docs/roadmap/ARIADNE_NET_ENGINE.md.

The proposal is a caller-owned connection engine in libcvc. It owns raw TCP and TLS connections on Boost.Asio I/O threads, with no new dependency.

  • Framing: split on a delimiter byte, a length prefix, or raw.
  • Batches to the program: input reaches the program's loop in batches, using ServerLink's hand-off shape.
  • Fan-out: one-copy broadcast to named groups, through refcounted buffers as stream_channel uses.
  • Backpressure: queued output is bounded, and a slow reader is closed.
  • TLS: reload of certificates, and optional TLS detection on a plain port.

Why now. cy-pca/sublevels#8's soak showed that one asyncio loop can hold 6000 NMDC users but can only send about 5 messages a second to all of them. About 35 µs per connection goes on the socket write.

Why an engine, not a plugin ABI. Joe chose this on 2026-11-16. §0 explains why it is not:

Who uses it, in parts:

  • arisrvx Python, through host.net (N1-N3), for sublevels' hub;
  • document sockets behind --net-allow (N4, N5), which are the sublevels roadmap's X1 and X2 for nicotina;
  • wasm guests through stream channels (N6), later.

Identity. §2.6 ties engine connections into ARISRV_IDENTITY's client_registry, so ID3's admin calls cover them. That doc is added by #1293 and isn't on master yet, so the link resolves once #1293 merges. A registry seam for connections with no Hello has been asked of paws in ws:agent-coordination (#55).

Docs only.

@transfix
transfix enabled auto-merge (squash) November 16, 2026 04:57
@transfix
transfix merged commit f81f5ef into master Nov 16, 2026
29 checks passed
@transfix
transfix deleted the docs/net-engine branch November 16, 2026 09:04
transfix added a commit that referenced this pull request Nov 16, 2026
…#1307)

One conflict, in ariadne_runtime_test.cpp's ActionCapsAreTreeSettingsAndChargeAsyncCalls: this
branch cut its loop to 20 rounds so it fit the 0.1 s time cap on Linux debug CI, and master
(#1282) rewrote the test, raising the time cap to 30 s wherever the loop must finish.
Master's fix covers the same flake, so the test is master's as it stands, 200 rounds again.

tools/singleton_scan is master's (#1276); the auto-merged net, CI, test and doc files keep both
sides.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant