Under the proposed settlement filed Friday evening, instead of imposing pre-determined bail amounts, the Sheriff's department would perform a public safety assessment on prearraignment detainees within eight hours of a person’s identity being confirmed in the jail.

The court would review that assessment and make a decision on whether to release detainees on their own recognizance or keep them in custody. If no decision has been made within 18 hours of the person's identity being confirmed in jail, the recommendation from the public safety assessment would determine if the person is released. During those 18 hours, a law enforcement officer could extend the time frame by 12 hours.

"This is something that will protect public safety while protecting the rights of the individuals that are charged with crimes," said San Francisco Sheriff Vicki Hennessy.

In order to make the agreement possible, the Sheriff's department needs to expand its program that performs public safety assessments of prearraignment defendants to operate 24/7. It's not clear yet how much that would cost, but the settlement requires the Sheriff to try to get the Board of Supervisors to approve additional funding for the program within 90 days. If that doesn't happen, the settlement would be scrapped and the judge would rule on how to replace the prearraignment cash bail system, unless the parties both ask the judge to extend the timeline.

Harmeet Dhillon, lead attorney for the California Bail Agents Association which defended San Francisco's cash bail system in the original lawsuit, argues this agreement would actually take away rights from some defendants. She points to the fact that the San Francisco Superior Court hasn't agreed to hear the cases outside its normal business hours and law enforcement can extend the time frame that a public safety determination must be made in.

"The proposed elimination of bail and this imposition of this bureaucratic regime is actually a reduction in liberty for many arrestees," Dhillon said. "Without the court signing off that they're going to find judges to be around the clock hearing and ruling on these pretrial release recommendations people will be staying longer."

A spokesperson for the San Francisco Superior Court said the court did not have a comment.

Dhillon added she expects the settlement, if enacted, to be challenged in court.

The new rules would not apply to people accused of serious or violent felonies. Lawyers for the two women who brought the lawsuit have asked Gonzalez Rogers to rule on whether people charged with serious or violent felonies would be eligible for prearraignment judicial review. The city is not taking a position on the issue.

"After five years of litigation, we are relieved to see San Francisco's unequal bail system ending," said Executive Director of Equal Justice Under Law, Phil Telfeyan, in a statement. The non-profit organization, which advocates for criminal system equality, helped bring the lawsuit against the city.

"We hope that other cities and states will soon follow," Telfeyan said.

The settlement needs approval by the federal court and the city's Board of Supervisors. It would go into effect 90 days after the Board of Supervisors provides funding for the Sheriff's Department to do more public safety assessments.

Read the proposed settlement below.