From 7a33e457edc157170abff9567b786d0697ac93c0 Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Wed, 2 Dec 2026 09:35:35 -0800 Subject: [PATCH] docs: separate retained OpenClaw maintenance guidance Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- adapters/python/openclaw/README.md | 12 +----- docs/index.yml | 2 + .../harness/openclaw/openclaw-maintenance.mdx | 43 +++++++++++++++++++ .../harness/openclaw/openclaw.mdx | 12 +----- 4 files changed, 49 insertions(+), 20 deletions(-) create mode 100644 docs/integrations/harness/openclaw/openclaw-maintenance.mdx diff --git a/adapters/python/openclaw/README.md b/adapters/python/openclaw/README.md index 5e71bc660..7ac012d7d 100644 --- a/adapters/python/openclaw/README.md +++ b/adapters/python/openclaw/README.md @@ -45,18 +45,10 @@ prepared use, if `openclaw` is not in `PATH`, set bare command is resolved through `PATH`; a relative path containing a directory is resolved from the NeMo Fabric base directory. -### Upgrade a Gateway With Retained State - -When upgrading a caller-owned Gateway from OpenClaw 2026.9.4, stop the Gateway and run `openclaw backup create --verify` with the Gateway's existing `OPENCLAW_STATE_DIR` and `OPENCLAW_CONFIG_PATH` before upgrading. The backup must include the active config, its include files, and all configured agent directories, including paths outside the state directory. Protect the archive because it can contain credentials. - -Before upgrading, check the backup result and manifest for the active config, its include files, and every configured agent directory. For paths marked `covered`, confirm that the archive contains the data under a parent directory. Fix missing required paths and rerun the backup. Continue with the upgrade after confirming that all required data is backed up. - -Before migration, copy every legacy session directory while the Gateway is stopped. Include `sessions.json`, `.jsonl` transcripts, and session directories outside `OPENCLAW_STATE_DIR`. The backup command excludes legacy `.jsonl` transcripts. Protect these copies and keep them with the verified archive for rollback. - -Run `openclaw doctor --fix` with the 2026.9.34 executable and the same path settings. The command imports legacy `sessions.json` files and JSONL session data into each agent's SQLite database. Restart the Gateway after the command succeeds. Keep the verified backup for rollback. - Managed runtimes and NeMo Fabric-owned services use temporary state by default. Set `runtime.keep_state=true` to retain the native Gateway home across restarts. +For offline upgrades and recovery, refer to [Maintain Retained OpenClaw State](../../../docs/integrations/harness/openclaw/openclaw-maintenance.mdx). + ## Configuration ### Supported Normalized Configuration diff --git a/docs/index.yml b/docs/index.yml index 60b661856..c20e3b456 100644 --- a/docs/index.yml +++ b/docs/index.yml @@ -160,6 +160,8 @@ navigation: path: ./integrations/harness/openclaw/openclaw-dashboard.mdx - page: Terminal TUI path: ./integrations/harness/openclaw/openclaw-tui.mdx + - page: State Maintenance + path: ./integrations/harness/openclaw/openclaw-maintenance.mdx - page: OpenHands path: ./integrations/harness/openhands.mdx - page: OpenCode diff --git a/docs/integrations/harness/openclaw/openclaw-maintenance.mdx b/docs/integrations/harness/openclaw/openclaw-maintenance.mdx new file mode 100644 index 000000000..1d22ed232 --- /dev/null +++ b/docs/integrations/harness/openclaw/openclaw-maintenance.mdx @@ -0,0 +1,43 @@ +--- +title: Maintain Retained OpenClaw State +description: Back up native state and perform offline OpenClaw upgrades and recovery. +slug: /integrations/harness-integrations/open-claw-maintenance +--- +{/* SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 */} + +NVIDIA NeMo Fabric leaves native OpenClaw database maintenance to the deployment owner. Use this procedure for retained state or a caller-owned Gateway. Managed runtimes and prepared services use temporary state by default; `runtime.keep_state=true` retains their native state. + +Before changing the executable, confirm that the installed adapter supports the target OpenClaw version. The 2026.11.13 procedure below requires a NeMo Fabric 0.7 revision with support for both OpenClaw 2026.9.34 and 2026.11.13. An adapter that supports only 2026.9.34 cannot start the newer release. + +## Upgrade Legacy Session Storage to OpenClaw 2026.9.34 + +When upgrading a caller-owned Gateway from OpenClaw 2026.9.4, stop the Gateway and run `openclaw backup create --verify` with the Gateway's existing `OPENCLAW_STATE_DIR` and `OPENCLAW_CONFIG_PATH` before upgrading. The backup must include the active config, its include files, and all configured agent directories, including paths outside the state directory. Protect the archive because it can contain credentials. + +Before upgrading, check the backup result and manifest for the active config, its include files, and every configured agent directory. For paths marked `covered`, confirm that the archive contains the data under a parent directory. Fix missing required paths and rerun the backup. Continue with the upgrade after confirming that all required data is backed up. + +Before migration, copy every legacy session directory while the Gateway is stopped. Include `sessions.json`, `.jsonl` transcripts, and session directories outside `OPENCLAW_STATE_DIR`. The backup command excludes legacy `.jsonl` transcripts. Protect these copies and keep them with the verified archive for rollback. + +Run `openclaw doctor --fix` with the 2026.9.34 executable and the same path settings. The command imports legacy `sessions.json` files and JSONL session data into each agent's SQLite database. Restart the Gateway after the command succeeds. Keep the verified backup for rollback. + +## Upgrade Managed Retained State to OpenClaw 2026.11.13 + +For a NeMo Fabric-managed Gateway moving from OpenClaw 2026.9.34 to 2026.11.13, perform the following offline maintenance: + +1. Before stopping the old runtime or releasing its prepared service, preserve a private copy of the active generated configuration and its include files. The adapter removes its active configuration on stop. +2. Stop the Gateway, then create and verify a fresh backup of retained state, workspace, and configuration before running Doctor. An earlier migration backup can omit newer sessions. Protect the backup because it can contain credentials. +3. In the maintenance copy, replace the `plugins` object's `$include` with a copy of the retained `fabric/plugins.json` contents. Doctor refuses to rewrite include-owned configuration. Keep other relative includes valid. Leave retained plugin settings and their ownership record together and unchanged; the compatible adapter translates their prompt permission. +4. With the Gateway stopped, run the 2026.11.13 executable's `openclaw doctor --fix --non-interactive` against the retained `OPENCLAW_STATE_DIR` and the maintenance `OPENCLAW_CONFIG_PATH`. Make the configuration's required environment references available to the command. +5. Restart after Doctor succeeds. Keep the verified backup for rollback. + +If an existing configuration contains a heartbeat monitor, Doctor converts it into a saved scheduled job. Remove `harness.settings.agents.defaults.heartbeat` from the NeMo Fabric configuration before starting 2026.11.13. Manage saved jobs through `openclaw automations`. + +## Roll Back to OpenClaw 2026.9.34 + +Stop the Gateway and restore the matching pre-upgrade state, workspace, and configuration from the verified backup. Restore `fabric/plugins.json` and `fabric/plugins.owned.json` together as part of that state. This restore is required even if the newer Gateway failed to start: offline Doctor can change native databases before Gateway startup. + +The NeMo Fabric 0.7 compatibility hotfix refuses older-version managed startup or service preparation when retained plugin entries contain `hooks.allowPromptModification`, whether `true` or `false`, before rewriting either plugin file. This check recognizes the newer plugin-policy format. It does not establish database compatibility. Changing only the executable against upgraded state is unsupported. + +## Maintain a Caller-Owned Gateway + +The deployment owner backs up and upgrades the Gateway's native state and configuration using that deployment's existing paths. NeMo Fabric's generated configuration and `fabric/plugins.json` are not required. Stop the Gateway before running Doctor and retain the matching backup for recovery. diff --git a/docs/integrations/harness/openclaw/openclaw.mdx b/docs/integrations/harness/openclaw/openclaw.mdx index 1e051b85f..5dc9a8eba 100644 --- a/docs/integrations/harness/openclaw/openclaw.mdx +++ b/docs/integrations/harness/openclaw/openclaw.mdx @@ -56,18 +56,10 @@ pip install "nemo-fabric[openclaw]" To install the adapter without the NeMo Fabric runtime, use `nemo-fabric-adapters-openclaw`. The adapter package does not install OpenClaw. -### Upgrade a Gateway With Retained State - -When upgrading a caller-owned Gateway from OpenClaw 2026.9.4, stop the Gateway and run `openclaw backup create --verify` with the Gateway's existing `OPENCLAW_STATE_DIR` and `OPENCLAW_CONFIG_PATH` before upgrading. The backup must include the active config, its include files, and all configured agent directories, including paths outside the state directory. Protect the archive because it can contain credentials. - -Before upgrading, check the backup result and manifest for the active config, its include files, and every configured agent directory. For paths marked `covered`, confirm that the archive contains the data under a parent directory. Fix missing required paths and rerun the backup. Continue with the upgrade after confirming that all required data is backed up. - -Before migration, copy every legacy session directory while the Gateway is stopped. Include `sessions.json`, `.jsonl` transcripts, and session directories outside `OPENCLAW_STATE_DIR`. The backup command excludes legacy `.jsonl` transcripts. Protect these copies and keep them with the verified archive for rollback. - -Run `openclaw doctor --fix` with the 2026.9.34 executable and the same path settings. The command imports legacy `sessions.json` files and JSONL session data into each agent's SQLite database. Restart the Gateway after the command succeeds. Keep the verified backup for rollback. - Managed runtimes and NeMo Fabric-owned services use temporary state by default. Set `runtime.keep_state=true` to retain the native Gateway home across restarts. +For offline upgrades and recovery, refer to [Maintain Retained OpenClaw State](./openclaw-maintenance.mdx). + ## Resume a Retained Conversation Set `runtime.keep_state=true` and supply `runtime.artifacts`. Save the `SessionRef` returned as `runtime.session_ref`, then pass `session_ref=reference` to `Fabric.start_runtime()` when starting a replacement. Omitting the reference creates a fresh conversation. Each replacement gets a new NeMo Fabric runtime ID and uses the selected native conversation history without replaying earlier work.