{"version":"2.1.327","anchor":"sdk-tool-result-metadata-adds-plugin-approval","canonical_anchor":"sdk-tool-result-metadata-adds-plugin-approval","heading":"Plugin eval runs refuse risky hook approvals and record what hooks approved","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/sdk-tool-result-metadata-adds-plugin-approval","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Plugin eval runs refuse risky hook approvals and record what hooks approved\n\nIn `claude plugin eval` runs, a plugin hook can no longer approve calls a deny rule blocks, and results record each hook approval or refusal\n\n**What**\n\n`claude plugin eval` is the command that runs a test suite against a plugin. A plugin can include a permission hook, a small piece of code that decides whether a tool call (one action Claude takes, such as running a command) is allowed. In eval runs this release changes how those hook decisions are handled.\n\n- A plugin hook's allow is now ignored when a deny rule blocks the call, or when the call's own permission check crashed or did not finish. The call is refused instead.\n\n- A crashed permission check now becomes an ask decision with the reason `permission check crashed; the tool gave no reason`.\n\n- Eval results record which tool calls a plugin's permission hook approved or refused. The suite prints warnings when a hook refused or approved calls, for example that a hook approved calls that would not otherwise have run, and the HTML report shows a warning banner.\n\n- For SDK users, the tool-result metadata schema describes a new `plugin_approval` field, set only in a `claude plugin eval` run.\n\n**Why**\n\nBefore, a hook's allow was only held back by the permission engine's own decision. Plugin authors testing permission hooks now see refusals and warnings in their eval results instead of approvals passing silently, which makes it easier to spot a hook that lets through calls it should not.\n\n- Area: Plugins\n- Names: `plugin_approval`, `claude plugin eval`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: yes"}