fix: declare prompt_rules tool in contracts.tools #2

Merged
hzhang merged 1 commits from fix/declare-contracts-tools into main 2026-05-20 14:48:09 +00:00
Contributor

Same class of bug as Meridian (zhi/Meridian#2), HarborForge.OpenclawPlugin (zhi/HarborForge.OpenclawPlugin#6), and PaddedCell (already fixed in commit 787d88c). OpenClaw's plugin host requires that any tool registered via api.registerTool() is also declared in contracts.tools in the plugin manifest, or the tool is silently dropped from the agent's available tool list.

plugin doctor was warning:

prism-facet: plugin must declare contracts.tools before registering agent tools

PrismFacet registers exactly one tool, prompt_rules (in tools/prompt-rules.ts). Declaring it in the manifest. Verified in DinD sim that with this change the warning disappears and the tool becomes visible to agents.

🤖 Generated with Claude Code

Same class of bug as Meridian ([zhi/Meridian#2](https://git.hangman-lab.top/zhi/Meridian/pulls/2)), HarborForge.OpenclawPlugin ([zhi/HarborForge.OpenclawPlugin#6](https://git.hangman-lab.top/zhi/HarborForge.OpenclawPlugin/pulls/6)), and PaddedCell (already fixed in commit `787d88c`). OpenClaw's plugin host requires that any tool registered via `api.registerTool()` is also declared in `contracts.tools` in the plugin manifest, or the tool is silently dropped from the agent's available tool list. plugin doctor was warning: ``` prism-facet: plugin must declare contracts.tools before registering agent tools ``` PrismFacet registers exactly one tool, `prompt_rules` (in `tools/prompt-rules.ts`). Declaring it in the manifest. Verified in DinD sim that with this change the warning disappears and the tool becomes visible to agents. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hzhang added 1 commit 2026-05-20 13:49:53 +00:00
Same class of bug as Meridian (zhi/Meridian#2), HarborForge.OpenclawPlugin
(zhi/HarborForge.OpenclawPlugin#6), and PaddedCell (already fixed in
787d88c). OpenClaw's plugin host requires that any tool registered via
`api.registerTool()` is also declared in `contracts.tools` in the
plugin manifest, or the tool is silently dropped from the agent's
available tool list. plugin doctor was warning:

  prism-facet: plugin must declare contracts.tools before registering
  agent tools

PrismFacet registers exactly one tool, `prompt_rules` (in
tools/prompt-rules.js). Declaring it in the manifest. Verified in sim
that with this change the warning disappears and the tool becomes
visible to agents.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hzhang merged commit 353e19c3ec into main 2026-05-20 14:48:09 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zhi/PrismFacet#2