openclaw - 💡(How to fix) Fix Feature: allow per-agent/runtime restriction of memory_search allowed corpora

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Please add an official per-agent/runtime policy to restrict which corpora the memory_search tool exposes and accepts.

Our concrete need is to run operational live-chat agents with memory_search available for corpus=memory, while hiding or rejecting corpus=sessions at the tool-schema/tool-policy level.

This is related to #49524, but slightly different: #49524 is about fail-open liveness when memory_search stalls. This request is about preventing sensitive or high-risk corpora from being exposed to live sessions/subagents in the first place.

Error Message

Even when the runtime memory status resolves to Sources: memory, the memory_search tool still exposes/accepts corpus=sessions.

Root Cause

Please add an official per-agent/runtime policy to restrict which corpora the memory_search tool exposes and accepts.

Our concrete need is to run operational live-chat agents with memory_search available for corpus=memory, while hiding or rejecting corpus=sessions at the tool-schema/tool-policy level.

This is related to #49524, but slightly different: #49524 is about fail-open liveness when memory_search stalls. This request is about preventing sensitive or high-risk corpora from being exposed to live sessions/subagents in the first place.

RAW_BUFFERClick to expand / collapse

Summary

Please add an official per-agent/runtime policy to restrict which corpora the memory_search tool exposes and accepts.

Our concrete need is to run operational live-chat agents with memory_search available for corpus=memory, while hiding or rejecting corpus=sessions at the tool-schema/tool-policy level.

This is related to #49524, but slightly different: #49524 is about fail-open liveness when memory_search stalls. This request is about preventing sensitive or high-risk corpora from being exposed to live sessions/subagents in the first place.

Environment

  • OpenClaw: 2026.5.27 stable
  • Agent: main
  • Channel: Telegram DM, used as a live operational cockpit
  • Auth/model route: OpenAI Codex/OAuth
  • openclaw memory status --deep: Sources: memory, Dirty: no, embeddings/vector/FTS ready
  • memorySearch.extraPaths: intentionally limited to workspace docs/workflows
  • agents.defaults.memorySearch.sources: not present as an explicit config path in this install
  • experimental.sessionMemory: not present as an explicit config path in this install

Observed behavior

Even when the runtime memory status resolves to Sources: memory, the memory_search tool still exposes/accepts corpus=sessions.

In our live Telegram context, a read-only probe with corpus=sessions stalled until an external 90s timeout and caused observable latency/memory pressure. The gateway and memory index were healthy afterward, but the surface remains risky.

We also validated:

openclaw memory status --deep
# Sources: memory
# Dirty: no
# embeddings/vector/FTS ready

openclaw config get agents.defaults.memorySearch.sources
# path not found in this config

openclaw config get experimental.sessionMemory
# path not found in this config

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature: allow per-agent/runtime restriction of memory_search allowed corpora