In the last analysis of course an oath will encourage fidelity in office only to the degree that officeholders continue to believe that they cannot escape ultimate accountability for a breach of faith.
Espionage for the most part involves finding a person who knows something or has something that you can induce them secretly to give to you. That almost always involves a betrayal of trust.