Understand Runtime Changes
Use this matrix to choose the operation that makes a sandbox change take effect. Some changes apply at runtime, while image and filesystem changes require a rebuild or re-onboard.
OpenClaw Runtime Changes
For a new or pristine OpenClaw workspace, NEMOCLAW_MINIMAL_BOOTSTRAP=1 avoids roughly 3,000 tokens of per-turn project-context overhead by skipping the default template seed. It does not delete existing workspace files.
The runtime source of truth is /sandbox/.openclaw/openclaw.json. The host registry caches metadata, but the image and OpenClaw read from the in-sandbox file.
Host-side OpenClaw config writes run under the per-sandbox transition lock and bind the replacement to the SHA-256 digest of the matching read. Before config set replaces the live file, NemoClaw validates the complete candidate with the installed OpenClaw runtime. If candidate validation fails, the command preserves the existing config and does not reach the gateway restart path. The root-only config guard validates bounded JSON input, transactionally publishes fresh config and hash inodes, and restores the prior mutable posture without adopting concurrent path changes.
In the direct root-entrypoint topology, gateway restart performs a read-only config and hash preflight and temporarily seals fresh inodes while the root PID 1 supervisor replaces the gateway child.
In the OpenShell-managed topology, the installed root controller performs the config preflight while the nonroot nemoclaw-start supervisor replaces the gateway child.
Mutable config in the managed topology keeps the same trust and time-of-check/time-of-use limits as a managed cold start and does not receive the direct root-entrypoint restart seal. If preflight detects an unsafe path, invalid config, invalid ownership posture, or hash drift, restart refuses while the old healthy gateway is still serving.
Mutable Agent State
NemoClaw does not provide post-provisioning immutability for agent configuration or persistent state. OpenShell remains authoritative for sandbox filesystem and network policy enforcement. An agent process can change files that its sandbox identity can write.
Use supported host commands for intended configuration changes so NemoClaw updates validation hashes and managed metadata with the config. Direct in-sandbox edits can cause a later gateway restart to reject the changed config when its integrity metadata no longer matches.
NemoClaw serializes host-side gateway recovery, config and inference writes, snapshots, policy updates, channel updates, and sandbox destruction for each sandbox. This mutation lock prevents concurrent host operations from racing on the same registered sandbox.
Related Topics
- Understand Gateway Lifecycle Control for
recoverandgateway restarttrust boundaries. - Recover and Rebuild Sandboxes for the operational recovery workflow.
- Switch Inference Providers for model and provider changes.
- Customize Network Policy for runtime policy editing.
- Security Best Practices for the broader security posture.
- CLI Commands Reference for command flags and environment variables.