Skip to content

feat(cli): deploy from a Windows client through local engines' named pipes - #14635

Merged
cv merged 3 commits into
v1from
cv/windows-client
Nov 19, 2026
Merged

cv merged 3 commits into
v1from
cv/windows-client

Conversation

@cv

@cv cv commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

A Windows client now reaches a local Docker Desktop or Podman engine through its named pipe and hides typed credentials at its prompts. It can plan, apply, and destroy a deployment with an external gateway whose spec.gateway.engine is that pipe or an ssh:// engine.

Problem

The windows_amd64 CLI refused local engines (local container-engine connections are unsupported on this platform) and hidden credential input (hidden credential input is unsupported on this platform). It could read images for planning only from an ssh:// engine, so a Windows user with Docker Desktop couldn't deploy.

Resolves #14631.

Change

  • nemoclaw-docker: an engine endpoint may be npipe:////./pipe/NAME, a named pipe on this machine, as Docker Desktop's npipe:////./pipe/docker_engine and Podman's npipe:////./pipe/podman-machine-default are. Engine::connect opens Unix sockets on Unix clients and named pipes on Windows clients through bollard's pipe feature, which the workspace already enables. For the other platform's transport it names the client that transport needs.
  • nemoclaw-provider: a local engine gets the local host observer on every client. On Windows, as on macOS, capacity measurement refuses the engine, which runs in a VM the client can't measure.
  • nemoclaw-cli: on Windows, a credential prompt clears the console's ENABLE_ECHO_INPUT and restores the console mode afterwards, including on cancellation. It uses crossterm_winapi, which crossterm already brings in; line input stays on, so input is read as before.
  • Tests: Fixture::engine serves fake engines on a named pipe on Windows instead of through the SSH relay. The Windows contract and integration tests, including the SDK and CLI deployment tests with an external gateway, now reach a local engine the way Docker Desktop's clients do. A Windows unit test checks console echo in a child process with a console of its own.
  • Docs: current limits, the install page, the support matrix, usage, execution targets, and the testing guide say what a Windows client can do.

Left out:

  • A managed local gateway from Windows. The gateway container binds the engine's Unix socket path, and a pipe names no path inside the engine's VM; Managed local gateway from a Windows client #14632 tracks it. The pinned OpenTofu Docker provider, kreuzwerker/docker 4.7.0, accepts an npipe:// host, so its connection isn't the blocker.
  • nemoclaw onboard still offers only Unix sockets as local engines.

Beyond CI

No Windows host with Linux containers ran this change, and GitHub's Windows runners run only Windows containers, so CI tests the Windows client against fake engines on named pipes. These remain unverified:

  • Plan, apply, and destroy through Docker Desktop's npipe:////./pipe/docker_engine or a Podman machine's pipe. To check, on Windows with Docker Desktop in Linux-containers mode, start an OpenShell gateway, set spec.gateway.engine to the pipe, and run nemoclaw plan, apply, and destroy.
  • The same deployment from Windows with an ssh:// engine.
  • A credential prompt in Windows Terminal and in a conhost window: typed characters don't appear, and the value reaches the deployment.

…pipes

A Windows client reaches a local Docker Desktop or Podman engine through its named pipe, npipe:////./pipe/NAME, and hides typed credentials at its prompts, so it can deploy with an external gateway whose image engine is that pipe or an ssh:// engine. A managed local gateway still needs a Unix client (#14632).

Signed-off-by: Carlos Villela <[email protected]>
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 19, 2026
@cv

cv commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi coding agent 1.5.2, as a helper started by another Pi agent The session record holds only its schema version; the release comes from the harness install path in the injected system prompt
Skills partial test-driven-development (complete read); nemoclaw-contributor-create-pr (complete read); write-tests (lines 1-80 of 87 read) Reads in the session record to the cutoff; write-tests was not read in full
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and reads in the session record
Tool calls recorded typescript: 82 Assistant tool calls in the record to the cutoff, including failed ones; the wrapper's nested shell, git, gh, and file calls are not counted
Tokens partial input: 11853919; cached input: 11633711; output: 71433 Sum of assistant message usage (input + cacheRead + cacheWrite; cacheRead; output) over 84 responses to the cutoff; 2 responses recorded zero counters, so the totals are lower bounds
Session window recorded 2026-11-19T02:30Z to 2026-11-19T03:01Z; 31 min First record entry to the cutoff, before this report was posted, including idle time
Compactions recorded 0 No compaction entries; 2 context edits elided tool output
Models recorded claude-opus-5-5 (nvidia-internal/azure/anthropic) One model change entry at start; no later changes
Reasoning levels recorded high One thinking-level entry at start; no later changes

