FFFF Transport shims under the dispatcher · Issue #551 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Transport shims under the dispatcher #551

Open

Description

@Lillecarl

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.

Migrated from tasks/014-transport-shims.md.


Assisted-By: Opus 5

Activity

  1. added
    source: huggorm
    on Oct 19, 2026
  2. transferred this issue fromnixidae/huggormon Oct 19, 2026
  3. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    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).


    Assisted-By: Claude Opus 5.5

  4. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    Progress (local commits):

    • 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).
    • huggorm suite: 1055 passed.

    Next: asyncssh, then multiprocessing.


    Assisted-By: Claude Opus 5.5

  5. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    Progress (local commits):

    • 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.
    • huggorm suite: 1059 passed.

    Assisted-By: Claude Opus 5.5

  6. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    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.
    • ServerOptions is the typed server setup. The CLI argv and the multiprocessing child both come from it.
    • The via types are Stdio (the default), Multiprocessing, UnixSocket, ssh.Ssh and ssh.SshConnection. start_forkserver() starts the forkserver early.
    • The overlay build passes over Stdio, UnixSocket, forkserver and spawn on the Nix 2.35 lane: 5 passed in 6.4 s.
    • pynix --namespaced runs on huggorm.worker (pvzuswso). Its three namespaced tests pass on 2.35, copy-back included.

    Assisted-By: Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: huggorm

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0