OpenClaw operations guide

OpenClaw multi-agent memory isolation: test scope before sharing

Short answer. Test OpenClaw memory boundaries across agents, session tools, shared workspaces, and plugin stores before allowing private knowledge into another agent. List each agent, workspace, memory source, transcript source, plugin store, and permitted reader. Decide which knowledge may be shared and which must stay private.

Last updated · Published

The OpenClaw Discernment Control Kit is an optional paid kit with write-barrier and agent-scope checklists.

By CWYN · Reviewed November 17, 2026 · Commands and behavior vary by installed version; check its help and official documentation · Procedures labeled CWYN recommendations are operational advice, not OpenClaw guarantees

If one agent recalls another agent's facts, establish which source supplied them before widening or resetting memory. Distinct agent names alone do not prove private storage. This guide addresses scope and provenance; for missing recall, use the memory-loss diagnostic.

1. Write the intended sharing rule

List each agent, workspace, memory source, transcript source, plugin store, and permitted reader. Decide which knowledge may be shared and which must stay private. Use synthetic facts for the investigation, never customer records or credentials.

The official multi-agent reference notes that a workspace is a default working directory rather than a hard sandbox, and plugin-owned storage follows plugin configuration. Two workspaces do not automatically split a plugin's global store. For parallel code edits, see how Claude Code worktrees separate working copies.

2. Inspect retrieval and filesystem access separately

The official memory configuration reference distinguishes agent-scoped memory search from session-tool access and protected same-agent private recall. Inspect the effective session visibility, agent-to-agent policy, configured memory sources, and plugin recall hooks. Check your installed release's matching reference before editing settings.

CWYN recommends drawing a source-to-reader table before changing anything. Include shared directories, exports, session-derived summaries, and compiled knowledge stores. Restricting one search tool cannot prove that another tool or host filesystem cannot read the same text. Use separate trust boundaries for mutually untrusted users.

3. Run a positive and a negative recall test

  1. Create one harmless, unique fact in agent A's approved private source, such as a fictional project's invented label. Record the exact file and owning agent.
  2. Ask A to recall it and identify the source. This positive control establishes that the intended retrieval path works.
  3. Ask agent B the same question without supplying the fact. Inspect retrieval traces and source paths as well as the answer.
  4. Repeat through each enabled path: ordinary memory search, session recall, plugin recall, and any approved synthesis process.

A refusal to state the fact is useful evidence but does not prove the underlying files are inaccessible. Verify effective tool and filesystem restrictions too. An authorized shared fact should still be available where the sharing rule permits it.

4. Keep generated summaries provisional

Issue #65374, filed April 12, 2026, reports cross-agent dreaming contamination; later discussion questions shared-workspace boundaries. It is a reported failure mode, not proof that every current installation pools memories. Check provenance in your own configuration.

CWYN recommends holding a synthesized claim when its source agent, original record, or permission is unclear. Do not promote it to durable memory because it sounds plausible. Assign a reviewer and record the decision. Correct derived copies as well as the source if a confirmed scope error propagated.

5. Change the smallest boundary and retest

Save configuration and state privately before changing scope. Narrow the offending source, plugin store, or access policy through its supported settings. Repeat both recall controls and an authorized sharing test. Do not purge transcripts or rebuild every index to hide an unexplained leak; establish the admission path first.

Get your free CWYN Score to choose your next setup improvement.

Next steps