Yes, so previously, the IOC had medical experts examine the athlete invasively and run a bunch of tests, and a panel made a determination. That was very unpopular. Then recently, they swung the other way and tried to define males and females by an arbitrary hormone level cutoff regardless of the genetics.
I think the final solution will be a simple, two-step process that goes like this:
Step 1: simple genetic test for the presence of a Y chromosome. No Y chromosome, the person is female, and she can compete in the female class, not subject to any endogenous testosterone limits.
Step 2: genetic males (with a Y chromosome) that wish to compete in the female class are subject to the female upper normal limit for testosterone.