Align the iterative update instruction with HISTORICAL_TASK_HEADING and treat leftover ## Active Task sections as the same snapshot so grounding replaces them instead of prepending a second live-looking task heading. Fixes #114479
gateway start