This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

Before 8-year-old Gabriel Fernandez was allegedly beaten to death by his mother and her boyfriend, they doused him with pepper spray, forced him to eat his own vomit and locked him in a cabinet with a sock stuffed in his mouth to muffle his screams, according to court records made public Monday.

Sworn grand jury testimony provided a graphic examination of the abuse that the Antelope Valley boy allegedly suffered before his death in May of 2013. The incident prompted calls for sweeping reforms to the troubled Los Angeles County foster-care system because child welfare workers failed to remove the boy. Officials have taken steps to fire two social workers and two supervisors, while others involved in the case received letters of warning or reprimand.

More than 800 pages of testimony reviewed by The Times also provide a clearer picture of how, despite multiple allegations of abuse, Gabriel’s case seemingly slipped through the cracks.

Palmdale Man Facing Life in Prison in Beating Death of Girlfriend’s 2-Year-Old Daughter

Gabriel’s mother, Pearl Fernandez, called 911 on May 22, 2013, to report that her son was not breathing. She told sheriff’s deputies who arrived at the apartment that Gabriel had fallen and hit his head on a dresser, according to testimony. When paramedics arrived, they found Gabriel naked in a bedroom, not breathing, with a cracked skull, three broken ribs and BB pellets embedded in his lung and groin. He died two days later.

Click here to read the full story on LATimes.com.