The context window
The agent's working memory for the session. It has a limit, and it fills up.
Early on it holds the plan and remembers what you agreed on.
Cross over and it drifts:
forgets decisions
repeats work
contradicts itself
The fix — keep each task small, and start fresh before you cross over.