Repository navigation
docs: preserve native agent files with mounted volumes - #13410
Merged
Merged
Conversation
Document platform-owned mounts and backup, per-harness file and conversation boundaries, and marker verification. Correct unconditional deletion claims. Fern, shell syntax, whitespace and independent documentation review passed; live replacement and native history restore remain unqualified.
|
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. |
deepujain
marked this pull request as ready for review
October 18, 2026 08:31
Contributor
Integrate v1 baa7d75 without rewriting history. Preserve caller-mounted file retention while adopting workspace deletion/recreation, and remove obsolete workspace-retention guidance. Focused independent follow-up review and Fern validation passed.
…data-docs # Conflicts: # docs/migration.md
cv
enabled auto-merge (squash)
October 18, 2026 09:57
cv
added a commit
that referenced
this pull request
Oct 18, 2026
…#13425) Closes #12639 under its narrowed documentation scope. ## Failure A sandbox can declare `driverConfig`, for example to mount volumes that outlive it (#13304, #13402). The docs on keeping agent files on mounted volumes (#13410) said the gateway must allow driver configuration, but no NemoClaw-managed gateway could. Every gateway NemoClaw installs kept OpenShell's default, `allow_driver_config = false`, and rejected the sandbox. So the mounted-volume path worked only with external gateways, and the docs said that retention through a sandbox replacement had not been qualified. ## Decision - **`spec.gateway.sandboxDriverConfig`:** for managed gateways, with `allow` (default `false`) and an optional `resourceAdmission` (`enabled`, `requiredLabels`), passed through to OpenShell unchanged. - **Docker and Podman:** written into the gateway's `gateway.toml` driver section. The file lives in the gateway's retained storage, so the setting is fixed when the deployment is created, as with the other settings stored there. Without the setting, the file is unchanged byte for byte, so existing gateways still match. - **Kubernetes:** written into the chart's `server.drivers.kubernetes` values, which Helm applies in place. - **How the Docker and Podman resources carry it:** the gateway and gateway-storage resources take it as an optional `sandbox_driver_config` attribute, following the `image_pull_policy` pattern. - **One local check:** an empty `requiredLabels` map is rejected before apply. OpenShell refuses it at gateway start, and on Docker or Podman the value would already be fixed in storage. - **Docs:** - the mounted-volume guide shows the gateway setting next to the sandbox mounts; - retention through replacement is recorded as verified; - references to #12639 are reworded to say who owns each remaining limit: conversation continuity belongs to Fabric and the harness, moving storage belongs to the platform. ## Validation - **New tests** failed before the change: - Docker and Podman `gateway.toml` contents, with and without the setting; - empty `requiredLabels` rejected; - chart values for Kubernetes. - **`cargo ci`** passes locally: 1,597 unit tests and 149 lifecycle tests. The docs check reports 0 errors. - **Live, on a managed Docker gateway:** 1. A deployment with `sandboxDriverConfig.allow: true` mounted two volumes carrying OpenShell's default admission labels. 2. Markers were written into `/sandbox/workspace` and `/sandbox/artifacts`. 3. An agent change replaced the sandbox (`openshell_sandbox` delete/create; new container). 4. Both markers were read back from the new sandbox. 5. Destroy and the documented removal procedure left nothing behind.
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.
A sandbox can now mount platform-owned storage, but the guides still say replacement and destroy delete all agent files. That hides the path for keeping work across replacement and overstates what happens to mounted data.
Document writable workspace/artifact mounts, approval labels, identity and policy prerequisites, then show how to check retention with two non-sensitive marker files. A source-linked table covers all ten image-build harness targets. It separates retained files and native databases from the runtime session that uses them: Pi keeps conversation in memory, OpenClaw removes a private temporary home, and a new native thread is not restored merely because a checkpoint file survived.
Backup and transfer stay with the platform. Related lifecycle, SDK and migration guidance now makes the same retention distinction.
cargo run --locked -p nemoclaw-build -- fern checkpassed (both configurations: zero errors, one warning). The shell examples pass syntax checks, whitespace checks pass, and independent documentation review verified mount and harness claims against the pinned OpenShell/Fabric sources. No live replacement, native-history restore, or cross-version compatibility is claimed.Advances #12639 under its narrowed documentation scope. Keep it open for the native conversation limits that mounted volumes alone cannot resolve.