{"version":"2.1.267","anchor":"policy-checks-for-agentspawn-and-toolcall-gain-argument-re","canonical_anchor":"policy-checks-for-agentspawn-and-toolcall-gain-argument-re","heading":"Policy checks for agent.spawn and tool.call gain argument restoration","tier":"notice","area":"Permissions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267\/e\/policy-checks-for-agentspawn-and-toolcall-gain-argument-re","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267","markdown":"### Policy checks for agent.spawn and tool.call gain argument restoration\n\nPolicy checks for spawning agents and calling tools now restore pinned fields a hook altered, not just flag them\n\n**What**\n\nThe policy checks that run on `agent.spawn` and `tool.call` events now actively restore certain pinned fields if a hook rewrite changed them: the parent agent ID and related fields for `agent.spawn`, and the agent ID for `tool.call`. Previously these checks only flagged a mismatch rather than fixing it.\n\n**Why**\n\nThis stops a hook from being able to alter security-relevant identifiers like the parent agent ID, restoring them to their correct values automatically rather than merely reporting that they were changed.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}