Apparently the U.K. could require foreign states to name their spies operating in the country on a government register
https://trib.al/KmU2lLz
Meanwhile Priti Patel says all burglars must wear striped tops and masks carrying a bag marked “swag”
Not as daft as you make it sound. Australia and the US already have similar legislation. I doubt they expect all spies to be declared, but any that are not registered and then discovered can be dealt with by prosecution and/or deportation.