Oleg Nechiporenko was one of the three KGB agents/Soviet Embassy officers who talked with Oswald when he, Oswald, went to the Embassy in Mexico City in search of a visa. Nechiporenko (and the others) said Oswald was hysterical, emotional and erratic. He described the meeting in his book "Passport to Assassination"
This is part of it (pgs. 77=78): "[During the discussion] Oswald suddenly became hysterical, began to sob, and through his tears cried, "I am afraid...they'll kill me!" Repeating over and over that he was being persecuted and that he was being followed even here in Mexico, he stuck his right hand into the left pocket of his jacket and pulled out a revolver, saying, "See? This is what I need to defend myself!"
"I was dumbfounded and looked at Pavel [Yatsov, his fellow KGB agent], who had turned slightly pale but then quickly said to me, "Here, give me that piece." I took the revolver from the table and handed it to Pavel. Oswald, sobbing wiped away his tears. He did not respond to my movements. Pavel, who had grabbed the revolver, opened the chamber and emptied the bullets..."
After the assassination, Nechiporenko discussed Oswald with his fellow agents. He read the files on Oswald compiled by the KGB. The KGB had concluded that Oswald's traits included:
1. Strongly individualistic, conflicts with society
2. Psychological [problems], nervous instability
3.Inertia when he has no interest in the matter
4.Lack of organizing skills
5. Lack of any professional skills
The Cubans who met Oswald at the Cuban consulate in Mexico City said he was hysterical and aggressive and had to be physically escorted out the building. Oswald was told that "the Revolution doesn't need people like you" and was told to leave.
To me, this is not the right behavior of someone that the Cubans or Soviets are going to allow into their country. Why risk letting this disturbed person into your country? If Oswald was a CIA officer/asset, I don't think he would be instructed to act this way. Not if they wanted him to get into Cuba and certainly not if they wanted to get him close enough to Castro to kill him.