Noun an unforeseen development

In a twist worthy of her latest detective novel, it turns out it was a lawyer's wife's best friend who leaked J.K. Rowling's identity as the "Robert Galbraith" who wrote the crime novel The Cuckoo's Calling.