The Prime Directive didn't come along until Gene Coon came on board (as did the United Federation of Planets), so I suspect that the script that Roddenberry wrote back in '65 probably bore a much stronger resemblance to "Heart of Darkness", with Kirk going up against Tracey because he was clearly and demonstrably wrong in setting himself up as a feudal lord, not because he'd violated some overarching regulation.