Repository navigation
feat(config)!: select the gateway backend with one tagged target - #14586
Merged
Merged
Conversation
Each gateway selects its backend with one tagged `target`: `docker` or `podman` (engine socket, integer `port`, `networkCIDR`, `imagePullPolicy`), or `kubernetes` or `openshift` (cluster target, authentication, `expose`). `runtime.provider`, `imagePullSecrets` and the flat `endpoint`, `engine`, `networkCIDR`, `imagePullPolicy` and `kubernetes` fields are gone. A managed Kubernetes or OpenShift gateway without `expose` names no endpoint, and the intent record moves to version 26. Part of #13829 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Contributor
Author
Authoring session — opening
|
Contributor
A managed Kubernetes gateway that nothing publishes has no endpoint, so every OpenShell object and Fabric agent on it carries an empty `gateway_endpoint`. The readback check treated that as an incomplete observation, so apply failed after creating the first object and kept none of them. Carried fields hold the configuration as written and are never observed, so an empty one is no gap. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Resolves docs/resources/limits.md after #14585 and #14589: this change's OpenShift, expose and gateway pull Secret rows on v1's table with its Last verified column. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
v0.1.0-rc11 was tagged without this change, so its release notes move to the sections since rc11, and rc11's sections keep what rc11 shipped. v1's new code and docs use the target shape: the stopped Docker gateway check reads the target's driver and engine, its test reads the engine under target.docker, the signed-bundle test points the gateway with point_gateway_at, the support matrix keys on spec.gateway.target, and the install page names image_pull_secrets for Kubernetes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
The first-deployment table still named spec.gateway.engine and runtime.provider, and the YAML verification skill still edited spec.gateway.endpoint and spec.gateway.networkCIDR; both now name the docker target's engine, port and networkCIDR. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
v1 lets a managed local gateway run on a Windows client's named pipe (#14641): its engine accepts npipe:////./pipe/NAME, and the gateway, managed services and application containers bind the socket that engine_socket derives. Here that engine sits under target.docker and target.podman, so both targets' engine patterns accept a pipe, the LocalTarget engine description gains v1's pipe sentence, and the Podman error names a Podman machine's pipe. The schema and configuration reference are regenerated. v1's new pipe test, its release notes and the usage page named spec.gateway.engine; they now set the engine under the gateway target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
v1 reached intent record 27 with sandbox GPUs and macOS engine sockets, so this change's record format is now 28, and the release note since rc11 says so. v1's new code and tests use the target shape: onboarding's single-image answer waits on the target question and the target's engine, its TUI tests set target.docker.engine and go back to /spec/gateway/target, and the engine-socket and Ollama proxy tests build docker and podman targets. The engine documentation keeps v1's macOS sentence, the usage and inference pages keep v1's macOS and named-pipe text, and the schema and configuration reference are regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Contributor
Author
|
|
cv
enabled auto-merge (squash)
November 19, 2026 19:34
cv
disabled auto-merge
November 19, 2026 19:34
Set RECORD_FORMAT to 31, above v1's 30, with the recomputed fingerprint. Remove #14611's intent format 29 to 30 compatibility path, per the rule that v1 keeps no state compatibility code before 0.1.0: the compatible_previous check in Store::load, its format 29 tests, and the upgrade guidance in docs/build-deploy/state.md and docs/references/compatibility.md. A record in any other format, including 29 and 30, is refused like any other version. The release note since rc11 now names record version 31. v1's new llama.cpp and NIM Docker cases use the target shape: spec.gateway.target.docker with port 17695, as the vLLM case does.
Resolve the conflicts with v1's NVIDIA style changes to the docs (#14664, #14665, #14666, #14668, #14669, #14670), #14569, #14605 and #14653. v1's wording and gerund headings win. The branch's target-shape edits are applied to that wording, split into sentences where v1 split the original, and its links use the renamed anchors, such as adapting-a-document-to-another-target and referencing-registry-credentials. - usage.md: "Adapt a Document to Another Target" becomes "Adapting a Document to Another Target", like v1's other task headings. - first-deployment.md: keep v1's table row. The tutorial copies the example from its pinned revision 637bdb6, which still has spec.gateway.engine and runtime.provider. - state.md and compatibility.md keep the previous merge's removal of the intent format 29 to 30 upgrade. - The nemoclaw-v0-migration skill from #14653 set the port in spec.gateway.endpoint. V0's config export still writes runtime and endpoint, which this branch refuses, so step 3 replaces both with target.docker.port, as hosted_parity projects the export, and step 4 names the target's networkCIDR. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Resolve the conflict with #14672 (Fabric release/0.7 at c6d1093d) in the release notes' "Breaking Changes Since v0.1.0-rc11": keep v1's OpenClaw plugins.entries bullet first and this branch's target bullet after it. The rest merges as is. The new custom-messages provider in docker-openclaw-hermes-interfaces reaches the stub at the address and port that live-docker's bind_case replaces, and the new fixture digest and derived inference names don't depend on the gateway target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Bring in #14657 (clear a sandbox create that OpenShell rejects as invalid). It merges without a textual conflict, but its new integration test, an_invalid_sandbox_create_leaves_a_deployment_that_can_be_corrected_and_destroyed, set the gateway address with spec.gateway.endpoint_mut(), which this branch removes. It now calls nemoclaw_e2e::point_gateway_at, as the file's other tests do. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
cv
reviewed
Nov 20, 2026
- The endpoint check runs after the target and exposure checks, so only a changed port, expose.endpoint, or external endpoint reaches it. It now says "state is bound to a different gateway endpoint" and names those fields, instead of repeating the UID check's message. A test covers all three, and troubleshooting.md gives it its own row. - A managed gateway's container reads its port from the local target instead of formatting an endpoint and parsing it back, and binds 127.0.0.1 directly, in managed/spec.rs and docker_compute.rs. - The gateway row's canonical-port check is one chain. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
- Release notes: the expose.route entry names gateway.target.openshift.expose.route at expose.endpoint, and no longer says plan refuses a Route unless runtime.provider is openshift, which the schema now enforces. - First deployment: the table names spec.gateway.target.docker.engine, or spec.gateway.target.podman.engine for a Podman engine. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Hai Nguyen <[email protected]>
Contributor
Author
|
hi @cv, I've fixed all your review comments and CI is green. Could you take another look? Thanks. |
Signed-off-by: Carlos Villela <[email protected]>
cv
reviewed
Nov 20, 2026
The first-deployment tutorial copies examples/openclaw.yaml from the pinned revision 637bdb6, whose parser takes spec.gateway.engine with runtime.provider and rejects target. Restore that row until the pin moves past the gateway target. Signed-off-by: Carlos Villela <[email protected]>
This was referenced Nov 20, 2026
cv
added a commit
that referenced
this pull request
Nov 20, 2026
The first-deployment tutorial pins `1636069b91`, the `v0.1.0-rc12` tag's commit, so readers copy an example and build a CLI that take `spec.gateway.target`, and its field table names `spec.gateway.target.<driver>.engine`. ## Problem The tutorial pinned `637bdb6276`, whose example takes `spec.gateway.engine` with `spec.gateway.runtime.provider`. #14586 replaced both with one tagged `spec.gateway.target`, and the tutorial's table would be wrong once the pin moved. The pinned build guide's anchors, Rust version, and OpenShell version also date from that revision. A reader's first plan also reports `complete: false` with "Selected image Fabric capabilities are unverified", and the tutorial says to resolve deferred work without saying what to do about that item. Resolves #14710. ## Change - Pin `1636069b91f402242a35714fde1011042c3f1f70` in the tutorial, `docs/README.md`, `docs/get-started/prerequisites.md`, `docs/about/architecture-overview.md`, and `docs/build-deploy/container-services.md`. - Replace the `spec.gateway.engine` row with `spec.gateway.target.docker.engine`, and say to use `spec.gateway.target.podman.engine` for a Podman engine. - Update what the pin brings: Rust 1.100.0, OpenShell 0.1.9 at source revision `ce58cf8e9b953281352d98a637e41616295b1318`, and the build guide's renamed anchors `#building-a-native-bundle` and `#building-agent-images`. - Say that when the image's Fabric capabilities are the only deferred item before the first apply, the reader continues: apply checks the image's adapter, and a plan after a successful apply reports `complete: true`. ## Beyond CI Ran the tutorial at `1636069b91` on a Linux ARM64 host with Docker 29.6.2: - The source-built bundle printed `nemoclaw 0.1.0-rc12`, and `cargo images build --platform linux/arm64 openclaw` built the image. - The external gateway was a managed Docker gateway on OpenShell 0.1.9 from a separate deployment, and the inference endpoint was a local stub that serves the OpenAI Responses API. - With the tutorial's edits to a copy of `examples/openclaw.yaml`, the first plan exited 0 with `complete: false` and only the Fabric capabilities deferral. Apply succeeded, the runtime-ID plan reported `complete: true`, and the OpenShell 0.1.9 CLI's invocation returned `result.status: succeeded` with the stub's reply. `plan --destroy` and `destroy` succeeded. Not run: a real model, a Podman engine, an authenticated gateway, and an AMD64 host.
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.
Each gateway selects its backend with one tagged
target, which holds only what NemoClaw uses to install or reach the gateway there:dockerorpodman(an engine socket, an integerport,networkCIDRandimagePullPolicy), orkubernetesoropenshift(the cluster target, authentication andexpose).runtime.providerand the flatendpoint,engine,networkCIDR,imagePullPolicyandkubernetesfields are gone, a managed Kubernetes or OpenShift gateway withoutexposenames no endpoint or port, and the intent record moves to version 31, so existing deployments need to be created again.Problem
Before this change,
gateway.runtime.provider, the presence ofgateway.kubernetesand the flat engine fields had to agree, through conditionals on the managed gateway and four root rules. Editors offered Docker's socket and a local HTTP endpoint on a Kubernetes gateway, a Kubernetes document had to author a loopback port that nothing bound, and plan bound that port as identity.runtime.provider: openshiftwas a flag on the Kubernetes shape that also decided whetherexpose.routeapplied.Resolves #13829; #14588 tracks the chart settings a document still can't reach.
Change
Following cv's decisions:
gateway.targetis aoneOfof single-key objects, one Rust enum per management mode (ManagedTarget,ExternalTarget); omitting it still selects Docker with its defaults. Docker and Podman share one Rust struct and Kubernetes and OpenShift another, and the schema gives each target its own definition: Docker'senginedefaults to Docker's socket and itsimagePullPolicytakesIfNotPresentorNever; Podman requiresengineand also takesAlways; onlyopenshift'sexposetakesroute. A violation reports its target's rule, and the root rules onimagePullPolicyandkubernetesare gone; the sandbox image, managed service and sandbox-cap rules key on akubernetesoropenshifttarget.portfrom 1024 through 65535, default 17681, instead ofendpoint. A published cluster gateway's endpoint moves toexpose.endpoint. Withoutexpose, a cluster gateway has no endpoint: the Kubernetes resources no longer takeendpoint, each command forwards a free local port, plan and apply printOpenShell gateway: not published; …, and JSON results leave outconnection.gatewayEndpoint. Theopenshell_gatewaydata source takesendpointonly whenkubernetesisn't set. OpenShell objects and Fabric agents on such a gateway carry an empty endpoint, which apply and refresh now accept: a carried field holds the configuration as written and is never observed, so an empty one is no longer an incomplete observation.imagePullSecretsis removed. Sandbox pods' pull Secrets go in OpenShell'sopenshell.drivers.kubernetes.image_pull_secrets, which NemoClaw no longer rejects inconfig. The gateway and certgen pods get none; they pull OpenShell's public images, and the limits page records the case of an authenticated mirror.target.openshiftreplacesruntime.provider: openshiftand still passes the chart the two values that unset the gateway's UID and fsGroup, until feat(helm): let OpenShift assign the gateway's UID and fsGroup without value overrides ai-openshell/openshell#5483; then only those values go./spec/gateway/targetinstead of the runtime, and the engine question and the suggested agent images follow the chosen target's engine.spec.gateway.runtime.provider,spec.gateway.endpoint,spec.gateway.engineorspec.gateway.networkCIDRname the target's fields.Left out: a chart-values passthrough (cv's decision 2), and moving a live deployment to another target, which needs a new deployment. V0's
config exportstill writesruntimeandendpoint; the V0 migration skill replaces them with thedockertarget.Beyond CI
openshift-oidcpassed by hand at 575a9e4, twice, on one OpenShift Local 4.22.14 node (CRC 2.64.0, linux/amd64) with Agent Sandbox 1.0.3, using this branch's bundle and an OpenClaw image built from it: apply, a reply from each agent through the Route, an unchanged plan, and a destroy that kept only the gateway's storage, in 161 s and 76 s.openshifttarget gave the chart nullrunAsUserandfsGroup. OpenShift wrote the namespace's range,1000720000/10000, and admitted the gateway, both sandboxes and their supervisors underrestricted-v2, each running as UID 1000720000 withfsGroup1000720000.https://<namespace>.apps-crc.testing:443. The sandboxes pulled the agent image from the cluster's registry with the Secret thatopenshell.drivers.kubernetes.image_pull_secretsnames, and the gateway pod got no such Secret.openshift-oidc.