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.
MemOS's local OpenClaw mirror currently types
before_tool_callas returningvoid, while current OpenClaw allows the handler to returnPluginHookBeforeToolCallResult. 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:
before_tool_callresult type with current OpenClaw;hol-guardCLI and returns the native block result for non-allow or adapter-error cases;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.