Repository navigation
feat(docker): preserve workspace storage during stopped image updates - #5617
Conversation
Refs ai-openshell#5484. Keep workspace data separate from disposable runtime resources, validate retained volume identity, and preserve legacy layouts. Workload image replacement and native qualification remain separate work. Signed-off-by: Senthil Ravichandran <[email protected]>
Refs ai-openshell#5484. Preserve native identity and recorded data volumes while replacing workload bytes and refreshing container-bound runtime evidence. Keep update capability negotiation disabled pending lifecycle/restart integration and native qualification. Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
Selected upstream target: e8ba30f Retain upstream shutdown grace and mutation-audit behavior alongside opt-in Docker workspace persistence and image-only configuration updates. Resolve the README overlap by documenting both the persistent-data contract and current shutdown behavior. Validation: formatting and 180 Docker driver unit tests passed; two live Docker tests remain ignored. Further lint and native integration qualification are recorded separately. Signed-off-by: Senthil Ravichandran <[email protected]>
Name the feature-selected registration array before iteration so Clippy does not flag the supported Docker-only build as a single-element loop. Driver entries, ordering and registration behavior remain unchanged. Validation: cargo fmt --all --check and Docker-only gateway Clippy with compute-driver-docker, telemetry and vendored-z3, all targets and warnings denied. Signed-off-by: Senthil Ravichandran <[email protected]>
f0584ca to
8b9da39
Compare
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
johntmyers
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The Docker storage and stopped-image-update workflow fits accepted issue #5484. Two correctness problems need fixes before pipeline handoff: target identity compatibility is not checked, and an interrupted credential rotation can prevent subsequent Starts.
Action required: @senthilr-nv, address the two inline findings and add regression coverage for their failure paths.
Blocking findings:
- GATOR-8b9da399-01: Reject incompatible target workload identities before replacement.
- GATOR-8b9da399-02: Preserve Start retry recovery after interrupted credential rotation.
Carried findings: None.
Non-blocking suggestions:
- Update the Kubernetes-only update wording in skills/openshell-cli/SKILL.md and .agents/skills/helm-dev-environment/SKILL.md to reflect the restricted Docker workflow.
Gator metadata
- Validation: Implements accepted Docker-specific issue #5484 through the existing update contract.
- Docs: Docker configuration, runtime and sandbox update pages updated; existing navigation suffices.
- Checks: Existing current-head workflows succeeded; review was code-only and no local tests were run.
- E2E: Required for Docker lifecycle/storage changes; existing E2E jobs were skipped without test:e2e. Dispatch follows resolution of blocking review findings. Live A-to-B and interruption qualification remains an author-declared merge gate.
- Head SHA:
8b9da3993e232e484313adc2158d87284381bd9a - Base SHA:
e8ba30fdeff5f9bcc985b2c11064f0b0deb3c168 - Merge base SHA:
e8ba30fdeff5f9bcc985b2c11064f0b0deb3c168 - Patch ID:
3240105f250b3ea1397f7555296845db490815f3 - Gator payload: 13
- Review mode:
initial - Previous reviewed SHA: none
- Review budget exhausted: no
- Maintainer decision required: no
- Next state:
gator:in-review
Signed-off-by: Senthil Ravichandran <[email protected]>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. api-behavior — No explicit risk acceptance foundDocker previously preserved spec.template.labels keys openshell.ai/workspace-storage and openshell.ai/workspace-volume-identity; it now strips them on create and interprets them as persistence metadata on existing containers.
Review details
Advisory review; publication gates are unchanged. |
|
Label |
PR Review StatusThanks @senthilr-nv. I checked your target-identity validation and interrupted credential-publication fixes against the previous review and the latest author delta. Both findings are fixed, their Gator threads are resolved, and no blocking code findings remain. The target preflight now rejects incompatible or unsupported identities before recording intent or deleting the source. Stopped Start checks each file's immutable bindings before authenticated repair, requires a fresh stopped-container inspection, and checks full consistency before staging. The new regression cases cover these paths; this follow-up was code-only, and I did not independently rerun the reported local tests. Required repository E2E has been enabled. The focused live driver test does not qualify the full gateway/supervisor path. Action required: @senthilr-nv, provide the remaining full gateway/supervisor Docker qualification evidence for authenticated workload use, session recovery across image replacement/restart, and end-to-end removal before merge. Blocking findings: No blocking code findings remain. Carried findings: None; GATOR-8b9da399-01 and GATOR-8b9da399-02 are fixed. Gator metadata
|
Signed-off-by: Senthil Ravichandran <[email protected]>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. api-behavior — No explicit risk acceptance foundDocker previously preserved caller labels
Review details
Advisory review; publication gates are unchanged. |
PR Review StatusThanks @senthilr-nv. I checked the new Docker-specific persistence labels, legacy-label regressions, owned-gateway wrapper changes and authenticated Docker qualification suite against the previously reviewed head. The independent follow-up review found no new blocking findings. Both earlier findings remain fixed and their threads remain resolved. The new suite covers authenticated workload access, image replacement, gateway restart, credential-publication repair and deletion. Adding the suite does not establish a successful live run: it requires the documented opt-in wrapper and is not selected by the standard E2E execution matrix. I checked the wrapper's shell syntax; no local Rust or live Docker tests were run in this sandbox. Action required: @senthilr-nv, provide a successful full gateway/supervisor Docker qualification result with the tested source revisions and input hashes before merge. Required repository checks must also pass on this head. Blocking findings: No blocking code findings remain. Carried findings: None; GATOR-8b9da399-01 and GATOR-8b9da399-02 remain resolved. Gator metadata
|
|
Full Docker gateway/supervisor qualification now passes locally on Environment: macOS 26.7.1 arm64; Docker 29.8.0; Rust 1.95.0. The owned test gateway used mutual TLS with certificate verification enabled. No existing gateway or Docker Desktop setting was changed. Verified through the public API and real CLI/SSH:
Command: Build provenance: gateway and CLI were rebuilt from
The compatibility advisory is also addressed in The final source is signed and DCO passed. Required Branch Checks and enabled repository E2E are still pending on this head; this local evidence does not waive them. Please review the compatibility delta and full qualification evidence before approval/merge. |
|
Compatibility follow-up: the latest advisory is valid. Renaming the persistence labels in I am moving persistence authority to a protected per-sandbox driver record, bound into the private runtime descriptor, while preserving all template labels. The follow-up will also gate volume admission and deletion on that record. Please hold merge until the fix, regression tests and repeated full qualification are posted. The current CI runs can continue. |
Signed-off-by: Senthil Ravichandran <[email protected]>
|
The compatibility follow-up is implemented and qualified in signed, DCO-signed-off commit Storage authority now comes from independent protected driver state. Validation on this head:
Command: Provenance: gateway, CLI, sandbox and supervisor all come from signed head
The final-head compatibility assessment is complete: no unaddressed breaks, zero findings, all nine required surfaces reviewed. It names source GitHub verifies all eight contribution signatures; DCO and accepted-issue checks passed. Final-head Branch Checks and Branch E2E Checks both passed, attempt 1. Both embedded/external Docker conformance and the Kubernetes/k3s-ha conformance lanes passed. The prior head's Kubernetes k3s-ha workspace test passed its functional assertions but failed API-delete cleanup after a 120-second timeout; that run is not a pass. The required final-head run is now green; the earlier failure is retained as historical evidence. The review follow-up reports no blocking obligations remaining. Final maintainer handoff/approval remains; no merge has been performed. |
PR Review StatusThanks @senthilr-nv. I checked your protected storage-authority delta and current-head Docker qualification evidence. Workspace labels now remain caller data; the private ownership record governs admission, update replay and removal. The independent critical-only follow-up found no new Critical defects. Both earlier findings remain fixed and their threads remain resolved. The qualification suite covers authenticated API/SSH use, retained workspace and SSH identity through image replacement and gateway restart, interrupted credential-publication repair, and API deletion. GitHub artifact metadata confirms that the cited sandbox and supervisor binaries came from this exact head. I inspected the suite and provenance; I did not independently rerun the reported live qualification. No blocking review obligations remain. Required Branch Checks and repository E2E are still running; Gator will inspect their results before a maintainer handoff. Carried findings: None; GATOR-8b9da399-01 and GATOR-8b9da399-02 remain resolved. Gator metadata
|
|
@johntmyers Both required runs are now green on |
Signed-off-by: Senthil Ravichandran <[email protected]>
PR Review StatusThe merge with main clears the conflict blocker and retains both the Docker image-update and SSH-supervision feature suites. The independent critical-only follow-up found no new Critical defects in the merge resolution or affected integration. Both earlier findings remain resolved, with no blocking review obligations remaining. Thanks @senthilr-nv for the earlier Docker qualification evidence. I checked the merge against that reviewed implementation: the image-update, protected workspace ownership, Start recovery and focused qualification code are unchanged. The workspace lock file retains the Docker suite alongside upstream dependencies. This was a code-only follow-up; I did not rerun the live qualification. Current-head Branch Checks and required repository E2E are queued or running. Gator will inspect their results before the maintainer handoff. Carried findings: None; the earlier target-identity and interrupted-Start findings remain resolved. Gator metadata
|
bf311af
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: Gator last recorded merge-ready. Existing review history is preserved; no further review or test dispatch is needed. I am removing the active Gator metadata
|
) Moves NemoClaw's OpenShell pins from v0.1.9 to v0.1.10, whose project moved to `ai-openshell/openshell` and publishes its images and chart on Quay, upgrades the bundle's OpenTofu to 1.13.10, and updates Rust crates within the workspace's constraints. A managed `kubernetes` or `openshift` gateway now reports no sandbox service URLs, because the v0.1.10 chart turns off gateway service routing. ## Problem NemoClaw pins OpenShell v0.1.9 (`ce58cf8`). v0.1.10 (`152c59d`) is the latest release, and it changes what NemoClaw pins and how a Kubernetes gateway behaves: - The repository moved from `NVIDIA/OpenShell` to `ai-openshell/openshell`. The gateway, supervisor and sandbox images and the chart publish to `quay.io/ai-openshell`, the chart is renamed `oci://quay.io/ai-openshell/charts/openshell`, and GHCR has no 0.1.10 tags. - The chart sets `enable_gateway_service_routing: false` (ai-openshell/openshell#5672), so a Helm gateway publishes no gateway-routed service URLs. - `openshell-policy`'s `PolicyViolation` gained five Cedar and endpoint-settings variants, so NemoClaw's exhaustive description of OpenShell's violations no longer compiles. - OpenShell now refreshes an expired policy DNS mapping before connecting (ai-openshell/openshell#5650), which removes the limit that an OpenClaw agent's model request failed after a DNS answer's TTL. OpenTofu 1.13.10 is a patch release built with Go 1.27.4 for GO-2026-6859. ## Change - **Pins:** the Cargo source and revision of `openshell-core`, `openshell-sdk` and `openshell-policy`, and of the vendored SDK's `openshell-core` and `openshell-crypto`; in `versions.json`, the version, revision, Linux CLI archives, the Quay gateway, supervisor and sandbox images, and the renamed chart; the managed-gateway reference, a contract test and the gateway contract module, which carry the image digests. The CLI checksums come from the release's `openshell-checksums-sha256.txt`, and the image and chart digests from Quay's `0.1.10` tags; GHCR's `0.1.9` tags match the previous pins. The OpenTofu checksums come from its GPG-signed `SHA256SUMS`. - **Vendored SDK:** upstream changed `src/client.rs`, `src/types.rs` (the new `application_service_urls` and `gateway_service_urls`) and `tests/client_mock.rs`, copied unchanged. The SDK manifest still enables `openshell-core`'s default features, including telemetry, so the manifest patch stays; `NOTICE.md` records the new source and revision. The SDK integration limits in `internal-docs/design/architecture.md` still hold at v0.1.10 and cite that revision. - **Policy violations:** NemoClaw describes the five new violations. NemoClaw writes no Cedar policy or `endpoint_settings`, so none of them arises from a NemoClaw document. - **Service URLs on Kubernetes:** NemoClaw leaves the chart's default. The Kubernetes guide says a managed gateway reports no service URLs and how to turn routing on with `enable_gateway_service_routing: true` in `spec.gateway.config`, which passes through to the chart; the external-ingress guidance and the limit for #14316 say the same. The fake gateway in the test fixtures reports each URL as gateway-routed, as a Docker gateway does. - **Limits:** the DNS TTL limit is removed. - **Docs:** OpenShell links move to `ai-openshell/openshell` at v0.1.10; each path and anchor exists there, and the three configuration line ranges in the sandbox network guide move to the same text. - **Rust crates:** `cargo update`. `url` 2.5.9 now percent-encodes `^` in a path, as WHATWG's URL standard does, so an MCP endpoint whose path holds `^` passed NemoClaw's check; the existing `mcp_endpoints_reject_paths_openshell_rewrites_before_matching` test failed, and NemoClaw now checks the URL as written. - **Release notes:** the v0.1.10 changes users see, and the service URL change as a breaking change. ## OpenShell 0.1.10 Changes Checked | Change | Decision | |---|---| | Registry and chart move, repository transfer (ai-openshell/openshell#5822, ai-openshell/openshell#5823, ai-openshell/openshell#5833) | Followed in every pin and link. | | Helm service routing off by default (ai-openshell/openshell#5672) | Kept OpenShell's default and documented the setting; NemoClaw doesn't override chart defaults it doesn't own. | | Application origins, `domain` → `base_url` (ai-openshell/openshell#4956) | No change: NemoClaw sets no app listener, and apply reports OpenShell's preferred `url`, which stays the gateway URL when no origin is configured. | | TypeScript SDK move (ai-openshell/openshell#5685) | No change: NemoClaw uses the Rust SDK. | | Kubernetes 1.33 minimum tested (ai-openshell/openshell#5646) | No change: CI's kind node runs 1.37, and OpenShell still tests Agent Sandbox 1.0.3. | | Policy DNS TTL refresh (ai-openshell/openshell#5650) | Removed the limit; NemoClaw had no workaround. | | Sandbox restart `ContainerExited`, same-name recreate on Kubernetes, multi-replica fixes, IPv6, process limits and signals, idle-connection and 502 fixes | No NemoClaw code works around them; listed in the release notes. | | Docker persistent `/sandbox` and image updates of a stopped sandbox (ai-openshell/openshell#5617) | Not adopted here: it needs `enable_sandbox_updates` and `persist_workspace`, applies only to new workspaces, and requires a numeric `USER` in the image, so it is a feature change of its own. | | Workspace secrets, GitHub App tokens, SPIFFE broker, OAuth `client_secret_basic` and `resource`, `/**` path templates, OTLP metrics, audit records, IPv6 listeners, supervisor pool sizing | Gateway or provider settings that `spec.gateway.config` or operator-managed providers can set; NemoClaw adds no wrapper. | | `openshell policy lint` (ai-openshell/openshell#5358) | No change: NemoClaw validates policies in-process with `openshell-policy`. | | Cedar policies | Development builds only; no change. | | OpenShift UID and `fsGroup` (ai-openshell/openshell#5483) | Still open, so the `openshift` target keeps nulling the chart's IDs. | | Gateway restart leaves sandboxes in `Error` (ai-openshell/openshell#4910) | Still open; the limit stays. | ## Other Pins - NeMo Fabric is already at its latest release, v0.7.0, and its OpenClaw adapter supports only OpenClaw 2026.9.34 and its Hermes adapter Hermes v0.22.7, so the harness images stay; Fabric owns the harness versions its adapters support. - The Docker and Helm providers, kind, nextest, Protocol Buffers, Rust and vLLM are at their latest releases. - Container base images, Bun, uv and Ollama move in a stacked pull request, which needs image builds of its own. - llama.cpp's server image and the NIM image stay: each update needs its own notices and a GPU run.
Summary
Add opt-in persistent
/sandboxstorage and image-only updates for stopped Docker sandboxes through the existingSandboxUpdates.UpdateSandboxcontract. Replacing the workload container preserves the native sandbox identity and its owned workspace volume; Start remains a separate operation.Related Issue
Closes #5484
Changes
persist_workspace = falseto the Docker driver configuration. Newly created default/sandboxworkspaces can use driver-owned local volumes; existing writable-layer workspaces are not migrated.workspace-storage.json, bound into both private bootstrap and runtime descriptor. Recheck volume identity, namespace and workload UID/GID even when external resource admission is disabled. Preserve all caller template labels; labels cannot authorize persistent storage. Failed creation retains the ownership record, and replay rejects missing/changed authority before mutation. Stop retains data; explicit Delete removes admitted owned storage and reports failures.USER UID:GIDmatching the recorded identity; reject symbolic and implicit identity representations before saving intent or deleting the source. Reject command/environment changes and incompatible layouts before replacement.Release Notes
Docker gateways can opt new workspaces into persistent
/sandboxstorage and update their stopped workload image without changing the OpenShell sandbox ID. The gateway must separately enable sandbox updates. Existing writable-layer workspaces remain unchanged.Testing
Current refresh:
2cf30157003e9fdae70b13634d46fc0fbe102880, a signed, DCO-signed-off normal merge of main9ec37d28b85843c1b01b9a5e1a931f5441693376into approved0acdea553. Published history is preserved. The sole manual conflict was the feature workspace member list; both upstreamconnect-ssh-supervisionand this PR'sdocker-updatesremain registered. The storage/update/recovery implementation and qualification suite are unchanged from the approved source.Current-source local checks (macOS arm64, Rust 1.95.0, Docker 29.8.0):
docker-updatesall-targets clippy, all with-D warnings.2cf301570: gateway/CLI built locally, sandbox/supervisor packaged with official Docker tasks from this source's CI artifacts. The documented bridge override was scoped to the isolated test gateway; global Docker settings and existing gateways were untouched.2cf301570, attempt 1.2cf301570, attempt 1.The earlier exact-source qualification and review-regression evidence for
0acdea553remains in the previous handoff. Its passing results retain that source scope. The current refresh has independent local qualification above.Checklist
2cf301570.