You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPEN. Nothing is wired. The only transport is grpclib over a socket,
and #572 is waiting on the same question.
Wire the user's existing grpclib shims (SSH, stdio, Python
multiprocessing) in front of the same manifest-driven dispatcher to
prove transport independence. Requires 002 first: per-connection
Session ownership and disconnect reaping.
Update (User, 2026-10-24): this now blocks the removal of nanopynix.
Today a huggorm server listens on a Unix socket only: huggorm.spawn.spawned starts it with --ready-fd, and huggorm.remote.connect(path) reaches it. grpclib is gone from huggorm, so the text above is out of date.
The goal: huggorm launches a worker server and talks to it over each transport nanopynix has:
stdio pipes of a subprocess,
Python multiprocessing pipe pairs,
an asyncssh session to another host.
nanopynix's RPC worker and nanopynix/grpclib-transports stay in the tree as the reference until this lands. Then nanopynix's library, worker and proto are deleted (#866, item 4). pynix build --namespaced already runs on the socket transport (#1060).
serve_stream and huggorm.server --stdio serve one connection on any byte stream. The uid check belongs to the Unix listener; a pipe is trusted, because whoever holds it spawned the server. A client takes a dialer (huggorm.transport): a socket redials on each bind, and a pipe refuses a second connection.
spawn.spawned_stdio runs the server on its stdin and stdout. It exits at EOF by itself; the test measures that the stop takes less than STOP_GRACE (5 s), and it fails without the stop (5.3 s).
SSH:huggorm.ssh.connected(host, username=, port=, password=, command=) connects with asyncssh's OpenSSH-like defaults; spawned(connection, command) takes a connection the caller manages. Against this host's sshd: first evaluation in 0.35 s, closed at 0.44 s. Without EOF on the channel, the stop takes 5.5 s and the test fails.
multiprocessing:spawn.spawned_process(method=) serves one end of a socket pair in a child. Time to a first evaluation over dummy://, median of five after the first: forkserver 26 ms (the first one 249 ms, because it starts the forkserver), spawn 172 ms, stdio 194 ms.
Activity
Lillecarl commentedon Oct 24, 2026
Update (User, 2026-10-24): this now blocks the removal of nanopynix.
Today a huggorm server listens on a Unix socket only:
huggorm.spawn.spawnedstarts it with--ready-fd, andhuggorm.remote.connect(path)reaches it. grpclib is gone from huggorm, so the text above is out of date.The goal: huggorm launches a worker server and talks to it over each transport nanopynix has:
nanopynix's RPC worker and
nanopynix/grpclib-transportsstay in the tree as the reference until this lands. Then nanopynix's library, worker and proto are deleted (#866, item 4).pynix build --namespacedalready runs on the socket transport (#1060).Assisted-By: Claude Opus 5.5
Lillecarl commentedon Oct 24, 2026
Progress (local commits):
serve_streamandhuggorm.server --stdioserve one connection on any byte stream. The uid check belongs to the Unix listener; a pipe is trusted, because whoever holds it spawned the server. A client takes a dialer (huggorm.transport): a socket redials on eachbind, and a pipe refuses a second connection.spawn.spawned_stdioruns the server on its stdin and stdout. It exits at EOF by itself; the test measures that the stop takes less thanSTOP_GRACE(5 s), and it fails without the stop (5.3 s).Next: asyncssh, then multiprocessing.
Assisted-By: Claude Opus 5.5
Lillecarl commentedon Oct 24, 2026
Progress (local commits):
huggorm.ssh.connected(host, username=, port=, password=, command=)connects with asyncssh's OpenSSH-like defaults;spawned(connection, command)takes a connection the caller manages. Against this host's sshd: first evaluation in 0.35 s, closed at 0.44 s. Without EOF on the channel, the stop takes 5.5 s and the test fails.spawn.spawned_process(method=)serves one end of a socket pair in a child. Time to a first evaluation over dummy://, median of five after the first: forkserver 26 ms (the first one 249 ms, because it starts the forkserver), spawn 172 ms, stdio 194 ms.Assisted-By: Claude Opus 5.5
Lillecarl commentedon Oct 24, 2026
The convenient layer is committed locally (ystuzxzm), not pushed.
huggorm.worker(options, via=...)gives a session on a new server.huggorm.attach(server)connects to a server that something else started.ServerOptionsis the typed server setup. The CLI argv and the multiprocessing child both come from it.viatypes areStdio(the default),Multiprocessing,UnixSocket,ssh.Sshandssh.SshConnection.start_forkserver()starts the forkserver early.--namespacedruns onhuggorm.worker(pvzuswso). Its three namespaced tests pass on 2.35, copy-back included.Assisted-By: Claude Opus 5.5
feat(huggorm): a server serves one connection on any byte stream
feat(huggorm): spawn a server on its stdin and stdout
feat(huggorm): a server over SSH, with asyncssh
feat(huggorm): spawn a server in a multiprocessing child
feat(huggorm): huggorm.worker starts a server via a typed transport
feat(huggorm): huggorm.worker starts a server via a typed transport
refactor(nanopynix): remove the nanopynix library
refactor(nanopynix): remove the nanopynix library
refactor(nanopynix): remove the nanopynix library