OTTAWA -- Retired Supreme Court chief justice Beverley McLachlin has gone from writing decisions that affect the lives of thousands of Canadians to writing fiction, with her first ever novel hitting shelves Tuesday.

Full Disclosure, a legal thriller, centres on a Vancouver criminal defence lawyer named Jilly Truitt who delves into the murder of a wealthy client’s wife. In the 340-page book published by Simon & Schuster, McLachlin’s protagonist handles two main cases: an acquittal and a wrongful conviction.

In an interview with Don Martin, host of CTV’s Power Play, McLachlin acknowledged that the imperfect justice system in her book sometimes reflects reality.

“I really believe, and I think my heroine believes, in the right to a fair trial, but sometimes it doesn’t work,” she said.

“Part of what (the story) portrayed is how the system functions at its best and the difficulties that arise also in the functioning of the system, and (that) guilt and innocence is not always as uncomplicated as we might wish,” she added.

In the novel, McLachlin makes reference to herself indirectly, having Truitt note a portrait of Canada’s chief justice on the wall of the B.C. Supreme Court.

“Sometimes women actually do get to rule,” she told Martin with a smile.

McLachlin also admitted that the book touches on the 2016 decision in R. v. Jordan, which clarified that most cases in Superior Court should reach trial within 30 months from the time a person is arrested and lower court cases should go to trial within 18 months. The decision has caused judges to stay charges in serious cases like murders, due to the accused person’s right to a timely trial.

“We have a Charter right to be tried within a reasonable time and that has to be enforced,” McLachlin said. “And the difficult thing is, how do you enforce it? If you just let it go every time, that right disappears.”

McLachlin explained that she had toyed with writing fiction before she became a judge and had even developed her protagonist before she was called to the bench.

She started writing again just before retiring “at 5 a.m. in the morning before court, before I walked my dog,” and on airplanes and weekends, she said.

Next year, McLachlin will begin a new job at the Hong Kong Court of Final Appeal. But that doesn’t mean her writing career is over.

“If I live long enough, I’d love to do a sequel,” she said.