4159361690
When a session has claimed a task with declared affected_paths, an in-workspace write outside that scope is BLOCKED — but declarably: the message tells the agent to widen the task's affected_paths via task_update (which re-records the scope) and retry. Legitimate, unforeseen changes (a dependency, a caller) are never trapped, only forced to become a recorded, auditable scope change. Reads the session's activeTask scope (recorded at claim) — no cross-stream lookup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>