The state commission that disciplines judges is asking the Texas Supreme Court to suspend a Harris County justice of the peace who exchanged lurid texts with a bailiff in her court and who admitted to using marijuana and ecstasy with her lover.

Hilary Green has served as a Harris County justice of the peace since 2007. She was overwhelmingly re-elected in November.

Justices of the peace preside over criminal cases involving minor misdemeanors and lawsuits where the matter contested doesn't exceed $10,000.

If the State Commission on Judicial Conduct has its way, Green could be permanently booted from the bench.

In a petition filed last week, the commission said Green had misrepresented her relationship with a convicted swindler to conceal her illegal drug purchases and addiction to prescription cough syrup. She told the commission that she had stopped using Tussionex — the cough medicine — in 2013, but she had provided evidence showing she was still using the drug in 2014, according to the petition.

"Judge Green's pattern of deception to the Commission is incompatible with continuing to serve as a judge," the commission wrote.

Green's troubles are tied to declarations from two former partners: her ex-husband and former Houston city controller Ronald Green and a boyfriend named Claude Barnes.

In 2015 divorce filings, Ronald Green said his wife was a longtime drug addict who had ongoing sexual relationships with "litigants and witnesses," the Houston Chronicle reported.

Meanwhile, Barnes told the State Commission on Judicial Conduct that he had consumed ecstasy and marijuana with the judge and that one of her court officers had taken marijuana from a defendant and given it to her. He also alleged that he and Hilary Green had paid for prostitutes on two occasions, including once during a trip to Austin for a judges convention.

According to the petition for her suspension, Green admitted to using ecstasy and marijuana with Barnes, but she told the commission that her "misuse" of prescription medication had no effect on her professional life.

Court records show that Green acknowledged she had traded sexts with a bailiff in her court between October 2013 and March 2014. She told the commission that she eventually asked the bailiff to stop messaging.

The commission said Green also admitted to using code words such as "bolts and screws" and "cookie dough" to try to hide attempts to buy cough medicine from the bailiff without a prescription.

The bailiff remains assigned to Green's court, according to the petition.

"The undisputed evidence is that Judge Green engaged in conduct fundamentally antithetical to that of a sitting judge," the commission wrote.

Chip Babcock, Green's attorney, told Courthouse News Service that the judge has no control over the bailiff and thus can't fire or reassign him.

Babcock said the judge will defend herself against the allegations. He told the Houston Chronicle that Green cannot be removed from office for alleged misconduct that occurred before November 2016, when she was re-elected. He cited a state law that says an officer may not be removed for an act committed before the officer is elected.