Skip to content

fix(cli): explain retained gateway storage conflicts and mounted volumes - #14141

Merged
cv merged 1 commit into
v1from
fix/destroy-leftovers-and-replacement-note
Nov 3, 2026
Merged

cv merged 1 commit into
v1from
fix/destroy-leftovers-and-replacement-note

Conversation

@cv

@cv cv commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Failure

While retesting #14140 by hand, two messages misled me:

  1. I applied a deployment from a new state folder, reusing the metadata.uid of one I had destroyed. Destroy keeps gateway storage (a volume, a network and an exited initializer container) by design. Apply refused with observed ownership, generation, or durable identity changed and didn't say which object or what to do. I took the retained network for a leak.
  2. Replacing the Hermes sandbox printed Sandbox files and conversation history deleted., but its sessions were on a mounted volume (with runtime.keep_state), and the replacement kept them.

Decision

  • When retained gateway storage carries another state folder's or deployment's labels, the error now names the volume, network or initializer container and gives the two ways forward from Remove Retained Resources: apply with the state folder that created it, or remove the retained resources and apply with a new metadata.uid. Other binding mismatches keep their message, and nothing is adopted or recreated.
  • The sandbox deletion warning in plan, apply and destroy now ends with "except on mounted volumes". NemoClaw passes driverConfig to OpenShell unchanged, so the warning doesn't inspect mounts. It covers both cases.

Validation

  • Both new tests failed before the fix: storage_left_by_another_state_directory_names_the_object_and_the_way_out (provider, against a Docker fixture) and sandbox_deletion_says_mounted_volumes_survive (CLI).
  • cargo ci passed, including the lifecycle tests.
  • By hand on a DGX Spark with the built bundle: applied a one-sandbox deployment, destroyed it, then applied the same file with a new state folder. Apply now fails with ... volume nc-41cae6b4eecde970-gateway-data belongs to another state directory or deployment; apply with the state directory that created it, or remove the retained resources and apply with a new metadata.uid. I then removed the UID-labelled objects.
  • Not run locally: cargo ci live-docker. The change touches only an error message and CLI text, not what runs in images; CI runs it.

Applying a configuration from a new state directory, while gateway storage
that another state directory created for the same metadata.uid remains,
failed with "observed ownership, generation, or durable identity changed"
and no hint of which object or what to do. Name the volume, network or
initializer container and the two documented ways on: apply with the state
directory that created it, or remove the retained resources and use a new
metadata.uid. Other binding mismatches keep their message.

The sandbox deletion warning said every file and the conversation history
were deleted, which is wrong for data on mounted volumes, such as a Hermes
home kept with runtime.keep_state. Say that mounted volumes keep theirs.

Signed-off-by: Carlos Villela <[email protected]>
@cv cv added the v1 NemoClaw v1 branch label Nov 3, 2026
@cv

cv commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi Session record (format version 3) has no harness version; the installed Pi is 1.4.0 now, which may differ from the session's
Skills recorded terminal-ux (complete read); nemoclaw-contributor-create-pr (complete read) Reads in the record for this task
Instruction files partial AGENTS.md (injected); WRITING.md (complete read, earlier in the session); PULL_REQUEST_TEMPLATE.md, SESSION_REPORT_TEMPLATE.md (complete reads) AGENTS.md comes through the system prompt, which the record doesn't hold
Tool calls partial typescript: 36 for this task; 705 in the whole session Includes failed calls; the typescript wrapper hides its nested shell, git and gh calls
Session window recorded Session 2026-11-01T08:27Z to 2026-11-03T10:29Z, about 50 h including idle time; this task 2026-11-03T10:15Z to 10:29Z, 14 min First event to cutoff
Compactions recorded 0 Active branch to cutoff; the model summarized earlier tool output in place (context edits), which isn't a compaction
Models recorded azure/anthropic/claude-opus-5-5 One model selection, no changes
Reasoning levels recorded high One thinking-level setting, no changes

@cv
cv enabled auto-merge (squash) November 3, 2026 10:29
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 429db11 into v1 Nov 3, 2026
56 checks passed
@cv
cv deleted the fix/destroy-leftovers-and-replacement-note branch November 3, 2026 10:43
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output 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 labels Nov 3, 2026
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
cv added a commit that referenced this pull request Nov 11, 2026
Brings the platform guides under `docs/` in line with `v1` at
`637bdb6276`: they now name that revision and OpenShell 0.1.7, publish
the generated configuration reference instead of a stale snapshot,
restore guide text that the reorganization dropped, and correct what
they say about policy changes, OpenShell resource schemas, and
onboarding.

## Problem

The reorganization in #14195 pinned the guides to `86b8d94273` and still
describes that revision, 114 commits behind `v1`:

