Particle acceleration and foreshock evolution in heliospheric shocks from self-consistent Monte Carlo simulations