Skip to content

[All Platforms][Sandbox] nemoclaw destroy+re-onboard via snapshot backup/restore — workspace files (USER.md, SOUL.md) not preserved #8136

Closed

Description

@hulynn

Description

When a user creates a sandbox, saves new files, creates a snapshot, then destroys and re-onboards the sandbox and restores via snapshot, the new files created before the snapshot are not preserved.

Environment

Device:        DGX Spark
OS:            Ubuntu 24.04
Architecture:  aarch64
NemoClaw:      v0.0.67

Steps to Reproduce

Pre-conditions:

  1. Sandbox onboarded (e.g. workspace-test) with at least one inference round.
  2. Inside sandbox, customize ~/USER.md and ~/SOUL.md:
    echo "Name: QA Tester" > ~/USER.md
    echo "Mission: testing NemoClaw" > ~/SOUL.md
    sha256sum ~/USER.md ~/SOUL.md > /tmp/preserve-digests.txt
  3. Exit sandbox.

Steps:

  1. Create snapshot:
    nemoclaw workspace-test snapshot create --name pre-destroy
    nemoclaw workspace-test snapshot list
  2. Destroy sandbox:
    nemoclaw workspace-test destroy --yes
  3. Re-onboard (same provider):
    nemoclaw onboard --name workspace-test
  4. Restore snapshot:
    nemoclaw workspace-test snapshot restore pre-destroy
  5. Connect and verify:
    nemoclaw workspace-test connect
    cat ~/USER.md
    cat ~/SOUL.md
    sha256sum ~/USER.md ~/SOUL.md

Expected Result

After restore, ~/USER.md and ~/SOUL.md exist with the same content and SHA-256 digests as before destroy. The snapshot → restore path is the documented way to preserve workspace files across a destroy cycle.

Actual Result

After restore, neither file exists:

cat: /sandbox/USER.md: No such file or directory
cat: /sandbox/SOUL.md: No such file or directory
sha256sum: /sandbox/USER.md: No such file or directory
sha256sum: /sandbox/SOUL.md: No such file or directory

Logs

Not captured.

Activity

  1. added
    NV QA
    needs: triage
    on Aug 3, 2026
  2. added theissue type on Aug 3, 2026
  3. self-assigned this
    on Aug 4, 2026
  4. added
    area: onboarding
    area: sandbox
    platform: arm64
    platform: dgx-spark
    platform: ubuntu
    and removed
    needs: triage
    on Aug 4, 2026
  5. self-assigned this
    on Aug 4, 2026
  6. apurvvkumaria commented on Aug 4, 2026

    @apurvvkumaria
    Collaborator

    Thanks for the detailed reproduction. I ran the two path cases against current main with the default OpenClaw agent.

    Inside the managed OpenClaw sandbox, ~ expands to /sandbox, so the reported commands create /sandbox/USER.md and /sandbox/SOUL.md. OpenClaw's managed workspace is $OPENCLAW_WORKSPACE_DIR (/sandbox/.openclaw/workspace), and snapshots intentionally capture that manifest-defined workspace rather than arbitrary files under /sandbox.

    The canonical files were captured and restored with matching contents in an independent backup/restore matrix:

    printf '%s\n' 'Name: QA Tester' > "$OPENCLAW_WORKSPACE_DIR/USER.md"
    printf '%s\n' 'Mission: testing NemoClaw' > "$OPENCLAW_WORKSPACE_DIR/SOUL.md"

    I am preparing a documentation warning and a live regression for snapshot create → destroy → fresh same-name onboarding → restore using those canonical paths. Could you confirm that the affected agent was OpenClaw and, if possible, retry the corrected commands on the current release? I will keep this issue open while the regression runs through the repository gates.

  7. removed their assignment
    on Aug 5, 2026
  8. apurvvkumaria commented on Aug 5, 2026

    @apurvvkumaria
    Collaborator

    Priority follow-up: merged PR #8245 documents the OpenClaw workspace boundary and adds a live regression that creates canonical USER.md and SOUL.md files under the managed workspace, takes a snapshot, destroys the sandbox, freshly onboards the same name, restores the snapshot, and verifies the file contents. That evidence confirms the supported path is preserved while files created directly under /sandbox remain outside manifest-defined snapshot scope. No additional code change is justified unless the canonical workspace-path scenario still fails. NVBug 6378671 status could not be read from this environment because the NVBug client is not authenticated; reporter or NVBug confirmation remains the external evidence gate.

  9. apurvvkumaria commented on Aug 5, 2026

    @apurvvkumaria
    Collaborator

    Release follow-up: v0.0.103 now includes merged PR #8245. That release documents the supported OpenClaw workspace paths and carries the live snapshot → destroy → fresh same-name onboarding → restore regression for USER.md and SOUL.md under the managed workspace. Files created directly under /sandbox remain outside the manifest-defined snapshot boundary by design. Please validate the canonical workspace-path scenario on v0.0.103 and attach the result here or to NVBug 6378671. I am keeping this issue open until reporter or NVBug evidence confirms the released path; no additional PR is justified without a failure on that supported path.

  10. added
    VDR
    on Aug 11, 2026
  11. prekshivyas commented on Aug 13, 2026

    @prekshivyas
    Collaborator

    QA validation required

    The original reproduction writes ~/USER.md and ~/SOUL.md. In an OpenClaw sandbox, ~ resolves to /sandbox. Those paths are outside the snapshot-managed workspace, so they are not expected to survive snapshot restore.

    Please validate the supported OpenClaw paths on the current release:

    printf '%s\n' 'Name: QA Tester' > "$OPENCLAW_WORKSPACE_DIR/USER.md"
    printf '%s\n' 'Mission: testing NemoClaw' > "$OPENCLAW_WORKSPACE_DIR/SOUL.md"
    sha256sum "$OPENCLAW_WORKSPACE_DIR/USER.md" "$OPENCLAW_WORKSPACE_DIR/SOUL.md"

    Then run: snapshot create → destroy → fresh same-name onboarding → snapshot restore. Verify that both files exist at the same paths and have the same SHA-256 digests.

    I ran this full lifecycle on a DGX Spark with NemoClaw v0.0.108. Both files and digests were preserved. PR #8245 also documents these paths and adds regression coverage.

    If QA confirms this result, resolve NVBug 6378671 as a workspace-path documentation issue, not as a persistence defect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAVDRarea: onboardingarea: sandboxplatform: arm64platform: dgx-sparkplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions