Skip to content

docs: preserve native agent files with mounted volumes - #13410

Merged
cv merged 4 commits into
v1from
codex/v1-12639-mounted-data-docs
Oct 18, 2026
Merged

cv merged 4 commits into
v1from
codex/v1-12639-mounted-data-docs

Conversation

@deepujain

Copy link
Copy Markdown
Collaborator

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 check passed (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.

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.
@deepujain deepujain added the v1 NemoClaw v1 branch label Oct 18, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 18, 2026

Copy link
Copy Markdown

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
deepujain marked this pull request as ready for review October 18, 2026 08:31
@github-actions

Copy link
Copy Markdown
Contributor

deepujain and others added 2 commits October 18, 2026 01:37
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.
@cv
cv enabled auto-merge (squash) October 18, 2026 09:57
@cv
cv merged commit e21182f into v1 Oct 18, 2026
@cv
cv deleted the codex/v1-12639-mounted-data-docs branch October 18, 2026 10:49
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.
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery chore Build, CI, dependency, or tooling maintenance security area: security Security controls, permissions, secrets, or hardening and removed security labels Oct 28, 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: docs Documentation, examples, guides, or docs build area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants