From 2a73b1576a22af761fdd176f08f38ed6367bc5ae Mon Sep 17 00:00:00 2001 From: fmfsaisai Date: Mon, 11 May 2026 01:05:11 +0800 Subject: [PATCH] fix: add contracts.tools to plugin manifest OpenClaw v2026.5.2 introduced mandatory tool contract enforcement in the plugin registry. Plugins that call api.registerTool() must now declare their tool names in openclaw.plugin.json under contracts.tools, otherwise registerTool() silently skips registration and pushes an error diagnostic. Without this change, conversation_archive_search and conversation_archive_health tools are not available to agents on OpenClaw >= 2026.5.2, even though the plugin loads successfully and hooks work fine. Verified on OpenClaw 2026.5.2: - Before: plugins inspect shows "ERROR: plugin must declare contracts.tools before registering agent tools", Tools section empty - After: Tools section shows both tools, no diagnostics errors --- openclaw.plugin.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openclaw.plugin.json b/openclaw.plugin.json index 35cb4d3..2f8005f 100644 --- a/openclaw.plugin.json +++ b/openclaw.plugin.json @@ -3,6 +3,9 @@ "name": "Conversation Archive", "description": "Archives gateway-seen messages into workspace-local JSONL logs and bundles a skill for later history retrieval.", "skills": ["./skills"], + "contracts": { + "tools": ["conversation_archive_search", "conversation_archive_health"] + }, "configSchema": { "type": "object", "additionalProperties": false,