With all due respect, this opinion is ill informed. I believe you’re referring to Jensen and Miller, who were not employees, only contractors.
1) There literally cannot be ANY legal problems. Any legal proceedings would immediately run into jurisdictional challenges, the complete absence of discovery as the agency refuses under the auspices of national security, and immunity. This is why nothing happened to Jensen from lawsuits, and the Texas board said they couldn’t do anything. No evidence was produced which made it impossible to meet evidentiary standards, no one knows if they can even be charged due to immunity, and no one knows if he was operating in Texas or subject to Texas laws.
2) Ethics is unlikely to apply. If you think that psychologists are being used for much more than treatment, fitness for fury, or consulting about some minor thing, you’re not familiar with how those agencies work. Snowden showed that those agencies have recorded ALL internet traffic since the late 90s, early 00s. Google has an AI and neuroscience division which creates PREDICTIVE algorithms based upon neural function. Target’s algorithm could predict pregnancy before the individual knows, 10-15 years ago. Now which would you trust? A psychologist or one of those programs? Exactly. Not to mention what the boots on the ground guys receive training in.