The only one who can say if someone is trans is that person. I never commented on this being a trans issue. It could be DSD issues but who knows. Even if Khelif is actually a woman, there are plenty of males taking women's places in sport. In the 2016 Olympics, male runners with DSD took all three medals for the Women's 800. LINK
You think the IBA would fake a test and not worry that subsequent tests by some other organization might reveal their deception? Maybe they let it slide but didn't ban him until he became good enough to be an actual threat. Who knows, but that would be unfair to all sides including Khelif. Both boxers were given the chance to lodge an appeal with CAS (court of arbitration for sport) Khelif did so, but dropped the appeal which made the IBA's decision legally binding. For some reason Khelif and Lin didn't want any test results released to the public. They also aren't volunteering for tests to prove that they are women. Also interesting that the IOC says it uses a person's passport to determine sex. Khelif's birth certificate used to obtain a passport wasn't issued until 2018.
They have known via testing that He was a biological man since spring 2022. The IOC distanced itself from the IBA, but the World Boxing Organization, who hopes to take over before the 2028 games in LA, says it warned the IOC about males (Khelif) in boxing back in 2022. Apparently he didn't pass the testing in May of 2022. Interestingly, Khelif's own people confirmed that he was being treated by a doctor back home to lower his testosterone so that it falls into the acceptable range for that of a woman. I'm not sure why he would need treatment to lower his T into the women's range. Even still, it's not his T levels that disqualified him from competing as a woman.