Skip to content

fix: declare contracts.tools for OpenClaw 2026.5.x compatibility#742

Open
kevin0810k wants to merge 1 commit intoCortexReach:masterfrom
kevin0810k:master
Open

fix: declare contracts.tools for OpenClaw 2026.5.x compatibility#742
kevin0810k wants to merge 1 commit intoCortexReach:masterfrom
kevin0810k:master

Conversation

@kevin0810k
Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant