A repository write guard must resolve active-task state and current branch from the actual…
A repository write guard must resolve active-task state and current branch from the actual target worktree, not the primary checkout associated with the parent session. In multi-worktree environments, anchoring both checks to the primary checkout can reject valid writes even when…