fix: declare contracts.tools for OpenClaw 2026.5.x compatibility#742
Open
kevin0810k wants to merge 1 commit intoCortexReach:masterfrom
Open
fix: declare contracts.tools for OpenClaw 2026.5.x compatibility#742kevin0810k wants to merge 1 commit intoCortexReach:masterfrom
kevin0810k wants to merge 1 commit intoCortexReach:masterfrom
Conversation
Starting from OpenClaw 2026.5.x, plugins must declare every agent tool name
in "contracts.tools" before the gateway will register them. Without this
field, the plugin loads but agents see none of the memory_* / self_improvement_*
tools — auto-recall still works (the runtime path), but explicit memory_store
calls and the dual-write workflow break.
Gateway log when contracts.tools is missing:
[gateway] [plugins] plugin must declare contracts.tools before registering
agent tools (plugin=memory-lancedb-pro, source=...index.ts)
This commit declares the 14 agent tools registered in src/tools.ts:
- memory_recall / memory_store / memory_forget / memory_update
- memory_stats / memory_debug / memory_list
- memory_promote / memory_archive / memory_compact / memory_explain_rank
- self_improvement_log / self_improvement_extract_skill / self_improvement_review
Verified on OpenClaw 2026.5.3-1 + memory-lancedb-pro@1.1.0-beta.10:
agent main can call memory_store/memory_recall round-trip after the patch.
This was referenced May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting from OpenClaw 2026.5.x, plugins must declare every agent tool name in "contracts.tools" before the gateway will register them. Without this field, the plugin loads but agents see none of the memory_* / self_improvement_* tools — auto-recall still works (the runtime path), but explicit memory_store calls and the dual-write workflow break.
Gateway log when contracts.tools is missing:
[gateway] [plugins] plugin must declare contracts.tools before registering
agent tools (plugin=memory-lancedb-pro, source=...index.ts)
This commit declares the 14 agent tools registered in src/tools.ts:
Verified on OpenClaw 2026.5.3-1 + memory-lancedb-pro@1.1.0-beta.10: agent main can call memory_store/memory_recall round-trip after the patch.