One point of view would be the prime directive is subject to constant change.
In TOS it wasn't some nebulous philosophy. It was a codified military regulation. General Order #1. It had specific rules for what to do and what not to do. McCoy and Kirk quote part of it in Bread and Circuses.