Pretty much my point exactly, from a reader:

Jonah,
The fact that Wilson lied about his wife’s involvement is practically all
you need to know that you’re right and Josh Marshall is wrong (at least from
a practical standpoint, and possibly a legal one as well). Wilson lied
about it because he knew that it made a much more damning story if his
wife’s occupation had nothing to do with his poolside tea-sipping
assignment.
Josh may be technically correct to state that the law gets broken when
someone intentionally discloses the identity of a classified agent,
regardless of that someone’s motivation. But if you do it because you’re
trying to screw her husband (so to speak), that puts the “intent” into
“intentional” pretty nicely; if you’re doing it to say “Wait a minute; you
can’t take this clown seriously,” your “intent” is (at least arguably) not
to blow an agent’s cover, but rather to demonstrate that the clown is
unqualfiied (i.e., he is a clown). And a clown he is.