Pretty sure that’s an ex post facto law you’re describing...
Probably right. A BOA and xPF are quite similar...
"A bill of attainder was a legislative act that singled out one or more persons and imposed punishment on them, without benefit of trial."
"ex post facto. adj. Latin for "after the fact," which refers to laws adopted after an act is committed making it illegal although it was legal when done."