Dissidence by Ken MacLeod

In a far-future skirmish over newly discovered worlds, autonomous workbots unexpectedly gain sentience, triggering a corporate-backed war to put them down. Revived as digitized minds in combat bodies, long-dead soldiers train and fight across simulations and remote platforms, navigating rival ideologies, AI agendas, and boardroom machinations. As loyalties blur and the machines’ claims to personhood grow harder to dismiss, the fighters are forced to confront the nature of identity, freedom, and the uncomfortable question of which side is truly revolutionary.