@@ -229,22 +229,28 @@ or other gateway internals. Ask which gateway the tester wants to copy. Never
229229silently select or modify the personal gateway.
230230
231231After selection, inspect only that gateway and record its version and commit.
232- Import its ` .openclaw ` state with OCM so sessions and other real user state are
233- preserved in the fixture:
232+ Preview the disposable target, then import its ` .openclaw ` state with OCM so
233+ sessions and other real user state are preserved in the fixture:
234234
235235``` sh
236+ ocm adopt plan --name < test-env> < selected-state-dir> --json
236237ocm adopt import --name < test-env> < selected-state-dir> --json
237238```
238239
239240Use the ` stateDir ` returned by ` ocm env list --json ` for an OCM environment and
240241` ~/.openclaw ` for the plain gateway. Let OCM create the stopped, disposable
241242environment and assign a non-conflicting port; do not make an additional staged
242- copy. The returned environment name is the test environment; use that actual
243- name in every tester-facing command rather than the ` <test-env> ` placeholder.
244- Keep the source unchanged. Before activating copied channel credentials,
245- stop the current credential owner and restore it when validation ends. For an
246- OCM source, use ` ocm service stop <source-env> ` ; for the plain source, use
247- ` openclaw gateway stop ` . There is no ` ocm stop ` command.
243+ copy. OCM copies a configured repo-backed or symlinked workspace into the
244+ disposable environment and rewrites the fixture config to that copy; it never
245+ changes the source repository or workspace. The returned environment name is
246+ the test environment; use that actual name in every tester-facing command
247+ rather than the ` <test-env> ` placeholder. If OCM cannot isolate a config include
248+ or source path, pause and report that setup blocker conversationally—never make
249+ a manual state copy or put it in the campaign worksheet. Keep the source
250+ unchanged. Before activating copied channel credentials, stop the current
251+ credential owner and restore it when validation ends. For an OCM source, use
252+ ` ocm service stop <source-env> ` ; for the plain source, use `openclaw gateway
253+ stop` . There is no ` ocm stop` command.
248254
249255## 3. Upgrade and report errors
250256
0 commit comments