stop-hook-infinite-loop-on-pure-planning-sessions

The Stop hook’s ‘structural incompleteness’ logic for brainstorming workflows creates an infinite blocking loop when the user goes inactive mid-session without providing section approval. The hook correctly identifies the workflow is mid-stream but then fires 30+ times in succession, burning context and adding zero value. The fix: add a guard — if no file modifications occurred AND the block reason is ‘awaiting user input’ (not ‘agent has incomplete work’), APPROVE the stop after 3 consecutive blocks.