Russian teenager Kamila Valieva has been cleared to compete in the women's figure skating competition at the Winter Olympics despite failing a pre-Games drug test.

The Court of Arbitration for Sport (CAS) released its ruling on Monday that the 15-year-old Valieva, the favorite for the women's individual gold, does not need to be provisionally suspended ahead of a full investigation. The court gave her a favourable decision in part because she was a minor or “protected person” and was subject to different rules from an adult athlete.

ALSO READ - Arif Khan finishes 45th in giant slalom of Beijing Winter Games

“The panel considered that preventing the athlete to compete at the Olympics would cause her irreparable harm in the circumstances,” CAS Director General Matthieu Reeb said.

Now, Valieva and her fellow Russian skaters can aim for the first podium sweep of women's figure skating in Olympic history. The event starts with the short program Tuesday and concludes on Thursday with the free skate. Shortly after the decision, Valieva skated in her allotted practice time slot.

The CAS panel also cited fundamental issues of fairness in its ruling, the fact she tested clean in Beijing and that there were “serious issues of untimely notification” of her positive test.

Valieva tested positive for the heart drug trimetazidine on December 25 at the Russian nationals but the result from a Swedish lab didn't come to light until a week ago, after she helped the Russian Olympic Committee win the team gold. The reason for the six-week delay in Sweden is unclear, though Russian officials have suggested it was partly because of a January surge in omicron variant COVID-19 cases, which affected staffing at the lab.

ALSO READ - Beijing 2022: List of all medals won on February 14

The Russian anti-doping agency (RUSADA) immediately suspended her, then lifted the ban a day later, putting into limbo the awarding of the medals. The IOC and others appealed and an expedited hearing was held Sunday night. Valieva testified via video conference.

Athletes under 16 like Valieva have more rights under anti-doping rules and typically aren't held responsible for taking banned substances. The focus of any future investigation will home in on her personal team - coaches, doctors, nutritionists, etc.

This ruling only addresses whether Valieva can keep skating before her case is resolved. It doesn't decide the fate of the one gold medal that she has already won.

Valieva landed the first quadruple jumps by a woman at the Olympics when she won the team event gold with the Russian Olympic Committee on Monday. The United States took silver and Japan the bronze. Canada placed fourth. That medal, and any medal she wins in the individual competition, could still be taken from her.

Those issues will be dealt with in a separate, longer-term investigation of the positive doping test that will be led by RUSADA, which took the sample in St. Petersburg. The World Anti-Doping Agency will have the right to appeal an ruling by RUSADA. WADA has also said it wants to investigate Valieva's entourage.