Hi,
There's a thing, or there was when I was aware of such things, called a "Court Desk" in CBSA offices.
A clerk gets the daily court logs for their region and looks through the rolls of tombstone data: name, dob to see if there isn't any non-citizens in conflict with Canada's Criminal Code...