@github-actions

Copy link
Copy Markdown
Contributor

cv added 2 commits November 18, 2026 20:12
bollard checks that a Unix socket exists before it configures a client, and macOS runners have no /var/run/docker.sock.

Signed-off-by: Carlos Villela <[email protected]>
@cv
cv merged commit 306b083 into v1 Nov 19, 2026
81 of 83 checks passed
@cv
cv deleted the cv/windows-client branch November 19, 2026 04:00
cv added a commit that referenced this pull request Nov 19, 2026
A Windows client can now run a managed local gateway on Docker Desktop or a Podman machine. `spec.gateway.engine` names the engine's named pipe for the client, and the gateway container binds `/var/run/docker.sock` in the engine's Linux VM, which the SDK derives from the pipe. On Windows, `nemoclaw onboard` offers the local pipes.

## Problem

After #14635, a Windows client deploys only with an external gateway. The schema requires `^unix:///` for a managed gateway's engine, and the gateway container binds the engine's socket path as `/var/run/docker.sock`. A pipe has no such path: the engine runs in Docker Desktop's or Podman's Linux VM. Managed services, application containers, and the Ollama proxy follow the managed gateway's engine and refuse anything but a Unix socket too. Podman's native API, which managed Podman gateways read, is reachable only over a Unix socket.

Resolves #14632.

## Change

- `nemoclaw-docker`: `engine_socket` derives the path at which a container reaches a local engine. A Unix socket keeps its own path, unchanged. A named pipe gets `/var/run/docker.sock`: Docker Desktop serves its engine there, and a Podman machine links `/run/docker.sock` to the API socket of its rootful or rootless mode, the socket its pipe forwards to ([`GetPodmanDockerTmpConfig`](https://github.com/containers/podman/blob/main/pkg/machine/ignition/ignition.go), updated on start after `podman machine set --rootful`). Since the path can be derived, no new field is added.
- SDK: a managed gateway's `engine` accepts `npipe:////./pipe/NAME`. The gateway container's bind, managed service processes, application containers, and an Ollama proxy that follows the gateway's engine accept a local engine through the derived socket. Schema and configuration reference are regenerated.
- `podman_json` reads Podman's native API over a named pipe on Windows, using reqwest's `windows_named_pipe`. The managed Podman container check and the rootless-networking prerequisite no longer refuse non-Unix clients.
- Discovery: on Windows, onboarding lists the pipe the Docker client selects (`DOCKER_HOST`, then the context under `USERPROFILE\.docker`), otherwise `npipe:////./pipe/docker_engine`, and the default Podman machine's `npipe:////./pipe/podman-machine-default`.
- Tests: an SDK test compiles managed Docker and Podman gateways, a vLLM service, an application container, and an Ollama proxy on pipes. Discovery tests cover the Windows candidates. The OpenShell provider's gateway storage, gateway installation, and gateway prerequisite contract tests, and the NemoClaw provider's discovery contract test, now also run on Windows against fake engines on pipes. The Podman prerequisite scenario now reads Podman's native API over a pipe there.
- Docs: release note, support matrix, current limits, install, usage, the provider reference, and the execution-target and onboarding designs.

Left out:

- The HCL integration scenarios with managed gateways still run only on Unix: their test files name the Docker alias of the fixed Unix fixture socket, and adding them to the Windows partitions would lengthen CI's critical path.
- An Ollama proxy's own `engine` stays a Unix socket: widening it would change the intent record's format and refuse existing deployments.
- The SDK's default engine for an omitted `spec.gateway.engine` stays `unix:///var/run/docker.sock` on every client; onboarding writes the pipe on Windows.
- macOS: a managed gateway still binds the client's Unix socket path, such as Docker Desktop's `~/.docker/run/docker.sock` or Colima's socket, which an engine in a VM may not serve; #14640 tracks it.

## Beyond CI

No Windows host with Linux containers ran this change, and GitHub's Windows runners run only Windows containers. CI tests the Windows client against fake engines on named pipes, so a gateway on Docker Desktop or a Podman machine is unverified: that `/var/run/docker.sock` in the VM reaches the engine, that a rootless Podman machine's SELinux allows the bind, and that the client reaches a Podman gateway's loopback endpoint. #14639 tracks a live run.


Signed-off-by: Carlos Villela <[email protected]>
@cv cv added the v1 NemoClaw v1 branch label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant