OTTAWA—Canadian security agents compiled dossiers on former prime ministers John Diefenbaker and Lester Pearson but the secret files were destroyed in the late 1980s, newly declassified records show.