As a historian specializing in the British empire, he sees himself more as a detective than as a spy.