That puzzles me slightly, because I always thought that we all get a national insurance number when we get old enough to take up employment, and surely that number plus possibly the obligation to say where we live would be enough to tackle the issue of HMRC knowing who should have a Scottish tax code.