Sentence:  Both the agent's <WSD>legend</WSD> and documents were intended to stand up against casual questions from Soviet citizens, such as during a job interview, or a routine police document check, such as were made at railway stations. 
Meaning of the word marked with <WSD> tags:  A fabricated backstory for a spy, with associated documents and records; a (cover story).