PARC: An Autonomous Self-Reflective Coding Agent for Robust Execution of Long-Horizon Tasks