Yeesh. I understand that this kind of thing might have some healing effect on hurt people, but I can't get over the ramifications of treating an AI like a real person in a court setting. For instance, imagine a suspect skips out on a hearing due to some unknown circumstance - in absentia, the court relies on an AI testimony trained on the suspect, who then changes his plea to guilty and confesses to the crime.
If I was killed in something as pointless as a road range incident and then an AI trained on me was wheeled into court to "forgive" my aggressor I'd be incensed from beyond the astral plane.