Skip to content

Align OpenClaw before_tool_call result and add optional HOL Guard gate #172

Description

@kantorcodes

MemOS's local OpenClaw mirror currently types before_tool_call as returning void, while current OpenClaw allows the handler to return PluginHookBeforeToolCallResult. That leaves the local plugin unable to block a tool call through the host's native result contract.

Would maintainers be open to a focused update that:

  • syncs the mirrored before_tool_call result type with current OpenClaw;
  • adds an optional path for command-bearing calls that invokes the installed hol-guard CLI and returns the native block result for non-allow or adapter-error cases;
  • keeps MemOS memory behavior unchanged and adds focused allow, block, and error tests.

If this direction fits, I'll prepare the smallest PR against the branch you prefer and keep HOL Guard as the decision engine rather than adding policy logic to MemOS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:pluginOpenClaw & Hermesstatus:needs-triageNeeds initial triage | 需要初步判断 & 问题复现

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions