How long does the POTUS immunity last after they leave office, forever?
So, under customary international law there’s generally held to be absolute sovereign immunity for the head of government and head of state while in office including for ‘international crimes’. This includes while overseas; their person is essentially covered by the same inviolability as diplomats.
After leaving office, that sovereign immunity shrinks but does not disappear. It’s generally held to remain in perpetuity for official acts.
But…
This was tested in the Pinochet case. The Brits arrested Augusto Pinochet in the late 90s for genocide.The Spanish requested that Britain extradite Pinochet for acts of torture committed under his presidency. It went through the U.K.’s courts and up to the Law Lords (who then functioned as the U.K.’s Supreme Court). Ultimately they ruled that he no longer enjoyed sovereign immunity,
but the decision turned in part on Chile being signatories to the Torture Convention, and in part on torture being an ‘always’ crime victim it’s universal jurisdiction; essentially, official status could not shield from it.
The latter rationale would suggest that absolute sovereign immunity fails in the face of certain grievous crimes against humanity, even when in office.
In practice, like much international law, this is limited by the willingness of some states to act unilaterally and to roll the dice on impunity; the U.S. kidnapping of Maduro while a serving head of state is obviously a flagrant breach of this norm.
So, the ‘book’ answer would be that Trump should enjoy perpetual sovereign immunity for official acts, but ‘official acts’ is limited by
jus cogen norms against crimes against humanity. For acts not legitimately carried out in his official capacity, immunity under international law disappears when he walks out of the White House.
In practice, obviously, few states would invite that grief from the U.S. after his departure from office, even presupposing they identify an offence under international law.