- The published "YAML Configuration Reference" is a hand-kept snapshot
of the generated reference at `86b8d94273`. It predates the typed
application container options (#14166), network middleware bindings, the
dropped Deep Agents Code harness, and the multi-GPU fields, and says
that `docs/reference/configuration.md` differs from it on three field
types.
- The guides name OpenShell 0.1.6 and link its `ac7f615` sources, while
`versions.json` pins 0.1.7 (`5d25211b`, #14245). #14245 left this for
the next refresh of the inspected revision.
- #14195 was written at `86b8d94273` and merged after #14186, #14132,
and #14166, so it overwrote their guide changes: the `agents` field with
each agent's runtime ID, the OIDC sign-in details for a managed
Kubernetes gateway, and the application container example.
- `docs/security/sandbox-network.md` and `docs/security/security.md` say
apply rejects a policy change that needs a new sandbox. Since #13375, a
changed sandbox specification, policy included, replaces the sandbox, as
the same page's recovery section and `docs/build-deploy/usage.md`
already say.
- `docs/references/provider.md` says the OpenShell resource schemas are
version 1; they're version 2 since #13157.
- `docs/references/cli.md` says onboarding needs a verified bundle to
read the target; since #12579 it reads the target directly, with no
bundle or OpenTofu.
- `docs/references/fabric-harnesses.md` says onboarding offers every
catalog harness; since #14233 it offers OpenClaw and Hermes, and keeps a
template's other harness as the suggestion.
- The troubleshooting table lacks the errors that #14141 and #14133
added for retained gateway storage owned by another state directory and
a missing kubeconfig context.

## Change

- **Revision:** `docs/README.md`, the architecture overview, the
container services page, and the first-deployment tutorial and its
prerequisites now name `637bdb6276`, with OpenShell 0.1.7 and `5d25211b`
from its `versions.json`. Links to NemoClaw sources at the old revision
become repository-relative links, and the two test fixtures they named
moved to `crates/nemoclaw-e2e/tests/integration/rust/`.
- **OpenShell links:** every OpenShell link in these pages moves from
`ac7f615` to `5d25211b`. The line ranges for the Docker, Podman, and
Kubernetes proxy settings in OpenShell's `configuration.mdx` are
recomputed for the new file; they cover the same blocks.
- **Field reference:** `fern/pages.json` publishes
`docs/reference/configuration.md`, which `cargo run -p nemoclaw-build --
schema` generates and CI checks, and
`docs/references/v1-configuration.md` is removed. Links to it, including
one in `docs/agents-inference/inference.md` and one in the user-guide
skill, point at the generated reference. Refreshing the snapshot instead
would keep a hand-copied file that goes stale with the next schema
change.
- **Restored from #14186:** the tutorial and the headless OpenClaw
example in `docs/agents-inference/agents.md` read the runtime ID from
`nemoclaw plan -o json` instead of `terraform.tfstate`;
`docs/references/cli.md` lists the `agents` field and the **Agents**
text; `docs/references/sdk.md` names `agents` in plan and apply results
(`OperationResult::agents`).
- **Restored from #14132:** the OIDC steps in
`docs/build-deploy/kubernetes.md` cite the manual run in #14131 and
describe the CLI's `http://127.0.0.1:<port>/callback` redirect and
`SSL_CERT_FILE` trust, and the matching row in
`docs/resources/limits.md` no longer says the steps never ran. OpenShell
0.1.7's `oidc_auth.rs` still builds that redirect.
- **Restored from #14166:** `docs/build-deploy/usage.md` links
`examples/application-container.yaml`.
- **Policy changes:** both security pages and the change table in
`usage.md` say a policy change replaces the sandbox, deleting its files
and conversations (except on mounted volumes), the wording of #14141's
CLI warning; `openshell_sandbox` has no mutable fields
(`crates/openshell-provider/src/lib.rs`).
- **Schema version:** `docs/references/provider.md` says version 2, as
`crates/openshell-provider/tests/schema.txt` records, and drops the
repeated sentence.
- **Onboarding:** `docs/references/cli.md` says onboarding reads the
target without a bundle (`nemoclaw_onboarding::author`) and that the
saved file holds only authored values, a sentence #13978 added to the
tutorial before #14195 replaced onboarding there with a copied example.
- **Onboarding harnesses and troubleshooting:** `fabric-harnesses.md`
names the harnesses onboarding offers and drops a past rehearsal list;
the troubleshooting table gains rows for the two errors above, with
their messages from `gateway_storage.rs` and `observation.rs`.
- **Smaller fixes:** `tls: terminate` and `passthrough` are rejected by
OpenShell 0.1.7 (its `l7/mod.rs` is unchanged from 0.1.6); OpenShell
0.1.7 still keeps GPU filesystem additions local to the workload
(`boundary_server.rs`); `interfaces.md` points to the prerequisites for
the tutorial's OpenShell version; `migration.md` links the onboarding
guide; the internal evidence pages record that this change removed the
snapshot; the prerequisites table no longer limits non-OpenClaw,
non-Deep Agents images to ARM64, which `docker-bake.hcl` and
`docs/build-deploy/build.md` contradict.

Checked against the code and left unchanged: the Kubernetes namespace
binding after #13756 (`operations.rs` binds an existing namespace by
UID), agent replacement rules (`fabric-provider/src/agent.rs`), state
paths and Fabric adapter pins in `docs/build-deploy/state.md`
(`f33fa19a`, as `versions.json`), the harness table and its examples,
CLI options against `args.rs`, SDK signatures and timeouts, provider
versions, the 32-sandbox and 32-provider limits, the multi-GPU limit
(#14384 is open, and `container.gpuDevices` still takes one entry), the
compatibility page's state-version error, and the threat model.

## Beyond CI

- The first-deployment tutorial hasn't been rerun at `637bdb6276`; its
commands were checked against the CLI parser, `examples/openclaw.yaml`,
and the result types.
- The OIDC `SSL_CERT_FILE` behavior was observed in #14131 with
OpenShell 0.1.6 and hasn't been rechecked with 0.1.7.
@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: cli Command line interface, flags, terminal UX, or output 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