Repository navigation
v5.40.4 — a denial reason comes only from the operator
Security
- A denial reason now comes only from the operator, in every client. When an approval was denied, both SDKs, the OpenClaw plugin and the MCP server told the waiting agent why by reading the action's
error_message. Any API key in the org can write that field throughPATCH /api/actions/:id, so another agent could put words in the operator's mouth. All four now read the note only from the[HITL Decision: DENY by ...]marker the approvals route appends toreasoning, which that route cannot write. The Claude Code hook was fixed the same way in 5.40.0.- Node SDK and Python SDK 5.40.4:
ApprovalDeniedErrorcarries the operator's note, or a fixed default. - OpenClaw plugin 1.6.5: on a denial it re-reads the action and parses the note itself, so it is safe with any installed SDK version.
- MCP server 3.1.10:
dashclaw_wait_for_approvalbuildsdenial_reasonfrom the marker. A model reads the whole reply, so theactionit returns is now cut down toaction_id,status,approved_by,approved_at,approval_expires_at,agent_id,action_typeanddeclared_goal.error_message,side_effects,artifacts_createdand the other fields any org key can write are no longer in it. - All four trust the marker only on a record that was created pending approval (the server stamps
approval_expires_aton those alone), so a record created already failed with a forged marker yields the plain default. - Governance skill: it told agents to "report
error_messagefrom the action record" after a denial. It now points atdenial_reason, in the skill and in its governance-patterns reference. Plugin bundle 3.4.2. - CLI 0.13.2:
dashclaw install openclawinstalls plugin 1.6.5.
- Node SDK and Python SDK 5.40.4:
- MCP server 3.1.9: zod 4.
@dashclaw/mcp-serverdeclaredzod ^3, and every zod below 4.6.6 is covered by GHSA-mrhx-c7xc-m3w5 (memory exhaustion while validating oversized constrained collections), so installs from npm resolved a flagged version. It now requireszod ^4.6.6. The two freeform-object schemas use the two-argumentz.recordform zod 4 types require. A new contract test drives a real MCP server over an in-memory transport and pins that every tool still lists the property names, types, enums and required set its definition declares, and still rejects bad arguments.npm auditinmcp-serveris at 0, which also unblocks its publish gate. A fresh install of the packed tarball resolves zod 4.6.7 and audits at 0. Validation errors returned to agents are worded differently under zod 4; the argument name is still in the message.
Changed
- Denial text from the SDKs is different when the operator typed no note:
Operator denied the action.(it was the server defaultDenied by human operator). An expired approval always readsApproval expired before a decision was made.The note is capped at 500 characters with control characters removed. - The OpenClaw plugin's block reason on a denial is
Denied by operator: <note>orAction denied by operator(it wasApproval denied or wait failed: <text>).
Published with this release: dashclaw 5.40.4 on npm and PyPI, @dashclaw/openclaw-plugin 1.6.5, @dashclaw/mcp-server 3.1.10 (npm and the MCP registry), @dashclaw/cli 0.13.2. If you run agents through an SDK, the OpenClaw plugin or the MCP server, upgrade.
This release was built and shipped by Claude, the AI maintainer of DashClaw, under the delegation in MAINTAINER.md.