As a progressive prosecutor, I had high expectations for the 2019 legislative session. My party controlled both chambers, and I had hoped for legislation that spoke to the plight of our youth, the suffering of our victims, the balance of justice in the courts, the restoration of our communities and ­redemption of citizens carrying the weight of prior bad acts.

What Albany delivered instead were laws dismantling order.

New Yorkers awoke on April Fool’s Day to measures as flawed as the process that created them. The meaningful criminal-justice reform New Yorkers were promised fell by the wayside, and those who tout these new laws as “reform” are as brazen as Tony the Tiger boasting about the nutritional value in his boxes of sugar.

As complex as our criminal-procedure laws and penal code can be, our lawmakers didn’t hold one hearing on criminal-justice reform. They sought no input from police, prosecutors, judges or service providers. Failing to seek the advice of subject-matter experts was irresponsible. Enacting legislation premised on misinformation, sound bites and hashtags was nothing short of reckless.

The bill that passed would ­require prosecutors to turn over the names, telephone numbers and ­addresses of all witnesses to crimes within 15 days of arraignment — all but inviting the intimidation of victims and witnesses.

The bill also eliminates cash bail, so that fentanyl and opioid traffickers can be released back on the streets, giving them the chance to flee our state or even country. Likewise, the bill allows the burglar who breaks into our homes to be immediately released back into our neighborhoods.

The Legislature has transformed the justice system into one in which the only actors handcuffed are judges and prosecutors.

Lawmakers cited the plight of communities of color. But how does releasing a defendant who has burglarized a home in a black neighborhood benefit that community? How does releasing a defendant whose arrest resulted in the seizure of two kilos of fentanyl benefit communities of color?

How is providing the names, addresses and phone numbers of witnesses to a shooting within two weeks of arraignment beneficial to any community? How does allowing a defendant to use the proceeds of a crime to live and hire pricey lawyers benefit the victim of a financial crime? It doesn’t.

The truth is this: Bail, discovery and trial speeds needed to be reformed. Shame on those of us in law enforcement who remained ­silent for too long on these issues. However, in their haste to overcorrect inequities in the system, our lawmakers lost sight of the very communities that they were purporting to help. The insular process that produced this result ­undermined their intentions, however noble.

Back-room deals and secretive meetings resulted in a budget bill that didn’t budget a single dollar toward the implementation of the laws.

For 20 years, I have created and implemented programs that benefit communities I care about. We have achieved our dual goals of improving public safety while reducing incarceration: From pre-arrest programs, such as Law Enforcement Assisted Diversion, to post-arrest restorative justice, defendants have many opportunities to avoid incarceration or move on with their lives afterward.

Recognizing that many of our citizens suffer from employment obstacles brought about by old convictions, we are especially dedicated to helping criminals seal and expunge past convictions with programs such as Clean Slate.

These innovations came about ­after law enforcers spent time listening to the concerns and understanding the needs of those living in the toughest communities.

I am not alone in these endeavors. Across the state, prosecutors have demonstrated a commitment to community investment and ­alternatives-to-incarceration programs, and the results speak for themselves. Today, New York is experiencing its greatest decline in violent crimes, even as the state’s prison population continues to drop — proof that ending mass incarceration can be achieved with careful planning and resources.

But these new mandates will be of no help. Far from uplifting black and brown people, they will ease their victimization by criminals. ­Local governments will have to shoulder the impact of these ­impractical mandates, including the inevitable fiscal pressures. But ultimately, it will be those whom the bill was intended to help who will pay the highest price.

Albany County District Attorney David Soares is president of the District Attorneys Association of the State of New York.