Skip to content

feat: write the gateway configuration into each new gateway container - #13497

Merged
cv merged 6 commits into
v1from
feat/gateway-config-on-create
Oct 19, 2026
Merged

cv merged 6 commits into
v1from
feat/gateway-config-on-create

Conversation

@cv

@cv cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Failure

Managed Docker and Podman gateways kept gateway.toml in retained storage, written once when the deployment was created. Storage compared it on every refresh, so any change to spec.gateway.config from #13492 failed with "gateway storage configuration differs" and needed a fresh deployment UID. Completes #13473.

Decision

The file now belongs to the gateway container, and storage holds only data and credentials.

  • Docker: the launch data source renders the file, and docker_container uploads it when it creates the gateway container. The Docker provider replaces a container when its uploads change.
  • Podman: the provider writes the file into the gateway container before each start. The Podman gateway resource keeps gateway_config as an attribute, so a change replaces it.
  • Storage no longer writes or compares the file, and loses the gateway_config attribute, so a configuration change never replaces storage. Podman observation stops comparing the file too.
  • Docs: a configuration change replaces the gateway container and keeps its data. The restarted gateway restarts its sandboxes, where Fabric agents don't start again, so the next plan replaces them through fix: replace sandboxes that exited #13493.

Validation

  • Tests:
    • the compile test checks the upload;
    • a new data-source test checks the rendered file and rejection of keys NemoClaw owns;
    • the Podman mutation test checks that the file is written before each start;
    • the storage tests check that storage never reads it;
    • the lifecycle contract and readiness fixtures follow the new owner.
  • Checks: cargo ci (including the bundle and lifecycle steps), cargo ci live-docker (11 tests), and cargo ci live-kind (7 tests) passed after rebasing onto fix: replace sandboxes that exited #13493.
  • Live, on a DGX Spark with a managed Docker gateway and a Deep Agents sandbox:
    • changing openshell.gateway.log_level planned only delete → create of the gateway container;
    • the new container's file had the new level, and the gateway's data was kept;
    • the sandbox then exited, and the next plan replaced it with its reason;
    • after apply the sandbox was Ready and the following plan was empty;
    • the deployment was destroyed and its objects removed.
  • Not run live: the Podman path.

After merge, close #13473 by hand.

cv added 6 commits October 19, 2026 12:48
Docker and Podman gateways kept gateway.toml in retained storage, so any change to it required a fresh deployment UID. The file now belongs to the container: Docker uploads it when it creates the gateway container, which it replaces when the content changes, and the Podman provider writes it before each start. Storage holds only data and credentials and no longer compares the file (#13473).
@cv
cv enabled auto-merge (squash) October 19, 2026 20:01
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 024d44d into v1 Oct 19, 2026
@cv
cv deleted the feat/gateway-config-on-create branch October 19, 2026 20:14
cv added a commit that referenced this pull request Oct 19, 2026
…13502)

## Failure

`docs/design/scope.md` still listed "Managed gateways write OpenShell's
configuration file field by field (#13473)" as an exception awaiting a
decision. #13473 is closed: #13492 and #13497 decided it.

## Decision

Record the outcome with the managed-gateway decision: NemoClaw writes
only the keys it owns and passes the rest through from
`spec.gateway.config` in OpenShell's format. That leaves
`runtimes/qwen38` (#13472) as the only exception awaiting a decision.

## Validation

`fern check` and `git diff --check` passed. Docs only.
@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants