Avoiding catastrophic context drift in multi-step AI projects