Well even the NYT didn't state the names of the prosecutor and judge that got this so egregiously and unforgivably wrong. Name and shame would be a start.
I haven't found names or docket-stuff, but this page has more details like exact dates that may help someone with the right databases.
> On October 31, 2019, the District Attorney’s office filed charges of identity theft and false impersonation against Woods.
On December 23, 2019, Woods’s public defender expressed concern over Woods’s mental competence because he kept insisting that he was the real William Woods.
> On February 10, 2020, following an examination by a physician, Woods was declared incompetent to stand trial and was sent to a California mental hospital for treatment, including psychotropic medication.
Turns out the villain in that story is the system itself. Woods proved himself competent but the DA was not persuaded, so at his attorney's advice (the one who threw him under the bus with the competency evaluation) Woods accepted the criminal charges, thus the court feels absolved of blame.
There should be an NTSB for egregious acts of injustice, because the players in the system independently show no aptitude for reform and they all messed up badly. The way they defined their roles was wrong.
I mean, that at least sounds good, but in fact that would not be a start as it has no possible impact on these individuals on a personal or professional level.