Max, I will mention here how our situations are similar in some ways but not in others, and how the legal aspects of divorce may impact how family court processes and "unwritten" policies seem to arrive at outcomes. Even if you make no decisions now, it would be wise to seek some interviews or consultations of experienced family law attorneys. Their legal advice will aid you in your interim decisions. No need to go so far as to retain a lawyer until a need arises.
By the end of my contentious divorce I had been married 18 years and I paid 3 years alimony, two months for every year married. Yours is only 12 years - sort of middling length thus far - so there also might be some alimony but not too long. These days alimony is somewhat limited with the goal to help the disadvantaged ex to get settled in post-marriage life.
The major difference between us was that I had a very entitled spouse who at the end was extremely disparaging and possessive of "her" child. So both BPD and NPD traits, though never diagnosed. Apparently courts stay away from seeking diagnoses unless murder is involved, or it seems so with the high profile cases. To summarize, they deal with (1) people as they are and (2) documentation and evidence while (3) moving the case along so slowly they're hoping the litigants will settle before they have to make decisions.
Though I separated when my child was 3yo, I will relate what happened then our child was 9yo, same as yours.
Divorce had ended 3 years before but she was still viewing me as a second-rate parent. By then we had Shared Parenting, equal custody and equal time. With the continuing conflict, I filed for custody and majority time. Her alimony calc was about to end and her income was generously imputed at minimum wage. Our GAL and the judge supported a deal where I did win custody but ex won with equal time unchanged... so she kept child support. It was all about the art of the deal... masked as a settlement and not a court decision.
Our son was 9yo and didn't really know enough to not be influenced. That's why minors don't attend court with the parents. We eventually had a Guardian ad Litem (GAL - the children's lawyer). Therapists, doctors and other professionals could share their input with the GAL without going into court and risking lawsuits or licensing complaints.
Conflict and entitled disparagement continued so I file again for the failed majority time. This time the GAL was fed up with my ex. ("Fool me once, shame on you. Fool me twice, shame on me.") My ex's lawyer filed for court to have an "in camera" interview with our child, by then age 11. Court allowed it. (Usually kids are middle-school age or older.) Magistrate and GAL spoke privately with him, no direct questions. I'm told he spoke normally when discussing daddy, but lost eye contact when discussing mommy. School also testified about problems with the mother. The decision was majority time for me but only during the school year. It felt to me that school got more credibility than I did, even though my experiences were throughout the year. That finally deflated her entitlement a bit, we didn't go back to court again.
It would be wise to document the patterns you experience now since specific incidents (date, time, witnesses, details, etc) are important. Time also is a factor, courts typically ignore most incidents older than 6 months before filing. They call older incidents "legally stale" since if it was important enough you would have filed sooner, I guess. Perhaps older incidents might be a basis to claim a pattern of behavior.
Beware of trying to be "too fair" or "too nice". Court will be sure to more than protect your spouse. Your task is to protect yourself and your parenting. So don't Gift Away too much parenting. My been there, done that advice is: Get the best (least bad) court order, even the initial temporary one, because it will be an immense uphill struggle (think Sisyphus rolling that boulder up that mountain every day) to get it back.



to keep this person at the aquaintance level at the most.