[Question] Political Roko’s basilisk

Why has there never been a “political Roko’s basilisk”, i.e. a bill or law that promises to punish any member of parliament who voted against it (or more generally any individual with government power, e.g. judge or bureaucrat, who did not do everything in their capacity to make it law)?

Even if unconstitutionality is an issue, it seems like the “more general” condition would prevent judges from overturning it, etc. And surely there are countries with all-powerful parliaments.