Everyone in the government contractor industry (or government itself) gets annual training on spotting these sorts of leaks. Just discussing any stuff (even if you don't work with classified things) you're doing at work with a foreign national is touchy enough that many people avoid doing it all together. Everyone who works for the federal government or a company that works for the federal government is well aware of this. This isn't an innocent mistake. It's highly unlikely that this guy didn't know what he was doing was questionable.
I'm sure someone talked to him about it, but it's unlikely he got any sort of serious training.
He supposedly talked to someone who worked their way into his life over several years about non-sensitive, non-classified material related to local politics. I imagine he would have been more careful/aware if the "friend" was asking about classified information, or if his "friend" hadn't done it very slowly.
"Former intelligence officials told me that Chinese intelligence once recruited a staff member at a California office of U.S. Senator Dianne Feinstein, and the source reported back to China about local politics. (A spokesperson for Feinstein said the office doesn’t comment on personnel matters or investigations, but noted that no Feinstein staffer in California has ever had a security clearance.)"
None of that contradicts what your first article said, that the staffer didn't know he was being recruited. He was talking about local politics to someone who worked for the Chinese government who was pumping him for information.
The rest is just speculation on the part of someone the reporter talked to about how he could have theoretically committed a crime despite not being prosecuted.