With apologies to the late Mr. Spock, an anonymous Cuomo administration official today violated Albany’s prime directive: The Bear Mountain Compact.

The so-called agreement for so-called gentlemen in Albany basically requires that anything that happens in Albany stays in Albany, be it extramarital affairs, debauchery, drunkenness, etc.

The staffer was reacting to a Republican-backed bill that appears to be a thinly veiled effort to troll Cuomo in his bedroom: The measure would require financial disclosure from non-relatives who live with state officials, i.e., the governor’s girlfriend, Sandra Lee.

A Cuomo administration official told myself and several others: “It’s an interesting concept – if the bill’s anonymous sponsor ever comes forward, we may suggest expanding it to include all girlfriends, even those of married members.”

The quote is a clever one, but it’s also something of a threat delivered with a clenched-teeth smile.

To be sure, a lot of bad behavior has occurred (and likely continues to) in Albany for decades. On the surface, there’s an effort on the part by lawmakers and their colleagues to keep it a secret (see Lopez, Vito and Silver, Sheldon).

The press, historically, helped play a role in keeping extramarital affairs a secret, most notably with Nelson Rockefeller’s dalliances.

Consider, however, that two state lawmakers in recent years sought to help federal prosecutors by wearing a wire in order to get the goods on their colleagues and obtain some leniency.

Consider how easy — through the recording of a bathroom-stall cell phone video, archived Google chats and a reputation for bullying behavior — a trio of now-former state lawmakers made it for their victims to make sexual harassment complaints.

Consider, too, how easy it is for any state lawmakers to say something blunt or innuendo-laden on social media.

In other words, Albany may be a town of secrets, but in this day and age it’s a lot easier for those secrets to get out.