According to documents filed in Los Angeles County, Kevin Federline's attorney, Mark Vincent-Kaplan, demanded the kids be protected from Jaime.
The domestic violence restraining order was filed by Federline, on behalf of his children, following the incident of their grandfather allegedly abusing 13-year-old Sean.
We're told the documents were filed in the ongoing custody case between the two, with a slew of stipulations put forth by Federline and his attorneys, and Britney's team agreed to all of the demands and terms of protection for the kids.
The documents give Federline full legal custody of both boys. Britney will need all her visitation with the children to be monitored, and Jaime can no longer be the monitor.
We're told, it was agreed that another adult would be present, who has been approved by Federline and the court.
Britney will not have any overnight visits, and Federline will now have around 90% physical custody.
The stunning developments come after an incident where Jaime Spears allegedly broke down a door and "violently shook" 13-year-old Sean after an argument between the two.
In the immediate aftermath of the incident, we're told Britney took her children away from Jamie and eventually gave them to Federline for the night.
Federline filed a police report against Jaime the next day, and investigators for the Sheriff's Department submitted the case to the Ventura County District Attorney's office for possible criminal child abuse charges.