Though the reward was assigned by the environment, the once the policy $\pi$ was fixed, the probability of the action on the states $\pi(a|s)$ could be assigned.
However, this meant given different policy $\pi_i$, the maximization of the value function was not consistent, i.e. the same set of action under different policies $\pi_i$ might lead to different value, i.e. the value function was different. But that's a bit counter intuitive, since the actual reward received by the agent ought to be the same(disregard the damping factor $\gamma$).
In reinforcement learning, does policy affect the maximization of the value? How could there be a maximized value function then?