while reviewing some of the literature on DiD and Event Study designs, I come up with a general question, since DiD is by definition a quasi-experimental approach to determining causal effects when randomization of the treatment is not possible, What happens when the previous values of the outcome indirectly determine the assignment of the treatment at a certain year. The DiD stills valid?
Consider for example that $H_{it}$ is the homicide rate for some cities. Given that for some cities the homicides are so high, policy intervention is done at $t=0$ for the cities with the highest homicide rates, classified in the treatment dummy variable as $TD_{i}=1$ and $TD_{i}=0$ if city was not targeted by the policy.
Clearly this a real policy scenario where randomization is not possible, but this stills violates the DiD analysis?, I would argue it doesn't but I found some authors which state that outcome must not influenciate the treatment (https://www.publichealth.columbia.edu/research/population-health-methods/difference-difference-estimation). This makes sense to me because otherwise treatment would be subject to reverse causality, but one could argue that policy intervention was done considering previous values of $H_{it}$. Hence, contemporaneous outcome would not influenciate treatment assigment, and also the decision to be part of the treatment is not exactly a "decision" of the cities but rather based on observable past periods of the outcome, therefore, critic assumption is the parallel trends between the treated and untreated cities (also as the World Bank suggest https://dimewiki.worldbank.org/Difference-in-Differences).
I would say then that DiD stills valid as long as the parallel trend assumption (and no general equilibrium effects) exists from the treatment implementation, even when the outcome somehow is related to the classification of the treatment units at least in the information of previous periods of time used by the authorities to intervene or not a city.
I am aware that this fits more in the Regression Discontinuity Desiggn (RDD) but in general it should also work for the DiD.