Behavioral inference from non-stationary policies: Theory and application to ridehailing drivers during COVID-19 lockdowns. (June 2023)