The agent was correct, but your inference wrong. Yes, the ticket is changed, but that does nothing other than cause a BO in F/J to spit out.
Miles are awarded based on the original class of service purchased. The original class of service was Y, so that will be used for award purposes.