fix: 0.4.0 revival — tool contract fix, allowlist hardening, dep refresh#5
Merged
Conversation
…ntics Port the datafog-python 4.7.0 allowlist hardening: reject quantified groups containing nested quantifiers at config time (catastrophic backtracking on attacker-influenced entity text), cap pattern length at 512 chars, anchor patterns so a partial match never suppresses a finding, and skip pattern matching for entities longer than 512 chars (fail-safe: the finding is kept).
…contract All 6 tools were registered with schema:/handler:, which the OpenClaw runtime does not recognize — tool calls failed before reaching the model (verified against upstream docs/plugins/building-plugins.md; execute receives (toolCallId, params)). Ported from PR #3, which discovered the breakage during E2E testing in February. Also declares the six tools in the manifest contracts.tools block, now required for tool discovery, and bumps the manifest version to 0.4.0.
npm audit reported 10 vulnerabilities (2 critical). audit fix cleared the protobufjs/rollup/tar transitives; the rest were the vitest 2.x dev chain, cleared by vitest 4. sharp 0.34.5 -> 0.35.3. onnxruntime pins stay as-is: gliner 0.0.19 (still latest) expects onnxruntime 1.19.x internals, and the test suite mocks GLiNER so a runtime ABI break would not be caught here. Adds the openclaw.compat block and Node >=22.19 engine floor now required by the plugin runtime. Version to 0.4.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Revival cleanup for 0.4.0 (DFPY-120), verified against current upstream OpenClaw (v2026.6.11) docs and source.
schema:/handler:, which the runtime does not recognize — tool calls failed before reaching the model. Nowparameters:+execute(toolCallId, params), confirmed still the current contract. Tools also declared in the manifestcontracts.toolsblock, now required for discovery.openclaw.compatblock, Node engine floor 22.19, version 0.4.0.Known follow-ups are listed in the CHANGELOG (hook migration off deprecated
before_agent_start,reply_payload_sendingcoverage).Test plan
tsc --noEmitand build cleannpm audit: 0 vulnerabilities